summaryrefslogtreecommitdiffstats
path: root/backtrace
diff options
context:
space:
mode:
Diffstat (limited to 'backtrace')
-rwxr-xr-xbacktrace5
1 files changed, 1 insertions, 4 deletions
diff --git a/backtrace b/backtrace
index 9b49e47..e7ccf7a 100755
--- a/backtrace
+++ b/backtrace
@@ -5,7 +5,4 @@ if [[ -z $1 ]]; then
exit 1
fi
-prog=$1; shift
-args="$*"
-
-exec gdb -batch -ex "run $args" -ex "backtrace" "$prog"
+exec gdb -batch -ex run -ex "backtrace" --args "$@"