summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-01-29 07:10:55 +0000
committerGreg Clayton <gclayton@apple.com>2011-01-29 07:10:55 +0000
commit513c26ce9ddebe5adbcb068e88b452a904ee6f8d (patch)
tree4b06c857d67e39f2202c1fee7af2237029b93c8f /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
parentfd4834061c5b1e6e056d0d53da72980ae44b638e (diff)
downloadbcm5719-llvm-513c26ce9ddebe5adbcb068e88b452a904ee6f8d.tar.gz
bcm5719-llvm-513c26ce9ddebe5adbcb068e88b452a904ee6f8d.zip
Finished up the async attach support. This allows us to request to attach
by name or by pid (with or without waiting for a process to launch) and catch the response asynchronously. llvm-svn: 124530
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 20af4b44a1c..54382ff1240 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -273,6 +273,17 @@ GDBRemoteCommunication::SendContinuePacketAndWaitForResponse
{
case 'T':
case 'S':
+ if (process->GetStopID() == 0)
+ {
+ if (process->GetID() == LLDB_INVALID_PROCESS_ID)
+ {
+ lldb::pid_t pid = GetCurrentProcessID (1);
+ if (pid != LLDB_INVALID_PROCESS_ID)
+ process->SetID (pid);
+ }
+ process->BuildDynamicRegisterInfo (true);
+ }
+
// Privately notify any internal threads that we have stopped
// in case we wanted to interrupt our process, yet we might
// send a packet and continue without returning control to the
OpenPOWER on IntegriCloud