Index: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PluginDebuggerGDB.cs |
diff --git a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PluginDebuggerGDB.cs b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PluginDebuggerGDB.cs |
index 9da21c0e79bc557894e65579b58642544f928f19..fe754a75cff06636aa4978206b5c40ab5431d768 100644 |
--- a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PluginDebuggerGDB.cs |
+++ b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PluginDebuggerGDB.cs |
@@ -63,9 +63,7 @@ namespace NativeClientVSAddIn |
{ |
string arch = "i686"; |
if (Environment.Is64BitOperatingSystem) |
- { |
arch = "x86_64"; |
- } |
if (!properties.IsPNaCl()) |
{ |
@@ -135,8 +133,11 @@ namespace NativeClientVSAddIn |
if (properties.IsPNaCl()) |
{ |
string basename = Path.GetFileNameWithoutExtension(targetNexe_); |
+ string suffix = "32"; |
+ if (Environment.Is64BitOperatingSystem) |
+ suffix = "64"; |
targetNexe_ = Path.Combine(Path.GetDirectoryName(targetNexe_), |
- basename + "_" + arch + ".nexe"); |
+ basename + "_" + suffix + ".nexe"); |
if (!File.Exists(targetNexe_)) |
{ |