[Lldb-commits] [lldb] r113874 - /lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

Johnny Chen johnny.chen at apple.com
Tue Sep 14 15:10:43 PDT 2010


Author: johnny
Date: Tue Sep 14 17:10:43 2010
New Revision: 113874

URL: http://llvm.org/viewvc/llvm-project?rev=113874&view=rev
Log:
Added logging of an error message in GDBRemoteCommunication::SendPacketNoLock()
if sending of the packet fails for any reason.

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp?rev=113874&r1=113873&r2=113874&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp Tue Sep 14 17:10:43 2010
@@ -393,6 +393,10 @@
                     return 0;
             }
         }
+        else
+        {
+            ProcessGDBRemoteLog::LogIf (GDBR_LOG_PACKETS, "error: failed to send packet: %s", packet.GetData());
+        }
         return bytes_written;
    }
     //m_error.SetErrorString("Not connected.");





More information about the lldb-commits mailing list