* arch-utils.c (selected_byte_order): Return target_byte_order_user.
[deliverable/binutils-gdb.git] / gdb / value.c
index fb8da3e3194bc41325fd08bc43567f1e0fe9f6a0..4632ae4056c0b1e52b7f7351b9673a08af301d3f 100644 (file)
@@ -20,6 +20,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
+#include "arch-utils.h"
 #include "gdb_string.h"
 #include "symtab.h"
 #include "gdbtypes.h"
@@ -1448,7 +1449,7 @@ preserve_values (struct objfile *objfile)
 static void
 show_convenience (char *ignore, int from_tty)
 {
-  struct gdbarch *gdbarch = current_gdbarch;
+  struct gdbarch *gdbarch = get_current_arch ();
   struct internalvar *var;
   int varseen = 0;
   struct value_print_options opts;
This page took 0.024441 seconds and 4 git commands to generate.