mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 10:20:45 +02:00
Debugger: fixed recent introduced crash in stack window (limited depth eval)
git-svn-id: trunk@42486 -
This commit is contained in:
parent
e4a286e807
commit
03d18a15a7
@ -520,7 +520,7 @@ begin
|
||||
DisableAllActions;
|
||||
if (Item <> nil) and (BreakPoints <> nil) then
|
||||
begin
|
||||
GetSelectedCallstack.CountLimited(lvCallStack.Items[lvCallStack.Items.Count - 1].Index+1); // get max limit
|
||||
GetSelectedCallstack.CountLimited(FViewStart + FViewLimit + 1); // get max limit
|
||||
idx := FViewStart + Item.Index;
|
||||
if idx >= GetSelectedCallstack.CountLimited(idx+1) then Exit;
|
||||
Entry := GetSelectedCallstack.Entries[idx];
|
||||
@ -684,7 +684,7 @@ begin
|
||||
if (BreakPoints = nil) or (Stack = nil) then
|
||||
Exit;
|
||||
|
||||
Stack.CountLimited(lvCallStack.Items[lvCallStack.Items.Count - 1].Index+1);
|
||||
Stack.CountLimited(FViewStart + FViewLimit + 1);
|
||||
for i := 0 to lvCallStack.Items.Count - 1 do
|
||||
begin
|
||||
idx := FViewStart + lvCallStack.Items[i].Index;
|
||||
|
Loading…
Reference in New Issue
Block a user