From 32c9a7957208ebe4d7a833cecbf552f3f852e733 Mon Sep 17 00:00:00 2001 From: Markus Deuling Date: Fri, 18 Jan 2008 17:07:40 +0000 Subject: * 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. --- gdb/gdbarch.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/gdbarch.h') diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index ebb8c609956..c068ddec5a8 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -71,6 +71,12 @@ extern const struct target_desc * gdbarch_target_desc (struct gdbarch *gdbarch); /* The following are initialized by the target dependent code. */ +/* 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. */ + +extern int gdbarch_bits_big_endian (struct gdbarch *gdbarch); +extern void set_gdbarch_bits_big_endian (struct gdbarch *gdbarch, int bits_big_endian); + /* Number of bits in a char or unsigned char for the target machine. Just like CHAR_BIT in but describes the target machine. v:TARGET_CHAR_BIT:int:char_bit::::8 * sizeof (char):8::0: -- cgit v1.2.1