mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-05 08:56:18 +02:00
If PauseRequested is true, then both SIGINT and SIGTRAP should be treated as deBreakpoint.
This commit is contained in:
parent
1529b34ca7
commit
5b824b677c
@ -1025,15 +1025,12 @@ begin
|
||||
else if TDbgAvrThread(AThread).FInternalPauseRequested then
|
||||
begin
|
||||
DebugLn(DBG_VERBOSE, ['???Received late SigTrap for thread ', AThread.ID]);
|
||||
result := deBreakpoint;//deInternalContinue; // left over signal
|
||||
result := deBreakpoint;
|
||||
end
|
||||
else
|
||||
begin
|
||||
DebugLn(DBG_VERBOSE, ['Received SigTrap for thread ', AThread.ID,
|
||||
' PauseRequest=', PauseRequested]);
|
||||
if PauseRequested then // Hack to work around Pause problem
|
||||
result := deFinishedStep
|
||||
else
|
||||
result := deBreakpoint;
|
||||
|
||||
if not TDbgAvrThread(AThread).FIsSteppingBreakPoint then
|
||||
@ -1041,11 +1038,16 @@ begin
|
||||
end;
|
||||
end;
|
||||
SIGINT:
|
||||
begin
|
||||
if PauseRequested then
|
||||
result := deBreakpoint
|
||||
else
|
||||
begin
|
||||
ExceptionClass:='SIGINT';
|
||||
TDbgAvrThread(AThread).FExceptionSignal:=SIGINT;
|
||||
result := deException;
|
||||
end;
|
||||
end;
|
||||
SIGKILL:
|
||||
begin
|
||||
if FIsTerminating then
|
||||
|
Loading…
Reference in New Issue
Block a user