From d037379c7bb61da8ea2537827c5258be40407d2e Mon Sep 17 00:00:00 2001 From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498> Date: Sun, 8 Aug 2010 21:25:17 +0000 Subject: [PATCH] Checks for existence of GDB client. --- .../AD7.Impl/AD7Process.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs index df50740fb..22ae79b28 100644 --- a/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs +++ b/source2/Debug/Cosmos.Debug.VSDebugEngine/AD7.Impl/AD7Process.cs @@ -224,14 +224,16 @@ namespace Cosmos.Debug.VSDebugEngine { // But allow overrides for dev kit, I dont want to have to run the install // for each change to gdb client. string xGDBClientEXE = @"m:\source\Cosmos\source2\Debug\Cosmos.Debug.GDB\bin\Debug\Cosmos.Debug.GDB.exe"; - var xPSInfo = new ProcessStartInfo(xGDBClientEXE); - xPSInfo.Arguments = Path.ChangeExtension(mProjectFile, ".cgdb") + @" /Connect"; - xPSInfo.UseShellExecute = false; - xPSInfo.RedirectStandardInput = false; - xPSInfo.RedirectStandardError = false; - xPSInfo.RedirectStandardOutput = false; - xPSInfo.CreateNoWindow = false; - Process.Start(xPSInfo); + if (File.Exists(xGDBClientEXE)) { + var xPSInfo = new ProcessStartInfo(xGDBClientEXE); + xPSInfo.Arguments = Path.ChangeExtension(mProjectFile, ".cgdb") + @" /Connect"; + xPSInfo.UseShellExecute = false; + xPSInfo.RedirectStandardInput = false; + xPSInfo.RedirectStandardError = false; + xPSInfo.RedirectStandardOutput = false; + xPSInfo.CreateNoWindow = false; + Process.Start(xPSInfo); + } } }