* 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.
This commit is contained in:
Markus Deuling 2008-02-20 14:34:43 +00:00
parent ae4b228419
commit 40887e1a6e
4 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2008-02-20 Markus Deuling <deuling@de.ibm.com>
* 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 <deuling@de.ibm.com>
* gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add

View file

@ -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);

View file

@ -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);

View file

@ -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);