From owner-freebsd-stable@FreeBSD.ORG Wed Aug 3 02:00:05 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEFC516A41F for ; Wed, 3 Aug 2005 02:00:05 +0000 (GMT) (envelope-from dpk@dpk.net) Received: from shared10.hosting.flyingcroc.net (shared10.hosting.flyingcroc.net [207.246.149.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 716C143D46 for ; Wed, 3 Aug 2005 02:00:05 +0000 (GMT) (envelope-from dpk@dpk.net) Received: from shared10.hosting.flyingcroc.net (localhost [127.0.0.1]) by shared10.hosting.flyingcroc.net (8.12.9p2/8.12.10) with ESMTP id j73204rR045544; Tue, 2 Aug 2005 19:00:04 -0700 (PDT) Received: from localhost (dpk@localhost) by shared10.hosting.flyingcroc.net (8.12.9p2/8.12.10/Submit) with ESMTP id j73204LF045541; Tue, 2 Aug 2005 19:00:04 -0700 (PDT) X-Authentication-Warning: shared10.hosting.flyingcroc.net: dpk owned process doing -bs Date: Tue, 2 Aug 2005 19:00:04 -0700 (PDT) From: dpk X-X-Sender: dpk@shared10.hosting.flyingcroc.net To: Frank McConnell In-Reply-To: <200508030117.j731H3cV060169@lots.reanimators.org> Message-ID: <20050802184039.L64406@shared10.hosting.flyingcroc.net> References: <20050802133920.J64406@shared10.hosting.flyingcroc.net> <20050802141148.W871@kuoi.asui.uidaho.edu> <20050802153038.C64406@shared10.hosting.flyingcroc.net> <20050802160715.Q64406@shared10.hosting.flyingcroc.net> <200508030117.j731H3cV060169@lots.reanimators.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Mitch Parks , freebsd-stable@freebsd.org Subject: Re: Kernel debugging, 5.4-RELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 02:00:05 -0000 On Tue, 2 Aug 2005, Frank McConnell wrote: > I've been using plain bog-standard /usr/bin/gdb, not out of lack > of knowledge of kgdb but because I also find that kgdb fails with > a segmentation fault after connecting. Ah, OK. That solves part of the problem. > If I'm getting more stuff out of my backtrace, it is likely because I > have this in my kernel config: > > makeoptions DEBUG="-g" > > And likewise, sorry if I come across as being a bit too verbose or > grumpy. Guidance is welcome. > > -Frank McConnell I had that option, but one thing I did not do was a "make clean" before rebuilding with -g. I assumed "make depend" would handle what was necessary to rebuild any files that could use the -g, and I guess I just didn't pay close attention to the build process. How embarassing. gdb now gives a proper backtrace and soon I hope to have some useful data to submit in a PR.