aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@st.com>2009-04-01 15:45:13 +0000
committerChristophe Lyon <christophe.lyon@st.com>2009-04-01 15:45:13 +0000
commitb8f9ee44f9f788ff37b8a5464df40295df68f397 (patch)
treea4a3b9fcc60f55708e2ab2f2e097d40d741cef17 /opcodes
parente780aef286f394eb642aaf0948cdb6ed3f6b814d (diff)
downloadgdb-b8f9ee44f9f788ff37b8a5464df40295df68f397.zip
gdb-b8f9ee44f9f788ff37b8a5464df40295df68f397.tar.gz
gdb-b8f9ee44f9f788ff37b8a5464df40295df68f397.tar.bz2
2009-04-01 Christophe Lyon <christophe.lyon@st.com>
opcodes/ * arm-dis.c (print_insn): Print BE8 opcodes in little endianness. ld/testsuite/ * ld-arm/arm-elf.exp: BE8 tests expect the same output as the default ones. * ld-arm/arm-be8.d: Print opcodes in little endian. * ld-arm/farcall-thumb-arm-be8.d: Removed useless expected result. * ld-arm/farcall-arm-arm-be8.d: Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/arm-dis.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index a98f288..87c9fe5 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-01 Christophe Lyon <christophe.lyon@st.com>
+
+ * arm-dis.c (print_insn): Print BE8 opcodes in little endianness.
+
2009-03-30 Joseph Myers <joseph@codesourcery.com>
* arm-dis.c (print_insn): Also check section matches in backwards
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 3360b82..884b5ae 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -4113,7 +4113,11 @@ print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little)
if (force_thumb)
is_thumb = TRUE;
- info->display_endian = little ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG;
+ if (is_data)
+ info->display_endian = little ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG;
+ else
+ info->display_endian = little_code ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG;
+
info->bytes_per_line = 4;
if (is_data)