aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJason Molenda <jason@molenda.com>2022-09-13 15:40:21 -0700
committerJason Molenda <jason@molenda.com>2022-09-13 15:46:18 -0700
commit92bd2e443e8f0337ef5cc55c9b4a7ea6e3f450b6 (patch)
tree0471ee1ac0a90f9b3309c1f3350c575167344080 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentd00b0aab31405432fad7bbaebccc0ae0956d6d39 (diff)
downloadllvm-92bd2e443e8f0337ef5cc55c9b4a7ea6e3f450b6.zip
llvm-92bd2e443e8f0337ef5cc55c9b4a7ea6e3f450b6.tar.gz
llvm-92bd2e443e8f0337ef5cc55c9b4a7ea6e3f450b6.tar.bz2
Add mach-o corefile support for platform binaries
Add support for recognizing a platform binary in the ObjectFileMachO method that parses the "load binary" LC_NOTEs in a corefile. A bit of reorganization to ProcessMachCore::DoLoadCore to separate all of the unrelated things being done in that method into their own separate methods, as well as small fixes to improve the handling of a corefile with multiple kernel images in the corefile. Differential Revision: https://reviews.llvm.org/D133680 rdar://98754861
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 7feffba..0c83f71 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -575,7 +575,7 @@ Status ProcessGDBRemote::DoConnectRemote(llvm::StringRef remote_url) {
const bool force_symbol_search = true;
const bool notify = true;
DynamicLoader::LoadBinaryWithUUIDAndAddress(
- this, standalone_uuid, standalone_value,
+ this, llvm::StringRef(), standalone_uuid, standalone_value,
standalone_value_is_offset, force_symbol_search, notify);
}
}
@@ -607,7 +607,8 @@ Status ProcessGDBRemote::DoConnectRemote(llvm::StringRef remote_url) {
const bool force_symbol_search = true;
// Second manually load this binary into the Target.
DynamicLoader::LoadBinaryWithUUIDAndAddress(
- this, uuid, addr, value_is_slide, force_symbol_search, notify);
+ this, llvm::StringRef(), uuid, addr, value_is_slide,
+ force_symbol_search, notify);
}
}