User forums > Nightly builds

The 06 January 2009 build (5382) is out.

<< < (12/16) > >>

Loaden:
Please let's CodeCompletion support sort:

--- Code: ---Index: plugins/codecompletion/codecompletion.cpp

===================================================================

--- plugins/codecompletion/codecompletion.cpp (revision 5422)

+++ plugins/codecompletion/codecompletion.cpp (working copy)

@@ -935,6 +935,8 @@

         return -5;
     }
 
+    arr.Sort();
+
     // select tokens
     MultiSelectDlg dlg(Manager::Get()->GetAppWindow(), arr, true);
     if (dlg.ShowModal() == wxID_OK)

--- End code ---

MortenMacFly:

--- Quote from: Loaden on January 29, 2009, 03:24:38 pm ---Please let's CodeCompletion support sort:

--- End quote ---
Don't you worry... we are already testing a patch that will enable way more than "just" sorting... ;-)

hying:
a bug
code:
template <typename X>
int Bugtest(X _x)
{
    return sizeof(_x);          //set breakpoint here
}
int main()
{
    int t_ix = 1;
    cout << Bugtest(t_ix) << endl;
    char t_cx = '0';
    cout << Bugtest(t_cx) << endl;
    return 0;
}
on first break, open zhe disassembly window, can find the asm code like:
00417758   push   ebp
00417759   mov    ebp,esp
0041775B   mov    eax,0x4
00417760   leave
00417761   ret
current eip is 41775b

continue,
on second break, the current eip is 417750, but the disassembly window show the asm code is same as the first,
can't find the current asm code.

my english is pool, sorry

ollydbg:
It seems that there's something wrong in the editor. I have reported in the thread. Some files can't be opened.
http://forums.codeblocks.org/index.php/topic,9986.0.html
Thank you very much.

ollydbg:

--- Quote from: hying on February 01, 2009, 03:47:21 am ---a bug
code:
template <typename X>
int Bugtest(X _x)
{
    return sizeof(_x);          //set breakpoint here
}
int main()
{
    int t_ix = 1;
    cout << Bugtest(t_ix) << endl;
    char t_cx = '0';
    cout << Bugtest(t_cx) << endl;
    return 0;
}
on first break, open zhe disassembly window, can find the asm code like:
00417758   push   ebp
00417759   mov    ebp,esp
0041775B   mov    eax,0x4
00417760   leave
00417761   ret
current eip is 41775b

continue,
on second break, the current eip is 417750, but the disassembly window show the asm code is same as the first,
can't find the current asm code.

my english is pool, sorry

--- End quote ---
I tested it, but there's no problem.

In first break, the disassembly code is like below:

--- Code: ---00417758 push   ebp
00417759 mov    ebp,esp
0041775B mov    eax,0x4
00417760 leave
00417761 ret

--- End code ---

In second break, the disassembly code is like below:

--- Code: ---00417744 push   ebp
00417745 mov    ebp,esp
00417747 sub    esp,0x4
0041774A mov    eax,DWORD PTR [ebp+0x8]
0041774D mov    BYTE PTR [ebp-0x4],al
00417750 mov    eax,0x1
00417755 leave
00417756 ret

--- End code ---

So, it works fine in my computer.  I'm using TDM-mingw.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version