Pages: 1
  Print  
Author Topic: #line  (Read 4641 times)
Offline (Male) Josh @ Dreamland
Posted on: February 18, 2013, 06:44:55 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Pages: 1
  Print