Debugger: fixed recent introduced crash in stack window (limited depth eval)

git-svn-id: trunk@42486 -
This commit is contained in:
martin 2013-08-24 22:57:46 +00:00
parent e4a286e807
commit 03d18a15a7

View File

@ -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;