From d0c40ddfc61d93d06da9318be2a3791bbd1957cc Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Tue, 14 Sep 2010 22:10:43 +0000 Subject: Added logging of an error message in GDBRemoteCommunication::SendPacketNoLock() if sending of the packet fails for any reason. llvm-svn: 113874 --- lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/Plugins/Process/gdb-remote') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index e917804b727..bbd8f49f240 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -393,6 +393,10 @@ GDBRemoteCommunication::SendPacketNoLock (const char *payload, size_t payload_le return 0; } } + else + { + ProcessGDBRemoteLog::LogIf (GDBR_LOG_PACKETS, "error: failed to send packet: %s", packet.GetData()); + } return bytes_written; } //m_error.SetErrorString("Not connected."); -- cgit v1.2.3