Re: obtaining kernel.debug
christopher floess wrote: > On 1/7/07, Karol Kwiatkowski <[EMAIL PROTECTED]> wrote: >> >> christopher floess wrote: >> > I've obtained a vmcore file, and now I just need kernel.debug. >> > >> > Is there a way to get this file using the new make procedure for >> kernels? >> > Can I just use the 'kernel' file, or is there a difference between >> 'kernel' >> > and 'kernel.debug'? Thanks for any help ~ Chris >> >> I'm also new to this so take it with a grain of salt. >> >> You'll need kernel with debug symbols (kernel.debug). Add this line to >> your kernel config (it is included in 6.2 GENERIC): >> >> makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols >> >> The 'new make procedure' will produce both kernel and kernel.debug files >> in obj/usr/src/sys/YOUR_KERNEL_NAME > > > Sounds good, Karol. Will my current core file work with the recompiled > kernel? Or will I have to generate a new one? I've got no idea, cc'ing @freebsd-questions, someone here may have one. Cheers, Karol -- Karol Kwiatkowski OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc signature.asc Description: OpenPGP digital signature
Re: obtaining kernel.debug
> Yours might be in GENERIC, MYKERNEL, etc. -- the same place where > you built the currently-running kernel. If you're running the > original CD-installed kernel, I suppose the corresponding place > would be GENERIC (but I don't know offhand whether the standard > install includes GENERIC/kernel.debug -- if not, perhaps it should). BTW, the kernel build is not necessarily somewhere under /usr/obj -- mine (6.1) is in /usr/src/sys/i386/compile/GENERIC/kernel.debug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: obtaining kernel.debug
> I'm trying to debug some panics on my system, and the section > in the handbook that goes over kernel debugging points to > /usr/obj/usr/src/sys/KERNEL as the location of kernel.debug. > But I don't have this file there. I only have 'kernel'. Just in case this was not obvious, "KERNEL" there is meta-linguistic. Yours might be in GENERIC, MYKERNEL, etc. -- the same place where you built the currently-running kernel. If you're running the original CD-installed kernel, I suppose the corresponding place would be GENERIC (but I don't know offhand whether the standard install includes GENERIC/kernel.debug -- if not, perhaps it should). > Can I just use the 'kernel' file, or is there a difference > between 'kernel' and 'kernel.debug'? The code and data are the same, but 'kernel.debug' also contains debugging records (symbols, source line references, etc). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
obtaining kernel.debug
I'm trying to debug some panics on my system, and the section in the handbook that goes over kernel debugging points to /usr/obj/usr/src/sys/KERNEL as the location of kernel.debug. But I don't have this file there. I only have 'kernel'. There is another section in the faq, that addresses getting a kernel.debug by using the 'old method' of recompiling the kernel. It's the one that involves using /usr/sbin/config, make depend, make, make install, which I don't even think is covered in the current handbook anymore. Is this section of the faq out of date? (here's the link http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/advanced.html#KERNEL-PANIC-TROUBLESHOOTING ) I've obtained a vmcore file, and now I just need kernel.debug. Is there a way to get this file using the new make procedure for kernels? Can I just use the 'kernel' file, or is there a difference between 'kernel' and 'kernel.debug'? Thanks for any help ~ Chris -- I can hire one half the working class to kill the other half. ~ Jay Gould ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"