llvm-project/lldb
Jason Molenda 77a38f6839 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.

Differential Revision: https://reviews.llvm.org/D128956
rdar://95737734
2022-07-08 15:13:49 -07:00
..
bindings Add LoadTraceFromFile to SBDebugger and SBTrace 2022-06-20 11:54:47 -07:00
cmake [lldb] Disable modules in Apple-lldb-base 2022-05-24 17:17:14 -07:00
docs [lldb] Cleanup Python API reference files after building the docs 2022-06-16 16:30:49 -07:00
examples [lldb/crashlog] Show help when the command is called without any argument 2022-06-10 13:44:43 -07:00
include/lldb Revert "[LLDB][NFC] Decouple dwarf location table from DWARFExpression." 2022-07-07 16:36:10 -07:00
packages/Python/lldbsuite [libc++] Re-apply the use of ABI tags to provide per-TU insulation 2022-07-08 08:38:36 -04:00
resources
scripts
source Revert "[llvm] cmake config groundwork to have ZSTD in LLVM" 2022-07-08 13:48:05 -07:00
test jGetLoadedDynamicLibrariesInfos can inspect machos not yet loaded 2022-07-08 15:13:49 -07:00
third_party/Python/module [lldb][NFC] Inclusive language: replace master/slave names for ptys 2021-11-12 10:54:18 -06:00
tools jGetLoadedDynamicLibrariesInfos can inspect machos not yet loaded 2022-07-08 15:13:49 -07:00
unittests [PATCH] [lldb-server] Skip shared regions for memory allocation 2022-07-01 13:45:42 +08:00
utils
.clang-format
.clang-tidy [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
.gitignore
CMakeLists.txt [cmake] Make include(GNUInstallDirs) always below project(..) 2022-01-20 18:59:17 +00:00
CODE_OWNERS.txt [CODE OWNERS] Add wallace as code owner 2022-01-12 12:36:30 -08:00
LICENSE.TXT
use_lldb_suite_root.py