aboutsummaryrefslogtreecommitdiff
path: root/ndk-gdb.py
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2015-09-02 15:23:09 -0700
committerJosh Gao <jmgao@google.com>2015-09-02 16:36:17 -0700
commit1bda9e94a87a73f350dcebaac418cc3695b154fc (patch)
tree63ff6ef5cb7eb7be7976a92b2c6f3777f5d87d1b /ndk-gdb.py
parentbaef7bf302196e5783e9782127ddc9658d496889 (diff)
downloadndk-1bda9e94a87a73f350dcebaac418cc3695b154fc.tar.gz
Use the multiarch gdb path.
Bug: http://b/22128526 Change-Id: I64a2babfa1f3db91af742e02e73b9abae9a38573
Diffstat (limited to 'ndk-gdb.py')
-rwxr-xr-xndk-gdb.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ndk-gdb.py b/ndk-gdb.py
index 4d46dbc7d..2ff3243a7 100755
--- a/ndk-gdb.py
+++ b/ndk-gdb.py
@@ -631,9 +631,6 @@ The target device is running API level %d!''' % (API_LEVEL))
GDBSETUP_INIT = get_build_var_for_abi('NDK_APP_GDBSETUP', COMPAT_ABI)
log('Using gdb setup init: %s' % (GDBSETUP_INIT))
- TOOLCHAIN_PREFIX = get_build_var_for_abi('TOOLCHAIN_PREFIX', COMPAT_ABI)
- log('Using toolchain prefix: %s' % (TOOLCHAIN_PREFIX))
-
APP_OUT = get_build_var_for_abi('TARGET_OUT', COMPAT_ABI)
log('Using app out directory: %s' % (APP_OUT))
DEBUGGABLE = extract_debuggable(PROJECT+os.sep+MANIFEST)
@@ -832,7 +829,7 @@ After one of these, re-install to the device!''' % (PACKAGE_NAME))
# Now launch the appropriate gdb client with the right init commands
#
- GDBCLIENT = '%sgdb' % (TOOLCHAIN_PREFIX)
+ GDBCLIENT = '{}/gdb'.format(ndk_bin_path(NDK))
GDBSETUP = '%s/gdb.setup' % (APP_OUT)
shutil.copyfile(GDBSETUP_INIT, GDBSETUP)
with open(GDBSETUP, "a") as gdbsetup: