aboutsummaryrefslogtreecommitdiff
path: root/ndk-gdb
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-10-18 12:39:51 +0200
committerDavid 'Digit' Turner <digit@google.com>2010-10-18 12:39:51 +0200
commitcaf06194afcdd0cf31ce3cd688f83f94c24b4b2a (patch)
treeea6ae814500fccd53cfb443a7d12ef053b1cacf0 /ndk-gdb
parent040a6a4b45f29dc83524c8742c7c139c6ddc3884 (diff)
downloadndk-caf06194afcdd0cf31ce3cd688f83f94c24b4b2a.tar.gz
ndk-gdb: Fix windows invokation
This also simplifies the gdb client invokation by putting the "file" command inside the gdb.setup file, instead of using the command-line. Change-Id: Iaa31dd2afaada8552db0b72baca91ecd16d6ff95
Diffstat (limited to 'ndk-gdb')
-rwxr-xr-xndk-gdb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ndk-gdb b/ndk-gdb
index f2577dcdb..5a39086b7 100755
--- a/ndk-gdb
+++ b/ndk-gdb
@@ -573,8 +573,9 @@ GDBSETUP=$APP_OUT/gdb.setup
cp -f $GDBSETUP_INIT $GDBSETUP
#uncomment the following to debug the remote connection only
#echo "set debug remote 1" >> $GDBSETUP
+echo "file `native_path $APP_PROCESS`" >> $GDBSETUP
echo "target remote :$DEBUG_PORT" >> $GDBSETUP
if [ -n "$OPTION_EXEC" ] ; then
cat $OPTION_EXEC >> $GDBSETUP
fi
-$GDBCLIENT -x $GDBSETUP -e $APP_PROCESS
+$GDBCLIENT -x `native_path $GDBSETUP`