diff options
author | Markus Deuling <deuling@de.ibm.com> | 2008-01-18 17:07:40 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2008-01-18 17:07:40 +0000 |
commit | ed4ae875d2f1cad443c6fb8d7d76492b250472c9 (patch) | |
tree | 6112284ffda373f6502b9557931bbf24803de193 /gdb/gdbarch.sh | |
parent | a1f5383a6e6630a882aab5557eca39d5c963a27c (diff) | |
download | gdb-ed4ae875d2f1cad443c6fb8d7d76492b250472c9.tar.gz |
* gdbarch.sh (function_list): Add new property bits_big_endian to
gdbarch structure.
* gdbarch.{c,h}: Regenerate.
* value.c (struct value): Replace BITS_BIG_ENDIAN by
gdbarch_bits_big_endian (comment).
(unpack_field_as_long, modify_field): Likewise.
* value.h: Likewise (comment).
* valops.c (value_slice): Likewise.
* valarith.c (value_subscript, value_bit_index): Likewise.
* gdbtypes.h (field): Likewise (comment).
* eval.c (evaluate_subexp_standard): Likewise.
* dwarf2read.c (dwarf2_add_field): Likewise.
* ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
(move_bits, ada_value_assign, value_assign_to_component): Likewise.
* defs.h (BITS_BIG_ENDIAN): Remove.
* gdbint.texinfo (Target Conditionals): Replace the description of
BITS_BIG_ENDIAN with a description of gdbarch_bits_big_endian.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 92b2316033b..eda85af533f 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -343,6 +343,11 @@ i:int:byte_order:::BFD_ENDIAN_BIG i:enum gdb_osabi:osabi:::GDB_OSABI_UNKNOWN # i:const struct target_desc *:target_desc:::::::paddr_d ((long) gdbarch->target_desc) + +# The bit byte-order has to do just with numbering of bits in debugging symbols +# and such. Conceptually, it's quite separate from byte/word byte order. +v:int:bits_big_endian:::1:(gdbarch->byte_order == BFD_ENDIAN_BIG)::0 + # Number of bits in a char or unsigned char for the target machine. # Just like CHAR_BIT in <limits.h> but describes the target machine. # v:TARGET_CHAR_BIT:int:char_bit::::8 * sizeof (char):8::0: |