[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]#line directives in treecc and gcov/gdb
From: |
Rhys Weatherley |
Subject: |
Re: [DotGNU]#line directives in treecc and gcov/gdb |
Date: |
Sun, 26 Jan 2003 08:23:39 +1000 |
User-agent: |
KMail/1.4.3 |
On Saturday 25 January 2003 07:48 pm, James Michael DuPont wrote:
> Hey
> does anyone else have problems with gdb and the #line directives from
> treecc? I am trying to run gcov on the code,
> and it looks like I will have to hack lots of code to get this running:
> none of the gcc tools like .tc files....
I've never had any problems with gdb and #line. I regularly do things like
"break cg_arith.tc:294" and it works just fine. I've never used gcov, so I
can't comment on that. You may want to try copying the *.tc files into the
directory where you are running gcov - it may just be a path issue. Gdb has
ways to set the source path, but I don't know how to do it with gcov.
If you need to turn off line numbers temporarily for testing, then modify
"treecc" to comment out the body of "TreeCCStreamLine". Turning them off
permanently would make it impossible for me to debug the compiler, as there
would be no match-up between the *.tc and *.c lines.
Cheers,
Rhys.