User forums > Nightly builds

The 06 March 2011 build (7040) DEBUGGER BRANCH version is out.

<< < (3/7) > >>

Borr:
I have a Unicode build wxWidgets 2.8.10, gdb-7.2.50.20101213 with python, MinGW 4.4.1, OS: WinXP SP3
system cp1251; C::B UTF-8; console cp866.

(gdb) show charset
The host character set is "auto; currently CP1251".
The target character set is "auto; currently CP1251".
The target wide character set is "auto; currently UTF-16".

My problem is that I can debug wxString (not English). In the debug window I can see is not readable symbols. With 7017 everything is works.

oBFusCATed:
As I've said in the other thread, what is the encoding of your string? The encoding of C::B is Utf8/16 (not sure how it is on windows, thought).

Also what happens, when you debug this with pure command line gdb?

Borr:

--- Quote ---As I've said in the other thread, what is the encoding of your string?

--- End quote ---

C::B encode UTF-8

From command line all works fine. With the same debugger gdb-7.2.50, svn 7017 works fine.

oBFusCATed:
It seems you're not understanding what I'm writing you, but it is OK.
Can you paste (using code tags) the debugger's debug log from both versions?

Borr:

--- Quote ---It seems you're not understanding what I'm writing you, but it is OK.

--- End quote ---

Quite possibly. I do not speak English

svn 7017

--- Code: ---PATH=.;D:\wxMSW-2.8.10\lib\gcc_dll;C:\MinGW_441\bin;C:\FkClnt1\USER;C:\FkClnt1\SYSTEM;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;F:\Borland\CBUILD~1\Bin;F:\Borland\CBUILD~1\Projects\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\IVT Corporation\BlueSoleil\Mobile;D:\Qt\4.5.2\qt\bin;C:\Program Files\Cppcheck\;C:\Program Files\Calibre2\;D:\Мои документы\Borland Studio Projects\Bpl;D:\wxMSW-2.8.10\lib\gcc_dll;D:\Project\FB205_emb;D:\Qt\4.5.2\qt\bin;C:\MinGW_441\mingw32\bin
Command-line: C:\MinGW_441\bin\gdb.exe -nx -fullname  -quiet -args bin/Debug/DebugTest.exe
Working dir : D:\Proba\DebugTest\
> set prompt >>>>>>cb_gdb:
Reading symbols from D:\Proba\DebugTest/bin/Debug/DebugTest.exe...
done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source C:\Program Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory D:/Proba/DebugTest/
>>>>>>cb_gdb:
> break "D:/Proba/DebugTest/DebugTestMain.cpp:84"
Breakpoint 2 at 0x402019: file D:\Proba\DebugTest\DebugTestMain.cpp, line 84. (2 locations)
>>>>>>cb_gdb:
> run
gdb: windows_init_thread_list
[New Thread 3612.0xbf0]
LOAD_DLL_DEBUG_EVENT)
Breakpoint 2, DebugTestDialog::DebugTestDialog (this=0x22fb14, parent=0x0, id=-1) at D:\Proba\DebugTest\DebugTestMain.cpp:84
D:\Proba\DebugTest\DebugTestMain.cpp:84:3282:beg:0x402cfd
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> info locals
StaticText1Font = {
  <wxFontBase> = {
    <wxGDIObject> = {
      <wxObject> = {
        _vptr.wxObject = 0x673f1bc8,
        static ms_classInfo = {
          m_className = 0x673024a6 L"wxObject",
          m_objectSize = 8
,
          m_objectConstructor = 0,
          m_baseInfo1 = 0x0,
          m_baseInfo2 = 0x0,
          static sm_first = 0x673f6050,
          m_next = 0x673f9eb0,
          static sm_classTable = 0x5329a8
        },
        m_refData = 0xb58e58
      },
      members of wxGDIObject:
      static ms_classInfo = {
        m_className = 0x67342b14 L"wxGDIObject",
        m_objectSize = 8,
        m_objectConstructor = 0x66f0544a <wxGDIObject::wxCreateObject()>,
        m_baseInfo1 = 0x673f9e30,
        m_baseInfo2 = 0x0,
        static sm_first = 0x673f6050,
        m_next = 0x6741f820,
        static sm_classTable = 0x5329a8
      }
    },
    members of wxFontBase:
    static ms_encodingDefault = wxFONTENCODING_SYSTEM
  },
  members of wxFont:
  static ms_classInfo = {
    m_className = 0x6731b040 L"wxFont",
    m_objectSize = 8,
    m_objectConstructor = 0x66e3780a <wxFont::wxCreateObject()>,
    m_baseInfo1 = 0x6741f6c0,
    m_baseInfo2 = 0x0,
    static sm_first = 0x673f6050,
    m_next = 0x673fb1b8,
    static sm_classTable = 0x5329a8
  }
}
test = {
  <wxStringBase> = {
    static npos = 4294967295,
    m_pchData = 0x530000 L"\310\000"
  }, <No data fields>}
