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:
martin 2019-01-04 15:04:20 +00:00
parent 23c7055080
commit f9c2253b95

View File

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