From owner-cvs-all@FreeBSD.ORG Tue Jul 20 15:39:35 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A804E16A4CE; Tue, 20 Jul 2004 15:39:35 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 288FD43D1F; Tue, 20 Jul 2004 15:39:35 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from dhcp50.pn.xcllnt.net (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i6KFdZdt027207; Tue, 20 Jul 2004 08:39:35 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp50.pn.xcllnt.net (localhost [127.0.0.1]) i6KFdVF6037690; Tue, 20 Jul 2004 08:39:31 -0700 (PDT) (envelope-from marcel@dhcp50.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp50.pn.xcllnt.net (8.12.11/8.12.11/Submit) id i6KFdVCv037689; Tue, 20 Jul 2004 08:39:31 -0700 (PDT) (envelope-from marcel) Date: Tue, 20 Jul 2004 08:39:31 -0700 From: Marcel Moolenaar To: Mark Kettenis Message-ID: <20040720153931.GA37633@dhcp50.pn.xcllnt.net> References: <200407182028.i6IKS7Su002490@repoman.freebsd.org> <20040719034245.C32601@pooker.samsco.org> <20040719171041.GA22048@ns1.xcllnt.net> <200407200958.i6K9wZD4022358@juw15.nfra.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407200958.i6K9wZD4022358@juw15.nfra.nl> User-Agent: Mutt/1.4.2.1i cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: scottl@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern imgact_elf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 15:39:35 -0000 On Tue, Jul 20, 2004 at 11:58:35AM +0200, Mark Kettenis wrote: > > I think a redesign of the core file format along the lines you said > above would defenitely pay off. The NetBSD folks have done it, and I > think their approach is pretty elegant. An improtant benefit of their > approach is that it's (almost) machine independent. The BFD code is > pretty much localized in elf.c (look for the functions with netbsd in > their names). Adapting that code for FreeNSD should not be much work. > I don't think any further changes to GDB are needed. One problem I see is that the pid and lwpid, as saved by binutils are mangled into a single id before given to gdb. I guess the trick is to not tell binutils about lwpid. If I'm not mistaken, binutils doesn't really keep track if the lwpids anyway. > Please realize that the problems you're citing largely stem from the > let's simulate-Linux-which-simulates-SVR4 type notes currently used by > FreeBSD. Throwing that all overboard will save much trouble in the > future. Yes, I got that impression as well, but the impact on binutils and the backward compatibility problems are more than I could handle for 5.3. > I'm certainly willing to do some of the legwork, since it'd make life > for me on the GDB side a lot easier if you'd adapt these NetBSD-style > core file notes. I certainly have some time the coming weeks to spend > on it. In principle I'm all for it. I like to see a plan and key players signed up for it, if we're going to do this for 5.3. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net