From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29376 invoked by alias); 8 Sep 2013 13:35:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 29364 invoked by uid 89); 8 Sep 2013 13:35:24 -0000 Received: from mail-la0-f43.google.com (HELO mail-la0-f43.google.com) (209.85.215.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 08 Sep 2013 13:35:24 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GARBLED_BODY,KHOP_THREADED,NO_RELAYS autolearn=no version=3.3.2 X-HELO: mail-la0-f43.google.com Received: by mail-la0-f43.google.com with SMTP id ep20so4141052lab.16 for ; Sun, 08 Sep 2013 06:35:20 -0700 (PDT) X-Received: by 10.112.168.3 with SMTP id zs3mr12120224lbb.2.1378647320558; Sun, 08 Sep 2013 06:35:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.130.194 with HTTP; Sun, 8 Sep 2013 06:35:05 -0700 (PDT) In-Reply-To: <87ob87c5lr.fsf@kepler.schwinge.homeip.net> References: <87txi2i6t6.fsf@kepler.schwinge.homeip.net> <5225C3C6.8090101@redhat.com> <5228DBA7.9050408@redhat.com> <87ob87c5lr.fsf@kepler.schwinge.homeip.net> From: Yue Lu Date: Sun, 08 Sep 2013 13:35:00 -0000 Message-ID: Subject: Re: [PATCH 1/2] Port gdbserver to GNU/Hurd To: Thomas Schwinge Cc: Pedro Alves , gdb-patches , Luis Machado , bug-hurd@gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00266.txt.bz2 Hi=EF=BC=8C On Fri, Sep 6, 2013 at 5:37 AM, Thomas Schwinge w= rote: >> (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. --=20 Yue Lu (=E9=99=86=E5=B2=B3)