Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2013 14:58:16 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Matt Burke <mattblists@icritical.com>, Andriy Gapon <avg@freebsd.org>
Subject:   Re: kgdb modules
Message-ID:  <201302041458.16404.jhb@freebsd.org>
In-Reply-To: <510F9EEF.8080402@FreeBSD.org>
References:  <510F8F33.3030504@icritical.com> <510F9EEF.8080402@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, February 04, 2013 6:43:43 am Andriy Gapon wrote:
> on 04/02/2013 12:36 Matt Burke said the following:
> > How do I get kgdb to load kernel modules from somewhere other than
> > /boot/kernel?
> > 
> > Googling tells me I need to use asf to create a file, but I haven't managed
> > to figure out how to get kgdb use the output.
> 
> Research in the direction of set sysroot, solib-absolute-prefix,
> solib-search-path.  I would not be surprised if the ancient gdb version on which
> kgdb is based does not support some of these settings.

It supports at least some of those.  You can also load modules manually by
using the add-kld command (give it a full path to an individual module).  You
may need to use 'nosharedlibrary' to unload symbols from the "wrong" module
before add-kld will be useful however.

-- 
John Baldwin



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