Skip to content
Snippets Groups Projects
Commit 93818b7c authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Fixed correct argument quoting when passing args through gdb.

Rev: bin/pike.in:1.5
parent 0b7c3b83
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,12 @@ esac ...@@ -16,7 +16,12 @@ esac
if test x"$1" = x--gdb; then if test x"$1" = x--gdb; then
shift shift
echo set args -m$BUILDDIR/master.pike $@ > .gdbinit args="set args '-m$BUILDDIR/master.pike'"
for arg do
arg=`echo $arg | sed -e s/\'/\'\"\'\"\'/g`
args="$args '$arg'"
done
echo $args > .gdbinit
gdb "$BUILDDIR/pike" gdb "$BUILDDIR/pike"
rm .gdbinit rm .gdbinit
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment