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

Unified Diff: visual_studio/NativeClientVSAddIn/InstallerResources/install_custom_gdb.py

Issue 10830104: Changed VS add-in to use nacl-gdb (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: IrtPath Property added Created 8 years, 5 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/InstallerResources/install_custom_gdb.py
diff --git a/visual_studio/NativeClientVSAddIn/InstallerResources/install_custom_gdb.py b/visual_studio/NativeClientVSAddIn/InstallerResources/install_custom_gdb.py
deleted file mode 100644
index dc9a3bdf9a5506eb18d324bb9922389ca96495de..0000000000000000000000000000000000000000
--- a/visual_studio/NativeClientVSAddIn/InstallerResources/install_custom_gdb.py
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Downloads a custom GDB and places it in the nacl_sdk folder.
-
-The custom GDB is used in the add-in while we wait for nacl-gdb. The zip
-file is downloaded to %TEMP% and gdb.exe is extracted to %NACL_SDK_ROOT%.
-"""
-
-import os
-import urllib
-import zipfile
-
-OUTPUT_DIRECTORY = os.getenv('TEMP', None)
-URL = ("http://www.chromium.org/nativeclient/how-tos/debugging-documentation"
- "/debugging-untrusted-code-with-a-special-gdb-build-on-windows"
- "/gdb-remote-x86-64.zip")
-
-
-def main():
- nacl_sdk_root = os.getenv('NACL_SDK_ROOT', None)
- if nacl_sdk_root is None:
- raise Exception('Environment Variable NACL_SDK_ROOT is not set')
- if not os.path.exists(nacl_sdk_root):
- raise Exception('NaCl SDK does not exist at location: %s' % (nacl_sdk_root))
- zip_path = os.path.join(OUTPUT_DIRECTORY, "gdb-remote-x86-64.zip")
-
- print 'Downloading custom GDB from:'
- print URL
- urllib.urlretrieve(URL, zip_path)
- print 'Download complete. Unzipping...'
- zip_file = zipfile.ZipFile(zip_path)
- zip_file.extract('gdb-remote-x86-64/gdb.exe', nacl_sdk_root)
- zip_file.close()
- os.remove(zip_path)
- print 'Success!'
-
-if __name__ == '__main__':
- main()

Powered by Google App Engine
This is Rietveld 408576698