From 4741e64c89346383c4d56a170cfeb53f0898694d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 19 Nov 2008 21:56:11 +0000 Subject: 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 --- tests/runtests.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/runtests.pl b/tests/runtests.pl index f44991c6b..8e1cd220b 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 -- cgit v1.2.3