mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-18 07:08:17 +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 := ACallstack;
|
||||||
FCallstack.AddFreeNotification(@DoCallstackFreed_DecRef);
|
FCallstack.AddFreeNotification(@DoCallstackFreed_DecRef);
|
||||||
if not ADebugger.FDbgController.CurrentProcess.GetThread(FCallstack.ThreadId, AThread) then
|
if not ADebugger.FDbgController.CurrentProcess.GetThread(FCallstack.ThreadId, AThread) then
|
||||||
ARequiredMinCount := -1; // error
|
ARequiredMinCount := -2; // error
|
||||||
inherited Create(ADebugger, ARequiredMinCount, AThread);
|
inherited Create(ADebugger, ARequiredMinCount, AThread);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -564,7 +564,7 @@ procedure TFpThreadWorkerPrepareCallStackEntryList.DoExecute;
|
|||||||
var
|
var
|
||||||
t: TDbgThread;
|
t: TDbgThread;
|
||||||
begin
|
begin
|
||||||
if FRequiredMinCount < 0 then
|
if FRequiredMinCount < -1 then
|
||||||
exit;
|
exit;
|
||||||
if FThread = nil then begin
|
if FThread = nil then begin
|
||||||
for t in FDebugger.FDbgController.CurrentProcess.ThreadMap do begin
|
for t in FDebugger.FDbgController.CurrentProcess.ThreadMap do begin
|
||||||
|
Loading…
Reference in New Issue
Block a user