diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-09-14 22:10:43 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-09-14 22:10:43 +0000 |
commit | d0c40ddfc61d93d06da9318be2a3791bbd1957cc (patch) | |
tree | 207abddd167bf80fcf16dab47da9ea0c72e70f41 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | |
parent | 08b87e0dedc4bf9939190a61c81200c0ea97c3c7 (diff) | |
download | bcm5719-llvm-d0c40ddfc61d93d06da9318be2a3791bbd1957cc.tar.gz bcm5719-llvm-d0c40ddfc61d93d06da9318be2a3791bbd1957cc.zip |
Added logging of an error message in GDBRemoteCommunication::SendPacketNoLock()
if sending of the packet fails for any reason.
llvm-svn: 113874
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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."); |