aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/Makefile.in
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1993-05-23 22:21:17 +0000
committerRob Savoye <rob@cygnus>1993-05-23 22:21:17 +0000
commita1092b5df434ee51920ceb270eb969726396c694 (patch)
tree2a7bd628fb7c2d3c35dd9f9786042538d0f0324a /gdb/testsuite/Makefile.in
parent0b3c22dfbbb09951b4c18cb7716031d8f307cad1 (diff)
downloadgdb-a1092b5df434ee51920ceb270eb969726396c694.zip
gdb-a1092b5df434ee51920ceb270eb969726396c694.tar.gz
gdb-a1092b5df434ee51920ceb270eb969726396c694.tar.bz2
Fix bug in how GDB gets set that chokes runtest *only* using /bin/sh.
Diffstat (limited to 'gdb/testsuite/Makefile.in')
-rw-r--r--gdb/testsuite/Makefile.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in
index 385ccad..c401753 100644
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -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