Ticket #685 (closed RFC: invalid)

Opened 6 years ago

Last modified 6 years ago

Remove line number metadata from PMC generated C files

Reported by: whiteknight Owned by:
Priority: normal Milestone:
Component: core Version: 1.1.0
Severity: medium Keywords: pmc
Cc: Language:
Patch status: Platform:

Description

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?

Change History

Changed 6 years ago by whiteknight

  • status changed from new to closed
  • resolution set to invalid

bacek++ alerted me to the existence of the --no-line-directives Configure option, which does what I need.

Note: See TracTickets for help on using tickets.