summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2015-12-28 10:46:15 -0600
committerScott Mertz <scott@cyngn.com>2015-12-28 08:54:15 -0800
commit87171a8db7e0cbba8169a2176fe3f30b8787690b (patch)
tree6c0e8a9c8d94573e60276068d1e10db3f3a777fc
parent23936f4ae0261c36d1ac79c8991e786c5d52b99e (diff)
downloadandroid_development-87171a8db7e0cbba8169a2176fe3f30b8787690b.tar.gz
android_development-87171a8db7e0cbba8169a2176fe3f30b8787690b.tar.bz2
android_development-87171a8db7e0cbba8169a2176fe3f30b8787690b.zip
gdbclient: fallback to $OUT if available
When the OUT environment variable is set, use it for the path to the symbols. This fixes the case where OUT_DIR_COMMON_BASE is used in a full environment to specify a custom output directory. Change-Id: I4b918fbadb29031f0459995613aac4762f3e009a
-rwxr-xr-xscripts/gdbclient4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/gdbclient b/scripts/gdbclient
index acfb9c7be..7f24f6ca5 100755
--- a/scripts/gdbclient
+++ b/scripts/gdbclient
@@ -68,6 +68,10 @@ function gdbclient() {
fi
local OUT_ROOT="$ROOT/out/target/product/$DEVICE"
+ if [[ ! -d "$OUT_ROOT" && -n "$OUT" ]]; then
+ # The case where OUT_DIR_COMMON_BASE is used
+ OUT_ROOT="$OUT"
+ fi
local SYMBOLS_DIR="$OUT_ROOT/symbols"
local IS_TAPAS_USER="$(get_build_var TARGET_BUILD_APPS)"
local TAPAS_SYMBOLS_DIR=