#! /bin/bash # Get a backtrace from gdb. # Version 20040205 set -eu bin="$1" shift gdb -batch "$bin" -x <( cat <<- EOF set args $@ run bt full EOF )