gdb remote target of a guest VM fails to continue
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | qemu (Ubuntu) |
Medium
|
Unassigned | ||
Bug Description
[Impact]
Debugging guest VMs fail due to not building package with --enable debug.
[Test Case]
1) run qemu with the -s option
2) install qemu ddeb
3) gdb /usr/bin/
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
Reading symbols from /lib64/
done.
0x000000000052c7b5 in _start () from /lib64/
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint -1.
Cannot access memory at address 0xbd260
Cannot insert breakpoint -6.
Temporarily disabling shared library breakpoints:
breakpoint #-6
[Fix]
Add --enable-debug debian/rules
| Changed in qemu (Ubuntu): | |
| assignee: | nobody → Chris J Arges (arges) |
| importance: | Undecided → High |
| status: | New → In Progress |
| Chris J Arges (arges) wrote : | #1 |
| summary: |
- gdb in a guest VM fails to continue + gdb remote target of a guest VM fails to continue |
| tags: | added: patch |
| Chris J Arges (arges) wrote : | #2 |
| Chris J Arges (arges) wrote : | #3 |
Test packages available here:
https:/
| Chris J Arges (arges) wrote : | #4 |
One thing to note going through the config file. With --enable-debug we no longer use -O2 for CFLAGS.
| Chris J Arges (arges) wrote : | #5 |
Potentially related:
https:/
| Changed in qemu (Ubuntu): | |
| importance: | High → Medium |
| Changed in qemu (Ubuntu): | |
| assignee: | Chris J Arges (arges) → nobody |


I measured bootup times on an idle host by rebooting a VM and logging the same
event in dmesg 15 times. Before it took an average of 9.8934s w/ stdev of 0.32.
After installing the new version it took 9.8159s w/ stdev of 0.34.
In addition before the total size of /usr/bin/ qemu-system- * was 136878083 after
it was 135008515.
So it seems that size of binaries decreases, while enabling more functionality.
In addition, boot times seem comparable but it isn't definitively slower or
faster.