Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simark@simark.ca>
Cc: Tom Tromey <tom@tromey.com>,  gdb-patches@sourceware.org
Subject: Re: [PATCH v3] Add more methods to gdb.Progspace
Date: Sun, 16 Sep 2018 12:49:00 -0000	[thread overview]
Message-ID: <87mushpq0r.fsf@tromey.com> (raw)
In-Reply-To: <ab9fcadb-548f-7bb0-b3ff-b422c99c033a@simark.ca> (Simon Marchi's	message of "Sat, 15 Sep 2018 23:09:57 -0400")

>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

Simon> LGTM, I just noted some minor comments.
Simon> I wish there was more consistency in how the methods are documented (in the
Simon> progspace_object_methods array), but that should be another patch.

Send more details and let's agree on some kind of standard here.
I think these doc strings are mostly an afterthought at the moment, but
there's no reason they should be.

>> +@code{current_progspace().find_pc_line(pc)} and is included for

Simon> Perhaps this should say gdb.current_progspace().find_pc_line(pc) ?

I made this change (3 spots).

>> +  else
>> +    {
>> +      str_obj = Py_None;
>> +      Py_INCREF (Py_None);
>> +    }

Simon> I know this is pre-existing code, but it could use Py_RETURN_NONE, then
Simon> we can get rid of the str_obj variable.

I made this change.

I'll check this in momentarily.  Thank you for the review.

Tom


  reply	other threads:[~2018-09-16 12:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-13 22:17 Tom Tromey
2018-09-14  5:57 ` Eli Zaretskii
2018-09-16  3:10 ` Simon Marchi
2018-09-16 12:49   ` Tom Tromey [this message]
2018-09-16 13:01     ` Simon Marchi

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=87mushpq0r.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /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