Skip to content

Commit

Permalink
Support checking gdb.exe on Windows
Browse files Browse the repository at this point in the history
This PR adds additional checks to look for gdb on Windows.
If a user does not specify miDebuggerPath, we will check for gdb and
gdb.exe in PATH. If a miDebuggerPath is provided and does not supply any
directory, we will search that binary and binary.exe in PATH.
  • Loading branch information
WardenGnaw committed May 16, 2020
1 parent 54b7d6b commit 8cb291f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/MICore/LaunchOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,13 @@ private static string ResolveFromPath(string command)
{
return candidate;
}

string exeCandidate = candidate + ".exe";

if (PlatformUtilities.IsWindows() && File.Exists(exeCandidate))
{
return exeCandidate;
}
}

return null;
Expand Down

0 comments on commit 8cb291f

Please sign in to comment.