summaryrefslogtreecommitdiff
path: root/gdb/score-tdep.c
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2008-05-21 04:19:44 +0000
committerMarkus Deuling <deuling@de.ibm.com>2008-05-21 04:19:44 +0000
commitc0b52845579eac9cdd605f42fe901e2d40541910 (patch)
tree259d1a4826cf24ca9ceda111040e75ecf28a2050 /gdb/score-tdep.c
parent81c21e93169ba4b23f46e33b1fd7ac27948fad5c (diff)
downloadgdb-c0b52845579eac9cdd605f42fe901e2d40541910.tar.gz
* score-tdep.c (score_print_insn): Get the current endianess from
disassemble_info instead of gdbarch_byte_order.
Diffstat (limited to 'gdb/score-tdep.c')
-rw-r--r--gdb/score-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index 709e0fac878..79be120f6e7 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -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);