Re: [Vala] How to debug vala programs in gdb?



* jamie <jamiemcc blueyonder co uk> wrote:
On Sat, 2007-09-01 at 17:37 +0200, Jaap Haitsma wrote:
Hi,

How can you debug vala programs in gdb? I can only debug the resulting
c code of the vala compiler. Is it already possible to debug vala
programs in gdb by stepping through vala sources or is this still on
the roadmap


I think its still on the roadmap but it should not be hard to do - we
only need a mapping of c line numbers to vala lines then a wrapper app
around gdb to perform the step overs

The only thing that needs to be done, is that valac generates #line
entries in the C source code, just like bison does with parser.y:

#line 67 "parser.y"

-- 
 Ed Schouten <ed fxq nl>
 WWW: http://g-rave.nl/

Attachment: pgpDAjy3uA6BT.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]