#685: Remove line number metadata from PMC generated C files
-------------------------+--------------------------------------------------
Reporter: whiteknight | Owner:
Type: RFC | Status: new
Priority: normal | Milestone:
Component: core | Version: 1.1.0
Severity: medium | Keywords: pmc
Lang: | Patch:
Platform: |
-------------------------+--------------------------------------------------
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?
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/685>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets