GDBStub Bug: Can't stop at start_kernel when debugging linux kernel

Bug #570574 reported by rockwill
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

version: qemu-0.12.3
my environment: arm-linux-gdb + qemu-system-arm + arm926 linux kernel
my operation:
qemu-system-arm -kernel zImage -initrd cramfs.arm.rootfs -s -S
arm-linux-gdb vmlinux
>target remote TCP::1234
>b start_kernel
>c

then qemu start and free run, not stop.
when I pause gdb, qemu stop at rest_init() called by start_kernel()

But if I use qemu-0.11.1 instead of 0.12.3, stopping at start_kernel is all right, and debug action seems allright too,

Revision history for this message
rockwill (rockwill) wrote :

what are the differences between version 0.11.1 and 0.12.3 about gdbstub?
Is it a bug in 0.12.3?
Should I configure some option or something for Qemu?
Thank you!

Revision history for this message
Prudhvi Surapaneni (prudhvikrishna) wrote :

This problem also exists on qemu-kvm-0.13.0 and qemu-kvm-50 ( dev-builds )

Revision history for this message
Peter Maydell (pmaydell) wrote :

This works for me with QEMU 1.1 and GDB 7.4: gdb successfully stops at the start_kernel breakpoint. So I'm going to close it as 'fix released' on the assumption that we fixed the bug at some point between QEMU 0.12 and 1.1...

Changed in qemu:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.