Date: Wed, 7 Aug 2002 11:32:42 +0800 From: "ouyang kai" <oykai@msn.com> To: <current@FreeBSD.org> Subject: how to debug the kernel Message-ID: <OE96yBdFXEdDs01Gijn00039b10@hotmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --] Hi, everybody, I want to debug my kernel based on FreeBSD Current DP-1. I do some steps as the site: http://www.onlamp.com/pub/ct/13 In the kernel conf: options DDB, DDB_UNATTENDED makeoptions DEBUG=-g In the /etc/rc.conf: dumpdev="/dev/ad0s1b" dumpdir="/var/crash" savecore_flags="-z" Then, I copy /sys/i386/compile/oyk/kernel.debug /var/crash, and reboot my box. Now, I debug my kernel, and occur the panic problem. But, I didn't find kernel.0 and vmcore.0 in the /var/crash. And I didn't howto debug the kernel. Thank you! Best Regards Ouyang KaiGet more from the Web. FREE MSN Explorer download : http://explorer.msn.com [-- Attachment #2 --] <HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>Hi, everybody,</DIV> <DIV> I want to debug my kernel based on FreeBSD Current DP-1.</DIV> <DIV> I do some steps as the site: <A href="http://www.onlamp.com/pub/ct/13">http://www.onlamp.com/pub/ct/13</A></DIV> <DIV> In the kernel conf:</DIV> <DIV> <FONT color=#000000>options DDB, DDB_UNATTENDED</FONT></DIV> <DIV><FONT color=#000000> makeoptions DEBUG=-g</FONT></DIV> <DIV><FONT color=#000000> In the /etc/rc.conf:</FONT></DIV> <DIV> dumpdev="/dev/ad0s1b" <BR> dumpdir="/var/crash" <BR> savecore_flags="-z"</DIV> <DIV> </DIV> <DIV> Then, I copy /sys/i386/compile/oyk/kernel.debug /var/crash, and reboot my box.</DIV> <DIV> Now, I debug my kernel, and occur the panic problem. But, I didn't find <I>kernel.0</I> and <I>vmcore.0 in the /var/crash.</I></DIV> <DIV><EM> And I didn't howto debug the kernel.</EM></DIV> <P> Thank you!</P> <DIV>Best Regards<BR>Ouyang Kai</DIV></BODY></HTML><br clear=all><hr>Get more from the Web. FREE MSN Explorer download : <a href='http://explorer.msn.com'>http://explorer.msn.com</a><br></p>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE96yBdFXEdDs01Gijn00039b10>
