mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 01:57:57 +02:00
FpDebugDebugger: fix retrieving stack without limit (fix copy stack to clipboard)
This commit is contained in:
parent
9fb19f8b7d
commit
99495ba51a
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user