From ec45262611c819352e09040d136a40a89f93efd7 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 21 Feb 2016 07:49:22 -0500 Subject: [PATCH] Debugger - fix how Seek To determines the PC register --- BizHawk.Client.EmuHawk/tools/Debugger/GenericDebugger.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/Debugger/GenericDebugger.cs b/BizHawk.Client.EmuHawk/tools/Debugger/GenericDebugger.cs index 97eec314be..29f2949687 100644 --- a/BizHawk.Client.EmuHawk/tools/Debugger/GenericDebugger.cs +++ b/BizHawk.Client.EmuHawk/tools/Debugger/GenericDebugger.cs @@ -274,7 +274,8 @@ namespace BizHawk.Client.EmuHawk { CancelSeekBtn.Enabled = true; var pcVal = (uint)(SeekToBox.ToRawInt() ?? 0); - var pcBitSize = Debuggable.GetCpuFlagsAndRegisters()["PC"].BitSize; + var pcBitSize = PCRegister.BitSize; + BreakPointControl1.RemoveCurrentSeek(); BreakPointControl1.AddSeekBreakpoint(pcVal, pcBitSize); BreakPointControl1.UpdateValues();