From owner-freebsd-questions Fri Jan 1 10:18:00 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA07012 for freebsd-questions-outgoing; Fri, 1 Jan 1999 10:15:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA07005 for ; Fri, 1 Jan 1999 10:15:47 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.10 #3) id 0zw85l-000GZE-00; Fri, 1 Jan 1999 17:10:29 +0000 Date: Fri, 1 Jan 1999 17:10:29 +0000 From: Ben Smithurst To: Greg Lehey Cc: "Brian J. McGovern" , questions@freebsd.org Subject: Re: Changing gdb (3.0) to debug AOUT Message-ID: <19990101171029.A63618@scientia.demon.co.uk> References: <19990101111642.V39598@freebie.lemis.com> <199901010533.AAA24192@spoon.beta.com> <19990101161337.M41841@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <19990101161337.M41841@freebie.lemis.com> Sender: owner-freebsd-questions@freebsd.org Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey wrote: > On Friday, 1 January 1999 at 0:33:32 -0500, Brian J. McGovern wrote: > > > As a "work around", I recompiled a copy from my 2.2.6 machine with -static > > defined, and copied it over. It seems to work ok.... > > That's about the way to do it. 3.0 gdb doesn't currently support > a.out, but I believe somebody is working on it. > > Have I missed a question in this message? any of the normal methods should work: $ gdb -aout ... other stuff ... $ OBJFORMAT=aout gdb ... other stuff ... seems to work. There are two gdbs on -current as standard -r-xr-xr-x 1 root wheel 761856 Oct 20 21:15 /usr/libexec/aout/gdb -r-xr-xr-x 1 root wheel 736664 Dec 30 23:31 /usr/libexec/elf/gdb and the "wrapper" which decides on the correct object format: 108545 -r-xr-xr-x 14 root wheel 47760 Dec 30 23:35 /usr/bin/gdb 108545 -r-xr-xr-x 14 root wheel 47760 Dec 30 23:35 /usr/bin/objformat Not sure if this is the same in -release though. Or have I misunderstood something? -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message