LazDebuggerFp: fix getting full Callstack.Count - Issue #39886

This commit is contained in:
Martin 2022-09-06 21:26:07 +02:00
parent f63ba9cd3b
commit 61e5fb272a

View File

@ -548,7 +548,8 @@ begin
FDebugger.LockList.GetLockFor(ThreadCallStack);
try
CurCnt := ThreadCallStack.Count;
while (not StopRequested) and (FRequiredMinCount > CurCnt) and
while (not StopRequested) and
( (FRequiredMinCount > CurCnt) or (FRequiredMinCount < 0) ) and
(not ThreadCallStack.HasReadAllAvailableFrames)
do begin
ReqCnt := Min(CurCnt + 5, FRequiredMinCount);