From owner-cvs-all Wed Oct 14 19:35:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA16477 for cvs-all-outgoing; Wed, 14 Oct 1998 19:35:22 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA16463; Wed, 14 Oct 1998 19:35:11 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.1/8.9.1/Spinner) with ESMTP id KAA09027; Thu, 15 Oct 1998 10:04:58 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199810150204.KAA09027@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Greg Lehey cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/gnu/usr.bin/gdb Makefile.inc In-reply-to: Your message of "Thu, 15 Oct 1998 11:49:18 +0930." <19981015114918.N586@freebie.lemis.com> Date: Thu, 15 Oct 1998 10:04:57 +0800 From: Peter Wemm Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Greg Lehey wrote: > On Thursday, 15 October 1998 at 9:27:22 +0800, Peter Wemm wrote: > > Greg Lehey wrote: > >> On Wednesday, 14 October 1998 at 17:15:01 -0700, Peter Wemm wrote: > >>> peter 1998/10/14 17:15:01 PDT > >>> > >>> Modified files: > >>> gnu/usr.bin/gdb Makefile.inc > >>> Log: > >>> Install gdb in /usr/lib/aout or /usr/lib/elf depending on format. > >> > >> /usr/lib? Is this the executable? Or are you putting in a link from > >> /usr/bin? > > > > Sorry, typo. The commit was for /usr/libexec/{aout,elf}. I've been using > > this for a few months. > > I still don't understand what gdb's doing in there. Do you have > /usr/libexec/ in your PATH? No, /usr/bin/objformat is linked to /usr/bin/gdb, and it does the redirection based on $OBJFORMAT, /etc/objformat and any -aout or -elf arguments. This means that "/usr/bin/gdb -aout" causes /usr/libexec/aout/ gdb to get run, and likewise /usr/libexec/elf/gdb for elf. We have not been supplying an a.out gdb at all. Remember, the 3.0 relase is elf based, and /usr/bin/gdb would have been ELF-only and completely unable to read the kernel or crashdumps. At least there's a place to put an a.out gdb now without breaking the elf development environment. > Greg Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message