From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8084 invoked by alias); 28 Dec 2013 09:05:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8066 invoked by uid 89); 28 Dec 2013 09:05:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout23.012.net.il Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 28 Dec 2013 09:05:02 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MYI00400EFLPQ00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Sat, 28 Dec 2013 11:04:59 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MYI00415EKAN680@a-mtaout23.012.net.il>; Sat, 28 Dec 2013 11:04:59 +0200 (IST) Date: Sat, 28 Dec 2013 09:05:00 -0000 From: Eli Zaretskii Subject: Re: [RFA/doco] Fix gdb.Field attributes documentation for enum types. In-reply-to: <20131228033003.GD4532@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83vby92vo5.fsf@gnu.org> References: <1387783386-6072-1-git-send-email-brobecker@adacore.com> <834n5z8rxl.fsf@gnu.org> <20131228033003.GD4532@adacore.com> X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00979.txt.bz2 > Date: Sat, 28 Dec 2013 07:30:03 +0400 > From: Joel Brobecker > 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.