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>
next in thread | raw e-mail | index | archive | help
------=_NextPart_001_0000_01C23E06.24DDD980 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable 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=3D-g In the /etc/rc.conf: dumpdev=3D"/dev/ad0s1b" =20 dumpdir=3D"/var/crash" =20 savecore_flags=3D"-z" =20 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 fin= d 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://exp= lorer.msn.com ------=_NextPart_001_0000_01C23E06.24DDD980 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable <HTML><BODY STYLE=3D"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=3D"http://www.o= nlamp.com/pub/ct/13">http://www.onlamp.com/pub/ct/13</A></DIV> <DIV> = ; In the kernel conf:</DIV> <DIV> <FONT col= or=3D#000000>options DDB, DDB_UNATTENDED</FONT></DIV> <DIV><FONT color=3D= #000000> makeoptions DEBUG=3D-g</FONT></DIV= > <DIV><FONT color=3D#000000> In the /etc/rc.conf:</FONT></DIV> <DI= V> dumpdev=3D"/dev/ad0s1b"  = ; <BR> &= nbsp; dumpdir=3D"/var/crash" <BR>  = ; savecore_flags=3D"-z"</DIV> <DIV> </DIV> <DIV>&n= bsp; Then, I copy /sys/i386/compile/oyk/kernel.debug /var/crash, and rebo= ot 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 i= n the /var/crash.</I></DIV> <DIV><EM> And I didn't howto debu= g the kernel.</EM></DIV> <P> Thank you!</P> <DIV>Best R= egards<BR>Ouyang Kai</DIV></BODY></HTML><br clear=3Dall><hr>Get more from= the Web. FREE MSN Explorer download : <a href=3D'http://explorer.msn.co= m'>http://explorer.msn.com</a><br></p> ------=_NextPart_001_0000_01C23E06.24DDD980-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE96yBdFXEdDs01Gijn00039b10>
