diff --git a/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp b/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp --- a/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp +++ b/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp @@ -598,7 +598,7 @@ "Unable to locate the matching object file, creating a " "placeholder module for: {0}", name); - + module_spec.GetFileSpec().PrependPathComponent("(not loaded) "); module_sp = Module::CreateModuleFromObjectFile( module_spec, load_addr, load_size); GetTarget().GetImages().Append(module_sp, true /* notify */); diff --git a/lldb/test/Shell/Minidump/modules-not-loaded.yaml b/lldb/test/Shell/Minidump/modules-not-loaded.yaml new file mode 100644 --- /dev/null +++ b/lldb/test/Shell/Minidump/modules-not-loaded.yaml @@ -0,0 +1,23 @@ +# REQUIRES: x86 + +# RUN: yaml2obj %s -o %t +# RUN: %lldb -c %t -o "target modules list" 2>&1 | FileCheck %s + +# CHECK: (lldb) target modules list +# CHEKC-NEXT: [ 0] 04000000-1400-0000-0300-0000474E5500 0x00001000 (not loaded) /invalid/path/on/current/system/libbreakpad.so + +--- !minidump +Streams: + - Type: SystemInfo + Processor Arch: ARM + Platform ID: Linux + CSD Version: '15E216' + CPU: + CPUID: 0x00000000 + - Type: ModuleList + Modules: + - Base of Image: 0x0000000000001000 + Size of Image: 0x00001000 + Module Name: '/invalid/path/on/current/system/libbreakpad.so' + CodeView Record: 52534453040000001400000003000000474e55000000000000 +...