summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-10-31 06:10:33 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-10-31 06:10:33 +0000
commit48ac7bda0382766108b253f0d6dad162f4e53d57 (patch)
treea1f1298d0beb2d5155339e239e78674b62656922
parent7fbf9368e641e0c403dc2f0d0ca8564c53b1715d (diff)
downloadgdb-48ac7bda0382766108b253f0d6dad162f4e53d57.tar.gz
* arm-dis.c (print_insn): Warning fix.
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/arm-dis.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index a44ae18f801..5bf79149aff 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2005-10-31 Alan Modra <amodra@bigpond.net.au>
+
+ * arm-dis.c (print_insn): Warning fix.
+
2005-10-30 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am: Run "make dep-am".
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 236a1c9e3ad..a19c077c067 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -2854,13 +2854,13 @@ print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little)
size = 2;
status = info->read_memory_func (pc, (bfd_byte *)b, 2, info);
+ if (little)
+ given = (b[0]) | (b[1] << 8);
+ else
+ given = (b[1]) | (b[0] << 8);
+
if (!status)
{
- if (little)
- given = (b[0]) | (b[1] << 8);
- else
- given = (b[1]) | (b[0] << 8);
-
/* These bit patterns signal a four-byte Thumb
instruction. */
if ((given & 0xF800) == 0xF800