[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] Port gdbserver to GNU/Hurd

From: Yue Lu
Subject: Re: [PATCH 1/2] Port gdbserver to GNU/Hurd
Date: Sun, 8 Sep 2013 21:35:05 +0800


On Fri, Sep 6, 2013 at 5:37 AM, Thomas Schwinge <thomas@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

[Prev in Thread] Current Thread [Next in Thread]