mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:59:06 +02:00
FpDebug: fix crash in stack after "watch eval" call. Don't clear stack data.
This commit is contained in:
parent
126dd815cd
commit
0bdae9fa28
@ -1711,7 +1711,10 @@ begin
|
|||||||
if MaybeDetach then
|
if MaybeDetach then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
FCurrentProcess.ThreadsClearCallStack;
|
// Do not clear callstack of threads: TDbgControllerCallRoutineCmd is considered remaining in pause.
|
||||||
|
// TODO: if the IP of another thread changes, send notifications
|
||||||
|
if (FCommand = nil) or not (FCommand is TDbgControllerCallRoutineCmd) then
|
||||||
|
FCurrentProcess.ThreadsClearCallStack;
|
||||||
|
|
||||||
if Assigned(FOnThreadBeforeProcessLoop) then
|
if Assigned(FOnThreadBeforeProcessLoop) then
|
||||||
FOnThreadBeforeProcessLoop(Self);
|
FOnThreadBeforeProcessLoop(Self);
|
||||||
|
Loading…
Reference in New Issue
Block a user