Fix the issue that might prevent single step in PeCoffExtraActionLib (right after...
authorpgao2 <pgao2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 13 Sep 2010 02:42:14 +0000 (02:42 +0000)
committerpgao2 <pgao2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 13 Sep 2010 02:42:14 +0000 (02:42 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10870 6f19259b-4bc3-4df7-8a09-765794883524

SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c

index 39b24c3..7834f88 100644 (file)
@@ -384,6 +384,11 @@ GetBreakCause (
       //\r
       if ((CpuContext->Dr6 & BIT14) != 0) {\r
         Cause = DEBUG_DATA_BREAK_CAUSE_STEPPING;\r
+        //\r
+        // If it's single step, no need to check DR0, to ensure single step work in PeCoffExtraActionLib\r
+        // (right after triggering a breakpoint to report image load/unload).\r
+        //\r
+        return Cause;\r
 \r
       } else {\r
         Cause = DEBUG_DATA_BREAK_CAUSE_HW_BREAKPOINT;\r