mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 08:09:31 +02:00
DBG: Fix loading lpr file when running app under gdb. issue #18097
git-svn-id: trunk@28551 -
This commit is contained in:
parent
f9c52af505
commit
ffc3ed5480
@ -3449,6 +3449,7 @@ begin
|
||||
ProcessFrame(List.Values['frame']);
|
||||
end;
|
||||
end;
|
||||
// The temp-at-start breakpoint is not checked. Ignore it
|
||||
if (DebuggerState = dsRun) and (FTheDebugger.TargetPID <> 0) // not in startup
|
||||
then begin
|
||||
debugln(['********** WARNING: breakpoint hit, but nothing known about it BreakId=', BreakID, ' brbtno=', List.Values['bkptno'] ]);
|
||||
@ -3487,9 +3488,14 @@ begin
|
||||
Exit;
|
||||
end;
|
||||
|
||||
DebugLn('[WARNING] Debugger: Unknown stopped reason: ', Reason);
|
||||
SetDebuggerState(dsPause);
|
||||
ProcessFrame(List.Values['frame']);
|
||||
// Some versions of GDB do not give any reason if hitting a temporary breakpoint
|
||||
// (like the temp-at-main during startup)
|
||||
if (FTheDebugger.TargetPID <> 0) // not in startup
|
||||
then begin
|
||||
DebugLn('[WARNING] Debugger: Unknown stopped reason: ', Reason);
|
||||
SetDebuggerState(dsPause);
|
||||
ProcessFrame(List.Values['frame']);
|
||||
end;
|
||||
finally
|
||||
List.Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user