From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23811 invoked by alias); 17 Aug 2011 19:13:17 -0000 Received: (qmail 23795 invoked by uid 22791); 17 Aug 2011 19:13:16 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from adoakley.name (HELO ado.is-a-geek.net) (46.4.104.242) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Aug 2011 19:13:01 +0000 Received: from ado-gentoo.moore.slainvet.net ([2001:8b0:393:0:223:54ff:fe39:b789] helo=ado-gentoo) by ado.is-a-geek.net with esmtpa (Exim 4.76) (envelope-from ) id 1QtlVl-0007Un-Lg; Wed, 17 Aug 2011 19:10:45 +0000 Date: Wed, 17 Aug 2011 19:13:00 -0000 From: Andrew Oakley To: gdb-patches@sourceware.org Cc: Subject: Re: Some Python ideas, looking for feedback Message-ID: <20110817201316.64fc14e5@ado-gentoo> In-Reply-To: <20110817193710.59945561@ado-gentoo> References: <09787EF419216C41A903FD14EE5506DD0151D583A2@AUSX7MCPC103.AMER.DELL.COM> <201108161345.33448.andre.poenitz@nokia.com> <09787EF419216C41A903FD14EE5506DD0151D585D2@AUSX7MCPC103.AMER.DELL.COM> <20110817193710.59945561@ado-gentoo> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00076.txt.bz2 On Wed, 17 Aug 2011 19:37:10 +0100 Andrew Oakley wrote: > What you are looking for is (for some reason) stored in bitpos. I > can't actually find any documentation for this :(. Perhaps we should fix that: Document gdb.Value field attribute "bitpos" for enums. --- diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 6e7bf52..c82173b 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. -- Andrew Oakley