diff options
author | Lei Zhang <thestig@google.com> | 2016-01-29 13:59:17 -0800 |
---|---|---|
committer | Lei Zhang <thestig@google.com> | 2016-01-29 13:59:17 -0800 |
commit | 815d51c343b6a003f15d9327f1f1fd16eb5aba86 (patch) | |
tree | 485931679ad7cf7bea027a6a6f6df6458062fd44 /src/processor/stackwalk_common.cc | |
parent | Improvements to GYP build (diff) | |
download | breakpad-815d51c343b6a003f15d9327f1f1fd16eb5aba86.tar.xz |
Added a switch to dump minidump modules in minidump_stackwalk.
In order to figure out what symbols we need associated to a minidump,
it is useful to be able to dump all the modules the minidump contains.
A=dyen@chromium.org
Original Review: https://codereview.chromium.org/1651593002/
BUG=563716
R=dyen@chromium.org
Review URL: https://codereview.chromium.org/1650713002 .
Diffstat (limited to 'src/processor/stackwalk_common.cc')
-rw-r--r-- | src/processor/stackwalk_common.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/processor/stackwalk_common.cc b/src/processor/stackwalk_common.cc index dd529fdb..5cbcd27a 100644 --- a/src/processor/stackwalk_common.cc +++ b/src/processor/stackwalk_common.cc @@ -926,4 +926,13 @@ void PrintProcessStateMachineReadable(const ProcessState& process_state) { } } +void PrintProcessModules(const ProcessState& process_state) { + const CodeModules* modules = process_state.modules(); + const unsigned int module_count = modules->module_count(); + for (unsigned int i = 0; i < module_count; ++i) { + const CodeModule* module = modules->GetModuleAtSequence(i); + printf("%s\n", module->code_file().c_str()); + } +} + } // namespace google_breakpad |