Minor change to wxString pretty-printer for gdb.
Calling string() explicitly isn't necessary, at least not with gdb 7.2, and is actually harmful when using Python 2.5 (which doesn't support UTF-32) with wide strings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f3027fae17
commit
ed4caec714
@ -22,7 +22,7 @@ class wxStringPrinter:
|
|||||||
self.val = val
|
self.val = val
|
||||||
|
|
||||||
def to_string(self):
|
def to_string(self):
|
||||||
return self.val['m_impl']['_M_dataplus']['_M_p'].string()
|
return self.val['m_impl']['_M_dataplus']['_M_p']
|
||||||
|
|
||||||
def display_hint(self):
|
def display_hint(self):
|
||||||
return 'string'
|
return 'string'
|
||||||
|
Loading…
Reference in New Issue
Block a user