This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/doco] Fix gdb.Field attributes documentation for enum types.


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]