mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 13:20:26 +02:00
FpDebugDebugger: fix retrieving stack without limit (fix copy stack to clipboard)
(cherry picked from commit 99495ba51a
)
This commit is contained in:
parent
b7cab21d44
commit
286dadaed9
@ -778,7 +778,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;
|
||||
|
||||
|
@ -562,7 +562,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