FpDebug: fix crash in stack after "watch eval" call. Don't clear stack data.

This commit is contained in:
Martin 2022-09-09 22:56:08 +02:00
parent 126dd815cd
commit 0bdae9fa28

View File

@ -1711,7 +1711,10 @@ begin
if MaybeDetach then
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
FOnThreadBeforeProcessLoop(Self);