| Summary: | gdb does not recognise old executables. | ||
|---|---|---|---|
| Product: | Base System | Reporter: | marka <marka> |
| Component: | bin | Assignee: | Marcel Moolenaar <marcel> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.1-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
marka
2000-08-29 02:40:01 UTC
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 I imagine that David will want to look at this while he's busy with the upgrade to gdb-5.0. Responsible Changed From-To: obrien->freebsd-bugs I am not the maintainer. Responsible Changed From-To: freebsd-bugs->mp Over to maintainer. 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. 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
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.
> > 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 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... State Changed From-To: open->closed By now surely this PR is OBE; we haven't had a.out support for a long time. |