diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2004-04-23 02:47:39 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2004-04-23 02:47:39 +0000 |
commit | 1f1799d5ad9c8f2af8bebf4df515507c87659a9c (patch) | |
tree | c785649eb2136ae9a5be487efaf48dc287d51fa9 /opcodes | |
parent | 4d0d148db826dd8413051b44673b3fabfa35ebdc (diff) | |
download | gdb-1f1799d5ad9c8f2af8bebf4df515507c87659a9c.zip gdb-1f1799d5ad9c8f2af8bebf4df515507c87659a9c.tar.gz gdb-1f1799d5ad9c8f2af8bebf4df515507c87659a9c.tar.bz2 |
bfd/
* elf32-sh.c (sh_elf_plt_sym_val): New function.
(elf_backend_plt_sym_val): Define.
opcodes/
* sh-dis.c (print_insn_sh): Print the value in constant pool
as a symbol if it looks like a symbol.
gas/testsuite/
* gas/sh/pcrel2.d: Update.
* gas/sh/tlsd.d: Update.
* gas/sh/tlsnopic.d: Update.
* gas/sh/tlspic.d: Update.
ld/testsuite/
* ld-sh/tlsbin-1.d: Update
* ld-sh/tlspic-1.d: Update.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/sh-dis.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index b5720be..ac27484 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp> + + * sh-dis.c (print_insn_sh): Print the value in constant pool + as a symbol if it looks like a symbol. + 2004-04-22 Peter Barada <peter@the-baradas.com> * m68k-dis.c(print_insn_m68k): Set mfcmac/mcfemac on diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c index 840823e..527eb75 100644 --- a/opcodes/sh-dis.c +++ b/opcodes/sh-dis.c @@ -855,7 +855,13 @@ print_insn_sh (memaddr, info) else val = bfd_getb32 (bytes); } - fprintf_fn (stream, "\t! 0x%x", val); + if ((*info->symbol_at_address_func) (val, info)) + { + fprintf_fn (stream, "\t! 0x"); + (*info->print_address_func) (val, info); + } + else + fprintf_fn (stream, "\t! 0x%x", val); } } |