mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 08:16:04 +02:00
FpDebug: test, fix test / ignore load-lib events in count (test for debug loop re-started unexpectedly)
This commit is contained in:
parent
8ac62b7b82
commit
acfb46b466
@ -8,7 +8,7 @@ uses
|
||||
Classes, SysUtils, LazFileUtils, LazLogger, DbgIntfDebuggerBase,
|
||||
TestDbgConfig, TTestDbgExecuteables, TestDbgTestSuites, TestDbgControl,
|
||||
FpDebugDebugger, LazDebuggerIntf, LazDebuggerIntfBaseTypes, Dialogs, Forms,
|
||||
FpDbgDwarfFreePascal;
|
||||
FpDbgDwarfFreePascal, FpDbgClasses;
|
||||
|
||||
type
|
||||
|
||||
@ -88,7 +88,8 @@ end;
|
||||
|
||||
procedure THookedFpDebugDebugger.LockRelease;
|
||||
begin
|
||||
inc(LockRelCount);
|
||||
if (FDbgController <> nil) and not (FDbgController.Event in [deLoadLibrary, deUnloadLibrary]) then
|
||||
inc(LockRelCount);
|
||||
inherited LockRelease;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user