From owner-freebsd-current@FreeBSD.ORG Fri Apr 18 19:05:15 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2251D1065677; Fri, 18 Apr 2008 19:05:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id F17B28FC13; Fri, 18 Apr 2008 19:05:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unknown [208.65.91.234]) by elvis.mu.org (Postfix) with ESMTP id 8633B1A4D8D; Fri, 18 Apr 2008 12:05:14 -0700 (PDT) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m3IJ4lQK068097; Fri, 18 Apr 2008 15:05:02 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Roman Divacky Date: Fri, 18 Apr 2008 13:18:06 -0400 User-Agent: KMail/1.9.7 References: <1208208513.1279.51.camel@localhost> <20080418002037.GA11705@dragon.NUXI.org> <20080418082227.GA38438@freebsd.org> In-Reply-To: <20080418082227.GA38438@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804181318.07160.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 18 Apr 2008 15:05:03 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/6831/Fri Apr 18 12:09:18 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-current@freebsd.org, Coleman Kane Subject: Re: 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: Fri, 18 Apr 2008 19:05:15 -0000 On Friday 18 April 2008 04:22:27 am Roman Divacky wrote: > On Thu, Apr 17, 2008 at 05:20:37PM -0700, David O'Brien wrote: > > On Mon, Apr 14, 2008 at 05:36:38PM -0400, Coleman Kane wrote: > > > On Mon, 2008-04-14 at 17:28 -0400, Coleman Kane wrote: > > > > 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? > > > > > > BTW, this has already been fixed in the GDB sources (using nearly the > > > exact same code) since August 2004 in rev. 1.79 of gdb/target.c: > > > > > > http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.c?rev=1.79&content-type=text/x-cvsweb-markup&cvsroot=src > > > > OK, I'll take a look at it. > > while you are at it, can you please take a look at: > > www.vlakno.cz/~rdivacky/gdb.patch > > it (or some parts of it) fixes problems with attaching to a process in gdb,> try > > witten ~# cat& > [1] 17309 > witten ~# gdb > (gdb) attach 17309 Does just the infcmd.c change fix this? The frame.c part of the patch looks to just be noise. -- John Baldwin