gdb: Fix ExecutionContext

This commit is contained in:
Coxxs
2025-06-21 14:31:00 +08:00
parent 92d8f0eb1c
commit 55a43dea45
2 changed files with 15 additions and 4 deletions

View File

@ -153,7 +153,7 @@ namespace ARMeilleure.State
public void StepHandler()
{
_stepCallback.Invoke(this);
_stepCallback?.Invoke(this);
}
public void RequestDebugStep()
@ -166,7 +166,7 @@ namespace ARMeilleure.State
{
if (Optimizations.EnableDebugging)
{
DebugPc = Pc; // TODO: Is this the best place to update DebugPc?
DebugPc = Pc;
}
_breakCallback?.Invoke(this, address, imm);
@ -176,7 +176,7 @@ namespace ARMeilleure.State
{
if (Optimizations.EnableDebugging)
{
DebugPc = Pc; // TODO: Is this the best place to update DebugPc?
DebugPc = Pc;
}
_supervisorCallback?.Invoke(this, address, imm);