diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-29 05:27:04 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-29 05:27:04 +0000 |
commit | 122ad9abf278d8b86f00d33ff6c1c2e450d4ffc3 (patch) | |
tree | 124d4f1459660d8e78aedef7c0d503c0119ea7ac /gdb/param-no-tm.h | |
parent | 5d98a45f63af922fd05cb62ea4092fa4bf223b04 (diff) | |
download | gdb-122ad9abf278d8b86f00d33ff6c1c2e450d4ffc3.zip gdb-122ad9abf278d8b86f00d33ff6c1c2e450d4ffc3.tar.gz gdb-122ad9abf278d8b86f00d33ff6c1c2e450d4ffc3.tar.bz2 |
* param-no-tm.h: Make BITS_BIG_ENDIAN defined to 0/1, not defined
or not defined. Don't define it based on TARGET_BYTE_ORDER if
it's already defined (in the tm.h file).
mips-opcode.h (BIT_FIELDS_*),
values.c (modify_field, unpack_field_as_long):
Use #if BITS_BIG_ENDIAN not #ifdef BITS_BIG_ENDIAN.
Diffstat (limited to 'gdb/param-no-tm.h')
-rwxr-xr-x | gdb/param-no-tm.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/param-no-tm.h b/gdb/param-no-tm.h index 1a35e52..f0a897b 100755 --- a/gdb/param-no-tm.h +++ b/gdb/param-no-tm.h @@ -36,13 +36,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ debugging symbols and such. Conceptually, it's quite separate from byte/word byte order. */ +#if !defined (BITS_BIG_ENDIAN) #if TARGET_BYTE_ORDER == BIG_ENDIAN #define BITS_BIG_ENDIAN 1 -#endif +#endif /* Big endian. */ #if TARGET_BYTE_ORDER == LITTLE_ENDIAN -/*#define BITS_BIG_ENDIAN */ -#endif +#define BITS_BIG_ENDIAN 0 +#endif /* Little endian. */ +#endif /* BITS_BIG_ENDIAN not defined. */ /* Swap LEN bytes at BUFFER between target and host byte-order. */ #if TARGET_BYTE_ORDER == HOST_BYTE_ORDER |