From 40887e1a6e8bc0dfb421662f40c1a2c356c8b36d Mon Sep 17 00:00:00 2001 From: Markus Deuling Date: Wed, 20 Feb 2008 14:34:43 +0000 Subject: [PATCH] * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess from disassemble_info instead of gdbarch_byte_order. * mips-tdep.c (gdb_print_insn_mips): Likewise. * arm-tdep.c (gdb_print_insn_arm): Likewise. --- gdb/ChangeLog | 8 ++++++++ gdb/arm-tdep.c | 2 +- gdb/mips-tdep.c | 2 +- gdb/rs6000-tdep.c | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cfdd9716100..3b7b90e4f6d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2008-02-20 Markus Deuling + + * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess + from disassemble_info instead of gdbarch_byte_order. + + * mips-tdep.c (gdb_print_insn_mips): Likewise. + * arm-tdep.c (gdb_print_insn_arm): Likewise. + 2008-02-20 Markus Deuling * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index b8b7c84e83e..1cac2fb872f 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2018,7 +2018,7 @@ gdb_print_insn_arm (bfd_vma memaddr, disassemble_info *info) else info->symbols = NULL; - if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG) + if (info->endian == BFD_ENDIAN_BIG) return print_insn_big_arm (memaddr, info); else return print_insn_little_arm (memaddr, info); diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 7e94f208648..02217cdd6e5 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4878,7 +4878,7 @@ gdb_print_insn_mips (bfd_vma memaddr, struct disassemble_info *info) info->disassembler_options = "gpr-names=32"; /* Call the appropriate disassembler based on the target endian-ness. */ - if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG) + if (info->endian == BFD_ENDIAN_BIG) return print_insn_big_mips (memaddr, info); else return print_insn_little_mips (memaddr, info); diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 33c70f773a0..fc12619a7b0 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -2929,7 +2929,7 @@ gdb_print_insn_powerpc (bfd_vma memaddr, disassemble_info *info) if (!info->disassembler_options) info->disassembler_options = "any"; - if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG) + if (info->endian == BFD_ENDIAN_BIG) return print_insn_big_powerpc (memaddr, info); else return print_insn_little_powerpc (memaddr, info); -- 2.30.2