arch-utils: Make the last endianness actually chosen sticky
[deliverable/binutils-gdb.git] / gdb / arch-utils.c
index b3169ca89caded4ccd638941488ac8d158d48445..76bc16f3750071a2c06fe52a42efeba3a8c14de2 100644 (file)
@@ -768,6 +768,8 @@ gdbarch_info_fill (struct gdbarch_info *info)
   if (info->byte_order == BFD_ENDIAN_UNKNOWN)
     info->byte_order = default_byte_order;
   info->byte_order_for_code = info->byte_order;
+  /* Wire the default to the last selected byte order.  */
+  default_byte_order = info->byte_order;
 
   /* "(gdb) set osabi ...".  Handled by gdbarch_lookup_osabi.  */
   /* From the manual override, or from file.  */
This page took 0.038558 seconds and 4 git commands to generate.