<div>Disregard. I looked back Matt&#39;s symptom. His symptom is not the one I observed. Sorry for bothering you. My sympton is that recednt gdb does not work with kgdb since Jan 16 2010 include gdb-7.1. <br>-caz</div>
<div> </div>
<div class="gmail_quote">On Mon, Jun 28, 2010 at 5:33 PM, caz yokoyama <span dir="ltr">&lt;<a href="mailto:cazyokoyama@gmail.com">cazyokoyama@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>I recognized this problem and have a patch. It was caused by introduction of new commands between gdb and gdbserver which Linux kernel does not support. Here is the patch.</div>
<div><span lang="EN">
<p>From c8f99189be0bb84ecdb5657346cddc3a20e0d6bf Mon Sep 17 00:00:00 2001</p>
<p>From: caz yokoyama &lt;<a href="mailto:caz@calypso.caztech.com" target="_blank">caz@calypso.caztech.com</a>&gt;</p>
<p>Date: Fri, 25 Jun 2010 07:45:52 -0700</p>
<p>Subject: [PATCH] Linux kernel does not support several commands. By this modification, break-in to kernel, continue, and quit in gdb work.</p>
<p>---</p>
<p>gdb/remote.c | 8 ++++++++</p>
<p>1 files changed, 8 insertions(+), 0 deletions(-)</p>
<p>diff --git a/gdb/remote.c b/gdb/remote.c</p>
<p>index 35d517d..d5c31bf 100644</p>
<p>--- a/gdb/remote.c</p>
<p>+++ b/gdb/remote.c</p>
<p>@@ -9778,6 +9778,10 @@ remote_get_trace_status (struct trace_status *ts)</p>
<p>/* FIXME we need to get register block size some other way */</p>
<p>extern int trace_regblock_size;</p>
<p></p>
<p>+ /* Linux kernel does not support qTStatus */</p>
<p>+ if (interrupt_sequence_mode == interrupt_sequence_break_g)</p>
<p>+ return -1;</p>
<p>+</p>
<p>trace_regblock_size = get_remote_arch_state ()-&gt;sizeof_g_packet;</p>
<p></p>
<p>putpkt (&quot;qTStatus&quot;);</p>
<p>@@ -10285,6 +10289,10 @@ remote_upload_trace_state_variables (struct uploaded_tsv **utsvp)</p>
<p>struct remote_state *rs = get_remote_state ();</p>
<p>char *p;</p>
<p></p>
<p>+ /* Linux kernel does not support qTfV */</p>
<p>+ if (interrupt_sequence_mode == interrupt_sequence_break_g)</p>
<p>+ return -1;</p>
<p>+</p>
<p>/* Ask for a first packet of variable definition. */</p>
<p>putpkt (&quot;qTfV&quot;);</p>
<p>getpkt (&amp;rs-&gt;buf, &amp;rs-&gt;buf_size, 0);</p>
<p>-- </p>
<p>1.5.4.3</p>
<p> </p></span><br>-caz<br></div>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Mon, Jun 28, 2010 at 7:26 AM, Matt W. Benjamin <span dir="ltr">&lt;<a href="mailto:matt@linuxbox.com" target="_blank">matt@linuxbox.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>I&#39;ve been trying out the kdb, kgdb integration on 2.6.35-rc3, and so far, kdb is useable but kgdb not.<br>
<br>I have a slightly messy configuration, with virtualbox vm, host pipes, and a tcp pipe connector so that one vm monitors the other.  However, I seem to have no trouble using kdb at 115200.  When I try to use kgdb (and I also rebuilt the kernel with only kgdb enabled), gdb hangs, faults, etc.  The initial reported error is &quot;warning: unrecognized item &quot;timeout&quot; in &quot;qSupported&quot; response.&quot;<br>
<br>I&#39;m guessing the problem could be the gdb--I&#39;m using fedora 13&#39;s 7.1-26.  Can anyone make suggestions?<br><br>Matt<br><br>--<br><br>Matt Benjamin<br><br>The Linux Box<br>206 South Fifth Ave. Suite 150<br>Ann Arbor, MI  48104<br>
<br><a href="http://linuxbox.com/" target="_blank">http://linuxbox.com</a><br><br>tel. 734-761-4689<br>fax. 734-769-8938<br>cel. 734-216-5309<br><br>------------------------------------------------------------------------------<br>
This SF.net email is sponsored by Sprint<br>What will you do first with EVO, the first 4G phone?<br>Visit <a href="http://sprint.com/first" target="_blank">sprint.com/first</a> -- <a href="http://p.sf.net/sfu/sprint-com-first" target="_blank">http://p.sf.net/sfu/sprint-com-first</a><br>
_______________________________________________<br>Kgdb-bugreport mailing list<br><a href="mailto:Kgdb-bugreport@lists.sourceforge.net" target="_blank">Kgdb-bugreport@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport" target="_blank">https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport</a><br>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>-caz, <a href="mailto:yokoyama@member.fsf.org" target="_blank">yokoyama@member.fsf.org</a>, <a href="mailto:caz@caztech.com" target="_blank">caz@caztech.com</a>, 503-804-1028(m)<br>
<br></font></blockquote></div><br><br clear="all"><br>-- <br>-caz, <a href="mailto:yokoyama@member.fsf.org">yokoyama@member.fsf.org</a>, <a href="mailto:caz@caztech.com">caz@caztech.com</a>, 503-804-1028(m)<br><br>