qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Failed to use gdb with qemu 15.1 (with and without kvm support)
@ 2012-01-22 14:20 Francis Moreau
  2012-01-22 17:11 ` Michael Tokarev
  2012-01-22 18:49 ` Jan Kiszka
  0 siblings, 2 replies; 14+ messages in thread
From: Francis Moreau @ 2012-01-22 14:20 UTC (permalink / raw)
  To: qemu-devel

Hello,

I'm trying to debug a 64 bits kernel (3.2) using qemu (with and
without KVM support). The host is also 64 bits. Version of gdb I'm
using is 7.1.

To do that I simply start qemu like the following:

 $ qemu-system-x86_64 -kernel bzImage -append "root=/dev/sda1
console=ttyS0 3" -serial stdio -S -s

and in another term, I start gdb like this:

 $ gdb vmlinux
 $ target remote locahost:1234
 $ b prepare_namespace
 $ continue
 Continuing.
 Remote 'g' packet reply is too long: af75919effffffff0.............

So it fails when gdb stops on the breakpoint with the above message.

If I try to dump the backtrace I got:

 $ bt
 Target is executing.
 $ info thread
 * 1 Thread 1 (CPU#0 [running])  (running)

But the VM seems to be stopped because if I'm asking the status to qemu:

 $ info status
 VM status: paused

I also tried qemu with KVM support but I get one more problem: gdb is
ignoring my breakpoint.

Could anybody help me to make gdb work ?

Thanks.
-- 
Francis

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-01-23  7:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-22 14:20 [Qemu-devel] Failed to use gdb with qemu 15.1 (with and without kvm support) Francis Moreau
2012-01-22 17:11 ` Michael Tokarev
2012-01-22 19:11   ` Francis Moreau
2012-01-22 19:36     ` Michael Tokarev
2012-01-22 18:49 ` Jan Kiszka
2012-01-22 19:16   ` Max Filippov
2012-01-22 19:21     ` Jan Kiszka
2012-01-22 19:58       ` Francis Moreau
2012-01-22 21:15         ` Jan Kiszka
2012-01-23  7:55           ` Francis Moreau
2012-01-22 19:29     ` Francis Moreau
2012-01-22 19:25   ` Francis Moreau
2012-01-22 19:28     ` Jan Kiszka
2012-01-22 19:57       ` Francis Moreau

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 NNTP newsgroup(s).