From owner-freebsd-bugs Mon Aug 28 20:40: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5180D37B440 for ; Mon, 28 Aug 2000 20:40:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA72188; Mon, 28 Aug 2000 20:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 28 Aug 2000 20:40:03 -0700 (PDT) Message-Id: <200008290340.UAA72188@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: gnu/20912: gdb does not recognise old executables Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR gnu/20912; it has been noted by GNATS. From: Bruce Evans To: marka@nominum.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: gnu/20912: gdb does not recognise old executables Date: Tue, 29 Aug 2000 14:36:53 +1100 (EST) On Tue, 29 Aug 2000 marka@nominum.com wrote: > >Description: > > gdb does not recognise old executables. > > % file /usr/local/lib/netscape/communicator-4.75.bin > /usr/local/lib/netscape/communicator-4.75.bin: FreeBSD/i386 compact demand paged dynamically linked executable > % gdb /usr/local/lib/netscape/communicator-4.75.bin > ... > "/usr/local/lib/netscape/communicator-4.75.bin": not in executable format: File format not recognized The fix for this should be to use "gdb -aout" or "OBJFORMAT=aout gdb", but this never worked right (/usr/libexec/aout/gdb was never built), and was completely broken by bitrot in the a.out support in gdb-4.18. I have a version of /usr/libexec/aout/gdb built on 26 Aug 1999 from older sources (checked out with cvs -D '1 May 1999'?). This still seems to work. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message