From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14726 invoked by alias); 5 May 2013 05:31:01 -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 14715 invoked by uid 89); 5 May 2013 05:31:01 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-ob0-f180.google.com (HELO mail-ob0-f180.google.com) (209.85.214.180) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 05 May 2013 05:31:00 +0000 Received: by mail-ob0-f180.google.com with SMTP id uk5so2317980obc.39 for ; Sat, 04 May 2013 22:30:58 -0700 (PDT) X-Received: by 10.60.84.102 with SMTP id x6mr4371398oey.73.1367731858463; Sat, 04 May 2013 22:30:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.73.2 with HTTP; Sat, 4 May 2013 22:30:43 -0700 (PDT) In-Reply-To: References: <8738u4sc19.fsf@kepler.schwinge.homeip.net> From: Yue Lu Date: Sun, 05 May 2013 05:31:00 -0000 Message-ID: Subject: Re: [patch] for mig check in GDB's configure To: Doug Evans Cc: Thomas Schwinge , bug-hurd@gnu.org, gdb-patches Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-05/txt/msg00081.txt.bz2 Hi, On Sun, May 5, 2013 at 1:22 AM, Doug Evans wrote: > On Fri, May 3, 2013 at 3:43 AM, =E9=99=86=E5=B2=B3 wrote: >>> Hmm, I think that instead of only examining the host system, $host, this >>> also needs to examine the target system, $target. (Please tell if the >>> difference between build, host, and target system is not clear to you.) >>> The MIG tool is used to generate files (from RPC definition files) that >>> are used by the native GDB port for GNU Hurd (which, of couse, is the >>> only GNU Hurd port that currently exists.) But if someone, for example, >>> builds GDB targeting mips-linux-gnu on a GNU Hurd system, they would not >>> need the MIG tool. >>> > I can run gdb on an x86 system and debug a program running on a mips > system via gdbserver (or some other program that speaks gdb's remote > protocol). > > --build =3D system you're building the tool on > --host =3D system the tool will run on > --target =3D system the tool will handle or target (generate code for in > the case of gcc, debug in the case of gdb) > > [These terms are common to all GNU tools, not just gcc btw.] Thanks for the explanation. I have known about these three terms. > So for example I *could*, given appropriately ported tools, > build gdb on x86, run it on mips, and have it debug programs running on a= rm. But I have one more question, why the one run on GNU Hurd which targeting arm doesn't need to use MIG? As it run under GNU Hurd, it must use the message transport facility and need to use MIG to generate the interface file automatically or someone write it by hands. --=20 Yue Lu (=E9=99=86=E5=B2=B3)