add workaround for gdb bug
s/calltree/callgrind/
This commit is contained in:
parent
179e5c587d
commit
ab7a594dab
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue