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
This commit is contained in:
Daniel Stenberg 2008-11-19 21:56:11 +00:00
parent 0b489c7e61
commit 4741e64c89

View File

@ -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