diff options
author | Michael Snyder <msnyder@vmware.com> | 2009-10-23 16:11:37 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2009-10-23 16:11:37 +0000 |
commit | 4e06ab74b68c462a9cf5ea318521620943031472 (patch) | |
tree | e4d24bc974ee8c991061406e7ace5527208c10d3 /gdb | |
parent | 96d86ee37c0bb14988d78253a1f2e02d1dfc8d56 (diff) | |
download | gdb-4e06ab74b68c462a9cf5ea318521620943031472.zip gdb-4e06ab74b68c462a9cf5ea318521620943031472.tar.gz gdb-4e06ab74b68c462a9cf5ea318521620943031472.tar.bz2 |
2009-10-23 Michael Snyder <msnyder@vmware.com>
* record.c (netorder64): Use BFD_ENDIAN_LITTLE not LITTLE_ENDIAN.
(netorder32): Ditto.
(netorder16): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/record.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/record.c b/gdb/record.c index 1f62221..98c794f 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; } |