From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26293 invoked by alias); 4 Jul 2011 18:19:21 -0000 Received: (qmail 26283 invoked by uid 22791); 4 Jul 2011 18:19:20 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtprelay02.ispgateway.de (HELO smtprelay02.ispgateway.de) (80.67.31.36) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jul 2011 18:19:04 +0000 Received: from [87.180.39.191] (helo=stokes.schwinge.homeip.net) by smtprelay02.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1QdnjY-0007Ld-Nl for gdb-patches@sourceware.org; Mon, 04 Jul 2011 20:19:00 +0200 Received: (qmail 13347 invoked from network); 4 Jul 2011 18:18:39 -0000 Received: from kepler.schwinge.homeip.net (192.168.111.7) by stokes.schwinge.homeip.net with QMQP; 4 Jul 2011 18:18:39 -0000 Received: (nullmailer pid 4203 invoked by uid 1000); Mon, 04 Jul 2011 18:18:39 -0000 From: Thomas Schwinge To: svante.signell@telia.com Cc: gdb-patches@sourceware.org Subject: Re: Patch to enable a fully working gdb for GNU/Hurd In-Reply-To: <1309367642.3172.82.camel@s1499.it.kth.se> References: <1309367642.3172.82.camel@s1499.it.kth.se> User-Agent: Notmuch/0.5-77-g335dd52 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Mon, 04 Jul 2011 18:34:00 -0000 Message-ID: <87k4bxj4ed.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Df-Sender: thomas@schwinge.name 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 X-SW-Source: 2011-07/txt/msg00105.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1136 Hallo! On Wed, 29 Jun 2011 19:14:02 +0200, Svante Signell wrote: > Here is an attempt to create a complete patch for gdb to make it run > successfully on GNU/Hurd. >=20 > Problem description: > When starting gdb the following output is written: > Can't fetch registers from thread bogus thread id 1: No such thread >=20 > This makes gdb completely unusable for debugging purposes without this > patch. >=20 > Patch size: Small change >=20 > ChangeLog: > gdb/ > 2011-06-29 Svante Signell =20 >=20 > * gnu_nat.c: Activate prune_threads() for Hurd > * thread.c: Make prune_threads() visible outside current scope. > * gdbthread.h: Declare prune_threads() > * Fix PR gdb/12222 At the time I had originally written this patch, I rather considered it to be a hack than a proper fix -- I just needed a functional GDB on GNU/Hurd back then. I think that update_thread_list (which already is exported) should rather be invoked instead of additionally exporting prune_threads. But -- I can no longer reproduce the original problem with GDB HEAD. Can you? Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOEgP6AAoJEGe3hdm9kOiiqvcIAK+T+V0EgfOcfPrmxb+r+ocB UHlPKLPZm/vdY+My7wHQ954jkZVvdntLjY54BHM/AZj2MHs14RWpWluWM58BGleb Ae7ShWPJIVe+TnDIekJ1z7atFci5YTrVeEh8KlqosxVFh0i6WRmkwRuLIc7l7ATk XsDssLgDLh0Q4sJdbUlIYnBmiygcuTeG5vsaRBVCQJn7EThUqPJMqHJoL2x/0HSg tXgdf7SuoDnyHHkzqScf4ApQnhUAZwLB41AIoYR1RYj6dpQY90zfoof2cHjW4I0g 6xhK/CPOP2K/qFu7zFUoOMOvKwMb58ihC8jSaoxN8qLCRT2rklvQvK5Svdl6/pQ= =Znwr -----END PGP SIGNATURE----- --=-=-=--