aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-12-12 21:21:39 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-12-12 21:21:39 +0000
commit92eb7b324474951c28d9f9555655b88aab733c5f (patch)
treeabd0725f4e15870e4ef89de091b88ac34f069401 /gas/dwarf2dbg.c
parentbcedfee6be1bb5bbe474fde47547472d3a5312d7 (diff)
downloadfsf-binutils-gdb-92eb7b324474951c28d9f9555655b88aab733c5f.zip
fsf-binutils-gdb-92eb7b324474951c28d9f9555655b88aab733c5f.tar.gz
fsf-binutils-gdb-92eb7b324474951c28d9f9555655b88aab733c5f.tar.bz2
2000-12-12 H.J. Lu <hjl@gnu.org>
* dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined. * read.h (outputting_stabs_line_debug): Change it to int. * stabs.c (outputting_stabs_line_debug): Likewise.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r--gas/dwarf2dbg.c53
1 files changed, 53 insertions, 0 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 01ac9d9..5866cb4 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -31,6 +31,9 @@
#include <limits.h>
#include "as.h"
+
+#ifdef BFD_ASSEMBLER
+
#include "dwarf2dbg.h"
#include "subsegs.h"
@@ -1244,3 +1247,53 @@ dwarf2_finish ()
out_debug_info (info_seg, abbrev_seg, line_seg);
}
}
+
+#else
+void
+dwarf2_finish ()
+{
+}
+
+int
+dwarf2dbg_estimate_size_before_relax (frag)
+ fragS *frag ATTRIBUTE_UNUSED;
+{
+ as_fatal (_("dwarf2 is not supported for this object file format"));
+ return 0;
+}
+
+int
+dwarf2dbg_relax_frag (frag)
+ fragS *frag ATTRIBUTE_UNUSED;
+{
+ as_fatal (_("dwarf2 is not supported for this object file format"));
+ return 0;
+}
+
+void
+dwarf2dbg_convert_frag (frag)
+ fragS *frag ATTRIBUTE_UNUSED;
+{
+ as_fatal (_("dwarf2 is not supported for this object file format"));
+}
+
+void
+dwarf2_emit_insn (size)
+ int size ATTRIBUTE_UNUSED;
+{
+}
+
+void
+dwarf2_directive_file (dummy)
+ int dummy ATTRIBUTE_UNUSED;
+{
+ as_fatal (_("dwarf2 is not supported for this object file format"));
+}
+
+void
+dwarf2_directive_loc (dummy)
+ int dummy ATTRIBUTE_UNUSED;
+{
+ as_fatal (_("dwarf2 is not supported for this object file format"));
+}
+#endif /* BFD_ASSEMBLER */