diff options
| author | Jason Molenda <jason@molenda.com> | 2023-01-04 16:08:58 -0800 |
|---|---|---|
| committer | Jason Molenda <jason@molenda.com> | 2023-01-04 16:11:51 -0800 |
| commit | 0dc7ecb1a70ec9f6eb41ebb4d1edf5d2acdfb4ce (patch) | |
| tree | 247b01a979a1a38b84849717ac95e01966e3b6ce /lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp | |
| parent | b2ac5fd724c44cf662caed84bd8f84af574b981d (diff) | |
Fix typeo in LoadBinariesViaExhaustiveSearch when looking for kernel
As a last resort, with a Mach-O corefile, lldb will iterate through
all memory segments looking for a dyld binary (for a userland process
core dump) or an xnu kernel binary (kernel coredump). We often
have metadata via LC_NOTEs so this final search mechanism is not
needed. During the rewrite in https://reviews.llvm.org/D133680 I
did not handle the case of finding the xnu kernel by exhaustive
search correctly.
rdar://103813200
Diffstat (limited to 'lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp index 593dc8535e64..fbf57fc3bf8e 100644 --- a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp +++ b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp @@ -357,7 +357,7 @@ void ProcessMachCore::LoadBinariesViaExhaustiveSearch() { if (dyld != LLDB_INVALID_ADDRESS) dylds_found.push_back(dyld); if (kernel != LLDB_INVALID_ADDRESS) - kernels_found.push_back(dyld); + kernels_found.push_back(kernel); } } } |
