Skip to content

Commit

Permalink
Merge 22f0f25 into 1c35d08
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Apr 15, 2020
2 parents 1c35d08 + 22f0f25 commit 021149e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions stubs/gdb
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#! /bin/sh
#! /bin/bash

autoproj_path=$1
shift
newparams=()
for param; do
if [[ "$param" == -* ]]; then
newparams+=("$param")
elif test -z "$autoproj_path"; then
autoproj_path=$param
elif test -z "$debugger"; then
debugger=$param
fi
done

exec "$autoproj_path" exec "$@"
exec "$autoproj_path" exec "$debugger" "${newparams[@]}"

0 comments on commit 021149e

Please sign in to comment.