Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 1999 12:34:14 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Kernel debugging questions 
Message-ID:  <199908191934.MAA07552@dingo.cdrom.com>
In-Reply-To: Your message of "Thu, 19 Aug 1999 12:15:51 EDT." <Pine.GSO.3.96.990819120726.26959A-100000@sol.cs.binghamton.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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




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