mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 06:09:14 +02:00
Debugger: Fix getting min callstack depth in some cases.
git-svn-id: trunk@43294 -
This commit is contained in:
parent
4a14f0fd45
commit
e52c2ff8d2
@ -5388,8 +5388,8 @@ end;
|
|||||||
function TCurrentCallStack.HasAtLeastCount(ARequiredMinCount: Integer): TNullableBool;
|
function TCurrentCallStack.HasAtLeastCount(ARequiredMinCount: Integer): TNullableBool;
|
||||||
begin
|
begin
|
||||||
if FCountValidity = ddsValid then begin
|
if FCountValidity = ddsValid then begin
|
||||||
Result := inherited HasAtLeastCount(ARequiredMinCount);
|
Result := inherited HasAtLeastCount(ARequiredMinCount);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if FAtLeastCountOld >= ARequiredMinCount then begin
|
if FAtLeastCountOld >= ARequiredMinCount then begin
|
||||||
@ -5410,6 +5410,9 @@ begin
|
|||||||
|
|
||||||
FAtLeastCountValidity := ddsRequested;
|
FAtLeastCountValidity := ddsRequested;
|
||||||
FMonitor.RequestAtLeastCount(self, ARequiredMinCount);
|
FMonitor.RequestAtLeastCount(self, ARequiredMinCount);
|
||||||
|
if FCountValidity = ddsValid then
|
||||||
|
Result := inherited HasAtLeastCount(ARequiredMinCount)
|
||||||
|
else
|
||||||
if FAtLeastCountValidity = ddsValid then begin
|
if FAtLeastCountValidity = ddsValid then begin
|
||||||
if ARequiredMinCount <= FAtLeastCount then
|
if ARequiredMinCount <= FAtLeastCount then
|
||||||
Result := nbTrue
|
Result := nbTrue
|
||||||
|
Loading…
Reference in New Issue
Block a user