forked from OSchip/llvm-project
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:
parent
08b87e0ded
commit
d0c40ddfc6
|
@ -393,6 +393,10 @@ GDBRemoteCommunication::SendPacketNoLock (const char *payload, size_t payload_le
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ProcessGDBRemoteLog::LogIf (GDBR_LOG_PACKETS, "error: failed to send packet: %s", packet.GetData());
|
||||||
|
}
|
||||||
return bytes_written;
|
return bytes_written;
|
||||||
}
|
}
|
||||||
//m_error.SetErrorString("Not connected.");
|
//m_error.SetErrorString("Not connected.");
|
||||||
|
|
Loading…
Reference in New Issue