forked from OSchip/llvm-project
Correct length of packet that GDBRemoteCommunicationClient::Detach
should send when detaching and leaving the remote process/system halted. Previously only the 'D' initial char was sent, which resumed the process like a normal detach. llvm-svn: 242256
This commit is contained in:
parent
e46f7ef385
commit
2a66738f5c
|
@ -2311,7 +2311,7 @@ GDBRemoteCommunicationClient::Detach (bool keep_stopped)
|
|||
else
|
||||
{
|
||||
StringExtractorGDBRemote response;
|
||||
PacketResult packet_result = SendPacketAndWaitForResponse ("D1", 1, response, false);
|
||||
PacketResult packet_result = SendPacketAndWaitForResponse ("D1", 2, response, false);
|
||||
if (packet_result != PacketResult::Success)
|
||||
error.SetErrorString ("Sending extended disconnect packet failed.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue