]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor change to wxString pretty-printer for gdb.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 May 2012 21:37:13 +0000 (21:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 13 May 2012 21:37:13 +0000 (21:37 +0000)
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

misc/gdb/print.py

index 00670d8549773b4868477ee33ca670693503a587..40084758e3daa5544ee1f65b09c3ad1fcab781cc 100755 (executable)
@@ -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'