Hi,

On Fri, Sep 6, 2013 at 5:37 AM, Thomas Schwinge <tho...@codesourcery.com> wrote:
>> (correct me if
>> I'm wrong here), the Hurd's threads are kernel threads
>
> Correct.
>
>> so it'd
>> be better to just make the GDB side use the lwp field too.
>> It's really a simple and mechanic change.  Nothing in GDB core
>> actually cares which field is used.  So in this case, it'd be
>> better if you send a preparatory patch
>
> Based on the current upstream master branch.
>

Should I change the gdb use lwp filed instead of tid field? There are
too many functions use tid. Like
make_proc(),inf_tid_to_thread(),ptid_build(), and there is a field
named tid in the structure proc also.

We can define a macro for gdbserver to use another ptid_build function
to use lwp instead of tid, if this, we only need do a little change.

Because of there are a lot of place to improve in my patch, I will
submit my next patch a little later.  Now I have only finished
removing the spurious blank and the soft link.

-- 
Yue Lu (陆岳)

Reply via email to