From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19900 invoked by alias); 2 May 2013 12:50:24 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 19884 invoked by uid 89); 2 May 2013 12:50:22 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=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-la0-f45.google.com (HELO mail-la0-f45.google.com) (209.85.215.45) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 02 May 2013 12:50:21 +0000 Received: by mail-la0-f45.google.com with SMTP id fp12so475584lab.32 for ; Thu, 02 May 2013 05:50:19 -0700 (PDT) X-Received: by 10.112.4.1 with SMTP id g1mr2554515lbg.118.1367499019057; Thu, 02 May 2013 05:50:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.123.80 with HTTP; Thu, 2 May 2013 05:50:03 -0700 (PDT) In-Reply-To: <87ehdpsip3.fsf@kepler.schwinge.homeip.net> References: <87d2tcv0s0.fsf@kepler.schwinge.homeip.net> <87ehdpsip3.fsf@kepler.schwinge.homeip.net> From: =?UTF-8?B?6ZmG5bKz?= Date: Thu, 02 May 2013 12:50:00 -0000 Message-ID: Subject: Re: [GSoC2013] question about "improve the GDB port for GNU Hurd" To: Thomas Schwinge Cc: gdb@sourceware.org, bug-hurd@gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-05/txt/msg00014.txt.bz2 Thank you for providing the requested information. On Thu, May 2, 2013 at 7:51 PM, Thomas Schwinge w= rote: > You can clone hurd/web.git repository from Savannah, and check out the > toolchain/logs/master branch (which I have as a Git submodule on > toolchain/logs), and compare the > gdb/coulomb.SCHWINGE/test/gdb/testsuite/gdb.*/*.sum files with those you > got. I will do the compare after I have finished the application. > Which are the handful of files in the GDB sources that are relevant > (only) for the native GNU Hurd support? To my knowledge now, there are at least gnu-nat.c, i386gnu-tdep.c, gnu-nat.h and i386gnu-nat.c relating with GNU Hurd support. > Yes, this shows you actually did look at the sources, trying to figure > out how it works, and what you describe is correct in principle. > (Leaving out many details, of course.) As you're still new to the Hurd's > architecture, based on Mach's RPC system, it is no wonder that the > message transport is still not completely clear to you -- that will get > better with time, as you learn more about it. yeah, I will continue to learn more about GNU Hurd. By the way, Last night I have found a useful document in this ftp(ftp://ftp.cs.cmu.edu/afs/cs/project/mach/public/doc/unpublished= /exception.doc) which explained how the GDB take advantage of Mach's exception facility. > No, please use the knowledge you got by now to write your application, > and send it in, which needs to happen tomorrow. Then, in the next > week(s), we can still continue refining it, and you could, for example, > prepare and send a first patch for GDB for the issue that you reported on > IRC: so that the configure process stops with an error if targeting GNU > Hurd and the MIG tool was not found. (gdb/configure.ac is the file you > need to edit, and then regenerate gdb/configure.) I will write my application right now. And the patch is on the way, this afternoon I have already read some How-to about autoconf. Best Regards. --=20 Yue Lu (=E9=99=86=E5=B2=B3)