From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 4 20:46:24 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AD43443B; Mon, 4 Feb 2013 20:46:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8DB28D3F; Mon, 4 Feb 2013 20:46:24 +0000 (UTC) Received: from pakbsde14.localnet (unknown [38.105.238.108]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 0C14CB926; Mon, 4 Feb 2013 15:46:24 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Subject: Re: kgdb modules Date: Mon, 4 Feb 2013 14:58:16 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p22; KDE/4.5.5; amd64; ; ) References: <510F8F33.3030504@icritical.com> <510F9EEF.8080402@FreeBSD.org> In-Reply-To: <510F9EEF.8080402@FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201302041458.16404.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 04 Feb 2013 15:46:24 -0500 (EST) Cc: Matt Burke , Andriy Gapon X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 20:46:24 -0000 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