summaryrefslogtreecommitdiffstats
path: root/backtrace
blob: e7ccf7afae4e1822663444fb08acadcce032b8c2 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

if [[ -z $1 ]]; then
 echo "usage: backtrace <executeable> [<arguments> ...]"
 exit 1
fi

exec gdb -batch -ex run -ex "backtrace" --args "$@"