mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
Debugger: fixed crash in callstack (when stop debugging while waiting for stack info)
git-svn-id: trunk@42643 -
This commit is contained in:
parent
f3358d8050
commit
aaa03b60ab
@ -300,6 +300,9 @@ begin
|
||||
MaxCnt := FViewStart + FViewLimit + 1;
|
||||
if CStack <> nil then CStack.CountLimited(MaxCnt); // trigger the update-notification, if executed immediately
|
||||
FInUpdateView := False;
|
||||
// TODO: must make CStack ref-counted
|
||||
if CStack <> GetSelectedCallstack then exit; // Something changed, maybe debugger stopped
|
||||
|
||||
|
||||
if (CStack = nil) or ((Snap <> nil) and (CStack.CountLimited(MaxCnt) = 0)) then begin
|
||||
lvCallStack.Items.Clear;
|
||||
@ -346,6 +349,8 @@ begin
|
||||
|
||||
FInUpdateView := True;
|
||||
CStack.PrepareRange(First, Count);
|
||||
// TODO: must make CStack ref-counted
|
||||
if CStack <> GetSelectedCallstack then exit; // Something changed, maybe debugger stopped
|
||||
FInUpdateView := False;
|
||||
for n := 0 to Count - 1 do
|
||||
begin
|
||||
|
@ -5354,7 +5354,7 @@ begin
|
||||
|
||||
FPreparing := True;
|
||||
while ACount > 0 do begin
|
||||
Entries[AIndex];
|
||||
Entries[AIndex]; // Request unknown entries: will set LowesUnknown / HighesUnknown
|
||||
inc(AIndex);
|
||||
dec(ACount);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user