llvm-project/lldb/source
Vedant Kumar 4bd2bfb6ec [lldb/PlatformPOSIX] Change LoadImage default to RTLD_LAZY (reapply)
In general, it seems like the debugger should allow programs to load & run with
libraries as far as possible, instead of defaulting to being super-picky about
unavailable symbols.

This is critical on macOS/Darwin, as libswiftCore.dylib may 1) export a version
symbol using @available markup and then 2) expect that other exported APIs are
only dynamically used once the version symbol is checked. We can't open a
version of the library built with a bleeding-edge SDK on an older OS without
RTLD_LAXY (or pervasive/expensive @available markup added to dyld APIs).

This was previously committed as cb8c1ee269 and reverted due to
unknown failures on the Linux bots. This version adds additional asserts
to check that the shared objects are where we expect them & that calling
f1() from libt1 produces the expected value. The Linux failure is
tracked by https://bugs.llvm.org/show_bug.cgi?id=49656.

See: https://lists.llvm.org/pipermail/lldb-dev/2021-March/016796.html

Differential Revision: https://reviews.llvm.org/D98879
2021-03-19 16:06:00 -07:00
..
API [lldb/API] Add CommandInterpreter::{Get,Set}PrintErrors to SBAPI (NFC) 2021-03-05 19:33:33 +01:00
Breakpoint Revert "Make the stop-on-sharedlibrary-events setting work." 2021-03-19 12:38:41 -07:00
Commands [lldb] Correct unsigned decimal argument check in memory write 2021-03-17 16:08:54 +00:00
Core [lldb][gui] Fix uninitialized variable in SourceFileWindowDelegate. 2021-03-09 10:57:00 -08:00
DataFormatters [lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values 2021-02-23 11:15:31 +01:00
Expression [lldb] Fix error message in IRInterpreter 2021-03-08 16:46:38 +01:00
Host Migrate to llvm::unique_function instead of static member functions for callbacks 2021-03-02 16:13:54 -08:00
Initialization [lldb] Fix shared library directory computation on windows 2021-02-18 15:37:52 +01:00
Interpreter [lldb/Interpreter] Add `interpreter.repeat-previous-command` setting 2021-03-05 19:33:32 +01:00
Plugins [lldb/PlatformPOSIX] Change LoadImage default to RTLD_LAZY (reapply) 2021-03-19 16:06:00 -07:00
Symbol [lldb][NFC] Give CompilerType's IsArrayType/IsVectorType/IsBlockPointerType out-parameters default values 2021-02-23 11:15:31 +01:00
Target Revert "Make the stop-on-sharedlibrary-events setting work." 2021-03-19 12:38:41 -07:00
Utility [lldb] Call os_log_fault on lldb_assert 2021-03-19 14:23:50 -07:00
CMakeLists.txt Remove HAVE_VCS_VERSION_INC, not needed 2020-10-29 13:09:05 -07:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00