Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!
[debug]> output *str[debug]{<wxStringBase> = {static npos = 4294967295, m_pchData = 0x75225a4 L'/' <repeats 43 times>, "\\n//\\n", '/' <repeats 43 times>}, <No data fields>}>>>>>>cb_gdb:
*str | Parsing GDB output failed for '*str'! + <wxStringBase> | npos | 4294967295
wxString tmp = _T("///////////////////////////////\\n// \\n/////////////////////////");
If you use the GDB pretty printer for wx, it will just print the string content.It is just an workaround of this issue.
class wxStringPrinter: def __init__(self, val): self.val = val def to_string(self): try: return self.val['m_pchData'] except: return self.val['m_impl']['_M_dataplus']['_M_p'] def display_hint(self): return 'string'
Thanks I'll look at it.
class wxStringPrinter: def __init__(self, val): self.val = val def to_string(self): ret = "" wx29 = 0 try: # wx-28 has m_pchData self.val['m_pchData'] except Exception: wx29 = 1 try: if wx29: # return "wx29+ string" dataAsCharPointer = self.val['m_impl']['_M_dataplus']['_M_p'] else: dataAsCharPointer = self.val['m_pchData'] # return "wx28 string" ret = dataAsCharPointer except Exception: # swallow the exception and return empty string pass return ret def display_hint (self): return 'wxString'
Have my fix eradicated the parsing error?For the printers are you sure you've disabled the watch scripts in the debugger settings?