From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21842 invoked by alias); 25 Oct 2011 20:13:18 -0000 Received: (qmail 21823 invoked by uid 22791); 25 Oct 2011 20:13:16 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 25 Oct 2011 20:13:01 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LTN00G001BYT400@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Tue, 25 Oct 2011 22:12:33 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTN00GMR1GPSK20@a-mtaout23.012.net.il>; Tue, 25 Oct 2011 22:12:26 +0200 (IST) Date: Tue, 25 Oct 2011 20:16:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] Python: iterator for deep traversal of gdb.Type struct/union fields In-reply-to: <4C0389F5-A2DF-4864-8E33-BB893C885C98@comcast.net> To: Paul Koning Cc: gdb-patches@sourceware.org, tromey@redhat.com, raise.sail@gmail.com Reply-to: Eli Zaretskii Message-id: <83bot4de4v.fsf@gnu.org> References: <4E8595F6.7080004@gmail.com> <2460DAAE-C437-469A-BA1A-47343C5DBB45@comcast.net> <4E8F0244-3A3F-4AE2-A13C-DA9503282A97@comcast.net> <4C0389F5-A2DF-4864-8E33-BB893C885C98@comcast.net> X-IsSubscribed: yes 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 X-SW-Source: 2011-10/txt/msg00681.txt.bz2 > From: Paul Koning > Date: Tue, 25 Oct 2011 14:54:21 -0400 > Cc: Tom Tromey , Li Yu > > +@item deepitems (@var{type}) > +Returns a Python iterator similar to the standard > +@code{gdb.Type.iteritems ()} method, except that the iterator returned ^^ Please lose the parentheses. You just want the method's name, and you already say that it's a method. So the parentheses don't add anything except potential confusion. > +@end smallexample > + > +Then in gdb: You want @noindent before "Then in gdb", to make it look like continuation of the previous paragraph, not a beginning of a new one. Also, please use @value{GDBN} instead of a literal "gdb". > +(gdb) python import gdb.types We use @value{GDBP} instead of a literal "(gdb)". OK with those changes. Thanks.