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:
Vadim Zeitlin 2012-05-13 21:37:13 +00:00
parent f3027fae17
commit ed4caec714

View File

@ -22,7 +22,7 @@ class wxStringPrinter:
self.val = val
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):
return 'string'