FpDebug: Do not free current DbgThread while still in use / Will be freed after next run/step. (Linux)

This commit is contained in:
Martin 2025-01-09 11:44:15 +01:00
parent 2f94ecea69
commit d25d085dbb

View File

@ -2050,7 +2050,8 @@ begin
TDbgThread(ThreadToPause) := it.Current;
if ThreadToPause.FHasExited then begin
Process.RemoveThread(ThreadToPause.ID); // TODO: postpone ?
ThreadToPause.Free;
if ThreadToPause <> AThread then
ThreadToPause.Free;
end;
it.Next;
end;