From owner-freebsd-hackers Sun Dec 19 2:34:18 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 7AEE514D03 for ; Sun, 19 Dec 1999 02:34:15 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id KAA78376; Sun, 19 Dec 1999 10:44:28 GMT (envelope-from dfr@nlsystems.com) Date: Sun, 19 Dec 1999 10:44:28 +0000 (GMT) From: Doug Rabson To: Greg Lehey Cc: Julian Elischer , hackers@FreeBSD.ORG Subject: Re: aout gdb in 3.x In-Reply-To: <19991219070354.H815@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 19 Dec 1999, Greg Lehey wrote: > On Saturday, 18 December 1999 at 14:51:59 +0000, Doug Rabson wrote: > > On Fri, 17 Dec 1999, Julian Elischer wrote: > > > >> > >> How does one compile a version of GDB that can read a.out files? > >> I know there is a way of doing it but I have totoally failed to work > >> out how to do so. > > > > I think you can do this by changing src/gnu/usr.bin/binutils/gdb/Makefile. > > Change: > > > > CFLAGS += -DFREEBSD_ELF > > > > to set FREEBSD_AOUT instead. > > I thought it used to be possible for gdb to recognize multiple > formats. Is this no longer the case? I think that most of gdb can cope with both a.out and elf. The main problem is the shared library support which has ifdefs all over it to cope with the differences between SunOS and SVR4 shared libs. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message