User forums > Nightly builds
The 26 June 2011 build (7257) is out.
Agetian:
--- Quote from: ollydbg on June 27, 2011, 02:52:44 pm ---Hi, thanks for the report, I can confirm this bug.
I'll check it.
which version did you remember it works OK?
--- End quote ---
It looks like the May 14 build (rev 7143) from here works: http://forums.codeblocks.org/index.php/topic,14689.0.html
I tried the earlier June build but it didn't function correctly for me already. Hope this helps! :)
- Agetian
ollydbg:
so, the bug should be introduced from: rev 7143 to rev 7255.
So, need to do a binary search :D
ollydbg:
after debugging for about two hours, I found that the bug is related to the parserthread. here is the screenshot:
see the image above, the "Ancestors" is empty, this is wrong.
ollydbg:
Ok, one hour more, I find the bug:
--- Quote ---mortenmacfly 2011-5-22 23:25:37
* CC: renamed "up-front" into "priority" for better understanding
* CC: massively updated testing tool to allow to parse into includes
- CC: code-cleanup
--- End quote ---
Then look at the code snippet:
--- Code: ---void TokensTree::RecalcInheritanceChain(Token* token)
{
if (!token)
return;
if (!(token->m_TokenKind & (tkClass | tkTypedef | tkEnum | tkNamespace)))
return;
if (token->m_AncestorsString.IsEmpty())
return;
token->m_DirectAncestors.clear();
token->m_Ancestors.clear();
TRACE(_T("RecalcInheritanceChain() : Token %s, Ancestors %s"), token->m_Name.wx_str(),
token->m_AncestorsString.wx_str());
// TODO (MortenMacFly#5#): Can we safely ignore local tokens here?
// if (!token->m_IsLocal) // global symbols are linked once
// {
TRACE(_T("RecalcInheritanceChain() : Removing ancestor string from %s"), token->m_Name.wx_str());
token->m_AncestorsString.Clear();
// }
wxStringTokenizer tkz(token->m_AncestorsString, _T(","));
--- End code ---
You have clear the string before tokenize it.
ahui886:
great job ,thanks
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version