aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 8e95014..1ce9184 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1069,7 +1069,7 @@ enum { MAX_REGISTER_SIZE = 16 };
from byte/word byte order. */
#if !defined (BITS_BIG_ENDIAN)
-#define BITS_BIG_ENDIAN (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
+#define BITS_BIG_ENDIAN (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG)
#endif
/* In findvar.c. */