From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4692 invoked by alias); 5 Jul 2011 14:53:35 -0000 Received: (qmail 4682 invoked by uid 22791); 5 Jul 2011 14:53:34 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,TW_DB X-Spam-Check-By: sourceware.org Received: from smtprelay06.ispgateway.de (HELO smtprelay06.ispgateway.de) (80.67.31.104) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jul 2011 14:53:14 +0000 Received: from [87.180.39.191] (helo=stokes.schwinge.homeip.net) by smtprelay06.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1Qe6zu-0006KS-O4 for gdb-patches@sourceware.org; Tue, 05 Jul 2011 16:53:11 +0200 Received: (qmail 26727 invoked from network); 5 Jul 2011 14:53:05 -0000 Received: from kepler.schwinge.homeip.net (192.168.111.7) by stokes.schwinge.homeip.net with QMQP; 5 Jul 2011 14:53:05 -0000 Received: (nullmailer pid 22679 invoked by uid 1000); Tue, 05 Jul 2011 14:53:04 -0000 From: Thomas Schwinge To: svante.signell@telia.com Cc: gdb-patches@sourceware.org, 579834@bugs.debian.org Subject: Re: Patch to enable a fully working gdb for GNU/Hurd In-Reply-To: <1309876684.3172.144.camel@s1499.it.kth.se> References: <1309367642.3172.82.camel@s1499.it.kth.se> <87k4bxj4ed.fsf@kepler.schwinge.homeip.net> <1309807063.3172.126.camel@s1499.it.kth.se> <1309876684.3172.144.camel@s1499.it.kth.se> User-Agent: Notmuch/0.5-77-g335dd52 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Tue, 05 Jul 2011 15:09:00 -0000 Message-ID: <87liwcg4oi.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/msg00148.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 2559 Hallo! On Tue, 05 Jul 2011 16:38:04 +0200, Svante Signell wrote: > On Mon, 2011-07-04 at 21:17 +0200, Svante Signell wrote: > > On Mon, 2011-07-04 at 20:18 +0200, Thomas Schwinge wrote: > > > I think that update_thread_list (which already is exported) should ra= ther > > > be invoked instead of additionally exporting prune_threads. > > >=20 > > > But -- I can no longer reproduce the original problem with GDB HEAD. = Can > > > you? > >=20 > > I haven't compiled gdb for some time now. I can take a look, how to get > > the GDB HEAD? The prune_threads enabled gdb to work properly, and then > > Samuel applied an earlier version of the patch on debian-ports. > >=20 > > Since then the new Debian gdb maintainer wanted to get this patch > > applied upstream, so I did as was requested. Don't know if it is the > > correct approach or not. I can try to use update_thread_list instead, > > once I have the GDB HEAD files. >=20 > I have now built gdb HEAD and found that the patch is no longer needed. OK, and thanks for confirming! Thus, I'll close the GDB PR. > Additionally adding update_thread_list in gnu_nat.c works for gdb-7.2, > will propose the following patch to the Debian bug report #579834 in > case there will be more releases of the 7.2-series until 7.4 is > released. Either that, or simply continue to use the patch we're currently using (no additional work for the Debian maintainers). The existing patch doesn't do any harm, and can then simply be dropped once Debian is switching to a GDB release that no longer requires the patch -- which is still to be determined. > A few observations when building gdb HEAD: GNU gdb (GDB) > 7.3.50.20110704-cvs though: >=20 > 1) I had to uncomment -Werror when compiling gdb/msg_U.c with Debian > 4.6.1-1+hurd.1 due to the -Wstrict-aliasing flag set by -Wall, see > below: >=20 > msg_U.c: In function 'msg_del_auth': > msg_U.c:505:3: error: dereferencing type-punned pointer will break > strict-aliasing rules [-Werror=3Dstrict-aliasing] This issue is known: search for ``werror'' on . > 2) When debugging an executable gdb does not find the debugging symbols > for libraries. For example with libc0.3-dbg installed, the symbols are > found with 7.2 but not with 7.3.50 when running the built gdb directly > on an executable having debugging symbols (they are found). I would guess this is not Hurd-specific, but is due to Debian's multiarch changes, and is thus a general problem. Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOEyVNAAoJEGe3hdm9kOii7XYIAMS5f6wARR0uoZDoAJrVkCPa GQs9aT3jwWLfB+Ac31X/lVfe3CHvl9rw0fZoNmrL9A9vVwSEJLPxgKrSClnpgj37 xd9woyGBJZa0lGD/imzGCHt+WJ/bskutSBZYNa6yIcHgSiMS0hCLGKSFTvX+C+uJ 8P79dwTG61APGuLyu/Tr/S6OIhF5tHDjyHbCIuaanciLz4JgAsq2b5USnBCVS873 r2UM5uCVUIS5qW1i6tLuetGp6OmhElpekKi4MiSMvMO9zc9l89tYB8u6rWbgBM3A 4/Pm9MzGG7qwSW8mvKjDY3y+9ghJJ2TsA5lS2ewTNwmZtHQODMZ5vm++Z5J4lMs= =SfPK -----END PGP SIGNATURE----- --=-=-=--