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.
This commit is contained in:
Andrew Cagney 2003-03-17 19:57:12 +00:00
parent 293e9a3142
commit 26ca415260
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
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.
2003-03-17 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (ppc_floating_point_unit_p): New function.

View File

@ -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