aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.stabs/ecoff.mt
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-07-18 15:47:51 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-07-18 15:47:51 +0000
commit76b098d175f07d9d8635e5b603945a4497a6e09b (patch)
treeff5ba16fec44edd3cf1c1b96317d01aaed6fa39e /gdb/testsuite/gdb.stabs/ecoff.mt
parent8467a2ad46b808bd6c4ca52c20ef9b5e2f76d17d (diff)
downloadgdb-76b098d175f07d9d8635e5b603945a4497a6e09b.zip
gdb-76b098d175f07d9d8635e5b603945a4497a6e09b.tar.gz
gdb-76b098d175f07d9d8635e5b603945a4497a6e09b.tar.bz2
* gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
to make the stabs test work on ecoff systems using gcc and -with-stabs. * gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}: Modify to enable ecoff configuration.
Diffstat (limited to 'gdb/testsuite/gdb.stabs/ecoff.mt')
-rw-r--r--gdb/testsuite/gdb.stabs/ecoff.mt14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.stabs/ecoff.mt b/gdb/testsuite/gdb.stabs/ecoff.mt
new file mode 100644
index 0000000..fa261fd
--- /dev/null
+++ b/gdb/testsuite/gdb.stabs/ecoff.mt
@@ -0,0 +1,14 @@
+# The mips as doesn't grok #line directives, suppress them via -P during
+# preprocessing.
+# The sed script removes blanks that mips-tfile doesn't like,
+# embedds stabs in comments and changes .long to .word
+#
+WIERDSTABS_S=wierd-ecoff.S
+# Only gcc knows about stabs-in-ecoff
+STABSCC=gcc
+
+wierd.o: ${srcdir}/${WIERDSTABS_S} ${srcdir}/wierd.def ${srcdir}/wierd-ecoff.sed
+ cp ${srcdir}/${WIERDSTABS_S} tmp.c
+ $(STABSCC) -I${srcdir} -E -P tmp.c >tmp.s
+ sed -f ${srcdir}/wierd-ecoff.sed <tmp.s >wierd.s
+ $(STABSCC) -c wierd.s