FpDebugDebugger: fix retrieving stack without limit (fix copy stack to clipboard)

This commit is contained in:
Martin 2022-06-04 19:33:45 +02:00
parent 9fb19f8b7d
commit 99495ba51a
2 changed files with 2 additions and 2 deletions

View File

@ -779,7 +779,7 @@ begin
FCallstack := ACallstack;
FCallstack.AddFreeNotification(@DoCallstackFreed_DecRef);
if not ADebugger.FDbgController.CurrentProcess.GetThread(FCallstack.ThreadId, AThread) then
ARequiredMinCount := -1; // error
ARequiredMinCount := -2; // error
inherited Create(ADebugger, ARequiredMinCount, AThread);
end;

View File

@ -564,7 +564,7 @@ procedure TFpThreadWorkerPrepareCallStackEntryList.DoExecute;
var
t: TDbgThread;
begin
if FRequiredMinCount < 0 then
if FRequiredMinCount < -1 then
exit;
if FThread = nil then begin
for t in FDebugger.FDbgController.CurrentProcess.ThreadMap do begin