Adjust byte order variable display/change if DW_AT_endianity is present.
[deliverable/binutils-gdb.git] / gdb / dwarf2loc.c
index c8ba0290a02eb548beaf29b68d1552ac23b359e5..e25ee6680b46ab046c6afdbd74944a6dcb7425ab 100644 (file)
@@ -1601,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.027336 seconds and 4 git commands to generate.