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:
Lei Zhang
2016-01-29 13:59:17 -08:00
parent 442b45266d
commit 815d51c343
3 changed files with 30 additions and 5 deletions

View File

@@ -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