Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/PluginDebuggerGDB.cs

Issue 11367026: [VS Addin] Add PNaCl configs to examples (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_))
{

Powered by Google App Engine
This is Rietveld 408576698