public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Gdb get stuck when debugging linux kernel
@ 2012-04-03 15:43 Parmenides
  0 siblings, 0 replies; only message in thread
From: Parmenides @ 2012-04-03 15:43 UTC (permalink / raw)
  To: gdb

Hi

I want to debug linux kernel which running in qemu. The target is
connected with the host through it virual serial port and the kernel
runs in the target contains kgdb stub.  The gdb's version is 7.4 and
the linux kernel's version is 3.1. I started qemu with

   qemu -kernel bzImage -initrd image.cpio.gz -append
"kgdboc=ttyS0,115200 kgdbwait" -serial tcp::1234,server

In another console, the gdb was given commands

   (gdb) target remote local:1234
   (gdb) continue
   ^C
   ... ...  can not continue ... ...

Then I pressed Ctrl+C to suspend the target, but got no reply. The gdb
got stuck and lost control to the target. The target's linux was
running normally. It is said that the problem is caused by different
understanding to RSP protocol between gdb and kgdb, but I have no idea
about how to deal with it. Is there any way to resolve it?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-03 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-03 15:43 Gdb get stuck when debugging linux kernel Parmenides

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).