1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Kernel parameter: kgdbcon</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Using kgdb, kdb and the kernel debugger internals"><link rel="up" href="kgdbKernelArgs.html" title="Chapter&#160;3.&#160;Kernel Debugger Boot Arguments"><link rel="prev" href="kgdbwait.html" title="Kernel parameter: kgdbwait"><link rel="next" href="kgdbreboot.html" title="Run time parameter: kgdbreboot"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Kernel parameter: kgdbcon</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="kgdbwait.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;3.&#160;Kernel Debugger Boot Arguments</th><td width="20%" align="right">&#160;<a accesskey="n" href="kgdbreboot.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="kgdbcon"></a>Kernel parameter: kgdbcon</h2></div></div></div><p> The kgdbcon feature allows you to see printk() messages
2   inside gdb while gdb is connected to the kernel.  Kdb does not make
3    use of the kgdbcon feature.
4   </p><p>Kgdb supports using the gdb serial protocol to send console
5   messages to the debugger when the debugger is connected and running.
6   There are two ways to activate this feature.
7   </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Activate with the kernel command line option:</p><p><code class="constant">kgdbcon</code></p></li><li class="listitem"><p>Use sysfs before configuring an I/O driver</p><p>
8   <code class="constant">echo 1 &gt; /sys/module/kgdb/parameters/kgdb_use_con</code>
9   </p><p>
10   NOTE: If you do this after you configure the kgdb I/O driver, the
11   setting will not take effect until the next point the I/O is
12   reconfigured.
13   </p></li></ol></div><p>
14  </p><p>IMPORTANT NOTE: You cannot use kgdboc + kgdbcon on a tty that is an
15   active system console.  An example of incorrect usage is <code class="constant">console=ttyS0,115200 kgdboc=ttyS0 kgdbcon</code>
16   </p><p>It is possible to use this option with kgdboc on a tty that is not a system console.
17   </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="kgdbwait.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="kgdbKernelArgs.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="kgdbreboot.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Kernel parameter: kgdbwait&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Run time parameter: kgdbreboot</td></tr></table></div></body></html>
18