Commit 077c17db authored by qsr@chromium.org's avatar qsr@chromium.org

Adding option to use gdbtui instead of gdb to adb_gdb

R=digit@chromium.org

Review URL: https://chromiumcodereview.appspot.com/15705005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202855 0039d316-1c4b-4281-b951-d872f2087c98
parent ed32ef37
...@@ -81,6 +81,7 @@ ANNOTATE= ...@@ -81,6 +81,7 @@ ANNOTATE=
# Note: Ignore BUILDTYPE variable, because the Ninja build doesn't use it. # Note: Ignore BUILDTYPE variable, because the Ninja build doesn't use it.
BUILDTYPE= BUILDTYPE=
FORCE= FORCE=
GDBEXEPOSTFIX=gdb
GDBINIT= GDBINIT=
GDBSERVER= GDBSERVER=
HELP= HELP=
...@@ -163,6 +164,9 @@ for opt; do ...@@ -163,6 +164,9 @@ for opt; do
--toolchain=*) --toolchain=*)
TOOLCHAIN=$optarg TOOLCHAIN=$optarg
;; ;;
--ui)
GDBEXEPOSTFIX=gdbtui
;;
--verbose) --verbose)
VERBOSE=$(( $VERBOSE + 1 )) VERBOSE=$(( $VERBOSE + 1 ))
;; ;;
...@@ -287,6 +291,7 @@ Valid options: ...@@ -287,6 +291,7 @@ Valid options:
--pid=<pid> Specify application process pid. --pid=<pid> Specify application process pid.
--force Kill any previous debugging session, if any. --force Kill any previous debugging session, if any.
--start Start package's activity on device. --start Start package's activity on device.
--ui Use gdbtui instead of gdb
--activity=<name> Activity name for --start [$DEFAULT_ACTIVITY]. --activity=<name> Activity name for --start [$DEFAULT_ACTIVITY].
--annotate=<num> Enable gdb annotation. --annotate=<num> Enable gdb annotation.
--script=<file> Specify extra GDB init script. --script=<file> Specify extra GDB init script.
...@@ -527,7 +532,7 @@ fi ...@@ -527,7 +532,7 @@ fi
ANDROID_TOOLCHAIN=${ANDROID_TOOLCHAIN%/} ANDROID_TOOLCHAIN=${ANDROID_TOOLCHAIN%/}
# Find host GDB client binary # 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 if [ -z "$GDB" ]; then
panic "Can't find Android gdb client in your path, check your \ panic "Can't find Android gdb client in your path, check your \
--toolchain path." --toolchain path."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment