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

Unified Diff: build/android/adb_gdb

Issue 15705005: Adding option to use gdbtui instead of gdb to adb_gdb (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding help Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/adb_gdb
diff --git a/build/android/adb_gdb b/build/android/adb_gdb
index 2e9e3168273de92427b522e8063e057090d1e61b..961e3f7d933fbe61fa39fe2132dffbd48ad820c5 100755
--- a/build/android/adb_gdb
+++ b/build/android/adb_gdb
@@ -81,6 +81,7 @@ ANNOTATE=
# Note: Ignore BUILDTYPE variable, because the Ninja build doesn't use it.
BUILDTYPE=
FORCE=
+GDBEXEPOSTFIX=gdb
GDBINIT=
GDBSERVER=
HELP=
@@ -163,6 +164,9 @@ for opt; do
--toolchain=*)
TOOLCHAIN=$optarg
;;
+ --ui)
+ GDBEXEPOSTFIX=gdbtui
+ ;;
--verbose)
VERBOSE=$(( $VERBOSE + 1 ))
;;
@@ -287,6 +291,7 @@ Valid options:
--pid=<pid> Specify application process pid.
--force Kill any previous debugging session, if any.
--start Start package's activity on device.
+ --ui Use gdbtui instead of gdb
--activity=<name> Activity name for --start [$DEFAULT_ACTIVITY].
--annotate=<num> Enable gdb annotation.
--script=<file> Specify extra GDB init script.
@@ -527,7 +532,7 @@ fi
ANDROID_TOOLCHAIN=${ANDROID_TOOLCHAIN%/}
# Find host GDB client binary
-GDB=$(which $ANDROID_TOOLCHAIN/*-gdb 2>/dev/null | head -1)
+GDB=$(which $ANDROID_TOOLCHAIN/*-$GDBEXEPOSTFIX 2>/dev/null | head -1)
if [ -z "$GDB" ]; then
panic "Can't find Android gdb client in your path, check your \
--toolchain path."
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698