gdb remote target of a guest VM fails to continue

Bug #1444057 reported by Chris J Arges
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
In Progress
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/qemu-system-x86_64
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.21.so...done.
done.
0x000000000052c7b5 in _start () from /lib64/ld-linux-x86-64.so.2
(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

Tags: patch
Chris J Arges (arges)
Changed in qemu (Ubuntu):
assignee: nobody → Chris J Arges (arges)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Chris J Arges (arges) wrote :
Chris J Arges (arges)
summary: - gdb in a guest VM fails to continue
+ gdb remote target of a guest VM fails to continue
tags: added: patch
Revision history for this message
Chris J Arges (arges) wrote :

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.

Revision history for this message
Chris J Arges (arges) wrote :
Revision history for this message
Chris J Arges (arges) wrote :

One thing to note going through the config file. With --enable-debug we no longer use -O2 for CFLAGS.

Revision history for this message
Chris J Arges (arges) wrote :
Chris J Arges (arges)
Changed in qemu (Ubuntu):
importance: High → Medium
Chris J Arges (arges)
Changed in qemu (Ubuntu):
assignee: Chris J Arges (arges) → nobody
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.