* gdb.stabs: Re-write weird.def and configuration to use sed

instead of cpp.  sed is portable and POSIX; cpp is neither.
This commit is contained in:
Jim Kingdon 1993-11-14 06:50:42 +00:00
parent 79cf7e1f33
commit dd06d920c8
8 changed files with 11 additions and 11 deletions

View File

@ -26,9 +26,9 @@ alpha.mt
aout.mt
configure.in
ecoff.mt
weird-aout.sed
weird-ecoff.sed
weird-xcoff.sed
aout.sed
ecoff.sed
xcoff.sed
weird.def
weird.exp
xcoff.mt

View File

@ -1,7 +1,7 @@
# This configuration is for a gcc that uses mips-tfile. If your gcc
# uses gas, you should configure gdb --with-gnu-as.
#
weird.o: $(srcdir)/weird.def $(srcdir)/weird-ecoff.sed
weird.o: $(srcdir)/weird.def $(srcdir)/ecoff.sed
sed -e '/.if notalpha/,/.endif notalpha/d' <$(srcdir)/weird.def | \
sed -f $(srcdir)/weird-ecoff.sed >weird.s
sed -f $(srcdir)/ecoff.sed >weird.s
$(CC) -c weird.s

View File

@ -1,3 +1,3 @@
weird.o: $(srcdir)/weird.def $(srcdir)/weird-aout.sed
sed -f $(srcdir)/weird-aout.sed <$(srcdir)/weird.def >weird.s
weird.o: $(srcdir)/weird.def $(srcdir)/aout.sed
sed -f $(srcdir)/aout.sed <$(srcdir)/weird.def >weird.s
$(CC) -c weird.s

View File

@ -1,7 +1,7 @@
# This configuration is for a gcc that uses mips-tfile. If your gcc
# uses gas, you should configure gdb --with-gnu-as.
#
weird.o: $(srcdir)/weird.def $(srcdir)/weird-ecoff.sed
weird.o: $(srcdir)/weird.def $(srcdir)/ecoff.sed
sed -e '/.long/.word/' <$(srcdir)/weird.def | \
sed -f $(srcdir)/weird-ecoff.sed >weird.s
sed -f $(srcdir)/ecoff.sed >weird.s
$(CC) -c weird.s

View File

@ -1,3 +1,3 @@
weird.o: $(srcdir)/weird.def $(srcdir)/weird-xcoff.sed
sed -f $(srcdir)/weird-xcoff.sed <$(srcdir)/weird.def >weird.s
weird.o: $(srcdir)/weird.def $(srcdir)/xcoff.sed
sed -f $(srcdir)/xcoff.sed <$(srcdir)/weird.def >weird.s
$(CC) -c weird.s