From 53d0f69d35375fe2ffd119ac7e4898083c0e071c Mon Sep 17 00:00:00 2001 From: mmentovai Date: Thu, 7 Sep 2006 15:56:38 +0000 Subject: Conform to style guidelines. - In class definitions, one-space indent for public/protected/private. - Multi-line initializer format puts comma at end of line. Also: - Eliminate the long list of friends in Minidump by making swap() public. (People who need to access unknown stream types directly will need access to swap() too.) git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@16 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/stackwalker_x86.h | 44 ++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/processor/stackwalker_x86.h') diff --git a/src/processor/stackwalker_x86.h b/src/processor/stackwalker_x86.h index 6bb819de..6e0225b4 100644 --- a/src/processor/stackwalker_x86.h +++ b/src/processor/stackwalker_x86.h @@ -37,28 +37,28 @@ class MinidumpModuleList; class StackwalkerX86 : public Stackwalker { - public: - // context is a MinidumpContext object that gives access to x86-specific - // register state corresponding to the innermost called frame to be - // included in the stack. memory and modules are passed directly through - // to the base Stackwalker constructor. - StackwalkerX86(MinidumpContext* context, - MemoryRegion* memory, - MinidumpModuleList* modules); - - private: - // Implementation of Stackwalker, using x86 context (%ebp, %eip) and - // stack conventions (saved %ebp at [%ebp], saved %eip at 4[%ebp]). - virtual bool GetContextFrame(StackFrame* frame); - virtual bool GetCallerFrame(StackFrame* frame); - - // Stores the CPU context corresponding to the innermost stack frame to - // be returned by GetContextFrame. - const MDRawContextX86* context_; - - // Stores the frame pointer returned in the last stack frame returned by - // GetContextFrame or GetCallerFrame. - u_int32_t last_frame_pointer_; + public: + // context is a MinidumpContext object that gives access to x86-specific + // register state corresponding to the innermost called frame to be + // included in the stack. memory and modules are passed directly through + // to the base Stackwalker constructor. + StackwalkerX86(MinidumpContext* context, + MemoryRegion* memory, + MinidumpModuleList* modules); + + private: + // Implementation of Stackwalker, using x86 context (%ebp, %eip) and + // stack conventions (saved %ebp at [%ebp], saved %eip at 4[%ebp]). + virtual bool GetContextFrame(StackFrame* frame); + virtual bool GetCallerFrame(StackFrame* frame); + + // Stores the CPU context corresponding to the innermost stack frame to + // be returned by GetContextFrame. + const MDRawContextX86* context_; + + // Stores the frame pointer returned in the last stack frame returned by + // GetContextFrame or GetCallerFrame. + u_int32_t last_frame_pointer_; }; -- cgit v1.2.1