Skip site navigation (1)Skip section navigation (2)
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>&nbsp; I want to debug my kernel based on FreeBSD Current DP-1.</DIV> <DIV>&nbsp; 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>&nbsp; In the kernel conf:</DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#000000>options DDB, DDB_UNATTENDED</FONT></DIV> <DIV><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; makeoptions	DEBUG=-g</FONT></DIV> <DIV><FONT color=#000000>&nbsp; In the /etc/rc.conf:</FONT></DIV> <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dumpdev="/dev/ad0s1b"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dumpdir="/var/crash"&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;savecore_flags="-z"</DIV> <DIV>&nbsp; </DIV> <DIV>&nbsp; Then, I copy /sys/i386/compile/oyk/kernel.debug /var/crash, and reboot my box.</DIV> <DIV>&nbsp;&nbsp; Now, I debug my kernel, and occur the panic problem. But, I didn't find&nbsp; <I>kernel.0</I> and <I>vmcore.0 in the /var/crash.</I></DIV> <DIV><EM>&nbsp;&nbsp; And I didn't howto debug the kernel.</EM></DIV> <P>&nbsp;&nbsp;&nbsp; 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>