llvm-project/lldb/source
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
..
API [lldb] Remove unused argument (NFC) 2020-07-13 13:44:51 -07:00
Breakpoint [lldb][NFC] Clarify that spaces can't be in breakpoint names 2020-07-05 10:55:02 +02:00
Commands [lldb] Eliminated unused local variable 2020-07-16 14:44:24 -07:00
Core [lldb/Module] Allow for the creation of memory-only modules 2020-07-14 08:45:44 -07:00
DataFormatters [lldb] Small improvements in ValueObjectPrinter::PrintDecl (NFC) 2020-06-12 21:05:05 -07:00
Expression Unify the ExecutionContextScope computation in Materializer. 2020-07-08 15:18:21 -07:00
Host [lldb/ObjectFileMachO] Fetch shared cache images from our own shared cache 2020-07-16 10:37:37 -07:00
Initialization [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Interpreter [lldb/ScriptInterpreter] Fix missing include on Windows 2020-06-25 12:19:04 -07:00
Plugins [lldb] Only set the executable module for a target once 2020-07-17 08:35:38 +02:00
Symbol [lldb][NFC] Add 'override' where missing in source/ and tools/ 2020-07-15 11:34:47 -07:00
Target [lldb] Make `process connect` blocking in synchronous mode. 2020-07-14 08:45:34 -07:00
Utility [lldb/Utility] Rewrite Scalar::SetValueFromCString 2020-07-13 16:44:42 +02:00
CMakeLists.txt Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well. 2020-01-16 19:04:08 -05:00
lldb.cpp [lldb] Fix version string when using LLDB_REVISION but not LLDB_REPOSITORY 2020-02-20 10:07:50 -08:00