]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SourceLevelDebugPkg: Clear Stepping flag as early as possible
authorJeff Fan <jeff.fan@intel.com>
Tue, 21 Apr 2015 03:14:29 +0000 (03:14 +0000)
committervanjeff <vanjeff@Edk2>
Tue, 21 Apr 2015 03:14:29 +0000 (03:14 +0000)
It will avoid that exception issued by Debug Agent itself was skipped.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17190 6f19259b-4bc3-4df7-8a09-765794883524

SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c

index 42b73f60ea0029bed59a6ff633c27bed01c1fb82..f51ad4b4565dc4e4c482f3440babad3fb80dcef5 100644 (file)
@@ -1952,10 +1952,6 @@ CommandCommunication (
       if (Data8 == DEBUG_DATA_BREAK_CAUSE_IMAGE_LOAD || Data8 == DEBUG_DATA_BREAK_CAUSE_IMAGE_UNLOAD) {\r
         CpuContext->Dr0 = 0;\r
       }\r
-      //\r
-      // Clear Stepping Flag\r
-      //\r
-      SetDebugFlag (DEBUG_AGENT_FLAG_STEPPING, 0);\r
 \r
       if (!HaltDeferred) {\r
         //\r
@@ -2410,6 +2406,10 @@ InterruptProcess (
         mDebugMpContext.BreakAtCpuIndex = ProcessorIndex;\r
       }\r
       SendAckPacket (DEBUG_COMMAND_OK);\r
+      //\r
+      // Clear Stepping Flag\r
+      //\r
+      SetDebugFlag (DEBUG_AGENT_FLAG_STEPPING, 0);\r
       CommandCommunication (Vector, CpuContext, BreakReceived);\r
       break;\r
 \r