Update for reality: kgdb not gdb -k.

PR:	75536 and 72925
This commit is contained in:
Tom Rhodes 2005-02-24 04:45:43 +00:00
parent e8438da1f8
commit c235a5efeb
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=23879

View file

@ -144,11 +144,11 @@
</sect1> </sect1>
<sect1 id="kerneldebug-gdb"> <sect1 id="kerneldebug-gdb">
<title>Debugging a Kernel Crash Dump with <command>gdb</command></title> <title>Debugging a Kernel Crash Dump with <command>kgdb</command></title>
<para>Once a dump has been obtained, getting useful information <para>Once a dump has been obtained, getting useful information
out of the dump is relatively easy for simple problems. Before out of the dump is relatively easy for simple problems. Before
launching into the internals of &man.gdb.1; to debug launching into the internals of &man.kgdb.1; to debug
the crash dump, locate the debug version of your kernel the crash dump, locate the debug version of your kernel
(normally called <filename>kernel.debug</filename>) and the path (normally called <filename>kernel.debug</filename>) and the path
to the source files used to build your kernel (normally to the source files used to build your kernel (normally
@ -162,7 +162,7 @@
from the dump, the following steps are required at a minimum:</para> from the dump, the following steps are required at a minimum:</para>
<screen>&prompt.root; <userinput>cd /usr/obj/usr/src/sys/<replaceable>KERNCONF</replaceable></userinput> <screen>&prompt.root; <userinput>cd /usr/obj/usr/src/sys/<replaceable>KERNCONF</replaceable></userinput>
&prompt.root; <userinput>gdb -k /boot/kernel/kernel.debug /var/crash/vmcore.0</userinput></screen> &prompt.root; <userinput>kgdb /boot/kernel/kernel.debug /var/crash/vmcore.0</userinput></screen>
<para>You can debug the crash dump using the kernel sources just like <para>You can debug the crash dump using the kernel sources just like
you can for any other program.</para> you can for any other program.</para>
@ -180,7 +180,7 @@
report, mailing lists, or by being able to commit it!</para> report, mailing lists, or by being able to commit it!</para>
<screen> 1:&prompt.root; <userinput>cd /usr/obj/usr/src/sys/<replaceable>KERNCONF</replaceable></userinput> <screen> 1:&prompt.root; <userinput>cd /usr/obj/usr/src/sys/<replaceable>KERNCONF</replaceable></userinput>
2:&prompt.root; <userinput>gdb -k kernel.debug /var/crash/vmcore.0</userinput> 2:&prompt.root; <userinput>kgdb kernel.debug /var/crash/vmcore.0</userinput>
3:GNU gdb 5.2.1 (FreeBSD) 3:GNU gdb 5.2.1 (FreeBSD)
4:Copyright 2002 Free Software Foundation, Inc. 4:Copyright 2002 Free Software Foundation, Inc.
5:GDB is free software, covered by the GNU General Public License, and you are 5:GDB is free software, covered by the GNU General Public License, and you are