Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 1998 08:57:33 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Amancio Hasty <hasty@rah.star-gate.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: gdb elf-binary?
Message-ID:  <Pine.BSF.3.95q.980523085429.15699A-100000@herring.nlsystems.com>
In-Reply-To: <199805230647.XAA02757@rah.star-gate.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 May 1998, Amancio Hasty wrote:

> 
> Does anyone got patches for gdb-elf?
> 
> 
> {root} file foo
> foo: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically 
> linked, not stripped
> 
> 
> {root} gdb foo
> GDB is free software and you are welcome to 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.
> GDB 4.16 (i386-unknown-freebsd), 
> Copyright 1996 Free Software Foundation, Inc...
> 
> "/tmp/foo": not in executable format: File format not recognized
> 
> (gdb) 
> 

Our own gdb can be compiled for ELF support.  It should even support
shared libs...

	cd /usr/src/gnu/usr.bin/gdb; make BINFORMAT=elf

I suggest that you install it somewhere other than /usr/bin since it
doesn't support both at the same time.  Supporting both a.out and elf
would be possible for static binaries but would involve some hacking to
support both a.out and elf shared libs.

--
Doug Rabson				Mail:  dfr@nlsystems.com
Nonlinear Systems Ltd.			Phone: +44 181 951 1891
					Fax:   +44 181 381 1039


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980523085429.15699A-100000>