We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c56e8a commit b4f55dbCopy full SHA for b4f55db
1 file changed
DebuggerFeaturePkg/Library/DebugAgent/GdbStub/GdbStub.c
@@ -580,9 +580,14 @@ ProcessMonitorCmd (
580
break;
581
}
582
583
- // RCmd commands return hex encoded responses, convert to HEX before sending.
584
- ConvertResponseToHex (&mScratch[0], mResponse, MAX_RESPONSE_SIZE);
+ // Respond with a intermediate packet, "O[HEX]" follow by an empty "OK" packet
+ // where the [HEX] is the hex encoding of the response string. The spec is
585
+ // vague on the need for this, but this is to be consistent with other GDB stub
586
+ // implementations and Windbg expectations.
587
+ mResponse[0] = 'O';
588
+ ConvertResponseToHex (&mScratch[0], &mResponse[1], MAX_RESPONSE_SIZE - 1);
589
SendGdbResponse (mResponse);
590
+ SendGdbResponse ("OK");
591
592
593
/**
0 commit comments