summaryrefslogtreecommitdiff
path: root/SourceLevelDebugPkg/Library
diff options
context:
space:
mode:
authorpgao2 <pgao2@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-13 02:42:14 +0000
committerpgao2 <pgao2@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-13 02:42:14 +0000
commit0a16169be8fcade376d291fd70371e262b2592ee (patch)
treec223187be3c9ff865f44046cfd1b7174cf18e30a /SourceLevelDebugPkg/Library
parent1c5709f25eefcbe14a4e79e819870373270e492d (diff)
Fix the issue that might prevent single step in PeCoffExtraActionLib (right after triggering breakpoint to notify image load/unload) work.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10870 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SourceLevelDebugPkg/Library')
-rw-r--r--SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
index 39b24c39c..7834f885c 100644
--- a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
+++ b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.c
@@ -384,6 +384,11 @@ GetBreakCause (
//
if ((CpuContext->Dr6 & BIT14) != 0) {
Cause = DEBUG_DATA_BREAK_CAUSE_STEPPING;
+ //
+ // If it's single step, no need to check DR0, to ensure single step work in PeCoffExtraActionLib
+ // (right after triggering a breakpoint to report image load/unload).
+ //
+ return Cause;
} else {
Cause = DEBUG_DATA_BREAK_CAUSE_HW_BREAKPOINT;