1
0
Fork 0

add workaround for gdb bug

s/calltree/callgrind/
This commit is contained in:
mfranz 2006-02-09 11:08:17 +00:00
parent 179e5c587d
commit ab7a594dab

View file

@ -54,7 +54,7 @@ while true; do
-D) cmd="ddd -x .gdbinit $fgfs" ;; -D) cmd="ddd -x .gdbinit $fgfs" ;;
-m) cmd="make -C ../.." ;; -m) cmd="make -C ../.." ;;
-i) cmd=""; gdb="" ;; -i) cmd=""; gdb="" ;;
-p) cmd="calltree $fgfs"; gdb="" ;; -p) cmd="callgrind --dump-instr=yes --trace-jump=yes --dump-threads=yes $fgfs $opt"; gdb="" ;;
-b) gdb="" ;; -b) gdb="" ;;
-s) extra="$extra --gen-suppressions=yes" ;; -s) extra="$extra --gen-suppressions=yes" ;;
-l) extra="$extra --leak-check=yes --show-reachable=yes" ;; -l) extra="$extra --leak-check=yes --show-reachable=yes" ;;
@ -76,6 +76,7 @@ if ! test -e "$fgfs"; then
fi fi
echo "set args $opt" > .gdbinit echo "set args $opt" > .gdbinit
echo "handle SIG32 nostop noprint" >> .gdbinit # work around gdb bug
test -e fgfs.supp || head -14 sample.fgfs.supp > fgfs.supp test -e fgfs.supp || head -14 sample.fgfs.supp > fgfs.supp