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 <ivanpe@chromium.org>
This commit is contained in:
parent
e7dfafc16e
commit
0924d424e4
15 changed files with 161 additions and 13 deletions
|
@ -141,6 +141,12 @@ ProcessResult MinidumpProcessor::Process(
|
|||
}
|
||||
}
|
||||
|
||||
MinidumpUnloadedModuleList *unloaded_module_list =
|
||||
dump->GetUnloadedModuleList();
|
||||
if (unloaded_module_list) {
|
||||
process_state->unloaded_modules_ = unloaded_module_list->Copy();
|
||||
}
|
||||
|
||||
MinidumpMemoryList *memory_list = dump->GetMemoryList();
|
||||
if (memory_list) {
|
||||
BPLOG(INFO) << "Found " << memory_list->region_count()
|
||||
|
@ -262,6 +268,7 @@ ProcessResult MinidumpProcessor::Process(
|
|||
context,
|
||||
thread_memory,
|
||||
process_state->modules_,
|
||||
process_state->unloaded_modules_,
|
||||
frame_symbolizer_));
|
||||
|
||||
scoped_ptr<CallStack> stack(new CallStack());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue