From: Daniel Stenberg Date: Wed, 19 Nov 2008 21:56:11 +0000 (+0000) Subject: Josef Wolf's extension that allows a $TESTDIR/gdbinit$testnum file that when X-Git-Tag: curl-7_19_3~149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4741e64c89346383c4d56a170cfeb53f0898694d;p=thirdparty%2Fcurl.git Josef Wolf's extension that allows a $TESTDIR/gdbinit$testnum file that when you use runtests.pl -g, will be sourced by gdb to allow additional fancy or whatever you see fit --- diff --git a/tests/runtests.pl b/tests/runtests.pl index f44991c6b0..8e1cd220ba 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -2097,9 +2097,11 @@ sub singletest { } if($gdbthis) { + my $gdbinit = "$TESTDIR/gdbinit$testnum"; open(GDBCMD, ">$LOGDIR/gdbcmd"); print GDBCMD "set args $cmdargs\n"; print GDBCMD "show args\n"; + print GDBCMD "source $gdbinit\n" if -e $gdbinit; close(GDBCMD); } # run the command line we built