X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fdebug%2Fdebug-fgfs;h=72ccba28d9c8fc07b792be87465591adc213bbaa;hb=04475812556f7abdaa7620d61dcff63a46a817ea;hp=b21f7933a766e03dca4f1695b198c87016acc910;hpb=6786e2bbf1f5ca1aa9d3f795f83cf90e224a9733;p=flightgear.git 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