Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: oBFusCATed on May 14, 2011, 01:01:04 pm

Title: Bug parsing "Instantiated from here" lines in the build log
Post by: oBFusCATed on May 14, 2011, 01:01:04 pm
Here is the problematic line:
Code
/home/obfuscated/projects/codeblocks/dev/debugger2/src/plugins/debuggergdb/debuggergdb_test_backtrace.cpp:255:5:   instantiated from here

The problem is that the line is parsed as 5 instead of 255.
Where and how should this be fixed?
Title: Re: Bug parsing "Instantiated from here" lines in the build log
Post by: MortenMacFly on May 14, 2011, 01:11:02 pm
Where and how should this be fixed?
For testing, "online" in the advanced compiler options (no compilation needed), then adjust the regex in the related compiler's cpp file.
Title: Re: Bug parsing "Instantiated from here" lines in the build log
Post by: oBFusCATed on May 14, 2011, 01:52:24 pm
Should I add new regex or modify an existing one?
Seems adding new one is the only way (my regex-fu is limited).
Title: Re: Bug parsing "Instantiated from here" lines in the build log
Post by: MortenMacFly on May 14, 2011, 01:58:38 pm
Should I add new regex or modify an existing one?
Seems adding new one is the only way (my regex-fu is limited).
Nope, adding a new one would not work, as one error would be handled twice, one time correct and one time incorrect.

You have to modify the one in question and let it support both variants.
Title: Re: Bug parsing "Instantiated from here" lines in the build log
Post by: oBFusCATed on May 14, 2011, 04:03:47 pm
Nope, adding a new one would not work, as one error would be handled twice, one time correct and one time incorrect.
Hm, I think I can add new version which will match correctly only the 255:5: version.

You have to modify the one in question and let it support both variants.
I can't do this, I've tried but failed. Any help here will highly be appreciated.