From 66f84afc20c5bb627ec5979bd9b3e8b144c3419d Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 25 Apr 2013 09:31:46 +0200 Subject: simplify backtrace; remove gdb-exec "gdb --args executable --some-args" will work just fine. Signed-off-by: Florian Pritz --- backtrace | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'backtrace') 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 "$@" -- cgit v1.2.3-24-g4f1b