Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
New code completion remarks/issues
ollydbg:
I just write a simple test code:
--- Code: ---void zfunction(int abcdefg){
ab| <---
;
};
--- End code ---
Then I debug the CC under CB.
In codecompletion.cpp function int CodeCompletion::CodeComplete(), before line 602, the items was add correctly( which means "abcdefg" was correctly added to the suggestion list wxstring array ).
But finally, there is not suggestion list output... :( I don't know why...)
Edit: line 639 and line 640 of codecompletion.cpp, this function run to an early exit.
--- Code: --- if (items.GetCount() == 0)
return -2;
--- End code ---
[/s]
Edit
It seems the match result size is always "0"...
Also, I always meet the "gdb.exe" crash when debugging(TDM-MinGW + GDB 6.8, "evaluate the express under cursor" was checked. ) I think this problem is caused by the "mouse hovers on a complex statement", then the gdb can't evaluate the statement, so ,it crashes. )
Any more comments? Thanks.
blueshake:
Dear ollydbg:
The function tokens search followed the below steps:
1.serach the function name the line stayed.
2.parse the function arguments and stored tokens in pTempTreepTree ,marked with temp.
3.parse the fucntion body and stored tokens in pTempTreepTree,marked with temp.
I guess we should check whether tokens(e.g. ccccc) is in the pTempTree, and make sure the pTempTree is searched.
should compare with last svn version,I guess it caused by the recent fixed.
blueshake:
I can confirm it work in svn 5852.
see my screen shot.
[attachment deleted by admin]
ollydbg:
--- Quote from: blueshake on October 09, 2009, 07:23:11 am ---Dear ollydbg:
The function tokens search followed the below steps:
1.serach the function name the line stayed.
2.parse the function arguments and stored tokens in pTempTree.
3.parse the fucntion body and stored tokens in pTempTree.
I guess we should check whether tokens(e.g. ccccc) in the pTempTree, and make sure the pTempTree is searched.
should compare with last svn version,I guess it caused by the recent fixed.
--- End quote ---
Thanks, but in which function takes these steps? I'm examining right now.
ollydbg:
--- Quote from: blueshake on October 09, 2009, 07:30:16 am ---I can confirm it work in svn 5852.
see my screen shot.
--- End quote ---
Oh, this is a good catch, I was looking at the changes in nativeparser.cpp.
Now, it seems the bug is in other source files, because the newest nativeparser.cpp is rev 5849.
Wait:
It failed in rev 5852 of my working copy.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version