llvm-project/lldb/tools
Jason Molenda ac49e90219 jGetLoadedDynamicLibrariesInfos can inspect machos not yet loaded
jGetLoadedDynamicLibrariesInfos normally checks with dyld to find
the list of binaries loaded in the inferior, and getting the filepath,
before trying to parse the Mach-O binary in inferior memory.
This allows for debugserver to parse a Mach-O binary present in memory,
but not yet registered with dyld.  This patch also adds some simple
sanity checks that we're reading a Mach-O header before we begin
stepping through load commands, because we won't have the sanity check
of consulting dyld for the list of loaded binaries before parsing.
Also adds a testcase.

[This patch was reverted after causing a testsuite failure on a CI bot;
I haven't been able to repro the failure outside the CI, but I have a
theory that my sanity check on cputype which only matched arm64 and
x86_64 - and the CI machine may have a watch simulator that is still
using i386.]

Differential Revision: https://reviews.llvm.org/D128956
rdar://95737734
2022-07-14 00:56:14 -07:00
..
argdumper [lldb] Remove a few unused .exports files 2021-08-05 22:17:00 +02:00
compact-unwind Don't re-define constants that are now in compact_unwind_encoding.h. 2021-09-09 17:01:43 -07:00
darwin-debug [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
darwin-threads
debugserver jGetLoadedDynamicLibrariesInfos can inspect machos not yet loaded 2022-07-14 00:56:14 -07:00
driver [lldb] Fix building for mingw after changes to sigtstp_handler 2022-03-26 22:32:53 +02:00
intel-features [lldb][tests] Automatically call compute_mydir (NFC) 2022-06-17 14:34:49 -07:00
lldb-fuzzer [lldb/Fuzzer] Have fuzzers write artifacts to specific directory 2022-06-23 16:55:23 -04:00
lldb-instr [lldb] Revive lldb-instr 2022-01-20 18:06:14 -08:00
lldb-server [lldb] Replace Host::SystemLog with Debugger::Report{Error,Warning} 2022-06-24 09:46:26 -07:00
lldb-test [lldb] Add support for specifying a log handler 2022-06-24 18:24:00 -07:00
lldb-vscode Don't use Optional::hasValue (NFC) 2022-06-20 20:26:05 -07:00
CMakeLists.txt [lldb] Add a fuzzer for target creation 2022-03-25 09:34:00 -07:00