Add some information about breaking to the debugger from the command
line with : # sysctl -w debug.enter_debugger=ddb PR: docs/32483 Submitted by: archie
This commit is contained in:
parent
f54121bd7f
commit
dd4e35d55c
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=11359
1 changed files with 14 additions and 3 deletions
|
|
@ -330,9 +330,20 @@
|
|||
in debug mode and enter DDB prior to any device probing. Hence you can
|
||||
even debug the device probe/attach functions.</para>
|
||||
|
||||
<para>The second scenario is a hot-key on the keyboard, usually
|
||||
Ctrl-Alt-ESC. For syscons, this can be remapped; some of the
|
||||
distributed maps do this, so watch out. There is an option available
|
||||
<para>The second scenario is to drop to the debugger once the
|
||||
system has booted. There are two simple ways to accomplish
|
||||
this. If you would like to break to the debugger from the
|
||||
command prompt, simply type the command :</para>
|
||||
|
||||
<screen>&prompt.root; sysctl -w debug.enter_debugger=ddb</screen>
|
||||
|
||||
<para>Alternatively, if you are at the system console, you may use
|
||||
a hot-key on the keyboard. The default break-to-debugger
|
||||
sequence is <keycombo action="simul"><keycap>Ctrl</keycap>
|
||||
<keycap>Alt</keycap><keycap>ESC</keycap></keycombo>. For
|
||||
syscons, this sequence can be remapped and some of the
|
||||
distributed maps out there do this, so check to make sure you
|
||||
know the right sequence to use. There is an option available
|
||||
for serial consoles that allows the use of a serial line BREAK on the
|
||||
console line to enter DDB (<literal>options BREAK_TO_DEBUGGER</literal>
|
||||
in the kernel config file). It is not the default since there are a lot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue