summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-06-01 15:53:45 -0700
committerAndreas Gampe <agampe@google.com>2015-06-01 15:57:25 -0700
commit876b092025b1ba71269ab13050843166724abc00 (patch)
tree17caf1453c30e06aa05f49ef66389d4db00f3b6d /scripts
parent7d4a83600fc38a4aabc1f7137536d2c3296900f1 (diff)
downloadandroid_development-876b092025b1ba71269ab13050843166724abc00.tar.gz
android_development-876b092025b1ba71269ab13050843166724abc00.tar.bz2
android_development-876b092025b1ba71269ab13050843166724abc00.zip
Development: change gdbclient GDB selection
Mips now uses the 64-bit version in general. Also simplify the x86 selection. Bug: 21467410 Bug: 21555893 Change-Id: If0477356d3c3dbf9e0dfbfcabcb098dc7b8aeba2
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gdbclient13
1 files changed, 4 insertions, 9 deletions
diff --git a/scripts/gdbclient b/scripts/gdbclient
index b74a8f01e..2a846389a 100755
--- a/scripts/gdbclient
+++ b/scripts/gdbclient
@@ -136,17 +136,12 @@ function gdbclient() {
if [[ $CPU_ABI =~ (^|,)arm64 ]]; then
GDB=arm-linux-androideabi-gdb
GDB64=aarch64-linux-android-gdb
- elif [[ $CPU_ABI =~ (^|,)x86_64 ]]; then
+ elif [[ $CPU_ABI =~ (^|,)x86 ]]; then # x86 (32-bit and 64-bit) is unified.
GDB=x86_64-linux-android-gdb
- elif [[ $CPU_ABI =~ (^|,)mips64 ]]; then
- GDB=mipsel-linux-android-gdb
- GDB64=mips64el-linux-android-gdb
- elif [[ $CPU_ABI =~ (^|,)x86 ]]; then # See note above for order.
- GDB=x86_64-linux-android-gdb
- elif [[ $CPU_ABI =~ (^|,)arm ]]; then
+ elif [[ $CPU_ABI =~ (^|,)mips ]]; then # Mips (32-bit and 64-bit) is unified.
+ GDB=mips64el-linux-android-gdb
+ elif [[ $CPU_ABI =~ (^|,)arm ]]; then # See note above for order.
GDB=arm-linux-androideabi-gdb
- elif [[ $CPU_ABI =~ (^|,)mips ]]; then
- GDB=mipsel-linux-android-gdb
else
echo "Error: unrecognized cpu.abilist: $CPU_ABI"
return -6