User forums > Using Code::Blocks

wxString debbuging

(1/1)

spamy:
Hi,

I'm using CB under linux and i try to use it under Win7.
But under Win7, the behavior is not the same, i can't evaluate wxString.

The Win7 "Watches" Window shows :

--- Code: ---Local Variables
    +str
    +static npos=xxxxx
    +m_impl
         +static npos=xxxx
          + _M_dataplus
                  + std allocator
                   . members od std::basic_string
                   . _M_p=0x"an address"
    +m_convertedToChar
 
--- End code ---


Under Linux, i'm able to see the wxString content in _M_dataplus->m_impl->_M_p,
but under with Win7,_M_dataplus->m_impl->_M_p just gives a long ( address ?) without any char and
the evaluation under cursor gives: No symbol "wxStringData" in current context.

For both, the gdb_types.script are the same, and seems to be OK.
My settings are:
CB Versions are SVN 7548 for linux and 10.25 for Win7
For Win7, wxWidget is compiled with MONOLITHIC=1 SHARED=1 UNICODE=1 flags

Both using gcc/gdb and wxWidgets-2.9.3.

Could somebody help me to fix this issue ?

Thanks for your help.

oBFusCATed:
gdb_types.script doesn't support the wxString in wx2.9.
Use the python pretty printers for wx2.9.

spamy:
thanks,
it seems to work fine.

Navigation

[0] Message Index

Go to full version