2003-03-17 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 17 Mar 2003 19:57:12 +0000 (19:57 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 17 Mar 2003 19:57:12 +0000 (19:57 +0000)
* disasm.c (gdb_disassembly): Set di.mach using the architecture's
BFD.  Simplify setting of di.endian.

gdb/ChangeLog
gdb/disasm.c

index 7818695351afeb27de7934ce8f6fe80707bb40ae..7e9465e6bc02bf12a9c71ecd3be5550e93774a2a 100644 (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.
index 75d1783d13f7ba0682b1064d7cef3f03ea13a61c..e9aabc88ac7dbc17ee87a5a9cd95d86a80317d67 100644 (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