Adjust byte order variable display/change if DW_AT_endianity is present.
[deliverable/binutils-gdb.git] / gdb / cp-valprint.c
index 04be4dc83b7fdbc845a85274269f4c5f037a73d4..e445d42d3fa98f2ca4d9a1e88cc6e6105ee9a88f 100644 (file)
@@ -740,7 +740,7 @@ void
 cp_print_class_member (const gdb_byte *valaddr, struct type *type,
                       struct ui_file *stream, const char *prefix)
 {
-  enum bfd_endian byte_order = gdbarch_byte_order (get_type_arch (type));
+  enum bfd_endian byte_order = type_byte_order (type);
 
   /* VAL is a byte offset into the structure type SELF_TYPE.
      Find the name of the field for that offset and
This page took 0.025567 seconds and 4 git commands to generate.