From 181fdcc87f9f2a398ab60157ddd604e37b57afb4 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 17 Mar 2003 19:57:12 +0000 Subject: 2003-03-17 Andrew Cagney * disasm.c (gdb_disassembly): Set di.mach using the architecture's BFD. Simplify setting of di.endian. --- gdb/disasm.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gdb/disasm.c') diff --git a/gdb/disasm.c b/gdb/disasm.c index 75d1783d13f..e9aabc88ac7 100644 --- a/gdb/disasm.c +++ b/gdb/disasm.c @@ -338,11 +338,8 @@ gdb_disassembly (struct ui_out *uiout, di_initialized = 1; } - di.mach = TARGET_PRINT_INSN_INFO->mach; - if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) - di.endian = BFD_ENDIAN_BIG; - else - di.endian = BFD_ENDIAN_LITTLE; + di.mach = gdbarch_bfd_arch_info (current_gdbarch)->mach; + di.endian = gdbarch_byte_order (current_gdbarch); /* If gdb_disassemble_from_exec == -1, then we use the following heuristic to determine whether or not to do disassembly from target memory or from the -- cgit v1.2.1