FreeBSD Bugzilla – Attachment 126267 Details for
Bug 170013
Remote GDB config section of Developer's Handbook is a bit confusing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
kerneldebug-gdb-doc-update.patch
kerneldebug-gdb-doc-update.patch (text/plain), 2.15 KB, created by
Carl Delsey
on 2012-07-20 01:30:11 UTC
(
hide
)
Description:
kerneldebug-gdb-doc-update.patch
Filename:
MIME Type:
Creator:
Carl Delsey
Created:
2012-07-20 01:30:11 UTC
Size:
2.15 KB
patch
obsolete
>Index: kerneldebug/chapter.sgml >=================================================================== >--- kerneldebug/chapter.sgml (revision 39236) >+++ kerneldebug/chapter.sgml (working copy) >@@ -685,16 +685,22 @@ > simply runs a similar copy of the very same kernel (but stripped of the > debugging information).</para> > >- <para>You should configure the kernel in question with <command>config >- -g</command>, include <option>DDB</option> into the configuration, and >- compile it as usual. This gives a large binary, due to the >- debugging information. Copy this kernel to the target machine, strip >- the debugging symbols off with <command>strip -x</command>, and boot it >- using the <option>-d</option> boot option. Connect the serial line >- of the target machine that has "flags 080" set on its sio device >- to any serial line of the debugging host. >- Now, on the debugging machine, go to the compile directory of the target >- kernel, and start <command>gdb</command>:</para> >+ <para>You should configure the kernel in question with <command>config -g >+ </command> if building the "Traditional" way. If building the "New" way, >+ make sure the line >+ >+ <programlisting>makeoptions DEBUG=-g</programlisting> >+ >+ is in the configuration. In both cases include <option>DDB</option> and >+ <option>GDB</option> into the configuration, and compile it as usual. This >+ gives a large binary, due to the debugging information. Copy this kernel >+ to the target machine, strip the debugging symbols off with <command>strip >+ -x</command>, and boot it using the <option>-d</option> boot option. >+ Connect the serial line of the target machine that has "flags 080" set on >+ its sio device to any serial line of the debugging host. See the >+ &man.sio.4; man page to see how to set the flags on an sio device. Now, on >+ the debugging machine, go to the compile directory of the target kernel, >+ and start <command>gdb</command>:</para> > > <screen>&prompt.user; <userinput>kgdb kernel</userinput> > GDB is free software and you are welcome to distribute copies of it
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 170013
: 126267