From df5036d96316b5b6751a4dd1d1405cab34682533 Mon Sep 17 00:00:00 2001 From: tromey Date: Thu, 25 Aug 2011 17:59:48 +0000 Subject: [PATCH] 2011-08-25 Andrew Oakley * gdb.texinfo (Types In Python): Document 'bitpos' for enums. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 7e838cf252..80038f1954 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2011-08-25 Andrew Oakley + + * gdb.texinfo (Types In Python): Document 'bitpos' for enums. + 2011-08-17 Phil Muldoon * gdb.texinfo (Prompt): Add set/show extended-prompt diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 6e7bf52e8e..23b2a98f73 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -21575,7 +21575,8 @@ Each field is an object, with some pre-defined attributes: @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. +position of the field. For @code{enum} fields, the value is the +enumeration member's integer representation. @item name The name of the field, or @code{None} for anonymous fields. -- 2.11.0