Added logging of an error message in GDBRemoteCommunication::SendPacketNoLock()

if sending of the packet fails for any reason.

llvm-svn: 113874
This commit is contained in:
Johnny Chen 2010-09-14 22:10:43 +00:00
parent 08b87e0ded
commit d0c40ddfc6
1 changed files with 4 additions and 0 deletions

View File

@ -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.");