mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:39:31 +02:00
Debugger: fixed getting callstack (could go into an endless loop)
git-svn-id: trunk@42641 -
This commit is contained in:
parent
eef666aa0d
commit
68bb020129
@ -6663,6 +6663,8 @@ begin
|
||||
It.Next;
|
||||
while (not It.EOM) and (TCallStackEntry(It.DataPtr^).Index = EndIdx+1) do begin
|
||||
inc(EndIdx);
|
||||
if EndIdx = FCallstack.HighestUnknown then
|
||||
Break;
|
||||
It.Next;
|
||||
end;
|
||||
|
||||
@ -6670,11 +6672,8 @@ begin
|
||||
ExecForRange(StartIdx, EndIdx);
|
||||
if (FCallstack = nil) or (dcsCanceled in SeenStates) then break;
|
||||
|
||||
if FCallstack.LowestUnknown < StartIdx
|
||||
then StartIdx := FCallstack.LowestUnknown
|
||||
else StartIdx := EndIdx + 1;
|
||||
if FCallstack.HighestUnknown > EndIdx
|
||||
then EndIdx := FCallstack.HighestUnknown;
|
||||
StartIdx := EndIdx + 1;
|
||||
EndIdx := FCallstack.HighestUnknown;
|
||||
end;
|
||||
finally
|
||||
IT.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user