Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (9 sloc) 247 Bytes
#!/bin/sh -e
#
# Dumps the full backtrace from the given GNU Debugger invocation.
#
# Written in 2009 by Suraj N. Kurapati <https://github.com/sunaku>
trap 'rm -f $$' EXIT
trap 'exit' TERM INT
echo 'bt full' > $$
gdb -batch -x $$ "$@" </dev/null