Checks for existence of GDB client.

This commit is contained in:
kudzu_cp 2010-08-08 21:25:17 +00:00
parent 580b4d3cf9
commit d037379c7b

View file

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