mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 14:29:36 +02:00
FpDebugger (pure): Let the kernel close the debug-handle after an application has quit. (bug #25986)
git-svn-id: trunk@45423 -
This commit is contained in:
parent
d6884c8b08
commit
5c3fd8af1d
@ -284,7 +284,6 @@ end;
|
||||
|
||||
destructor TDbgWinProcess.Destroy;
|
||||
begin
|
||||
CloseHandle(FInfo.hProcess);
|
||||
FInfo.hProcess:=0;
|
||||
FProcProcess.Free;
|
||||
inherited Destroy;
|
||||
@ -853,6 +852,9 @@ begin
|
||||
EXIT_PROCESS_DEBUG_EVENT: begin
|
||||
//DumpEvent('EXIT_PROCESS_DEBUG_EVENT');
|
||||
SetExitCode(MDebugEvent.ExitProcess.dwExitCode);
|
||||
// Let the kernel close all debug-handles and close-up the
|
||||
// debuggee.
|
||||
Windows.ContinueDebugEvent(MDebugEvent.dwProcessId, MDebugEvent.dwThreadId, DBG_CONTINUE);
|
||||
result := deExitProcess;
|
||||
end;
|
||||
LOAD_DLL_DEBUG_EVENT: begin
|
||||
|
Loading…
Reference in New Issue
Block a user