Little debug script wrapper for gdb and valgrind
[mokosuite2:shr-mokojeweled.git] / src / debug
1 #!/bin/bash
2
3 if [ "$1" == "valgrind" ]; then
4 valgrind --db-attach=yes ./mokojeweled
5 elif [ "$1" == "debug" ]; then
6 echo "run" >gdbinit
7 gdb ./mokojeweled -x gdbinit
8 rm -f gdbinit
9 else
10 ./mokojeweled
11 fi