Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Add support to allow using ddd.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhylands committed Aug 24, 2012
1 parent cbe973c commit 1fb6c80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions run-ddd.sh
10 changes: 8 additions & 2 deletions run-gdb.sh
@@ -1,5 +1,6 @@
#!/bin/bash

SCRIPT_NAME=$(basename $0)
. load-config.sh

ADB=adb
Expand Down Expand Up @@ -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.