From e2000c69384a998b455e8f4948f189ddfe5a05bd Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 12 Aug 2010 15:14:47 +0200
Subject: [PATCH] debugger: work around limitations on childnumchild in QLocale
 dumper

---
 share/qtcreator/gdbmacros/dumper.py    | 1 +
 share/qtcreator/gdbmacros/gdbmacros.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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()")
-- 
GitLab