Adjust byte order variable display/change if DW_AT_endianity is present.
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index 5ca9933b56c6dc7008ec39917b89c2dd0e801867..eb18efab513bf9c917a9b25bd5d640f15e9b96f6 100644 (file)
@@ -2216,7 +2216,7 @@ default_print_one_register_info (struct ui_file *file,
     {
       struct value_print_options opts;
       const gdb_byte *valaddr = value_contents_for_printing (val);
-      enum bfd_endian byte_order = gdbarch_byte_order (get_type_arch (regtype));
+      enum bfd_endian byte_order = type_byte_order (regtype);
 
       get_user_print_options (&opts);
       opts.deref_ref = 1;
This page took 0.050685 seconds and 4 git commands to generate.