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 .
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user