diff options
-rwxr-xr-x | backtrace | 5 | ||||
-rwxr-xr-x | gdb-exec | 11 |
2 files changed, 1 insertions, 15 deletions
@@ -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 "$@" diff --git a/gdb-exec b/gdb-exec deleted file mode 100755 index b95c7f9..0000000 --- a/gdb-exec +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -if [[ -z $1 ]]; then - echo "usage: gdb-exec <executeable> [<arguments> ...]" - exit 1 -fi - -prog=$1; shift -args="$*" - -exec gdb -ex "set args $args" "$prog" |