Author Topic: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.  (Read 12414 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5242
The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« on: September 19, 2010, 09:20:30 am »
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx2810_gcc441.7z

For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10_gcc441.7z

The 19 September 2010 build is out.
  - Windows :
   http://prdownload.berlios.de/codeblocks/CB_20100919_rev6608_DEBUGGER_BRANCH_win32.7z
  - Linux :
   none

Important changes compared to previous DEBUGGER BRANCH nightly:

* debugger_branch: applied dbg_refactor0016.6.patch:
- fixed bug http://developer.berlios.de/bugs/?func=detailbug&bug_id=15209&group_id=5358
- SyncEditor should work for files without extension (files from STL)
- made warnings in the loggers blue, it was needed for the debugger's debug log in the gdb_mi plugin

* debugger_branch: applied patch 16.7.1 with the following features:
- fix the Native problem from here: http://forums.codeblocks.org/index.php/topic,13272.new.html
- added log message if the debuggee can't be found
- improved the accelerators for the debug menu
- fixed the examine memory parser problem described here: http://forums.codeblocks.org/index.php/topic,13273.new.html
- replaced \\t with \t, because it seems that wxRegEx doesn't support '\\t' by default, wxRE_ADVANCED should be used

* debugger_branch: applied patch 16.8 with the following features:
- added UpdateUI event for the controls used for sending commands to debugger.
- commands send from the normal log ("Debugger") print their result to both logs.
- some cleaning

* all updates that occurred on trunk


Note: Watch parsing prints an error message in the watches window if the parsing fails. If you see this string please report it as a bug.

THIS IS A SPECIAL TEST BUILD OF REFACTORINGS CARRIED OUT ON THE DEBUGGER BRANCH IN OUR SVN.
FOCUS IS ON ENHANCED DEBUGGING USABILITY.

Give your feedback on this version only in this thread, don't mix it with the regular nightly please.

Once we don't have any blockers on this version,we will merge the changes into trunk and it will be part of the regular nightlies.
« Last Edit: September 19, 2010, 09:24:01 am by killerbot »

Offline mushakk

  • Multiple posting newcomer
  • *
  • Posts: 54
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #1 on: September 21, 2010, 02:46:35 pm »
Seems that "Check for externally modified files" don't work :(

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12701
    • Travis build status
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #2 on: September 21, 2010, 04:37:39 pm »
What is this check? Does it work in the normal nightly?
(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!]

Offline mushakk

  • Multiple posting newcomer
  • *
  • Posts: 54
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #3 on: September 21, 2010, 06:02:11 pm »
Quote
What is this check? Does it work in the normal nightly?

This check is in Settings->Environment.

Yes, it works in the normal nightly 6608.

To reproduce the bug simply open a project and then you modify one file with a external editor. CodeBlocks don't refreshes it if it has the file open and don't recompile nothing if CodeBlocks don't have the file opened.

Thanks for your work, I love C::B and this branch!

Offline mushakk

  • Multiple posting newcomer
  • *
  • Posts: 54
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #4 on: September 21, 2010, 06:06:43 pm »
Uhm, I don't understand it. This morning the bug was there, it has been bothering me all morning, but now after I test the normal version it works again.

I am sorry to have bothered you.
 :(

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12701
    • Travis build status
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #5 on: September 21, 2010, 09:42:17 pm »
mushakk: when you have this kind of problems check the modification dates of your files or use touch (unix tool) to fix them
(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!]

Offline mushakk

  • Multiple posting newcomer
  • *
  • Posts: 54
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #6 on: September 23, 2010, 01:17:55 pm »
I was modifying a file with Notepad++ and C::B do not detect the file change. Nor when the file was opened inside C::B, nor when it was not opened (C::B do not recompile it).
I don't think was a solvable problem of dates (touch)

Sometimes I have problems with C::B that I solve closing and reopen it.

Offline MaxGaspa

  • Almost regular
  • **
  • Posts: 128
Bug Report: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #7 on: September 24, 2010, 10:30:01 pm »
Hello devs,

I'm writing to report a bug in the new debugger plugin. Consider the following test case

Code: [Select]

#include <iostream>
#include <string>
#include <wx/wx.h>

int main(int argc, char **argv)
{
   if ( ! ::wxInitialize() ) return -1;

   wxString testString;
   wxString testString2;
   wxString testString3;
   wxString testString4;
   wxString testString5;
   std::string testSTL;

   testString = wxT("AAA     AAA");
   testString2 = wxT("AAA          ");
   testString3 = wxT("AAAA            ");
   testString4 = wxT("            AAAA");
   testString5 = wxT("AAAAAAAAAAAA");
   testSTL = "AAA            ";

   std::cout << testString.mb_str(wxConvUTF8) << std::endl;
   std::cout << testString2.mb_str(wxConvUTF8) << std::endl;
   std::cout << testString3.mb_str(wxConvUTF8) << std::endl;
   std::cout << testString4.mb_str(wxConvUTF8) << std::endl;
   std::cout << testString5.mb_str(wxConvUTF8) << std::endl;
   std::cout << testSTL.c_str() << std::endl;

  return 0;
}



Compile it (Windows XP SP3,MINGW using GCC 4.5.0, latest packages and GDB 7.2) and start a debug session after setting a breakpoint in line 23. Watch all the strings. You can observe some of the wxStrings are shown truncating the repeated character. That's happening if there are more than 9 identical characters repeated.

The debug log said

>>>>>>cb_gdb:
> whatis &testString5
type = wxString *
>>>>>>cb_gdb:
> output /c testString5.m_pchData[0]@((wxStringData*)testString5.m_pchData - 1)->nDataLength
{65 'A' <repeats 12 times>}>>>>>>cb_gdb:

for an incorrect reporting and

> whatis &testString
type = wxString *
>>>>>>cb_gdb:
> output /c testString.m_pchData[0]@((wxStringData*)testString.m_pchData - 1)->nDataLength
{65 'A', 65 'A', 65 'A', 32 ' ', 32 ' ', 32 ' ', 32 ' ', 32 ' ', 65 'A', 65 'A', 65 'A'}>>>>>>cb_gdb:

for a correct one. May be the <repeats 12 times> is the root cause.


The STL string is showing two lines the first with the "AAA" and the second with the ' ' <repeated 12 times>.

I think the expected behavior shuold be just one line with the full string.


Hope this helps

Max
« Last Edit: September 24, 2010, 10:32:25 pm by MaxGaspa »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12701
    • Travis build status
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #8 on: September 24, 2010, 10:51:11 pm »
Confirmed and added to my TODO
(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!]

Offline MaxGaspa

  • Almost regular
  • **
  • Posts: 128
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #9 on: October 27, 2010, 10:08:54 pm »
oBFusCATed ,

Any chance to have this bug fixed?

Thx.

Max

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12701
    • Travis build status
Re: The 19 september 2010 build (6608) DEBUGGER BRANCH version is out.
« Reply #10 on: October 28, 2010, 12:05:05 am »
Yes, I've not done any items on the TODO lately....

See the patch here: http://forums.codeblocks.org/index.php/topic,10908.msg91508.html#msg91508
(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!]