diff --git a/scripts/gdbclient b/scripts/gdbclient index 1d6b6f69f..19a6949fb 100755 --- a/scripts/gdbclient +++ b/scripts/gdbclient @@ -65,7 +65,8 @@ function gdbclient() { ROOT=`realpath .` fi - local OUT_ROOT="$ROOT/out/target/product/$DEVICE" + local SYS_OUT_ROOT=$(get_build_var OUT_DIR) + local OUT_ROOT="${SYS_OUT_ROOT:-${OUT_DIR:-$ROOT/out}}/target/product/$DEVICE" local SYMBOLS_DIR="$OUT_ROOT/symbols" local IS_TAPAS_USER="$(get_build_var TARGET_BUILD_APPS)" local TAPAS_SYMBOLS_DIR=