From owner-freebsd-current@FreeBSD.ORG Tue Oct 31 17:18:58 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82C9316A517 for ; Tue, 31 Oct 2006 17:18:58 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BAF443E73 for ; Tue, 31 Oct 2006 17:17:48 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (t0tk8wo2jp3d4oym@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k9VHHYiv071137; Tue, 31 Oct 2006 09:17:34 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k9VHHSNe071135; Tue, 31 Oct 2006 09:17:28 -0800 (PST) (envelope-from jmg) Date: Tue, 31 Oct 2006 09:17:28 -0800 From: John-Mark Gurney To: "Devon H. O'Dell" Message-ID: <20061031171728.GG25511@funkthat.com> Mail-Followup-To: "Devon H. O'Dell" , Andriy Gapon , Dmitry Pryanishnikov , Jeremie Le Hen , freebsd-current@freebsd.org References: <1155864187.00584864.1155853201@10.7.7.3> <1155882183.00584920.1155870001@10.7.7.3> <44E5C008.9010008@icyb.net.ua> <20060818204915.S42981@atlantis.atlantis.dp.ua> <44E5FFF3.9040908@icyb.net.ua> <20060821004825.F9919@mp2.macomnet.net> <9ab217670610301028k3fef9a34m27e2c7d9ac3ead80@mail.gmail.com> <20061031002420.GF25511@funkthat.com> <9ab217670610301728x42d34410rd7a7e22af311b9f0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ab217670610301728x42d34410rd7a7e22af311b9f0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: Dmitry Pryanishnikov , freebsd-current@freebsd.org, Jeremie Le Hen , Andriy Gapon Subject: Re: no kld in minidumps X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2006 17:18:58 -0000 Devon H. O'Dell wrote this message on Mon, Oct 30, 2006 at 20:28 -0500: > 2006/10/30, John-Mark Gurney : > >Devon H. O'Dell wrote this message on Mon, Oct 30, 2006 at 14:28 -0400: > >> 2006/8/20, Maxim Konovalov : > >> >On Fri, 18 Aug 2006, 20:59+0300, Andriy Gapon wrote: > >> > > >> >> on 18/08/2006 20:50 Dmitry Pryanishnikov said the following: > >> >> > Hello! > >> >> > > >> >> > On Fri, 18 Aug 2006, Andriy Gapon wrote: > >> >> >> BTW, has anyone contemplated or even done this - some sort of a > >script > >> >> >> to automatically add all modules that were loaded at a time of > >crash ? > >> >> > > >> >> > Hmm, isn't this the task for asf(8). If not, what is asf(8) for? > >> >> > >> >> This is a very nice command, thank you! But it does not seem to be > >> >> directly applicable to postmortem situation i.e. crash dump > >> >> debugging. Or maybe it will be easier to teach kldstat to work with > >> >> dumps/images in addition to what it does now ? > >> > > >> >There is some support in /usr/src/tools/debugscripts/ but I didn't try > >> >it recently. To make it work you need to to do smth like that: > >> > > >> >cd /usr/obj/usr/src/sys/GENERIC/ && make gdbinit > >> > >> >From what I could tell, these were for remote debugging. I've written > >> a shellscript that wraps calling gdb -k (since we're using 4.x at the > >> shop). I'm not quite sure how to translate it into kgdb-feasible stuff > >> since kgdb doesn't have -x or -batch. If anybody would like to give me > >> pointers, I'd be glad to wrap it for either. > >> > >> It's available at http://databits.net/~dho/load_syms.txt > > > >You do know about: > >http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/debugscripts/ > > > >If you want to write up an entry for the README, I'll add it to the > >collection.. > > Yeah, it was my impression that these only worked with remote > debugging (seeing the comments around the relevant code). I'll play > around with it a little more and see what it's all about and submit > something for the README when I figure out how to use it. Ahh, I just reread the README, and can see how it is confusing.. There are two sets of scripts in the directory, the first one gives the example of remote debugging, and the second is different, though there shouldn't be any difference between remote debugging and debugging cores for getting kld symbol locations...... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."