]> granicus.if.org Git - curl/commitdiff
Josef Wolf's extension that allows a $TESTDIR/gdbinit$testnum file that when
authorDaniel Stenberg <daniel@haxx.se>
Wed, 19 Nov 2008 21:56:11 +0000 (21:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Nov 2008 21:56:11 +0000 (21:56 +0000)
you use runtests.pl -g, will be sourced by gdb to allow additional fancy
or whatever you see fit

tests/runtests.pl

index f44991c6b08f24f91d4cf844e636cc0321b35ff1..8e1cd220ba0934318e4d5421f6dbcbc39f795004 100755 (executable)
@@ -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