summaryrefslogtreecommitdiff
path: root/SourceLevelDebugPkg/Library/DebugAgent
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-11 09:19:59 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2012-10-11 09:19:59 +0000
commit48da9f0d40cc0aea7f0139b3b0747eb17637cd1f (patch)
tree7aaaec115373661fd287ed317287428b1348c737 /SourceLevelDebugPkg/Library/DebugAgent
parentab04e71d33bc0d80b2a8f82f43e7bc1ddee1b1a9 (diff)
downloadedk2-platforms-48da9f0d40cc0aea7f0139b3b0747eb17637cd1f.tar.xz
Roll back r13823.
signed-off-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13825 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SourceLevelDebugPkg/Library/DebugAgent')
-rw-r--r--SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
index 7ee4cca43b..04dae34194 100644
--- a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
+++ b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
@@ -598,15 +598,19 @@ SendCommandAndWaitForAckOK (
SendPacketWithoutData (Command);
while (TRUE) {
Status = ReceiveAckPacket (&Ack, Timeout, BreakReceived, CheckSumStatus);
- if (Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_OK) {
+ if (Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_RESEND) {
+ //
+ // Resend the last command
+ //
+ break;
+ }
+ if ((Status == RETURN_SUCCESS && Ack == DEBUG_COMMAND_OK) ||
+ Status == RETURN_TIMEOUT) {
//
// Received Ack OK or timeout
//
return Status;
- }
- if (Status == RETURN_TIMEOUT) {
- break;
- }
+ }
}
}
}