[Bug 901944] Re: gdbserver inside qemu does not stop on breakpoints
As mentioned by Horst, hbreak is needed. If you are getting Remote 'g' packet reply is too long, see: https://sourceware.org/bugzilla/show_bug.cgi?id=13984 ** Bug watch added: Sourceware.org Bugzilla #13984 http://sourceware.org/bugzilla/show_bug.cgi?id=13984 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/901944 Title: gdbserver inside qemu does not stop on breakpoints To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/901944/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 901944] Re: gdbserver inside qemu does not stop on breakpoints
I'm seeing the very same problem, please reopen. Ubuntu 12.10 amd64 (Linux 3.5.0-25-generic x86_64), qemu-kvm 1.2.0+noroms-0ubuntu2.12.10.3. Guest is an i386 eCos test kernel (I can attach it if necessary; I guess you can use anything bootable here), started either via qemu-system-i386 -kernel ecos.elf -s -S or via an ISO image with grub2: qemu-system-i386 -cdrom ecos.iso -s -S I'm attaching GDB with: gdb ecos.elf (gdb) target remote localhost:1234 (gdb) b main (gdb) c The breakpoint never hits, although this perfectly works on my 32-bit Debian Squeeze box. If I start qemu-system-i386 with -machine accel=tcg, the breakpoint matches very quickly, kvm halts, and the GDB prompt allows me to inspect the state. If I start qemu-system-i386 with -machine accel=kvm (the default), I observe the aforementioned behaviour. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/901944 Title: gdbserver inside qemu does not stop on breakpoints To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/901944/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 901944] Re: gdbserver inside qemu does not stop on breakpoints
status confirmed ** Changed in: qemu-kvm (Ubuntu) Status: Expired = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/901944 Title: gdbserver inside qemu does not stop on breakpoints To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/901944/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 901944] Re: gdbserver inside qemu does not stop on breakpoints
More details: - It works if I use hbreak (GDB hardware-assisted breakpoints) instead of break for the very first breakpoint. - After this first breakpoint, normal break breakpoints work fine, too. - Accoording to http://chemnitzer.linux-tage.de/2012/vortraege/folien/1061-VirtualDebugging.pdf slide 18 this might be due to GDB not properly dealing with protocol changes. In this case, this is a GDB bug/issue, not a qemu-kvm one. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/901944 Title: gdbserver inside qemu does not stop on breakpoints To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/901944/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs