aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-09-06 20:58:56 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-09-06 20:58:56 +0000
commit73badfc376fabfeae80ea4864dad7564d0214708 (patch)
treec802e9597982d229f5174e82726a44bd9aadc130 /src
parentInitial implementation of x86 stackwalker (#9). r=bryner (diff)
downloadbreakpad-73badfc376fabfeae80ea4864dad7564d0214708.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/google/stack_frame.h16
1 files changed, 15 insertions, 1 deletions
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 <string>
#include <vector>
#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<StackFrame> StackFrames;
+typedef vector<StackFrame> StackFrames;
} // namespace google_airbag