Implement WindowsDYLD::DidAttach for use with gdb-server attach
authorNathan Lanza <nathan@lanza.io>
Thu, 6 Dec 2018 21:13:03 +0000 (21:13 +0000)
committerNathan Lanza <nathan@lanza.io>
Thu, 6 Dec 2018 21:13:03 +0000 (21:13 +0000)
commit488214fe847885b081cbcbee361d8f52c600d85e
tree4ed72b2d51df4d11ef9d851458f2415ff2f07368
parent73b98491457809f79c2bb4af0c49d07ecb349d87
Implement WindowsDYLD::DidAttach for use with gdb-server attach

Summary:
Windows lldb debugging currently uses a process plugin to handle
launching and attaching to a process. Launching a process via a debug
server (e.g. ds2) and attaching to it with `gdb-remote port` currently
doesn't communicate address information of the executable properly.

Implement DynamicLoaderWindowsDYLD::DidAttach which allow us to
obtain the proper executable load address.

Differential Revision: https://reviews.llvm.org/D55383

llvm-svn: 348526
lldb/source/Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.cpp