aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2010-08-12 15:14:47 +0200
committerhjk <qtc-committer@nokia.com>2010-08-12 15:14:47 +0200
commite2000c69384a998b455e8f4948f189ddfe5a05bd (patch)
tree9779658ff5399fa0ac712cbae25ff6d44e53da9b
parentc84d8801a17d37a1f4eebf873593828c9c235f41 (diff)
debugger: work around limitations on childnumchild in QLocale dumper
-rw-r--r--share/qtcreator/gdbmacros/dumper.py1
-rw-r--r--share/qtcreator/gdbmacros/gdbmacros.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py
index 861aebcb9c2..7739536c763 100644
--- a/share/qtcreator/gdbmacros/dumper.py
+++ b/share/qtcreator/gdbmacros/dumper.py
@@ -257,6 +257,7 @@ class SubItem:
class Children:
def __init__(self, d, numChild = 1, childType = None, childNumChild = None):
+ # Note: childNumChild == 0 does not work.
self.d = d
self.numChild = numChild
self.childType = childType
diff --git a/share/qtcreator/gdbmacros/gdbmacros.py b/share/qtcreator/gdbmacros/gdbmacros.py
index 804e0e24123..ab6bceaba60 100644
--- a/share/qtcreator/gdbmacros/gdbmacros.py
+++ b/share/qtcreator/gdbmacros/gdbmacros.py
@@ -485,7 +485,7 @@ def qdump__QLocale(d, item):
d.putStringValue(call(item.value, "name()"))
d.putNumChild(8)
if d.isExpanded(item):
- with Children(d, 1, lookupType(d.ns + "QChar"), 0):
+ with Children(d, 1, lookupType(d.ns + "QChar")):
d.putCallItem("country", item, "country()")
d.putCallItem("language", item, "language()")
d.putCallItem("measurementSystem", item, "measurementSystem()")