Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 1a595394b241504ff370a8d12ebfcea7 > files > 3183

kernel-doc-3.11.10-100.fc18.noarch.rpm

<?xml version="1.0" encoding="ANSI_X3.4-1968" 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=ANSI_X3.4-1968" /><title>Chapter&#160;6.&#160;kgdb and kdb interoperability</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="index.html" title="Using kgdb, kdb and the kernel debugger internals" /><link rel="prev" href="EnableKGDB.html" title="Chapter&#160;5.&#160;Using kgdb / gdb" /><link rel="next" href="ch06s02.html" title="Running kdb commands from gdb" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter&#160;6.&#160;kgdb and kdb interoperability</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="EnableKGDB.html">Prev</a>&#160;</td><th width="60%" align="center">&#160;</th><td width="20%" align="right">&#160;<a accesskey="n" href="ch06s02.html">Next</a></td></tr></table><hr /></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="switchKdbKgdb"></a>Chapter&#160;6.&#160;kgdb and kdb interoperability</h1></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="switchKdbKgdb.html#idm139918330987856">Switching between kdb and kgdb</a></span></dt><dd><dl><dt><span class="sect2"><a href="switchKdbKgdb.html#idm139918330987216">Switching from kgdb to kdb</a></span></dt><dt><span class="sect2"><a href="switchKdbKgdb.html#idm139918330981824">Change from kdb to kgdb</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch06s02.html">Running kdb commands from gdb</a></span></dt></dl></div><p>It is possible to transition between kdb and kgdb dynamically.
  The debug core will remember which you used the last time and
  automatically start in the same mode.</p><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm139918330987856"></a>Switching between kdb and kgdb</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="sect2"><a href="switchKdbKgdb.html#idm139918330987216">Switching from kgdb to kdb</a></span></dt><dt><span class="sect2"><a href="switchKdbKgdb.html#idm139918330981824">Change from kdb to kgdb</a></span></dt></dl></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139918330987216"></a>Switching from kgdb to kdb</h3></div></div></div><p>
  There are two ways to switch from kgdb to kdb: you can use gdb to
  issue a maintenance packet, or you can blindly type the command $3#33.
  Whenever kernel debugger stops in kgdb mode it will print the
  message <code class="constant">KGDB or $3#33 for KDB</code>.  It is important
  to note that you have to type the sequence correctly in one pass.
  You cannot type a backspace or delete because kgdb will interpret
  that as part of the debug stream.
  </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Change from kgdb to kdb by blindly typing:</p><p><code class="constant">$3#33</code></p></li><li class="listitem"><p>Change from kgdb to kdb with gdb</p><p><code class="constant">maintenance packet 3</code></p><p>NOTE: Now you must kill gdb. Typically you press control-z and
  issue the command: kill -9 %</p></li></ol></div><p>
  </p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idm139918330981824"></a>Change from kdb to kgdb</h3></div></div></div><p>There are two ways you can change from kdb to kgdb.  You can
  manually enter kgdb mode by issuing the kgdb command from the kdb
  shell prompt, or you can connect gdb while the kdb shell prompt is
  active.  The kdb shell looks for the typical first commands that gdb
  would issue with the gdb remote protocol and if it sees one of those
  commands it automatically changes into kgdb mode.</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>From kdb issue the command:</p><p><code class="constant">kgdb</code></p><p>Now disconnect your terminal program and connect gdb in its place</p></li><li class="listitem"><p>At the kdb prompt, disconnect the terminal program and connect gdb in its place.</p></li></ol></div></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="EnableKGDB.html">Prev</a>&#160;</td><td width="20%" align="center">&#160;</td><td width="40%" align="right">&#160;<a accesskey="n" href="ch06s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter&#160;5.&#160;Using kgdb / gdb&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Running kdb commands from gdb</td></tr></table></div></body></html>