aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-07-10 16:58:54 +0000
committerDoug Kwan <dougkwan@google.com>2009-07-10 16:58:54 +0000
commitd1aaab3c714b4faa538b200c378fa64d8c79c3d6 (patch)
tree0acb95af9abf3c5e002d7547c2a6fbbd948c0f79
parentcedfb17907e5a4efe45f8a084ac727b44a8b724a (diff)
downloadgdb-d1aaab3c714b4faa538b200c378fa64d8c79c3d6.zip
gdb-d1aaab3c714b4faa538b200c378fa64d8c79c3d6.tar.gz
gdb-d1aaab3c714b4faa538b200c378fa64d8c79c3d6.tar.bz2
2009-07-10 Doug Kwan <dougkwan@google.com>
* arm-disc.c (print_insn_coprocessor, print_insn_arm): Print only lower 32 bits of long types to make hexadecimal output consistent on both 32-bit and 64-bit hosts.
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/arm-dis.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index c0d8bfa..25e4e8d 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-10 Doug Kwan <dougkwan@google.com>
+
+ * arm-disc.c (print_insn_coprocessor, print_insn_arm): Print only
+ lower 32 bits of long types to make hexadecimal output consistent
+ on both 32-bit and 64-bit hosts.
+
2009-07-10 Alan Modra <amodra@bigpond.net.au>
* fr30-desc.c, * fr30-desc.h, * fr30-opc.c, * fr30-opc.h,
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 13f9e1e..0dc0f62 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -1955,7 +1955,7 @@ print_insn_coprocessor (bfd_vma pc,
break;
case 'x':
- func (stream, "0x%lx", value);
+ func (stream, "0x%lx", (value & 0xffffffffUL));
break;
case '`':
@@ -2167,7 +2167,7 @@ print_insn_coprocessor (bfd_vma pc,
}
if (value_in_comment > 32 || value_in_comment < -16)
- func (stream, "\t; 0x%lx", value_in_comment);
+ func (stream, "\t; 0x%lx", (value_in_comment & 0xffffffffUL));
return TRUE;
}
@@ -3107,7 +3107,7 @@ print_insn_arm (bfd_vma pc, struct disassemble_info *info, long given)
}
if (value_in_comment > 32 || value_in_comment < -16)
- func (stream, "\t; 0x%lx", value_in_comment);
+ func (stream, "\t; 0x%lx", (value_in_comment & 0xffffffffUL));
return;
}
}