From owner-freebsd-current@FreeBSD.ORG Mon Oct 30 18:28:57 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 89A5916A40F for ; Mon, 30 Oct 2006 18:28:57 +0000 (UTC) (envelope-from devon.odell@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F87E43D5F for ; Mon, 30 Oct 2006 18:28:56 +0000 (GMT) (envelope-from devon.odell@gmail.com) Received: by nf-out-0910.google.com with SMTP id p77so2358857nfc for ; Mon, 30 Oct 2006 10:28:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JSn8Xy5jxywJKxMIC1ROUaSqe4LFJG/p4CHK5cyyVZYuNbghI/h8mqtpADta3QFvmNX9X/c3jkkh28xyTNsaeJ+IqvWOdJMUPfcQ1A40DvBs/UdE0c+Aisy54fpz2Cgu7i56riKgGbX7By0+u+lJW1IKj+c+fnrMbYgPrIz1dY8= Received: by 10.82.106.14 with SMTP id e14mr820773buc; Mon, 30 Oct 2006 10:28:54 -0800 (PST) Received: by 10.82.136.13 with HTTP; Mon, 30 Oct 2006 10:28:54 -0800 (PST) Message-ID: <9ab217670610301028k3fef9a34m27e2c7d9ac3ead80@mail.gmail.com> Date: Mon, 30 Oct 2006 14:28:54 -0400 From: "Devon H. O'Dell" To: "Andriy Gapon" , "Dmitry Pryanishnikov" , "Jeremie Le Hen" , freebsd-current@freebsd.org In-Reply-To: <20060821004825.F9919@mp2.macomnet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> Cc: Subject: Re: no kld in minidumps X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2006 18:28:57 -0000 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 --dho > -- > Maxim Konovalov >