This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] for mig check in GDB's configure
- From: Yue Lu <hacklu dot newborn at gmail dot com>
- To: Doug Evans <dje at google dot com>
- Cc: Thomas Schwinge <thomas at codesourcery dot com>, bug-hurd at gnu dot org, gdb-patches <gdb-patches at sourceware dot org>
- Date: Sun, 5 May 2013 13:30:43 +0800
- Subject: Re: [patch] for mig check in GDB's configure
- References: <CAB8fV=gfGtguD28FGa-A5DZT8jqvEA1AoaK4dO=cHMQcCVvB-w at mail dot gmail dot com> <8738u4sc19 dot fsf at kepler dot schwinge dot homeip dot net> <CAB8fV=hrvCmRd1AkMwvFsYZq1tC=7AgExWEfHLAURu6iWo3pTQ at mail dot gmail dot com> <CADPb22TG+2HbbwcWu5-XQvmpkDu5SAXVP7q7CC-EafM+Df0SSg at mail dot gmail dot com>
Hi,
On Sun, May 5, 2013 at 1:22 AM, Doug Evans <dje@google.com> wrote:
> On Fri, May 3, 2013 at 3:43 AM, éå <hacklu.newborn@gmail.com> 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 = system you're building the tool on
> --host = system the tool will run on
> --target = 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 arm.
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.
--
Yue Lu (éå)