From owner-freebsd-doc Tue Oct 14 15:54:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA23845 for doc-outgoing; Tue, 14 Oct 1997 15:54:21 -0700 (PDT) (envelope-from owner-freebsd-doc) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA23828 for ; Tue, 14 Oct 1997 15:54:11 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id IAA05756; Wed, 15 Oct 1997 08:24:00 +0930 (CST) Message-ID: <19971015082400.12575@lemis.com> Date: Wed, 15 Oct 1997 08:24:00 +0930 From: Greg Lehey To: Steve Miano Cc: freebsd-doc@FreeBSD.ORG Subject: Re: Problem doing kernel debugging with gdb. References: <3.0.32.19971014153529.008f78d0@hawk.grf.ov.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <3.0.32.19971014153529.008f78d0@hawk.grf.ov.com>; from Steve Miano on Tue, Oct 14, 1997 at 03:35:36PM -0400 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-doc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, Oct 14, 1997 at 03:35:36PM -0400, Steve Miano wrote: > Hello > > > You Wrote on page > http://www.kr.freebsd.org/handbook/handbook268.html#602 > > % gdb -k kernel > 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... > (kgdb) > > This option does not appear to availible in my debugger. What am I missing? > Here is the output to my version of gdb. > > % gdb -k kernel > gdb: unrecognized option `-k' > Use `gdb --help' for a complete list of options. > > % gdb > 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 (sparc-sun-solaris2.3), Copyright 1996 Free Software Foundation, Inc. ^^^^^^^^ > (gdb) Quit > > I am running this on a 2.5 box. gdb thinks it's running on a Sparc under Solaris. I tend to believe it. If not, I'd be very interested to know where you got the gdb from. Greg