Fix bug in how GDB gets set that chokes runtest *only* using /bin/sh.
authorRob Savoye <rob@cygnus>
Sun, 23 May 1993 22:21:17 +0000 (22:21 +0000)
committerRob Savoye <rob@cygnus>
Sun, 23 May 1993 22:21:17 +0000 (22:21 +0000)
gdb/testsuite/Makefile.in

index 385ccadfbd311fdb9b72bc19ee96237ef6659d5e..c401753cb26545f41267447fa283664c9f268b8a 100644 (file)
@@ -73,12 +73,12 @@ CXX = ` \
   fi`
 
 GDB = ` \
-  if [ -f $${rootme}/../gdb ] ; then \
-    echo $${rootme}/../gdb ; \
-  else echo gdb; \
+  if [ -f $${rootme}/../gdb ] ; \
+    then echo $${rootme}|sed -e 's@/[^/]*$$@@'|sed -e 's@$$@/gdb@' ; \
+    else echo gdb; \
   fi`
 
-GDBFLAGS =
+GDBFLAGS = -nx
 
 EXPECT = `if [ -f $${rootme}../../expect/expect ] ; \
        then echo $${rootme}../../expect/expect ; \
@@ -124,6 +124,7 @@ site.exp: ./config.status Makefile
        @echo "## these variables are automatically generated by make ##" > ./tmp0
        @echo "# Do not edit here. If you wish to override these values" >> ./tmp0
        @echo "# add them to the last section" >> ./tmp0
+       @echo "set GDBFLAGS \"${GDBFLAGS}\"" >> ./tmp0
        @echo "set host_os ${host_os}" >> ./tmp0
        @echo "set host_alias ${host_alias}" >> ./tmp0
        @echo "set host_cpu ${host_cpu}" >> ./tmp0
This page took 0.032029 seconds and 4 git commands to generate.