mirror of https://github.com/moparisthebest/curl
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:
parent
0b489c7e61
commit
4741e64c89
|
@ -2097,9 +2097,11 @@ sub singletest {
|
||||||
}
|
}
|
||||||
|
|
||||||
if($gdbthis) {
|
if($gdbthis) {
|
||||||
|
my $gdbinit = "$TESTDIR/gdbinit$testnum";
|
||||||
open(GDBCMD, ">$LOGDIR/gdbcmd");
|
open(GDBCMD, ">$LOGDIR/gdbcmd");
|
||||||
print GDBCMD "set args $cmdargs\n";
|
print GDBCMD "set args $cmdargs\n";
|
||||||
print GDBCMD "show args\n";
|
print GDBCMD "show args\n";
|
||||||
|
print GDBCMD "source $gdbinit\n" if -e $gdbinit;
|
||||||
close(GDBCMD);
|
close(GDBCMD);
|
||||||
}
|
}
|
||||||
# run the command line we built
|
# run the command line we built
|
||||||
|
|
Loading…
Reference in New Issue