llvm-project/lldb/source/Plugins/DynamicLoader
Raphael Isemann 16926115ed [lldb] Only set the executable module for a target once
Summary:

When we try to find the executable module for our target we don't check
if we already have an executable module set. This causes that when debugging
a program that dlopens another executable, LLDB will take that other executable
as the new executable of the target (which causes that future launches of the
target will launch the dlopen'd executable instead of the original executable).

This just adds a check that we only set the executable when we haven't already
found one.

Fixes rdar://63443099

Reviewers: jasonmolenda, jingham, teemperor

Reviewed By: jasonmolenda, teemperor

Subscribers: jingham, JDevlieghere

Differential Revision: https://reviews.llvm.org/D80724
2020-07-17 08:35:38 +02:00
..
Darwin-Kernel [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
Hexagon-DYLD [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
MacOSX-DYLD [lldb] Only set the executable module for a target once 2020-07-17 08:35:38 +02:00
POSIX-DYLD [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
Static [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN 2020-06-02 13:23:53 -04:00
Windows-DYLD [lldb] s/ExecutionContext/Target in Disassembler 2020-03-05 14:46:39 +01:00
wasm-DYLD [LLDB] Add DynamicLoaderWasmDYLD plugin for WebAssembly debugging 2020-02-17 12:42:23 +01:00
CMakeLists.txt [lldb/Plugin] Unconditionally build Darwin-Kernel 2020-02-17 18:14:24 -08:00