From ed4caec714eff47f39ed6fb0e7177ad8488cfab5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 May 2012 21:37:13 +0000 Subject: [PATCH] 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 --- misc/gdb/print.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/gdb/print.py b/misc/gdb/print.py index 00670d8549..40084758e3 100755 --- a/misc/gdb/print.py +++ b/misc/gdb/print.py @@ -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'