Skip to contentSkip to conversation

qemu gdbstub

Qemu-devel Andi Kleen 2 participants 2 messages Aug 29, 2009 – Aug 31, 2009

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

Hi,

The new qemu gdbstub in recent qemus/kvms is really nice and a big improvement over earlier ones. Thank you.

I'm using qemu-kvm-0.10.6 on the plain Linux 2.6.30 KVM on VT.

One problem I noticed is that I cannot step on another CPU thread than where it stopped.

e.g.

Ctrl-C
(stopping on thread 1)
(gdb) thread 2
(gdb) step
...
I come back to thread 1 after the step

On native gdb with multiple threads that seems to work.

-Andi

#1 lore raw
Quoted 12 lines · Andi Kleen

Hi,

The new qemu gdbstub in recent qemus/kvms is really nice and a big improvement over earlier ones. Thank you.

I'm using qemu-kvm-0.10.6 on the plain Linux 2.6.30 KVM on VT.

One problem I noticed is that I cannot step on another CPU thread than where it stopped.

e.g.

Quoted 8 lines

Ctrl-C
(stopping on thread 1)
(gdb) thread 2
(gdb) step
...
I come back to thread 1 after the step

On native gdb with multiple threads that seems to work.

You need vCont support in the gdbstub, and this feature is now finally merged into 0.11. So qemu-kvm-0.11-rcX should be what you want.

Jan