diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 5e446db6b5..0df308ddb0 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2013-12-28 Joel Brobecker + + * gdb.texinfo (Types In Python): Fix the documentation of + attribute "bitpos" in class gdb.Field for enum types. Add + documentation for attribute "enumval" in that same class. + 2013-12-28 Joel Brobecker * gdb.texinfo (GDB/MI Support Commands): Change @table into diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 52a26949ac..3fa0999976 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -24337,10 +24337,13 @@ into one of these categories, an empty sequence will be returned. Each field is a @code{gdb.Field} object, with some pre-defined attributes: @table @code @item bitpos -This attribute is not available for @code{static} fields (as in -C@t{++} or Java). For non-@code{static} fields, the value is the bit -position of the field. For @code{enum} fields, the value is the -enumeration member's integer representation. +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. + +@item enumval +This attribute is only available for @code{enum} fields, and its value +is the enumeration member's integer representation. @item name The name of the field, or @code{None} for anonymous fields.