From marka@drugs.dv.isc.org  Mon Aug 28 18:30:38 2000
Return-Path: <marka@drugs.dv.isc.org>
Received: from drugs.dv.isc.org (drugs.dv.isc.org [130.155.191.236])
	by hub.freebsd.org (Postfix) with ESMTP id A05E837B422
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Aug 2000 18:30:35 -0700 (PDT)
Received: (from marka@localhost)
	by drugs.dv.isc.org (8.9.3/8.9.3) id MAA29962;
	Tue, 29 Aug 2000 12:32:55 +1100 (EST)
	(envelope-from marka)
Message-Id: <200008290132.MAA29962@drugs.dv.isc.org>
Date: Tue, 29 Aug 2000 12:32:55 +1100 (EST)
From: marka@nominum.com
Sender: marka@drugs.dv.isc.org
Reply-To: marka@nominum.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: gdb does not recognise old executables
X-Send-Pr-Version: 3.2

>Number:         20912
>Category:       bin
>Synopsis:       gdb does not recognise old executables.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    marcel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 28 18:40:01 PDT 2000
>Closed-Date:    Sat Jan 26 04:13:15 UTC 2008
>Last-Modified:  Sat Jan 26 04:13:15 UTC 2008
>Originator:     Mark Andrews
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
nominum.com
>Environment:

FreeBSD drugs.dv.isc.org 4.1-STABLE FreeBSD 4.1-STABLE #0: Fri Aug 25 14:45:11 EST 2000     marka@drugs.dv.isc.org:/usr/obj/usr/src/sys/DRUGS  i386

>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
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...

"/usr/local/lib/netscape/communicator-4.75.bin": not in executable format: File format not recognized

(gdb) quit
% 

>How-To-Repeat:

	Install netscape 4.75:
	Try to use gdb to look at the netscape executable.

>Fix:



>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
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
 
 
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Aug 29 02:10:03 PDT 2000 
Responsible-Changed-Why:  
I imagine that David will want to look at this while he's 
busy with the upgrade to gdb-5.0. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20912 
Responsible-Changed-From-To: obrien->freebsd-bugs 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Mon Sep 10 09:25:48 PDT 2001 
Responsible-Changed-Why:  
I am not the maintainer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20912 
Responsible-Changed-From-To: freebsd-bugs->mp 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Jan 30 05:29:22 PST 2002 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20912 

From: Sheldon Hearn <sheldonh@starjuice.net>
To: bde@FreeBSD.org
Cc: bug-followup@freebsd.org
Subject: gnu/20912: gdb does not recognise old executables
Date: Wed, 30 Jan 2002 15:32:05 +0200

 Hi Bruce,
 
 Do you have any plans to commit the patches you said worked for you in
 addressing debugging aout binaries as complained about in PR gnu/20912?
 
 Ciao,
 Sheldon.

From: Bruce Evans <bde@zeta.org.au>
To: Sheldon Hearn <sheldonh@starjuice.net>
Cc: <bde@FreeBSD.org>, <bug-followup@FreeBSD.org>
Subject: Re: gnu/20912: gdb does not recognise old executables
Date: Fri, 1 Feb 2002 02:38:16 +1100 (EST)

 On Wed, 30 Jan 2002, Sheldon Hearn wrote:
 
 > Do you have any plans to commit the patches you said worked for you in
 > addressing debugging aout binaries as complained about in PR gnu/20912?
 
 I never had patches; I only had a checkout method.  It no longer works,
 due to changes in system headers (mainly <sys/user.h>).  However, the
 old gdb binary still works:
 
 -r-xr-xr-x  1 root  wheel  1147168 Aug 26  1999 /usr/libexec/aout/gdb
 
 Perhaps it can be copied from a FreeBSD distribution or snapshot made
 a little earlier in 1999.
 
 Bruce
 

From: Sheldon Hearn <sheldonh@starjuice.net>
To: Bruce Evans <bde@zeta.org.au>
Cc: bug-followup@FreeBSD.org
Subject: Re: gnu/20912: gdb does not recognise old executables 
Date: Tue, 05 Feb 2002 11:55:12 +0200

 On Fri, 01 Feb 2002 02:38:16 +1100, Bruce Evans wrote:
 
 > I never had patches; I only had a checkout method.  It no longer works,
 > due to changes in system headers (mainly <sys/user.h>).  However, the
 > old gdb binary still works:
 > 
 > -r-xr-xr-x  1 root  wheel  1147168 Aug 26  1999 /usr/libexec/aout/gdb
 > 
 > Perhaps it can be copied from a FreeBSD distribution or snapshot made
 > a little earlier in 1999.
 
 Sounds like a job for a port and an FAQ entry.
 
 Care to make that binary available for download? :-)
 
 Ciao,
 Sheldon.

From: Bruce Evans <bde@zeta.org.au>
To: Sheldon Hearn <sheldonh@starjuice.net>
Cc: <bug-followup@FreeBSD.org>
Subject: Re: gnu/20912: gdb does not recognise old executables 
Date: Wed, 6 Feb 2002 04:49:06 +1100 (EST)

 > > I never had patches; I only had a checkout method.  It no longer works,
 > > due to changes in system headers (mainly <sys/user.h>).  However, the
 > > old gdb binary still works:
 > >
 > > -r-xr-xr-x  1 root  wheel  1147168 Aug 26  1999 /usr/libexec/aout/gdb
 > >
 > > Perhaps it can be copied from a FreeBSD distribution or snapshot made
 > > a little earlier in 1999.
 >
 > Sounds like a job for a port and an FAQ entry.
 >
 > Care to make that binary available for download? :-)
 
 No; binaries from releases should be tried first.
 
 Bruce
 
Responsible-Changed-From-To: mp->marcel 
Responsible-Changed-By: marcel 
Responsible-Changed-When: Sat Jul 17 01:21:10 GMT 2004 
Responsible-Changed-Why:  
I'm on GDB at the moment, so I'll take this while I'm at it. Given 
the age of the defect, this may probably be closed. However, it 
relates to 4.1, which is still on our current stable branch. The 
best course of action is to see if I can actually reproduce it 
with an up-to-date -stable box. If not, then this may have aged to 
much... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20912 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Jan 26 04:12:37 UTC 2008 
State-Changed-Why:  
By now surely this PR is OBE; we haven't had a.out support for a long time. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20912 
>Unformatted:
