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