mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 16:12:57 +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;
|
end;
|
||||||
if not FDbgProcess.Running
|
if not FDbgProcess.Running
|
||||||
then begin
|
then begin
|
||||||
FDbgProcess.Execute;
|
try
|
||||||
DebugLn('[TCmdLineDebugger] Debug PID: ', IntToStr(FDbgProcess.Handle));
|
FDbgProcess.Execute;
|
||||||
|
DebugLn('[TCmdLineDebugger] Debug PID: ', IntToStr(FDbgProcess.Handle));
|
||||||
|
except
|
||||||
|
on E: Exception do DebugLn('Exeption while executing debugger: ', E.Message);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
Result := FDbgProcess.Running;
|
Result := FDbgProcess.Running;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user