kdb
[Top] [All Lists]

Re: [Kgdb-bugreport] kdb working, but kgdb not? 2.6.35-rc3

To: "Matt W. Benjamin" <matt@xxxxxxxxxxxx>
Subject: Re: [Kgdb-bugreport] kdb working, but kgdb not? 2.6.35-rc3
From: caz yokoyama <cazyokoyama@xxxxxxxxx>
Date: Mon, 28 Jun 2010 08:33:30 -0700
Cc: KGDB Mailing List <kgdb-bugreport@xxxxxxxxxxxxxxxxxxxxx>, kdb@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=OrLcJTMb907wwpsWm2IA+e2ERs2VTaZyiSCndfavN0Y=; b=Zp9mxF0HH2/uTaYGypgqH9VfwXZnwzJUNiVDEsAn4P4PwpYhoWdlLJIY3ObygcKrv9 NjgbtOgeDh3vo6L9K5b/3dNiiB2TM2lktztuwXSesZlALsvngVvW3GLrxTnhG/qLEaAs 15mHPuPiQZQgCxlfhS6yOFqS8J3/F5rG9W6gg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wgO4iLzdFtPVmXIspXUemBOgUiPhN4I+sIIbLYcsRxfDOPrFzZ7+2ueQsPyUv4xBY6 fL6j6danQSfrs2h94V19XkbgVmTSGpJT6X6eeUumqS0sczWaoH2IeBazNL8BnKHz8V4g Wkch5gfWuCRf7Gkffcf3OwdlaD8wNoZr7XTXs=
In-reply-to: <1315301307.5332.1277735201736.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <1324243261.5330.1277735064489.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1315301307.5332.1277735201736.JavaMail.root@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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.

From c8f99189be0bb84ecdb5657346cddc3a20e0d6bf Mon Sep 17 00:00:00 2001

From: caz yokoyama <caz@xxxxxxxxxxxxxxxxxxx>

Date: Fri, 25 Jun 2010 07:45:52 -0700

Subject: [PATCH] Linux kernel does not support several commands. By this modification, break-in to kernel, continue, and quit in gdb work.

---

gdb/remote.c | 8 ++++++++

1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gdb/remote.c b/gdb/remote.c

index 35d517d..d5c31bf 100644

--- a/gdb/remote.c

+++ b/gdb/remote.c

@@ -9778,6 +9778,10 @@ remote_get_trace_status (struct trace_status *ts)

/* FIXME we need to get register block size some other way */

extern int trace_regblock_size;

+ /* Linux kernel does not support qTStatus */

+ if (interrupt_sequence_mode == interrupt_sequence_break_g)

+ return -1;

+

trace_regblock_size = get_remote_arch_state ()->sizeof_g_packet;

putpkt ("qTStatus");

@@ -10285,6 +10289,10 @@ remote_upload_trace_state_variables (struct uploaded_tsv **utsvp)

struct remote_state *rs = get_remote_state ();

char *p;

+ /* Linux kernel does not support qTfV */

+ if (interrupt_sequence_mode == interrupt_sequence_break_g)

+ return -1;

+

/* Ask for a first packet of variable definition. */

putpkt ("qTfV");

getpkt (&rs->buf, &rs->buf_size, 0);

--

1.5.4.3

 


-caz
On Mon, Jun 28, 2010 at 7:26 AM, Matt W. Benjamin <matt@xxxxxxxxxxxx> wrote:
Hi,

I've been trying out the kdb, kgdb integration on 2.6.35-rc3, and so far, kdb is useable but kgdb not.

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 "warning: unrecognized item "timeout" in "qSupported" response."

I'm guessing the problem could be the gdb--I'm using fedora 13's 7.1-26.  Can anyone make suggestions?

Matt

--

Matt Benjamin

The Linux Box
206 South Fifth Ave. Suite 150
Ann Arbor, MI  48104

http://linuxbox.com

tel. 734-761-4689
fax. 734-769-8938
cel. 734-216-5309

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport



--
-caz, yokoyama@xxxxxxxxxxxxxx, caz@xxxxxxxxxxx, 503-804-1028(m)

Attachment: 0001-Linux-kernel-does-not-support-several-commands.-By-t.patch
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>