Index: src/processor/stackwalk_common.cc |
diff --git a/src/processor/stackwalk_common.cc b/src/processor/stackwalk_common.cc |
index dd529fdbdf872bc2aab338a14f2549e90da522e6..5cbcd27a10c896ba6e8f358287544367011a19f4 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 |