Commit 4741e64c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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
parent 0b489c7e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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