mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 23:49:13 +02:00
Debugger: add safety lock
git-svn-id: trunk@42457 -
This commit is contained in:
parent
22aff1ece9
commit
046ae2d487
@ -6056,10 +6056,15 @@ var
|
|||||||
// TODO: move to queue
|
// TODO: move to queue
|
||||||
// must use none gdbmi commands
|
// must use none gdbmi commands
|
||||||
FContext.ThreadContext := ccUseGlobal;
|
FContext.ThreadContext := ccUseGlobal;
|
||||||
if (not ExecuteCommand('frame %d', [i], R, [cfNoStackContext])) or (R.State = dsError)
|
FTheDebugger.QueueExecuteLock; // force queue
|
||||||
then i := -3; // error to user
|
try
|
||||||
if (i < 0) or (not ExecuteCommand('break', [i], R, [cfNoStackContext])) or (R.State = dsError)
|
if (not ExecuteCommand('frame %d', [i], R, [cfNoStackContext])) or (R.State = dsError)
|
||||||
then i := -3; // error to user
|
then i := -3; // error to user
|
||||||
|
if (i < 0) or (not ExecuteCommand('break', [i], R, [cfNoStackContext])) or (R.State = dsError)
|
||||||
|
then i := -3; // error to user
|
||||||
|
finally
|
||||||
|
FTheDebugger.QueueExecuteUnlock;
|
||||||
|
end;
|
||||||
|
|
||||||
FStepBreakPoint := StrToIntDef(GetPart(['Breakpoint '], [' at '], R.Values), -1);
|
FStepBreakPoint := StrToIntDef(GetPart(['Breakpoint '], [' at '], R.Values), -1);
|
||||||
if FStepBreakPoint < 0
|
if FStepBreakPoint < 0
|
||||||
|
Loading…
Reference in New Issue
Block a user