gdbserver inside qemu does not stop on breakpoints
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
When debugging a kernel, gdb can connect to the remote target running in the qemu but the server does not stop execution on breakpoints set before. This also applies to kvm.
Also, looking at the stack trace that I see when I manually stop execution, gdbserver seems to be very confused about where the current execution frame is: no matter what is happening in the VM, gdbserver reports the same (somewhat irrelevant) stack trace.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: qemu (not installed)
ProcVersionSign
Uname: Linux 3.0.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Dec 8 17:33:28 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110921.2)
KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit code 1: UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
MachineType: Acer Aspire 3820
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: qemu-kvm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/04/2010
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: V1.13
dmi.board.
dmi.board.name: Aspire 3820
dmi.board.vendor: Acer
dmi.board.version: V1.13
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: Aspire 3820
dmi.product.
dmi.sys.vendor: Acer
Thanks for reporting this bug.
Could you show us exactly how to reproduce your failure and what to look for? I see you are on oneiric. We have somewhat recently, successfully, used gdb remotely on oneiric, but it was with very early boot which may affect this. Could you tell us which release+kernel were running in the guest?