summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2001-07-16 21:42:48 +0000
committerPhil Blundell <philb@gnu.org>2001-07-16 21:42:48 +0000
commitc97c0bdad4c56f2a259f5580f3a8690c90a93520 (patch)
tree4834dcaea574a9d60346099aa9ac9144282e6a89
parentdbbc97dfa589fd428f109a0767ac1535f9c65681 (diff)
downloadbinutils-gdb-c97c0bdad4c56f2a259f5580f3a8690c90a93520.tar.gz
2001-07-16 Philip Blundell <philb@gnu.org>
* arm-dis.c (print_insn_arm): Use decimal for offsets in LDR/STR.
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/arm-dis.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 4c7f0748086..a3bacf99688 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2001-07-16 Philip Blundell <philb@gnu.org>
+
+ * arm-dis.c (print_insn_arm): Use decimal for offsets in LDR/STR.
+
2001-07-03 Zoltan Hidvegi <hzoli@hzoli.2y.net>
* ppc-opc.c: Fix encoding of 'clf' instruction.
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index b90f820602f..eaebe34304e 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -201,7 +201,7 @@ print_insn_arm (pc, info, given)
offset = - offset;
/* pre-indexed */
- func (stream, ", #%x]", offset);
+ func (stream, ", #%d]", offset);
offset += pc + 8;
@@ -215,7 +215,7 @@ print_insn_arm (pc, info, given)
else
{
/* Post indexed. */
- func (stream, "], #%x", offset);
+ func (stream, "], #%d", offset);
offset = pc + 8; /* ie ignore the offset. */
}
@@ -280,7 +280,7 @@ print_insn_arm (pc, info, given)
if ((given & 0x00800000) == 0)
offset = -offset;
- func (stream, "[pc, #%x]\t; ", offset);
+ func (stream, "[pc, #%d]\t; ", offset);
(*info->print_address_func)
(offset + pc + 8, info);