From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19054 invoked by alias); 16 May 2013 22:10:19 -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 18971 invoked by uid 89); 16 May 2013 22:10:18 -0000 X-Spam-SWARE-Status: No, score=-7.7 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 16 May 2013 22:10:17 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Ud6NL-0002hx-7X from Thomas_Schwinge@mentor.com ; Thu, 16 May 2013 15:10:15 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 16 May 2013 15:10:14 -0700 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Thu, 16 May 2013 23:10:13 +0100 From: Thomas Schwinge To: Doug Evans , Yue Lu CC: , gdb-patches Subject: Re: [patch] for mig check in GDB's configure In-Reply-To: References: <8738u4sc19.fsf@kepler.schwinge.homeip.net> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Thu, 16 May 2013 22:10:00 -0000 Message-ID: <87ppwqlgot.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Virus-Found: No X-SW-Source: 2013-05/txt/msg00656.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1845 Hi! On Sun, 5 May 2013 10:35:25 -0700, Doug Evans wrote: > On Sat, May 4, 2013 at 10:30 PM, Yue Lu wrote: > > 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 > That's a good question (assuming I understand it, it's a bit hard to > parse as written). I don't know MIG or GNU Hurd. > This stuff is pretty straightforward though, there's no magic. > The answer depends on what GDB uses MIG for. >=20 > If GDB on Hurd uses MIG like GDB on Linux uses ptrace, > then that would explain it (again, assuming I understand the question). > But someone who knows Hurd and MIG will need to step up > and provide a real answer. That's basically it. Basically, RPC interface definition files (*.defs, included with the Hurd system) basically describe all possible "system calls", including ptrace, and the MIG tool translates these into C code stub functions. So, MIG is needed everywhere where a Linux port of GDB would talk to the kernel. This means in the Hurd context: a) for a native configuration (GDB host equals GDB target: runs on the host, speaks to the target (which is the same system, hence native); the only configuration existing right now), or b) -- to be worked on -- via gdbserver, where the GDB host can be anything, the GDB target is Hurd (assuming the GDB host is not Hurd, then MIG is not needed, because that GDB configuration will not directly interact with a Hurd system), and for gdbserver itself, again host equals target, as it runs on the host, and speaks to the target (which is the same system, hence native). Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRlVlCAAoJEGe3hdm9kOiiLL0IAKMDYGqPKd8sbgd5m0QtEdfk HW8cHO7IymUDyLDtTPr/MvhPnH9VzxY/me8G/nnoIk6oxliYI5b70QGUJdkv6g9a skmhoYsoCs4W51v+JcodCYKJ1XhDU9SLu6zcUkDr1LgwUkgvvSXZXI5q1u/KeoGS 9TfEL3QS6H3KoOZlC77gMv5H6E4BhObsn+9R2ny6Qga8qmbSIwqzPxXhMMOLLwvu 6LC9MnBxCqFo/7F45Uh5jdkmd8aj7tGt+XldeWZxu0qnzXcWVkDDnmPuJvzf9uR1 IE/7MQTdosx+rnkcVt++w9rbs3qIf/4vITYll1P+q4ohOjrMuoBgKkcuTKhbw5k= =FZbl -----END PGP SIGNATURE----- --=-=-=--