Ticket #685 (closed RFC: invalid)
Remove line number metadata from PMC generated C files
|Reported by:||whiteknight||Owned by:|
When a C file is generated from a .PMC file, lots and lots of #line directives get added. All these various directives, some of which point to various Perl tools and libraries, serve no particular purpose and make debugging of PMC-related issues much harder then it should be.
While debugging, the debugger will be tracing through the generated C file but will be showing the user random code snippets from various other files. The only way to get around this is to manually edit the C file to remove these directives and then rebuild. This is a lot of extra effort, and in fact some of the problems with this method are preventing me from debugging several PMC-related tickets that otherwise might be easy to resolve.
I suggest we remove the vast majority of these directives. If we absolutely need to keep track of the utilities that helps to generate the code we can put file name and line number metadata in comments. Opinions?