DBG: Handling unexpected errors.

git-svn-id: trunk@32414 -
This commit is contained in:
martin 2011-09-19 00:51:25 +00:00
parent 3da74a341c
commit 4559a65564

View File

@ -4836,10 +4836,12 @@ begin
if (StoppedParams <> '') and (not ContinueExecution) and (DebuggerState = dsRun) and (TargetInfo^.TargetPID <> 0) then begin
debugln(['ERROR: Got stop params, but did not change FTheDebugger.state: ', StoppedParams]);
//SetDebuggerState(dsError); // we cannot be running anymore
SetDebuggerState(dsPause);
end;
if (StoppedParams = '') and (not ContinueExecution) and (DebuggerState = dsRun) and (TargetInfo^.TargetPID <> 0) then begin
debugln(['ERROR: Got NO stop params at all, but was running']);
//SetDebuggerState(dsError); // we cannot be running anymore
SetDebuggerState(dsPause);
end;
end;