Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Paul Koning <paulkoning@comcast.net>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Re: Python: add field access by name and standard python mapping methods to gdb.Type
Date: Wed, 28 Sep 2011 19:25:00 -0000	[thread overview]
Message-ID: <CADPb22SrXdBoU5KRjDJ8aox=ne9pV9Sht1qemgkC_LaOLjK51w@mail.gmail.com> (raw)
In-Reply-To: <F08522DE-7678-410E-92E5-2692482305AF@comcast.net>

On Mon, Sep 26, 2011 at 9:00 AM, Paul Koning <paulkoning@comcast.net> wrote:
>
> On Sep 23, 2011, at 12:33 PM, Doug Evans wrote:
>
> > On Fri, Sep 16, 2011 at 8:27 AM, Paul Koning <paulkoning@comcast.net> wrote:
> >>
> >> Below is an update with the various comments addressed.
> >
> > Hi.  This email is for just a couple of formatting nits.
> >
> >> 2011-09-15  Paul Koning  <paul_koning@dell.com>
> >>
> >>        * python/py-type.c (make_fielditem, typy_field_names, typy_items,
> >>        typy_length, typy_get, typy_has_key, typy_make_iter,
> >>        typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter,
> >>        typy_iterator_iter, typy_iterator_iternext,
> >>        typy_iterator_dealloc): : New functions to implement standard
> >>        Python mapping methods on gdb.Type object.
> >>        (gdb.TypeIterator): New Python type.
> >>        * python/python-internal.h (gdbpy_iter_kind): New enum.
> >>        * doc/gdb.texinfo (gdb.Type): Document field access by dictionary
> >>        key syntax.
> >
> > Technically speaking, the rule is you can't extend a parenthesized name list
> > over multiple lines.  At least that's the rule I've been asked to follow.
> > I'd like to see some flexibility here, and I'm not asking you change this here.
> > Just pointing it out.
> >
> >> +/* Helper function for Type standard mapping methods.  Returns a
> >> +   Python object for field i of the type.  "kind" specifies what to
> >> +   return: the name of the field, a gdb.Field object corresponding to
> >> +   the field, or a tuple consisting of field name and gdb.Field
> >> +   object.  */
> >> +static PyObject *
> >> +make_fielditem (struct type *type, int i, enum gdbpy_iter_kind kind)
> >
> > For functions the coding standards say to have a blank line between
> > its comment and definition.
> > I realize parts of gdb don't follow this rule, but this rule I like :-),
> > it is documented, and I'd like to not make things worse.
> >
> > This needs to be fixed in several places.
>
> I've fixed both -- the ChangeLog is now formatted according to an earlier example I see in ChangeLog.
>
> Ok to commit?
>
>        paul
>
> 2011-09-26  Paul Koning  <paul_koning@dell.com>
>
>        * python/py-type.c (make_fielditem, typy_field_names, typy_items)
>        (typy_length, typy_get, typy_has_key, typy_make_iter)
>        (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
>        (typy_iterator_iter, typy_iterator_iternext)
>        (typy_iterator_dealloc): : New functions to implement standard
>        Python mapping methods on gdb.Type object.
>        (gdb.TypeIterator): New Python type.
>        * python/python-internal.h (gdbpy_iter_kind): New enum.
>        * doc/gdb.texinfo (gdb.Type): Document field access by dictionary
>        key syntax.
>
> 2011-09-26  Paul Koning  <paul_koning@dell.com>
>
>        * gdb.python/py-type.c (enum E): New.
>        * gdb.python/py-type.exp (test_fields): Add tests for Python
>        mapping access to fields.
>        (test_enums): New test for field access on enums.

Blech, sorry for the dup.

One changelog entry has two colons (::), but other than that
it's ok by me.  Thanks!


  reply	other threads:[~2011-09-28 17:50 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-16  4:09 Paul Koning
2011-09-16  7:36 ` Eli Zaretskii
2011-09-16 10:47 ` Phil Muldoon
2011-09-16 14:57   ` Paul Koning
2011-09-16 14:57     ` Phil Muldoon
2011-09-16 15:41   ` Paul Koning
2011-09-23 17:21     ` Doug Evans
2011-09-26 17:15       ` [RFA] " Paul Koning
2011-09-28 19:25         ` Doug Evans [this message]
2011-09-28 20:41           ` Paul Koning
2011-10-04 15:14             ` Tom Tromey
2011-10-04 15:30               ` Paul Koning
2011-10-04 15:42                 ` Eli Zaretskii
2011-10-04 15:56                   ` Paul Koning
2011-11-04 17:42                     ` Doug Evans
2011-11-04 20:41                       ` Paul Koning
2011-11-04 23:05                         ` Doug Evans
2011-11-05 14:36                           ` Paul Koning
2011-11-05 21:04                             ` Doug Evans
2011-11-08 21:40                               ` [RFA] Python: raise exception on field-related gdb.Type methods if it's not struct or union Paul Koning
2011-11-09  0:29                                 ` Doug Evans
2011-11-09  1:53                                   ` Paul Koning
2011-11-09 18:10                                   ` Paul Koning
2011-11-15 19:01                                     ` [PING] " Paul Koning
2011-11-15 20:57                                       ` Doug Evans
2011-11-15 21:21                                         ` Paul Koning

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADPb22SrXdBoU5KRjDJ8aox=ne9pV9Sht1qemgkC_LaOLjK51w@mail.gmail.com' \
    --to=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=paulkoning@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox