mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
DBG: Fix inserting breakpoints (do not silently enter pause state), introduced in r 32414
git-svn-id: trunk@32432 -
This commit is contained in:
parent
ce6ac1c77c
commit
7666c75dd1
@ -4930,13 +4930,13 @@ begin
|
||||
FTheDebugger.QueueExecuteUnlock;
|
||||
end;
|
||||
|
||||
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']);
|
||||
|
||||
if (not ContinueExecution) and (DebuggerState = dsRun) and
|
||||
(TargetInfo^.TargetPID <> 0) and (FTheDebugger.PauseWaitState <> pwsInternal)
|
||||
then begin
|
||||
if (StoppedParams <> '')
|
||||
then debugln(['ERROR: Got stop params, but did not change FTheDebugger.state: ', StoppedParams])
|
||||
else debugln(['ERROR: Got NO stop params at all, but was running']);
|
||||
//SetDebuggerState(dsError); // we cannot be running anymore
|
||||
SetDebuggerState(dsPause);
|
||||
end;
|
||||
@ -7429,11 +7429,11 @@ end;
|
||||
procedure TGDBMIBreakPoint.DoLogExpression(const AnExpression: String);
|
||||
var
|
||||
s: String;
|
||||
t: TDBGType;
|
||||
t: TGDBType;
|
||||
begin
|
||||
if TGDBMIDebugger(Debugger).GDBEvaluate(AnExpression, s, t, [defNoTypeInfo])
|
||||
then begin
|
||||
Debugger.DoDbgEvent(ecBreakpoint, etBreakpointEvaluation, s);
|
||||
TGDBMIDebugger(Debugger).DoDbgEvent(ecBreakpoint, etBreakpointEvaluation, s);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user