aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-10-31 06:10:33 +0000
committerAlan Modra <amodra@gmail.com>2005-10-31 06:10:33 +0000
commit9a2ff3f50c15b249f724b8ef6ae3d035567ab854 (patch)
treeddc9e557f1a5ea031bd05084ba9bf20536c0bbc8 /opcodes/arm-dis.c
parent6f72d99d8bc82bb411ff143434f8edaff9dc541b (diff)
downloadgdb-9a2ff3f50c15b249f724b8ef6ae3d035567ab854.zip
gdb-9a2ff3f50c15b249f724b8ef6ae3d035567ab854.tar.gz
gdb-9a2ff3f50c15b249f724b8ef6ae3d035567ab854.tar.bz2
* arm-dis.c (print_insn): Warning fix.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 236a1c9..a19c077 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