mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
1c5709f25e
commit
0a16169be8
|
@ -384,6 +384,11 @@ GetBreakCause (
|
||||||
//
|
//
|
||||||
if ((CpuContext->Dr6 & BIT14) != 0) {
|
if ((CpuContext->Dr6 & BIT14) != 0) {
|
||||||
Cause = DEBUG_DATA_BREAK_CAUSE_STEPPING;
|
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 {
|
} else {
|
||||||
Cause = DEBUG_DATA_BREAK_CAUSE_HW_BREAKPOINT;
|
Cause = DEBUG_DATA_BREAK_CAUSE_HW_BREAKPOINT;
|
||||||
|
|
Loading…
Reference in New Issue