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:
Greg Clayton 2011-01-25 04:57:42 +00:00
parent 46669c0996
commit 99d686d728
1 changed files with 11 additions and 1 deletions

View File

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