From owner-cvs-src@FreeBSD.ORG Wed Jan 30 17:02:10 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C77216A418; Wed, 30 Jan 2008 17:02:10 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 589CC13C447; Wed, 30 Jan 2008 17:02:10 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id E99DC20AB; Wed, 30 Jan 2008 18:02:01 +0100 (CET) X-Spam-Tests: AWL,DATE_IN_PAST_03_06 X-Spam-Learn: disabled X-Spam-Score: 0.5/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 3E27E20C0; Wed, 30 Jan 2008 18:01:17 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id BE42984545; Wed, 30 Jan 2008 13:55:41 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: John Baldwin References: <200801282140.m0SLeAKC035073@repoman.freebsd.org> Date: Wed, 30 Jan 2008 13:55:41 +0100 In-Reply-To: <200801282140.m0SLeAKC035073@repoman.freebsd.org> (John Baldwin's message of "Mon\, 28 Jan 2008 21\:40\:10 +0000 \(UTC\)") Message-ID: <86ejbzzd4i.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/gnu/usr.bin/gdb/kgdb kgdb.h kld.c trgt.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 17:02:10 -0000 John Baldwin writes: > Log: > Add support for automatically loading symbols for kld's on startup: > - Add a new 'kgdb_auto_load_klds()' routine which is invoked during > startup that walks the list of linker files and tries to find a match= ing > kld on disk for each non-kernel kld. If a kld file is found, then it > is added as if the 'add-kld' command is invoked. One change from > 'add-kld' is that this method attempts to use the 'pathname' from the > linker_file structure first to try to load the file. If that fails > it then looks in the kernel directory followed by the directories in > the module path. John, this is awesome. The issue of how to debug panics in KLDs has been a PITA for so many years... There have been attempts to write gdb macros to automate it, but it's never worked 100% due to limitations in gdb's macro language. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no