3 # Print the stack backtrace of a crashed program
10 echo -e "getbt: Print the stack backtrace of a crashed program"
11 echo -e "Usage: $(basename $0) < program > < core-file >"
19 if [ "$1" = "-h" -o "$1" = "--help" ]; then
24 # print only the trace
25 gdb
-nx -silent $BINARY $CORE <<<bt | egrep '^#'