Debugger: Do not crash IDE, if gdb.exe is invalid

git-svn-id: trunk@42542 -
This commit is contained in:
martin 2013-09-01 13:34:39 +00:00
parent 5fc821cfef
commit 05147efc44

View File

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