This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Python: iterator for deep traversal of gdb.Type struct/union fields


> From: Paul Koning <paulkoning@comcast.net>
> Date: Tue, 25 Oct 2011 14:54:21 -0400
> Cc: Tom Tromey <tromey@redhat.com>, Li Yu <raise.sail@gmail.com>
> 
> +@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]