From 0924d424e444d57dd95c647652a11f2d655c11a0 Mon Sep 17 00:00:00 2001 From: Joshua Peraza Date: Thu, 19 Jan 2017 11:18:41 -0800 Subject: Populate stack frames with unloaded module info. This CL hits lots of source files because: 1. An update to the CodeModule virtual class. I added an is_loaded method to specify whether the module is loaded. There were several mocks/test classes that needed to be updated with an implementation. An alternative to this route would be to modify MinidumpUnloadedModule::code_file to prepend "Unloaded_" to the module name. 2. Added an unloaded_modules parameter to StackFrameSymbolizer::FillSourceLineInfo. BUG= Change-Id: Ic9c7f7c7b7e932a154a5d4ccf292c1527d8da09f Reviewed-on: https://chromium-review.googlesource.com/430241 Reviewed-by: Ivan Penkov --- src/google_breakpad/processor/process_state.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/google_breakpad/processor/process_state.h') diff --git a/src/google_breakpad/processor/process_state.h b/src/google_breakpad/processor/process_state.h index 9f12b0c6..21bef42c 100644 --- a/src/google_breakpad/processor/process_state.h +++ b/src/google_breakpad/processor/process_state.h @@ -91,7 +91,7 @@ enum ExploitabilityRating { class ProcessState { public: - ProcessState() : modules_(NULL) { Clear(); } + ProcessState() : modules_(NULL), unloaded_modules_(NULL) { Clear(); } ~ProcessState(); // Resets the ProcessState to its default values @@ -111,6 +111,7 @@ class ProcessState { } const SystemInfo* system_info() const { return &system_info_; } const CodeModules* modules() const { return modules_; } + const CodeModules* unloaded_modules() const { return unloaded_modules_; } const vector >* shrunk_range_modules() const { return &shrunk_range_modules_; } @@ -177,6 +178,10 @@ class ProcessState { // ProcessState. const CodeModules *modules_; + // The modules that have been unloaded from the process represented by the + // ProcessState. + const CodeModules *unloaded_modules_; + // The modules which virtual address ranges were shrunk down due to // virtual address conflicts. vector > shrunk_range_modules_; -- cgit v1.2.1