Adjust byte order variable display/change if DW_AT_endianity is present.
[deliverable/binutils-gdb.git] / gdb / dwarf2loc.c
index 63643cb45d54a8abc4a0bc8a2d3b6c3d1fd51c70..e25ee6680b46ab046c6afdbd74944a6dcb7425ab 100644 (file)
@@ -46,8 +46,6 @@
 #include "gdbsupport/underlying.h"
 #include "gdbsupport/byte-vector.h"
 
-extern int dwarf_always_disassemble;
-
 static struct value *dwarf2_evaluate_loc_desc_full (struct type *type,
                                                    struct frame_info *frame,
                                                    const gdb_byte *data,
@@ -1603,7 +1601,7 @@ rw_pieced_value (struct value *v, struct value *from)
       bits_to_skip += (8 * value_offset (value_parent (v))
                       + value_bitpos (v));
       if (from != NULL
-         && (gdbarch_byte_order (get_type_arch (value_type (from)))
+         && (type_byte_order (value_type (from))
              == BFD_ENDIAN_BIG))
        {
          /* Use the least significant bits of FROM.  */
This page took 0.104419 seconds and 4 git commands to generate.