Permalink
Browse files

Add support to allow using ddd.

  • Loading branch information...
1 parent cbe973c commit 1fb6c808db11401d7f510706b4ae42abd19938e8 @dhylands dhylands committed Aug 24, 2012
Showing with 9 additions and 2 deletions.
  1. +1 −0 run-ddd.sh
  2. +8 −2 run-gdb.sh
View
View
@@ -1,5 +1,6 @@
#!/bin/bash
+SCRIPT_NAME=$(basename $0)
. load-config.sh
ADB=adb
@@ -64,5 +65,10 @@ echo "target extended-remote :$GDB_PORT" >> $GDBINIT
PROG=$GECKO_OBJDIR/dist/bin/$(basename $B2G_BIN)
[ -f $PROG ] || PROG=${SYMDIR}${B2G_BIN}
-echo $GDB -x $GDBINIT $PROG
-$GDB -x $GDBINIT $PROG
+if [ "$SCRIPT_NAME" == "run-ddd.sh" ]; then
+ echo "ddd --debugger \"$GDB -x $GDBINIT\" $PROG"
+ ddd --debugger "$GDB -x $GDBINIT" $PROG
+else
+ echo $GDB -x $GDBINIT $PROG
+ $GDB -x $GDBINIT $PROG
+fi

0 comments on commit 1fb6c80

Please sign in to comment.