]> git.proxmox.com Git - mirror_edk2.git/commitdiff
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 39b24c39c663c78aa69dac23541b07cce4cc5bbb..7834f885cc12badec2c3d3a3b00fbcec57429abd 100644 (file)
@@ -384,6 +384,11 @@ GetBreakCause (
       //\r
       if ((CpuContext->Dr6 & BIT14) != 0) {\r
         Cause = DEBUG_DATA_BREAK_CAUSE_STEPPING;\r
       //\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
 \r
       } else {\r
         Cause = DEBUG_DATA_BREAK_CAUSE_HW_BREAKPOINT;\r