OSDN Git Service

debugger: avoid one inferior call in QDir dumper
authorhjk <qtc-committer@nokia.com>
Mon, 1 Nov 2010 10:53:33 +0000 (11:53 +0100)
committerhjk <qtc-committer@nokia.com>
Mon, 1 Nov 2010 10:54:15 +0000 (11:54 +0100)
Reviewed-by: Friedemann Kleint
share/qtcreator/gdbmacros/gdbmacros.py

index b2f2399..54ddbd5 100644 (file)
@@ -233,7 +233,7 @@ def qdump__QDateTime(d, item):
 
 
 def qdump__QDir(d, item):
-    d.putStringValue(call(item.value, "path()"))
+    d.putStringValue(item.value["d_ptr"]["d"].dereference()["path"])
     d.putNumChild(2)
     if d.isExpanded(item):
         with Children(d, 2):