whoops
authorIan Lance Taylor <ian@airs.com>
Fri, 7 Oct 1994 16:33:35 +0000 (16:33 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 7 Oct 1994 16:33:35 +0000 (16:33 +0000)
gdb/top.c

index 8744c4848c05f5db51f2f68b12328ee6983c1975..bf185b46343e5a0cb3007cf8861d968d8168e0bb 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -2737,7 +2737,7 @@ set_endian_from_file (abfd)
       ? TARGET_BYTE_ORDER != BIG_ENDIAN
       : TARGET_BYTE_ORDER == BIG_ENDIAN)
     warning ("%s endian file does not match %s endian target.",
-            want == BIG_ENDIAN ? "big" : "little",
+            abfd->xvec->byteorder_big_p ? "big" : "little",
             TARGET_BYTE_ORDER == BIG_ENDIAN ? "big" : "little");
 
 #endif /* ! defined (TARGET_BYTE_ORDER_SELECTABLE) */