Bug 4687

Summary: Odd coloring for Source Window on some files
Product: frysk Reporter: Rick Moseley <rmoseley>
Component: generalAssignee: Rick Moseley <rmoseley>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 1633, 3392    

Description Rick Moseley 2007-06-21 19:30:31 UTC
The coloring for the source window does not appear correct in some source files.
 I saw this while debugging for bz #4462.  While the coloring appeared to be
95%+ correct, there were random instances of mis-marked code.  This indicates we
are interpreting info coming back from the CDTParser incorrectly.

I saw this while trying to debug a "funit-child" process.
Comment 1 Rick Moseley 2007-07-03 19:03:44 UTC
This was a problem with the CDTParser not being able to handle source lines with
macros on them properly. Looking at the source of the parser we imported from
the Eclipse CDT project there are a few places in the code where the handling of
macros have "TODO" comments placed around them.  Further exploration showed
improper information was being passed back from the parser indicating where
variables/functions/etc. were located.

Instead of trying to fix the problems inside the parser(which could take weeks
IMHO), I added a couple of methods to the CDT parser that corrects the problems
of locating the variables/parameters/etc.

Hopefully we can look forward to importing a newer version of the CDT parser
sometime from the Eclipse project.