aboutsummaryrefslogtreecommitdiff
path: root/gdb/disasm.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-03-17 19:57:12 +0000
committerAndrew Cagney <cagney@redhat.com>2003-03-17 19:57:12 +0000
commit26ca415260f575200c6fdde6827a19591ff835d0 (patch)
tree00a0d3842454d0e3d4829ebc55dcb7fd958ce16e /gdb/disasm.c
parent293e9a3142dabaf46ab93191bad3a0e76fe75a0b (diff)
downloadbinutils-26ca415260f575200c6fdde6827a19591ff835d0.zip
binutils-26ca415260f575200c6fdde6827a19591ff835d0.tar.gz
binutils-26ca415260f575200c6fdde6827a19591ff835d0.tar.bz2
2003-03-17 Andrew Cagney <cagney@redhat.com>
* disasm.c (gdb_disassembly): Set di.mach using the architecture's BFD. Simplify setting of di.endian.
Diffstat (limited to 'gdb/disasm.c')
-rw-r--r--gdb/disasm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/disasm.c b/gdb/disasm.c
index 75d1783..e9aabc8 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