diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py
index 861aebcb9c27c6b403aac46515358a739188f6f7..7739536c7639831a2812ef2c7eff6d1429c8a66f 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 804e0e24123fa7b02fcc6548058052bdfc808167..ab6bceaba6034ee2e12050206dd7d505a9bd480b 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()")