Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 13:55:41 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        John Baldwin <jhb@FreeBSD.org>
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
Message-ID:  <86ejbzzd4i.fsf@ds4.des.no>
In-Reply-To: <200801282140.m0SLeAKC035073@repoman.freebsd.org> (John Baldwin's message of "Mon\, 28 Jan 2008 21\:40\:10 %2B0000 \(UTC\)")
References:  <200801282140.m0SLeAKC035073@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin <jhb@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ejbzzd4i.fsf>