mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 13:16:04 +02:00
LazDebuggerFpGdbmi: Prevent occasional crash, when evaluate watch in nested procedure (access callstack out of index)
git-svn-id: trunk@59998 -
This commit is contained in:
parent
23c7055080
commit
f9c2253b95
@ -885,7 +885,7 @@ begin
|
||||
end;
|
||||
|
||||
s := CallStack.CurrentCallStackList.EntriesForThreads[AThreadId];
|
||||
if s = nil then begin
|
||||
if (s = nil) or (AStackFrame >= s.Count) then begin
|
||||
DebugLn(DBG_ERRORS, ['NO Stackframe list for thread']);
|
||||
exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user