Fix gdb.Field attributes documentation for enum types.
[deliverable/binutils-gdb.git] / gdb / doc / gdb.texinfo
index 52a26949ac928fdf4df5e5995586c4d5879ab751..3fa099997695bcb948c24083cd6d57a1e0dbb63e 100644 (file)
@@ -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.
This page took 0.037771 seconds and 4 git commands to generate.