diff options
author | Markus Deuling <deuling@de.ibm.com> | 2008-02-20 14:34:43 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2008-02-20 14:34:43 +0000 |
commit | 40887e1a6e8bc0dfb421662f40c1a2c356c8b36d (patch) | |
tree | 85a92a0737da9b18922ae2714484f8c7a282b516 | |
parent | ae4b228419367dd170acf7251a82413d890ad61a (diff) | |
download | gdb-40887e1a6e8bc0dfb421662f40c1a2c356c8b36d.zip gdb-40887e1a6e8bc0dfb421662f40c1a2c356c8b36d.tar.gz gdb-40887e1a6e8bc0dfb421662f40c1a2c356c8b36d.tar.bz2 |
* 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.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 2 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 2 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 2 |
4 files changed, 11 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cfdd971..3b7b90e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 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 gdbarch as parameter. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index b8b7c84..1cac2fb 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 7e94f20..02217cd 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 33c70f7..fc12619 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); |