After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679293 - Add --debug configure option to set Vala & C debug flags
Add --debug configure option to set Vala & C debug flags
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-07-03 00:52 UTC by Zeeshan Ali
Modified: 2016-03-31 13:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add --debug configure option to set Vala & C debug flags (1.71 KB, patch)
2012-07-03 00:52 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2012-07-03 00:52:56 UTC
Mostly a shameless (I think i wrote this code though) copy from Rygel.
Comment 1 Zeeshan Ali 2012-07-03 00:52:58 UTC
Created attachment 217894 [details] [review]
Add --debug configure option to set Vala & C debug flags
Comment 2 Marc-Andre Lureau 2012-07-03 01:28:43 UTC
Review of attachment 217894 [details] [review]:

::: configure.ac
@@ +102,3 @@
+        enable_debug=no)
+if test "x$enable_debug" = "xyes"; then
+        CFLAGS="$CFLAGS -O0 -g"

Why not ggdb3? assuming we care about gcc only, and best gdb experience
Comment 3 Zeeshan Ali 2012-07-03 02:23:12 UTC
Attachment 217894 [details] pushed as d732b94 - Add --debug configure option to set Vala & C debug flags

Pushed with s/-g/-ggdb3/ change.