diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-03-17 19:57:12 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-03-17 19:57:12 +0000 |
commit | 181fdcc87f9f2a398ab60157ddd604e37b57afb4 (patch) | |
tree | 6ccee6f90d155d0541e6d43d35f6649decd16d29 | |
parent | 46466ad9d59db53793b0b1a20e7895b49dc718f7 (diff) | |
download | gdb-181fdcc87f9f2a398ab60157ddd604e37b57afb4.tar.gz |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/disasm.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7818695351a..7e9465e6bc0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. * ppc-tdep.h (ppc_floating_point_unit_p): Declare. 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 |