From owner-freebsd-hackers Thu Aug 19 12:40:33 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id 440A7154C2 for ; Thu, 19 Aug 1999 12:40:23 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id MAA07552; Thu, 19 Aug 1999 12:34:14 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199908191934.MAA07552@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Zhihui Zhang Cc: freebsd-hackers@freebsd.org Subject: Re: Kernel debugging questions In-reply-to: Your message of "Thu, 19 Aug 1999 12:15:51 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 19 Aug 1999 12:34:14 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I am using FreeBSD 4.0 and have two questions on kernel debugging: > > (1) Can I specify /usr/src/sys/compile/MYKERN/kernel.debug as the kernel > to boot from manually without copying that file under /? It seems I can > not do so. I guess the reason is that the /usr is not mounted at that > time. Yes, although it's not particularly simple and will cause applications that use libkvm to become quite confused. For example, if your /usr filesystem is on wd0s1e, you can say load disk0s1e:/src/sys/compile/MYKERN/kernel.debug inside the loader (you may need to say 'unload' first to remove the default kernel). This will leave the kern.bootfile sysctl saying "/src/sys/compile/MYKERN/kernel.debug" and thus any application trying to read the kernel symbol table will fail. You can hack around this by placing a suitable symlink in /. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message