mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 05:59:28 +02:00
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:
parent
90a1dcfc9b
commit
33f168fcdb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user