Pages: 1
Author Topic: #line  (22,365 Views)
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Posted on: February 18, 2013, 11:44:55 PM
This is a reminder to myself to do two things when I finally get around to writing that C++ pretty-printer:

1) Place [snip]#line[/snip] directives before each piece of code.
2) Have the pretty-printer ensure that the lines of C++ match up with the original lines of EDL.

This will ensure that error reporting by GCC can be indicated in the correct piece of code.

If anyone is interested in a homework assignment, I am interested to know if the table used by GDB is generated according to the [snip]#line[/snip] directive as well. If it is, this means that breakpoints can be set as easily as passing "break object0_event_<whatever>:<linenum>" to GDB. Not certain that is the case, but a little testing should confirm it.
Pages: 1