summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-03-23 05:35:57 +0000
committerJason Molenda <jmolenda@apple.com>2013-03-23 05:35:57 +0000
commit6566d4320731ff2b0693c155c3ed146748e3e499 (patch)
treec9f8f0ba0f69d0076da0b955ebf757ecbf5aaf42 /lldb/tools/debugserver
parent07beea47b8e5409f4806131f16386f23c6cdf82e (diff)
downloadbcm5719-llvm-6566d4320731ff2b0693c155c3ed146748e3e499.tar.gz
bcm5719-llvm-6566d4320731ff2b0693c155c3ed146748e3e499.zip
Add two additional DNBLog's in places where we're about to kill
off the inferior process so we stand a better chance of understanding what caused us to send a PT_KILL. <rdar://problem/12720340> llvm-svn: 177817
Diffstat (limited to 'lldb/tools/debugserver')
-rw-r--r--lldb/tools/debugserver/source/RNBRemote.cpp1
-rw-r--r--lldb/tools/debugserver/source/debugserver.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp
index 26700515081..4c515f40365 100644
--- a/lldb/tools/debugserver/source/RNBRemote.cpp
+++ b/lldb/tools/debugserver/source/RNBRemote.cpp
@@ -3836,6 +3836,7 @@ RNBRemote::HandlePacket_D (const char *p)
rnb_err_t
RNBRemote::HandlePacket_k (const char *p)
{
+ DNBLog ("Got a 'k' packet, killing the inferior process.");
// No response to should be sent to the kill packet
if (m_ctx.HasValidProcessID())
DNBProcessKill (m_ctx.ProcessID());
diff --git a/lldb/tools/debugserver/source/debugserver.cpp b/lldb/tools/debugserver/source/debugserver.cpp
index ecafaaf6796..4fcc0a18073 100644
--- a/lldb/tools/debugserver/source/debugserver.cpp
+++ b/lldb/tools/debugserver/source/debugserver.cpp
@@ -571,6 +571,7 @@ RNBRunLoopInferiorExecuting (RNBRemote *remote)
// in its current state and listen for another connection...
if (ctx.ProcessStateRunning())
{
+ DNBLog ("debugserver's event read thread is exiting, killing the inferior process.");
DNBProcessKill (ctx.ProcessID());
}
}
OpenPOWER on IntegriCloud