aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-12-15 21:17:04 +0000
committerIan Lance Taylor <ian@airs.com>1995-12-15 21:17:04 +0000
commit3ecd62ca7503fe6b816e89e8420da52c0ee7704c (patch)
tree9843d956f81c793ec335e3683a17790dcf823c41 /gdb/top.c
parent432b8fa87a2b77d85c31460b6401e3e6da065166 (diff)
downloadgdb-3ecd62ca7503fe6b816e89e8420da52c0ee7704c.zip
gdb-3ecd62ca7503fe6b816e89e8420da52c0ee7704c.tar.gz
gdb-3ecd62ca7503fe6b816e89e8420da52c0ee7704c.tar.bz2
* top.c (set_endian_from_file): Use new bfd_big_endian macro.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 09db238..675ad80 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -3071,7 +3071,7 @@ set_endian_from_file (abfd)
#ifdef TARGET_BYTE_ORDER_SELECTABLE
int want;
- if (abfd->xvec->byteorder_big_p)
+ if (bfd_big_endian (abfd))
want = BIG_ENDIAN;
else
want = LITTLE_ENDIAN;
@@ -3084,11 +3084,11 @@ set_endian_from_file (abfd)
#else /* ! defined (TARGET_BYTE_ORDER_SELECTABLE) */
- if (abfd->xvec->byteorder_big_p
+ if (bfd_big_endian (abfd)
? TARGET_BYTE_ORDER != BIG_ENDIAN
: TARGET_BYTE_ORDER == BIG_ENDIAN)
warning ("%s endian file does not match %s endian target.",
- abfd->xvec->byteorder_big_p ? "big" : "little",
+ bfd_big_endian (abfd) ? "big" : "little",
TARGET_BYTE_ORDER == BIG_ENDIAN ? "big" : "little");
#endif /* ! defined (TARGET_BYTE_ORDER_SELECTABLE) */