mirror of https://github.com/acidanthera/audk.git
SourceLevelDebugPkg: Clear Stepping flag as early as possible
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
This commit is contained in:
parent
40ad4b1a6b
commit
edb4cd76c4
|
@ -1952,10 +1952,6 @@ CommandCommunication (
|
||||||
if (Data8 == DEBUG_DATA_BREAK_CAUSE_IMAGE_LOAD || Data8 == DEBUG_DATA_BREAK_CAUSE_IMAGE_UNLOAD) {
|
if (Data8 == DEBUG_DATA_BREAK_CAUSE_IMAGE_LOAD || Data8 == DEBUG_DATA_BREAK_CAUSE_IMAGE_UNLOAD) {
|
||||||
CpuContext->Dr0 = 0;
|
CpuContext->Dr0 = 0;
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// Clear Stepping Flag
|
|
||||||
//
|
|
||||||
SetDebugFlag (DEBUG_AGENT_FLAG_STEPPING, 0);
|
|
||||||
|
|
||||||
if (!HaltDeferred) {
|
if (!HaltDeferred) {
|
||||||
//
|
//
|
||||||
|
@ -2410,6 +2406,10 @@ InterruptProcess (
|
||||||
mDebugMpContext.BreakAtCpuIndex = ProcessorIndex;
|
mDebugMpContext.BreakAtCpuIndex = ProcessorIndex;
|
||||||
}
|
}
|
||||||
SendAckPacket (DEBUG_COMMAND_OK);
|
SendAckPacket (DEBUG_COMMAND_OK);
|
||||||
|
//
|
||||||
|
// Clear Stepping Flag
|
||||||
|
//
|
||||||
|
SetDebugFlag (DEBUG_AGENT_FLAG_STEPPING, 0);
|
||||||
CommandCommunication (Vector, CpuContext, BreakReceived);
|
CommandCommunication (Vector, CpuContext, BreakReceived);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue