From owner-freebsd-current@FreeBSD.ORG Fri Apr 18 19:15:57 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 A1691106566B; Fri, 18 Apr 2008 19:15:57 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 53BB68FC0A; Fri, 18 Apr 2008 19:15:56 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 7619767CCB6; Fri, 18 Apr 2008 21:15:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P+pIpg+5-bWS; Fri, 18 Apr 2008 21:15:32 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 4506B67CC8D; Fri, 18 Apr 2008 21:15:32 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m3IJFWvX075554; Fri, 18 Apr 2008 21:15:32 +0200 (CEST) (envelope-from rdivacky) Date: Fri, 18 Apr 2008 21:15:31 +0200 From: Roman Divacky To: John Baldwin Message-ID: <20080418191531.GA75488@freebsd.org> References: <1208208513.1279.51.camel@localhost> <20080418002037.GA11705@dragon.NUXI.org> <20080418082227.GA38438@freebsd.org> <200804181318.07160.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804181318.07160.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i 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:15:57 -0000 On Fri, Apr 18, 2008 at 01:18:06PM -0400, John Baldwin wrote: > 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. it's highly possible... haven't tested it though