diff options
| author | Leonard Mosescu <mosescu@google.com> | 2018-08-07 18:00:30 +0000 |
|---|---|---|
| committer | Leonard Mosescu <mosescu@google.com> | 2018-08-07 18:00:30 +0000 |
| commit | 9ba51579fb331697c09441fdb1f77f267ff82c77 (patch) | |
| tree | df66cfef5f309badcb1e2c40acbf0c1f9e1db6f5 /lldb/source/Plugins/Process | |
| parent | 57e6dd72226a50bf72b37e9b233561ac1a4b25b7 (diff) | |
| download | bcm5719-llvm-9ba51579fb331697c09441fdb1f77f267ff82c77.tar.gz bcm5719-llvm-9ba51579fb331697c09441fdb1f77f267ff82c77.zip | |
Misc module/dwarf logging improvements
This change improves the logging for the lldb.module category to note a few interesting cases:
1. Local object file found, but specs not matching
2. Local object file not found, using a placeholder module
The handling and logging for the cases wehre we fail to load compressed dwarf
symbols is also improved.
Differential Revision: https://reviews.llvm.org/D50274
llvm-svn: 339161
Diffstat (limited to 'lldb/source/Plugins/Process')
| -rw-r--r-- | lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp b/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp index 86ee2122a97..95229b9934d 100644 --- a/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp +++ b/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp @@ -365,6 +365,12 @@ void ProcessMinidump::ReadModuleList() { // This enables most LLDB functionality involving address-to-module // translations (ex. identifing the module for a stack frame PC) and // modules/sections commands (ex. target modules list, ...) + if (log) { + log->Printf("Unable to locate the matching object file, creating a " + "placeholder module for: %s", + name.getValue().c_str()); + } + auto placeholder_module = std::make_shared<PlaceholderModule>(module_spec); placeholder_module->CreateImageSection(module, GetTarget()); |

