<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Kernel parameter: kgdbcon</title><meta name="generator" content="DocBook XSL Stylesheets V1.72.0" /><link rel="start" href="index.html" title="Using kgdb and the kgdb Internals" /><link rel="up" href="ch03.html" title="Chapter 3. Enable kgdb for debugging" /><link rel="prev" href="ch03s04.html" title="Kernel parameter: kgdboe" /><link rel="next" href="ch04.html" title="Chapter 4. Connecting gdb" /></head><body><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="ch03s04.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Enable kgdb for debugging</th><td width="20%" align="right"> <a accesskey="n" href="ch04.html">Next</a></td></tr></table><hr /></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="kgdbcon"></a>Kernel parameter: kgdbcon</h2></div></div></div><p>
  Kgdb supports using the gdb serial protocol to send console messages
  to the debugger when the debugger is connected and running.  There
  are two ways to activate this feature.
  </p><div class="orderedlist"><ol type="1"><li><p>Activate with the kernel command line option:</p><p><code class="constant">kgdbcon</code></p></li><li><p>Use sysfs before configuring an io driver</p><p>
  <code class="constant">echo 1 &gt; /sys/module/kgdb/parameters/kgdb_use_con</code>
  </p><p>
  NOTE: If you do this after you configure the kgdb I/O driver, the
  setting will not take effect until the next point the I/O is
  reconfigured.
  </p></li></ol></div><p>
  </p><p>
  IMPORTANT NOTE: Using this option with kgdb over the console
  (kgdboc) or kgdb over ethernet (kgdboe) is not supported.
  </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s04.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Kernel parameter: kgdboe </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 4. Connecting gdb</td></tr></table></div></body></html>
