From owner-freebsd-current Sat May 23 00:56:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA16100 for freebsd-current-outgoing; Sat, 23 May 1998 00:56:22 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA16095 for ; Sat, 23 May 1998 00:56:20 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.8.8/8.8.5) with SMTP id IAA03297; Sat, 23 May 1998 08:57:33 +0100 (BST) Date: Sat, 23 May 1998 08:57:33 +0100 (BST) From: Doug Rabson To: Amancio Hasty cc: current@FreeBSD.ORG Subject: Re: gdb elf-binary? In-Reply-To: <199805230647.XAA02757@rah.star-gate.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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