DBG: Fixes, do not send break-insert command if debugger is stopped. Improve clean up when stopping.

git-svn-id: trunk@30492 -
This commit is contained in:
martin 2011-04-27 18:36:38 +00:00
parent 90a1dcfc9b
commit 33f168fcdb

View File

@ -6269,7 +6269,7 @@ begin
SetBreakpoint;
end;
dsStop: begin
if AOldState = dsRun
if FBreakID > 0
then ReleaseBreakpoint;
end;
end;
@ -6421,7 +6421,7 @@ begin
if (Source = ASource) and (Line = ALine) then exit;
inherited;
if (Debugger = nil) or (Source = '') then Exit;
if TGDBMIDebugger(Debugger).State in [dsStop, dsPause, dsRun]
if TGDBMIDebugger(Debugger).State in [dsPause, dsRun]
then SetBreakpoint;
end;