aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2006-10-20 14:47:05 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2006-10-20 14:47:05 +0000
commitf3b8f6287b4e2d98b2f3de3138edf43cbbd3e504 (patch)
tree823806fdc1301d5dc9a155db661ffe5a8c503127 /opcodes
parentf6f62d6fe657686bf5e793c45bb1b325898a95df (diff)
downloadgdb-f3b8f6287b4e2d98b2f3de3138edf43cbbd3e504.zip
gdb-f3b8f6287b4e2d98b2f3de3138edf43cbbd3e504.tar.gz
gdb-f3b8f6287b4e2d98b2f3de3138edf43cbbd3e504.tar.bz2
2006-10-20 Andrew Stubbs <andrew.stubbs@st.com>
opcodes/ * sh-dis.c (print_insn_sh): Remove 0x from output to prevent GDB duplicating it. gas/testsuite/ * gas/sh/pcrel-coff.d: Update patterns (remove 0x on addresses). * gas/sh/pcrel-hms.d: Likewise. * gas/sh/pcrel.d: Likewise. * gas/sh/pcrel2.d: Likewise. * gas/sh/pic.d: Likewise. * gas/sh/tlsd.d: Likewise. * gas/sh/tlsdnopic.d: Likewise. * gas/sh/tlsdpic.d: Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/sh-dis.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 39cc882..554a4cc 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-20 Andrew Stubbs <andrew.stubbs@st.com>
+
+ * sh-dis.c (print_insn_sh): Remove 0x from output to prevent GDB
+ duplicating it.
+
2006-10-18 Dave Brolley <brolley@redhat.com>
* configure.in (BFD_MACHINES): Add cgen-bitset.lo for bfd_sh_arch.
diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c
index 381fa4d..0dee910 100644
--- a/opcodes/sh-dis.c
+++ b/opcodes/sh-dis.c
@@ -924,11 +924,11 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
}
if ((*info->symbol_at_address_func) (val, info))
{
- fprintf_fn (stream, "\t! 0x");
+ fprintf_fn (stream, "\t! ");
(*info->print_address_func) (val, info);
}
else
- fprintf_fn (stream, "\t! 0x%x", val);
+ fprintf_fn (stream, "\t! %x", val);
}
}