[PATCH 01/13 v2] Introduce current_lwp_ptid

Doug Evans xdje42@gmail.com
Tue Oct 28 17:12:00 GMT 2014


On Tue, Oct 28, 2014 at 9:44 AM, Doug Evans <xdje42@gmail.com> wrote:
> On Tue, Oct 28, 2014 at 5:55 AM, Pedro Alves <palves@redhat.com> wrote:
>> On 10/09/2014 10:52 AM, Gary Benson wrote:
>>> This commit introduces a new function, current_lwp_ptid, that
>>> shared Linux code can use to obtain the ptid of the current
>>> lightweight process.
>>
>> OK.
>
> Hi.  The name bothers me enough to speak up.
>
> I'm ok with lwp being a member of ptid, but we're essentially
> replacing "thread" with "lwp".
> Is there a particular reason current_lwp_ptid is chosen over
> current_thread_ptid?

Hi.
In an attempt to answer my own question, I can imagine that "lwp" is
the linux backend's term for "thread".  OK.

[This is probably written down somewhere, but a comment to that effect
in the definition of current_lwp_ptid would be helpful.]



More information about the Gdb-patches mailing list