From owner-freebsd-current@FreeBSD.ORG Mon Apr 14 21:29:10 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68890106566B for ; Mon, 14 Apr 2008 21:29:10 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from QMTA10.emeryville.ca.mail.comcast.net (qmta10.emeryville.ca.mail.comcast.net [76.96.30.17]) by mx1.freebsd.org (Postfix) with ESMTP id 415748FC1F for ; Mon, 14 Apr 2008 21:29:10 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from OMTA08.emeryville.ca.mail.comcast.net ([76.96.30.12]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id DXAw1Z0050FhH24AA08v00; Mon, 14 Apr 2008 21:28:31 +0000 Received: from discordia ([24.60.135.75]) by OMTA08.emeryville.ca.mail.comcast.net with comcast id DZV01Z00C1dmTCQ8U00000; Mon, 14 Apr 2008 21:29:01 +0000 X-Authority-Analysis: v=1.0 c=1 a=3HdgX0hkaOoA:10 a=WlO496tsPb4A:10 a=L60d8mLyw0iOrL9nnjYA:9 a=1rsbMigToXz7_6QgbbLjUYS9kAwA:4 a=b8hG5vVbyAkA:10 a=N4F-LyLLsDiU9a8G5f0A:9 a=R8i8NBTgm5VYCJ1XbDgA:7 a=L-Ra69YndYZEAsDl6Tl4kO3B2r0A:4 a=NfA2RSpTaHsA:10 a=B0yj2Q7vcMmDuPzxQb8A:9 a=Qo51MsZxI6Gsx9FfvIxNbhR_3MsA:4 a=rPt6xJ-oxjAA:10 Received: by discordia (Postfix, from userid 103) id 446EA1636F8; Mon, 14 Apr 2008 17:29:00 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id 041AB1636F8; Mon, 14 Apr 2008 17:28:44 -0400 (EDT) From: Coleman Kane To: current@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XSsj4+O5m+M8LFFtlRMG" Organization: FreeBSD Project Date: Mon, 14 Apr 2008 17:28:33 -0400 Message-Id: <1208208513.1279.51.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 FreeBSD GNOME Team Port Cc: jhb@FreeBSD.org Subject: Patch to fix crashing experienced while using GDB X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2008 21:29:10 -0000 --=-XSsj4+O5m+M8LFFtlRMG Content-Type: multipart/mixed; boundary="=-nNwGrSwM9BDFsEPxaF7b" --=-nNwGrSwM9BDFsEPxaF7b Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, Some time ago, I got the attached patch from jhb (IIRC). It has worked for me and cured a problem that was making a bunch of my code un-traceable using GDB on FreeBSD. Debugging would result in a crash of GDB, preventing me from seeing what bug I had that crashed my program. Anyhow, my question is: Is there any reason this shouldn't be pushed into the tree? Who do I need to talk to (obrien? the compiler maintainers?) about it? --=20 Coleman Kane --=-nNwGrSwM9BDFsEPxaF7b Content-Disposition: attachment; filename=contrib_gdb_gdb_target.c.patch Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=contrib_gdb_gdb_target.c.patch; charset=UTF-8 ZGlmZiAtLWdpdCBhL2NvbnRyaWIvZ2RiL2dkYi90YXJnZXQuYyBiL2NvbnRyaWIvZ2RiL2dkYi90 YXJnZXQuYw0KaW5kZXggZmY0N2FjMS4uYzI0MTY3NiAxMDA2NDQNCi0tLSBhL2NvbnRyaWIvZ2Ri L2dkYi90YXJnZXQuYw0KKysrIGIvY29udHJpYi9nZGIvZ2RiL3RhcmdldC5jDQpAQCAtMTQyNSw2 ICsxNDI1LDEzIEBAIHRhcmdldF9yZXNpemVfdG9fc2VjdGlvbnMgKHN0cnVjdCB0YXJnZXRfb3Bz ICp0YXJnZXQsIGludCBudW1fYWRkZWQpDQogCSAgICAgICgqdCktPnRvX3NlY3Rpb25zX2VuZCA9 IHRhcmdldC0+dG9fc2VjdGlvbnNfZW5kOw0KIAkgICAgfQ0KIAl9DQorDQorICAgICAgIC8qIEpI QjogTmVlZCB0byB1cGRhdGUgY3VycmVudF90YXJnZXQgdG9vLiAqLw0KKyAgICAgICBpZiAoY3Vy cmVudF90YXJnZXQudG9fc2VjdGlvbnMgPT0gb2xkX3ZhbHVlKQ0KKyAgICAgICAgew0KKyAgICAg ICAgICBjdXJyZW50X3RhcmdldC50b19zZWN0aW9ucyA9IHRhcmdldC0+dG9fc2VjdGlvbnM7DQor ICAgICAgICAgIGN1cnJlbnRfdGFyZ2V0LnRvX3NlY3Rpb25zX2VuZCA9IHRhcmdldC0+dG9fc2Vj dGlvbnNfZW5kOw0KKyAgICAgICAgfQ0KICAgICB9DQogICANCiAgIHJldHVybiBvbGRfY291bnQ7 DQo= --=-nNwGrSwM9BDFsEPxaF7b-- --=-XSsj4+O5m+M8LFFtlRMG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEABECAAYFAkgDzH4ACgkQcMSxQcXat5fRaQCcDuj6UaxgfiEslGxO/1nYBuVs 6QEAn0/pm5H3o267ghN7MQRvgysDLZEs =UgNu -----END PGP SIGNATURE----- --=-XSsj4+O5m+M8LFFtlRMG--