aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-12-25 21:20:31 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-12-25 21:20:31 +0000
commit9605f328cd91016a1f55928b8b67419eb050e771 (patch)
treeed558c78614b16d0a9211bba60a86514bc84d058 /gas/config
parentc4e54c2a3ceaad2a0f5550ff2d28f2be1dbfbaa1 (diff)
downloadgdb-9605f328cd91016a1f55928b8b67419eb050e771.zip
gdb-9605f328cd91016a1f55928b8b67419eb050e771.tar.gz
gdb-9605f328cd91016a1f55928b8b67419eb050e771.tar.bz2
* dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
(dwarf2_finish): Use it. * doc/internals.texi (DWARF2_ADDR_SIZE): Document it. * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h
index dd52a7f..a19c87d 100644
--- a/gas/config/tc-mips.h
+++ b/gas/config/tc-mips.h
@@ -185,4 +185,7 @@ extern void mips_enable_auto_align PARAMS ((void));
extern enum dwarf2_format mips_dwarf2_format PARAMS ((void));
#define DWARF2_FORMAT() mips_dwarf2_format ()
+#define DWARF2_ADDR_SIZE(bfd) \
+ (DWARF2_FORMAT () == dwarf2_format_32bit ? 4 : 8)
+
#endif /* TC_MIPS */