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 635095 - #line directives are not created when using -g param to valac
#line directives are not created when using -g param to valac
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.11.x
Other Linux
: Immediate normal
: ---
Assigned To: Vala maintainers
Vala maintainers
regression
: 639811 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-11-17 18:19 UTC by Steffen Schaumburg
Modified: 2011-07-19 07:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steffen Schaumburg 2010-11-17 18:19:07 UTC
I run into this with valac 0.11.0-0.11.2 (haven't tried older versions). Summary pretty much covers it really, when I try to compile my program with --save-temps -g then gdb still only gives C line numbers, no vala line numbers. I checked the C files and they don't contain any #line. I also ran "grep -i "#line" wiab" (wiab being my binary) and no hits.
Comment 1 Steffen Schaumburg 2010-11-17 18:19:48 UTC
Oh and the bug has been confirmed by two people in IRC
Comment 2 Steffen Schaumburg 2010-11-22 05:04:04 UTC
I've bisected it and it seems it was this gigantic commit: 7a429688cdf0fd16cc1503a7666681792e309da8 codegen: Use builder API
Comment 3 Jürg Billeter 2011-01-18 19:47:57 UTC
*** Bug 639811 has been marked as a duplicate of this bug. ***
Comment 4 Adam Dingle 2011-03-19 12:06:57 UTC
I see this too, and so as of 0.11.7 when I'm stepping through my Vala program in GDB I'm looking at C, not Vala!  Sure would be nice to have this fixed for 0.12.
Comment 5 Jaremy Creechley 2011-07-02 23:09:21 UTC
Any update on this?
Comment 6 Luca Bruno 2011-07-19 07:52:22 UTC
commit e632b60f6771117308d396739e558c2b2643c33c
Author: Luca Bruno <lucabru@src.gnome.org>
Date:   Tue Jul 19 00:13:13 2011 +0200

    codegen: Add push_line and pop_line for writing line directives
    
    Fixes bug 635095.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.