[Lldb-commits] [lldb] r177817 - Add two additional DNBLog's in places where we're about to kill

Jason Molenda jmolenda at apple.com
Fri Mar 22 22:35:57 PDT 2013


Author: jmolenda
Date: Sat Mar 23 00:35:57 2013
New Revision: 177817

URL: http://llvm.org/viewvc/llvm-project?rev=177817&view=rev
Log:
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> 

Modified:
    lldb/trunk/tools/debugserver/source/RNBRemote.cpp
    lldb/trunk/tools/debugserver/source/debugserver.cpp

Modified: lldb/trunk/tools/debugserver/source/RNBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBRemote.cpp?rev=177817&r1=177816&r2=177817&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBRemote.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBRemote.cpp Sat Mar 23 00:35:57 2013
@@ -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());

Modified: lldb/trunk/tools/debugserver/source/debugserver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/debugserver.cpp?rev=177817&r1=177816&r2=177817&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/debugserver.cpp (original)
+++ lldb/trunk/tools/debugserver/source/debugserver.cpp Sat Mar 23 00:35:57 2013
@@ -571,6 +571,7 @@ RNBRunLoopInferiorExecuting (RNBRemote *
                     // 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());
                     }
                 }





More information about the lldb-commits mailing list