>
> 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. \\ [EMAIL PROTECTED]
\\ -- Joseph Merrick \\ [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message