mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 22:15:55 +02:00
FpDebug: Fix freeing SOLibEventBreakpoint (when process is stopped, do not access thread state)
This commit is contained in:
parent
26263f5f4e
commit
7689b1865f
@ -1146,7 +1146,6 @@ destructor TDbgLinuxProcess.Destroy;
|
||||
begin
|
||||
FProcProcess.Free;
|
||||
FPostponedSignals.Free;
|
||||
FreeAndNil(FSOLibEventBreakpoint);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
@ -1498,6 +1497,7 @@ begin
|
||||
// one or more libraries have been loaded. This breakpoint is used to
|
||||
// detect the (un)loading of libraries.
|
||||
FSOLibEventBreakpoint := AddBreak('_dl_debug_state', False, ALib);
|
||||
TFpDbgBreakpoint(FSOLibEventBreakpoint).FreeByDbgProcess := True;
|
||||
end
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user