Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] rename find_thread_pid to find_thread_ptid
Date: Wed, 06 May 2009 20:25:00 -0000	[thread overview]
Message-ID: <e394668d0905061325u36d190b4yd2fa108d3e4f39c5@mail.gmail.com> (raw)
In-Reply-To: <20090506190227.GS10734@adacore.com>

On Wed, May 6, 2009 at 12:02 PM, Joel Brobecker <brobecker@adacore.com> wrote:
>> Anyone mind a global renaming of find_thread_pid to find_thread_ptid?
>
> I don't mind the renaming, but if we're going to rename it, what do
> people thing about "find_thread_from_ptid". I always get confused by
> the function name because it makes me think that the function returns
> the pid/ptid instead of returning the thread from the ptid...
>
> That's just a suggestion and I don't want to start another bikeshed
> discussion. The name you suggest is already better than the old name,
> so I'm not objecting to your initial suggestion.

I don't mind that renaming either, I prefer it too.
But if one goes down that path then there's more than just
find_thread_ptid to rename, so I left that for another day.
Perhaps more work, but with the right tools it's rather trivial, so I
went with consistency with what's there today and just fixed the
pid->ptid bug.


  reply	other threads:[~2009-05-06 20:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-01 22:51 Doug Evans
2009-05-06 19:02 ` Joel Brobecker
2009-05-06 20:25   ` Doug Evans [this message]
2009-05-18 23:21 ` Doug Evans
2009-05-22 15:20   ` Joel Brobecker

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=e394668d0905061325u36d190b4yd2fa108d3e4f39c5@mail.gmail.com \
    --to=dje@google.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /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