llvm-project/lldb/source/Plugins/Process
Alvin Wong fe17e02695 [lldb][Windows] Always call SetExecutableModule on debugger connected
In `ProcessWindows::OnDebuggerConnected` (triggered from
`CREATE_PROCESS_DEBUG_EVENT`), we should always call
`Target::SetExecutableModule` regardless of whether LLDB has already
preloaded the executable modules. `SetExecutableModule` has the side
effect of clearing the module list of the Target, which help make sure
that module #0 is the executable module and the rest of the modules are
listed according to the DLL load order in the process (technically this
has no real consequences but it seems to make more sense anyway.) It
also fixes an issue where the modules preloaded by LLDB will be
duplicated when the debuggee process actually loads the DLL.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D134636
2022-09-30 13:51:56 +03:00
..
FreeBSD [lldb] [llgs] Fix signo sent with fork/vfork/vforkdone events 2022-06-21 19:47:30 +02:00
FreeBSDKernel [lldb] [Process/FreeBSDKernel] Support finding all processes 2022-01-06 21:53:28 +01:00
Linux [lldb] Remove obsolete Android-specific definitions 2022-08-24 21:47:13 +00:00
MacOSX-Kernel [lldb] Reset breakpoint hit count before new runs 2022-09-19 12:56:12 -04:00
NetBSD [lldb] [llgs] Fix signo sent with fork/vfork/vforkdone events 2022-06-21 19:47:30 +02:00
POSIX [LLDB][NFC][Correctness] Fix bad null check 2022-08-01 14:45:26 -07:00
Utility [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
Windows/Common [lldb][Windows] Always call SetExecutableModule on debugger connected 2022-09-30 13:51:56 +03:00
elf-core [lldb][AArch64] Add support for memory tags in core files 2022-07-26 08:46:36 +01:00
gdb-remote [LLDB]Initialize accept_socket with nullptr 2022-09-20 12:17:32 -07:00
mach-core Add mach-o corefile support for platform binaries 2022-09-13 15:46:18 -07:00
minidump [lldb] Fixed a number of typos 2022-09-13 10:38:38 -07:00
scripted [lldb] Fixed a number of typos 2022-09-13 10:38:38 -07:00
CMakeLists.txt [lldb] Introduce a FreeBSDKernel plugin for vmcores 2021-12-14 22:07:20 +01:00