* score-tdep.c (score_print_insn): Get the current endianess from
authorMarkus Deuling <deuling@de.ibm.com>
Wed, 21 May 2008 04:19:44 +0000 (04:19 +0000)
committerMarkus Deuling <deuling@de.ibm.com>
Wed, 21 May 2008 04:19:44 +0000 (04:19 +0000)
disassemble_info instead of gdbarch_byte_order.

gdb/ChangeLog
gdb/score-tdep.c

index 19cb11c6458c4a42e8e79241fbfcf29bb5c91136..8de2d8f62171be2069038d5dc0ffecdc893adf0f 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-21  Markus Deuling  <deuling@de.ibm.com>
+
+       * score-tdep.c (score_print_insn): Get the current endianess from
+       disassemble_info instead of gdbarch_byte_order.
+
 2008-05-21  Pedro Alves  <pedro@codesourcery.com>
 
        * frame.c (get_prev_frame_1): Build frame id before setting
index 709e0fac878c35ef28408630563d3f81a64672af..79be120f6e78eaed74352ca21e6041ea2e412a32 100644 (file)
@@ -314,7 +314,7 @@ score_register_sim_regno (struct gdbarch *gdbarch, int regnum)
 static int
 score_print_insn (bfd_vma memaddr, struct disassemble_info *info)
 {
-  if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG)
+  if (info->endian == BFD_ENDIAN_BIG)
     return print_insn_big_score (memaddr, info);
   else
     return print_insn_little_score (memaddr, info);