i = 2498315
>>>>>>cb_gdb:
> info args
this = 0x22fb14
parent = 0x0
id = -1
>>>>>>cb_gdb:
> next
D:\Proba\DebugTest\DebugTestMain.cpp:85:3319:beg:0x402d10
>>>>>>cb_gdb:
> info locals
StaticText1Font = {
  <wxFontBase> = {
    <wxGDIObject> = {
      <wxObject> = {
        _vptr.wxObject = 0x673f1bc8,
        static ms_classInfo = {
          m_className = 0x673024a6 L"wxObject",
          m_objectSize = 8,
          m_objectConstructor = 0,
          m_baseInfo1 = 0x0,
          m_baseInfo2 = 0x0,
          static sm_first = 0x673f6050,
          m_next = 0x673f9eb0,
          static sm_classTable = 0x5329a8
        },
        m_refData = 0xb58e58
      },
      members of wxGDIObject:
      static ms_classInfo = {
        m_className = 0x67342b14 L"wxGDIObject",
        m_objectSize = 8,
        m_objectConstructor = 0x66f0544a <wxGDIObject::wxCreateObject()>,
        m_baseInfo1 = 0x673f9e30,
        m_baseInfo2 = 0x0,
        static sm_first = 0x673f6050,
        m_next = 0x6741f820,
        static sm_classTable = 0x5329a8
      }
    },
    members of wxFontBase:
    static ms_encodingDefault = wxFONTENCODING_SYSTEM
  },
  members of wxFont:
  static ms_classInfo = {
    m_className = 0x6731b040 L"wxFont",
    m_objectSize = 8,
    m_objectConstructor = 0x66e3780a <wxFont::wxCreateObject()>,
    m_baseInfo1 = 0x6741f6c0,
    m_baseInfo2 = 0x0,
    static sm_first = 0x673f6050,
    m_next = 0x673fb1b8,
    static sm_classTable = 0x5329a8
  }
}
test = {
  <wxStringBase> = {
    static npos = 4294967295,
    m_pchData = 0xb580bc L"Проба"
  }, <No data fields>}
i = 2498315
>>>>>>cb_gdb:
> info args
this = 0x22fb14
parent = 0x0
id = -1
>>>>>>cb_gdb:

--- End code ---

svn 7040_debug

--- Code: ---PATH=.;D:\wxMSW-2.8.10\lib\gcc_dll;C:\MinGW_441\bin;C:\FkClnt1\USER;C:\FkClnt1\SYSTEM;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\;F:\Borland\CBUILD~1\Bin;F:\Borland\CBUILD~1\Projects\Bpl;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\IVT Corporation\BlueSoleil\Mobile;D:\Qt\4.5.2\qt\bin;C:\Program Files\Cppcheck\;C:\Program Files\Calibre2\;D:\Мои документы\Borland Studio Projects\Bpl;D:\wxMSW-2.8.10\lib\gcc_dll;D:\Project\FB205_emb;D:\Qt\4.5.2\qt\bin;C:\MinGW_441\mingw32\bin
Command-line: C:\MinGW_441\bin\gdb.exe -nx -fullname  -quiet -args bin/Debug/DebugTest.exe
Working dir : D:\Proba\DebugTest\
> set prompt >>>>>>cb_gdb:
Reading symbols from D:\Proba\DebugTest/bin/Debug/DebugTest.exe...done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set print elements -1
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source C:\Program Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory D:/Proba/DebugTest/
>>>>>>cb_gdb:
> break "D:/Proba/DebugTest/DebugTestMain.cpp:84"
Breakpoint 2 at 0x402019: file D:\Proba\DebugTest\DebugTestMain.cpp, line 84. (2 locations)
>>>>>>cb_gdb:
> run
gdb: windows_init_thread_list
[New Thread 1044.0xdd8]
Breakpoint 2, DebugTestDialog::DebugTestDialog (this=0x22fb14, parent=0x0, id=-1) at D:\Proba\DebugTest\DebugTestMain.cpp:84
D:\Proba\DebugTest\DebugTestMain.cpp:84:3282:beg:0x402cfd
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> whatis &test
type = wxString *
>>>>>>cb_gdb:
> output /c test.m_pchData[0]@((wxStringData*)test.m_pchData - 1)->nDataLength
Cannot access memory at address 0x52fff8
>>>>>>cb_gdb:
> next
D:\Proba\DebugTest\DebugTestMain.cpp:85:3319:beg:0x402d10
>>>>>>cb_gdb:
> whatis &test
type = wxString *
>>>>>>cb_gdb:
> output /c test.m_pchData[0]@((wxStringData*)test.m_pchData - 1)->nDataLength
{31 '\037', 64 '@', 62 '>', 49 '1', 48 '0'}>>>>>>cb_gdb:

--- End code ---

And one more thing: If you close the C::B with a running debugger C::B closes with an error (only svn 7017)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version