diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-01-05 04:30:46 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-01-05 04:30:46 +0000 |
commit | d7449b42d3ecdf244e2ba02be9aa58b503524272 (patch) | |
tree | 6be786acd69b5b5d51e1e02ea6e97cde8592824f /gdb/ch-exp.c | |
parent | ca4976a6949dd6f5276cd48ae593ae862a2ec684 (diff) | |
download | gdb-d7449b42d3ecdf244e2ba02be9aa58b503524272.zip gdb-d7449b42d3ecdf244e2ba02be9aa58b503524272.tar.gz gdb-d7449b42d3ecdf244e2ba02be9aa58b503524272.tar.bz2 |
s/BIG_ENDIAN/BFD_ENDIAN_BIG/
Diffstat (limited to 'gdb/ch-exp.c')
-rw-r--r-- | gdb/ch-exp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ch-exp.c b/gdb/ch-exp.c index c5d2fda..e96a6f8 100644 --- a/gdb/ch-exp.c +++ b/gdb/ch-exp.c @@ -1883,15 +1883,15 @@ match_bitstring_literal (void) else { /* Extract bits from digit, packing them into the bitstring byte. */ - int k = TARGET_BYTE_ORDER == BIG_ENDIAN ? bits_per_char - 1 : 0; - for (; TARGET_BYTE_ORDER == BIG_ENDIAN ? k >= 0 : k < bits_per_char; - TARGET_BYTE_ORDER == BIG_ENDIAN ? k-- : k++) + int k = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? bits_per_char - 1 : 0; + for (; TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? k >= 0 : k < bits_per_char; + TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? k-- : k++) { bitcount++; if (digit & (1 << k)) { tempbuf[tempbufindex] |= - (TARGET_BYTE_ORDER == BIG_ENDIAN) + (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) ? (1 << (HOST_CHAR_BIT - 1 - bitoffset)) : (1 << bitoffset); } |