diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-01-27 04:24:09 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-01-27 04:24:09 +0000 |
commit | 958f6a13103020396908a2252cf42d6b9a5ff95c (patch) | |
tree | 23c1ae080c173bb4dc3e90eb40e07fd65f9bbc7d /gdb/testsuite/gdb.stabs | |
parent | 669c9fe334b3e9d865026e511c519d926ab6da71 (diff) | |
download | gdb-958f6a13103020396908a2252cf42d6b9a5ff95c.zip gdb-958f6a13103020396908a2252cf42d6b9a5ff95c.tar.gz gdb-958f6a13103020396908a2252cf42d6b9a5ff95c.tar.bz2 |
* gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
for HP assembler versus GNU assembler based on actual behavior of
$(CC), rather than assuming that $(AS) is always the GNU assembler.
Diffstat (limited to 'gdb/testsuite/gdb.stabs')
-rw-r--r-- | gdb/testsuite/gdb.stabs/hppa.mt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.stabs/hppa.mt b/gdb/testsuite/gdb.stabs/hppa.mt index d7a6e86..32a09ca 100644 --- a/gdb/testsuite/gdb.stabs/hppa.mt +++ b/gdb/testsuite/gdb.stabs/hppa.mt @@ -1,3 +1,12 @@ weird.o: $(srcdir)/weird.def $(srcdir)/hppa.sed sed -f $(srcdir)/hppa.sed <$(srcdir)/weird.def >weird.s - $(AS) weird.s -o weird.o + if $(CC) -c weird.s 2>errs; then \ + true; \ + else \ + if grep 'Directive name not recognized - STABS' errs \ + >/dev/null; then \ + echo HP assembler in use--skipping stabs tests; true; \ + else \ + cat errs; false; \ + fi; \ + fi |