diff options
Diffstat (limited to 'test/etc/run-test-jar')
-rwxr-xr-x | test/etc/run-test-jar | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/etc/run-test-jar b/test/etc/run-test-jar index d2cd8ab..5c0f83f 100755 --- a/test/etc/run-test-jar +++ b/test/etc/run-test-jar @@ -108,6 +108,11 @@ while true; do DEV_MODE="y" TIME_OUT="n" shift + elif [ "x$1" = "x--gdb-arg" ]; then + shift + gdb_arg="$1" + GDB_ARGS="${GDB_ARGS} $gdb_arg" + shift elif [ "x$1" = "x--zygote" ]; then ZYGOTE="-Xzygote" msg "Spawning from zygote" @@ -229,11 +234,11 @@ if [ "$USE_GDB" = "y" ]; then else if [ `uname` = "Darwin" ]; then GDB=lldb - GDB_ARGS="-- $DALVIKVM" + GDB_ARGS="$GDB_ARGS -- $DALVIKVM" DALVIKVM= else GDB=gdb - GDB_ARGS="--args $DALVIKVM" + GDB_ARGS="$GDB_ARGS --args $DALVIKVM" # Enable for Emacs "M-x gdb" support. TODO: allow extra gdb arguments on command line. # gdbargs="--annotate=3 $gdbargs" fi |