llvm-project/lldb/source/Plugins/Process/Windows/Common
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
..
arm [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
arm64 [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
x64 [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
x86 [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
CMakeLists.txt
DebuggerThread.cpp [lldb] Fix loading DLL from some ramdisk on Windows 2022-06-15 17:02:33 +03:00
DebuggerThread.h [lldb] Modernize ThreadLauncher 2022-02-23 14:25:59 +01:00
ExceptionRecord.h [lldb][windows] Fix crash on getting nested exception 2022-06-22 17:16:06 +03:00
ForwardDecl.h
IDebugDelegate.h
LocalDebugDelegate.cpp
LocalDebugDelegate.h
NativeProcessWindows.cpp [lldb] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 11:31:49 -07:00
NativeProcessWindows.h [lldb] [Windows] Fix continuing from breakpoints and singlestepping on ARM/AArch64 2021-09-22 14:11:41 +03:00
NativeRegisterContextWindows.cpp
NativeRegisterContextWindows.h
NativeRegisterContextWindows_WoW64.cpp [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
NativeRegisterContextWindows_WoW64.h [lldb] Update the NativeRegisterContext to take a WritableMemoryBuffer 2022-04-05 14:19:01 -07:00
NativeRegisterContextWindows_arm.cpp [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
NativeRegisterContextWindows_arm.h [lldb] Update the NativeRegisterContext to take a WritableMemoryBuffer 2022-04-05 14:19:01 -07:00
NativeRegisterContextWindows_arm64.cpp [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
NativeRegisterContextWindows_arm64.h [lldb] Update the NativeRegisterContext to take a WritableMemoryBuffer 2022-04-05 14:19:01 -07:00
NativeRegisterContextWindows_i386.cpp [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
NativeRegisterContextWindows_i386.h [lldb] Update the NativeRegisterContext to take a WritableMemoryBuffer 2022-04-05 14:19:01 -07:00
NativeRegisterContextWindows_x86_64.cpp [lldb] Use std::size instead of llvm::array_lengthof 2022-09-08 14:21:55 -06:00
NativeRegisterContextWindows_x86_64.h [lldb] Update the NativeRegisterContext to take a WritableMemoryBuffer 2022-04-05 14:19:01 -07:00
NativeThreadWindows.cpp [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
NativeThreadWindows.h
NtStructures.h
ProcessDebugger.cpp [NFC] Improve FileSpec internal APIs and usage in preparation for adding caching of resolved/absolute. 2022-07-28 13:28:26 -07:00
ProcessDebugger.h Revert "[lldb] Remove non address bits when looking up memory regions" 2021-11-03 13:27:41 +00:00
ProcessWindows.cpp [lldb][Windows] Always call SetExecutableModule on debugger connected 2022-09-30 13:51:56 +03:00
ProcessWindows.h [lldb] Make Process and subclass constructors protected 2022-08-08 17:34:27 +02:00
ProcessWindowsLog.cpp [lldb] Fix windows build for D117490 2022-01-25 13:51:53 +01:00
ProcessWindowsLog.h [lldb] Fix windows&mac builds for c34698a811 2022-02-03 18:06:55 +01:00
RegisterContextWindows.cpp [lldb] Update ReadAllRegisterValues in RegisterContextWindows 2022-04-05 15:15:48 -07:00
RegisterContextWindows.h [lldb] Update ReadAllRegisterValues in RegisterContextWindows 2022-04-05 15:15:48 -07:00
TargetThreadWindows.cpp [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
TargetThreadWindows.h