[RFA/doco] Fix gdb.Field attributes documentation for enum types.
Eli Zaretskii
eliz@gnu.org
Sat Dec 28 09:05:00 GMT 2013
> Date: Sat, 28 Dec 2013 07:30:03 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
>
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -24338,8 +24338,8 @@ Each field is a @code{gdb.Field} object, with some pre-defined attributes:
> @table @code
> @item bitpos
> This attribute is not available for @code{enum} or @code{static}
> -(as in C@t{++} or Java) fields. The value is the bit position of
> -the field.
> +(as in C@t{++} or Java) fields. The value is the position, counting
> +in bits, from the start of the containing type.
Thanks, this is clear.
I'm curious: why are the bit units useful? Field offsets are
generally counted in bytes, not bits.
More information about the Gdb-patches
mailing list