News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Bug parsing "Instantiated from here" lines in the build log

Started by oBFusCATed, May 14, 2011, 01:01:04 PM

Previous topic - Next topic

oBFusCATed

Here is the problematic line:

/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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on May 14, 2011, 01:01:04 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Should I add new regex or modify an existing one?
Seems adding new one is the only way (my regex-fu is limited).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: 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).
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Quote from: MortenMacFly on May 14, 2011, 01:58:38 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.

Quote from: MortenMacFly on May 14, 2011, 01:58:38 PM
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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]