One more fix to ProcessGDBRemote::DoDestroy(). This one will make sure we
parse the exit status in case we send this packet while stopped. llvm-svn: 124177
This commit is contained in:
parent
46669c0996
commit
99d686d728
|
@ -1307,7 +1307,17 @@ ProcessGDBRemote::DoDestroy ()
|
|||
{
|
||||
StringExtractorGDBRemote response;
|
||||
bool send_async = true;
|
||||
if (m_gdb_comm.SendPacketAndWaitForResponse("k", 1, response, 3, send_async) == 0)
|
||||
if (m_gdb_comm.SendPacketAndWaitForResponse("k", 1, response, 3, send_async))
|
||||
{
|
||||
char packet_cmd = response.GetChar(0);
|
||||
|
||||
if (packet_cmd == 'W' || packet_cmd == 'X')
|
||||
{
|
||||
m_last_stop_packet = response;
|
||||
SetExitStatus(response.GetHexU8(), NULL);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
error.SetErrorString("kill packet failed");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue