From 73badfc376fabfeae80ea4864dad7564d0214708 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Wed, 6 Sep 2006 20:58:56 +0000 Subject: [PATCH] Initial implementation of x86 stackwalker (#9), missing file. r=bryner git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@13 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/google/stack_frame.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/google/stack_frame.h b/src/google/stack_frame.h index dd3866fa..e625aee3 100644 --- a/src/google/stack_frame.h +++ b/src/google/stack_frame.h @@ -15,14 +15,28 @@ #ifndef GOOGLE_STACK_FRAME_H__ #define GOOGLE_STACK_FRAME_H__ +#include #include #include "google/airbag_types.h" namespace google_airbag { using std::string; +using std::vector; struct StackFrame { + // Initialize sensible defaults, or this will be instantiated with + // primitive members in an undetermined state. + StackFrame() + : instruction() + , frame_pointer() + , module_base() + , module_name() + , function_base() + , function_name() + , source_file_name() + , source_line() {} + // The program counter location relative to the module base u_int64_t instruction; @@ -51,7 +65,7 @@ struct StackFrame { // TODO(bryner): saved registers }; -typedef std::vector StackFrames; +typedef vector StackFrames; } // namespace google_airbag