Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40095 - [glib2] Please enable debug symbols, fixes pretty printer

Attached to Project: Arch Linux
Opened by Peter Wu (Lekensteyn) - Friday, 25 April 2014, 21:45 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 26 April 2014, 02:13 GMT
Task Type Feature Request
Category Packages: Core
Status Assigned
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

Description:
The current glib2 package does not have debugging symbols enabled. This makes the GDB python pretty printer useless.

Please remove these two lines...
# Our gdb does not ship the required python modules, so remove it
rm -rf "$pkgdir/usr/share/gdb/"

... and enable the debug option. The debug package only costs 10 MiB disk space (2.4 MiB .pkg.tar.xz) but helps greatly in debugging glib2 applications. The "libc" package has a "!strip" option. Would it be much asked to add "debug !strip" (or at least "debug") to the glib2 options?

The attached PKGBUILD shows how to enable it. Without s/options=/options+=/, the debug option gets overwritten.

Some stats for current build, debug+strip, debug+!strip:

current
Name : glib2
Compressed Size: 2086.12 KiB
Installed Size : 12357.00 KiB

debug+strip
Name : glib2
Compressed Size: 2089.44 KiB
Installed Size : 12366.00 KiB
Name : glib2-debug
Compressed Size: 2367.23 KiB
Installed Size : 10287.00 KiB

debug+!strip
Name : glib2
Compressed Size: 4448.23 KiB
Installed Size : 22609.00 KiB


Additional info:
* glib2 2.40.0-1
* gdb 7.7-1
* python 3.4.0-2


Steps to reproduce:
See https://bugzilla.gnome.org/show_bug.cgi?id=728980 for a testcase.
This task depends upon

Loading...