From 1e835eb82a1c4cd15ae4b18558ccd5d5faedf534 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 23 Oct 2009 16:11:37 +0000 Subject: [PATCH] 2009-10-23 Michael Snyder * record.c (netorder64): Use BFD_ENDIAN_LITTLE not LITTLE_ENDIAN. (netorder32): Ditto. (netorder16): Ditto. --- gdb/record.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/record.c b/gdb/record.c index 1f62221c05..98c794fbfa 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -1955,7 +1955,7 @@ bfdcore_read (bfd *obfd, asection *osec, void *buf, int len, int *offset) static inline uint64_t netorder64 (uint64_t fromfile) { - return (BYTE_ORDER == LITTLE_ENDIAN) + return (BYTE_ORDER == BFD_ENDIAN_LITTLE) ? bswap_64 (fromfile) : fromfile; } @@ -1963,7 +1963,7 @@ netorder64 (uint64_t fromfile) static inline uint32_t netorder32 (uint32_t fromfile) { - return (BYTE_ORDER == LITTLE_ENDIAN) + return (BYTE_ORDER == BFD_ENDIAN_LITTLE) ? bswap_32 (fromfile) : fromfile; } @@ -1971,7 +1971,7 @@ netorder32 (uint32_t fromfile) static inline uint16_t netorder16 (uint16_t fromfile) { - return (BYTE_ORDER == LITTLE_ENDIAN) + return (BYTE_ORDER == BFD_ENDIAN_LITTLE) ? bswap_16 (fromfile) : fromfile; } -- 2.11.0