mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 22:56:06 +02:00
Debugger: Do not crash IDE, if gdb.exe is invalid
git-svn-id: trunk@42542 -
This commit is contained in:
parent
5fc821cfef
commit
05147efc44
@ -338,8 +338,12 @@ begin
|
||||
end;
|
||||
if not FDbgProcess.Running
|
||||
then begin
|
||||
FDbgProcess.Execute;
|
||||
DebugLn('[TCmdLineDebugger] Debug PID: ', IntToStr(FDbgProcess.Handle));
|
||||
try
|
||||
FDbgProcess.Execute;
|
||||
DebugLn('[TCmdLineDebugger] Debug PID: ', IntToStr(FDbgProcess.Handle));
|
||||
except
|
||||
on E: Exception do DebugLn('Exeption while executing debugger: ', E.Message);
|
||||
end;
|
||||
end;
|
||||
Result := FDbgProcess.Running;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user