FpDebug: test, fix test / ignore load-lib events in count (test for debug loop re-started unexpectedly)

This commit is contained in:
Martin 2023-05-26 15:26:39 +02:00
parent 8ac62b7b82
commit acfb46b466

View File

@ -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;