diff --git a/debugger/gdbmidebugger.pp b/debugger/gdbmidebugger.pp index 23be8ef014..b96a270a4f 100644 --- a/debugger/gdbmidebugger.pp +++ b/debugger/gdbmidebugger.pp @@ -3987,11 +3987,6 @@ begin FTheDebugger.FMainAddrBreak.Clear(Self); - // they may still exist from prev run, addr will be checked - FTheDebugger.FExceptionBreak.SetAddr(Self); - FTheDebugger.FBreakErrorBreak.SetAddr(Self); - FTheDebugger.FRunErrorBreak.SetAddr(Self); - // try to find PID (if not already found) if (TargetInfo^.TargetPID = 0) and ExecuteCommand('info program', [], R, [cfCheckState]) @@ -4030,6 +4025,11 @@ begin DebugLn('[Debugger] Target PID: %u', [TargetInfo^.TargetPID]); + // they may still exist from prev run, addr will be checked + FTheDebugger.FExceptionBreak.SetAddr(Self); + FTheDebugger.FBreakErrorBreak.SetAddr(Self); + FTheDebugger.FRunErrorBreak.SetAddr(Self); + if R.State = dsNone then begin SetDebuggerState(dsInit); // triggers all breakpoints to be set.