]> git.saurik.com Git - wxWidgets.git/blobdiff - misc/gdb/print.py
Don't enable dialog navigation inside wxFrame by default.
[wxWidgets.git] / misc / gdb / print.py
index 26186867aafcd19e59c60436a9601fec29fa3599..28d47d62760c2b08830de62b3c3a873fb9003f38 100755 (executable)
@@ -5,7 +5,6 @@
 #               in the future...)
 # Author:       Vadim Zeitlin
 # Created:      2009-01-04
-# RCS-Id:       $Id$
 # Copyright:    (c) 2009 Vadim Zeitlin
 # Licence:      wxWindows licence
 ###############################################################################
@@ -22,7 +21,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'
@@ -36,6 +35,8 @@ class wxDateTimePrinter:
         # expressions directly so we need to convert it to long long first and
         # then cast to int explicitly to be able to use it as a timestamp.
         msec = self.val['m_time'].cast(gdb.lookup_type('long long'))
+        if msec == 0x8000000000000000:
+            return 'NONE'
         sec = int(msec / 1000)
         return datetime.datetime.fromtimestamp(sec).isoformat(' ')