From ab7a594dab99bea32a031e4605c0d627bbb0d994 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 9 Feb 2006 11:08:17 +0000 Subject: [PATCH] add workaround for gdb bug s/calltree/callgrind/ --- scripts/debug/debug-fgfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/debug/debug-fgfs b/scripts/debug/debug-fgfs index b21f7933a..72ccba28d 100755 --- a/scripts/debug/debug-fgfs +++ b/scripts/debug/debug-fgfs @@ -54,7 +54,7 @@ while true; do -D) cmd="ddd -x .gdbinit $fgfs" ;; -m) cmd="make -C ../.." ;; -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="" ;; -s) extra="$extra --gen-suppressions=yes" ;; -l) extra="$extra --leak-check=yes --show-reachable=yes" ;; @@ -76,6 +76,7 @@ if ! test -e "$fgfs"; then fi 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