summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-03 22:35:47 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-03 22:35:47 +0000
commit725945d5680a38cd284de1a4e6780ced489590c4 (patch)
tree8c7fbf91f62c61595df7ce1a48158aa3417319f7 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent47bec3cb57cec41da562c38b83a4ef50f2d7fc46 (diff)
downloadbcm5719-llvm-725945d5680a38cd284de1a4e6780ced489590c4.tar.gz
bcm5719-llvm-725945d5680a38cd284de1a4e6780ced489590c4.zip
Fixed an lldb infrastructure bug, where the debugger should reaaly update its
execution context only when the process is still alive. When running the test suite, the debugger is launching and killing processes constantly. This might be the cause of the test hang as reported in rdar://problem/8377854, where the debugger was looping infinitely trying to update a supposedly stale thread list. llvm-svn: 113022
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 815ceceb036..c9f864f02e4 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1171,6 +1171,7 @@ ProcessGDBRemote::DoDestroy ()
StopAsyncThread ();
m_gdb_comm.StopReadThread();
KillDebugserverProcess ();
+ m_gdb_comm.Disconnect(); // Disconnect from the debug server.
return error;
}
OpenPOWER on IntegriCloud