GNOME Bugzilla – Bug 748803
--enable-debug flag to autogen doesnt add gdb debug symbols in gedit-code-assistance
Last modified: 2015-05-04 07:18:51 UTC
Not sure about gnome-code-assistance, but in gedit-code-assistance, currently the vala flags doesn't include the -g flag which enables debugging of .vala files using gdb (or nemiver), although all other c files compiled have the gdb symbols. Adding -g to the vala compiler flags would solve this, or if you think it should not be there, atleast it should be compiled with debug symbols when the --enable-debug flag is passed to autogen (which currently only adds the "--debug" flag to vala compiler
Created attachment 302761 [details] [review] Add vala flag for gdb symbols
I don't understand how this changes things, according to the valac manpage (http://linux.die.net/man/1/valac), --debug is just the long option form of -g, i.e. the two should be equivalent. Am I missing something?
Oh. That's unusual. gdb doesn't seem to be giving backtraces in .vala files for me with --debug but does seem to be giving them with the -g flag. Maybe it's a problem with my vala? Anyway, not a problem for gedit-code-assistance, so this can be marked resolved.
I'm fine with changing it from --debug to -g if that works out.
That would be good
Created attachment 302785 [details] [review] Change vala flag for gdb symbols to -g
Review of attachment 302785 [details] [review]: LGTM
Review of attachment 302761 [details] [review]: Obsolete by other patch.
Attachment 302785 [details] pushed as 20178a7 - Change vala flag for gdb symbols to -g