Debugger: Fix display of std::array<some_struct>

Change-Id: Ib2aa41d6a059246e15d1f42831bdec96c235161e
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-01-06 17:35:15 +01:00
parent 85f1a0310c
commit 56691bcd60
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1187,7 +1187,7 @@ class Dumper(DumperBase):
def putArrayData(self, type, base, n,
childNumChild = None, maxNumChild = 10000):
if not self.tryPutArrayContents(type, base, n):
base = base.cast(type.pointer())
base = self.createPointerValue(base, type)
with Children(self, n, type, childNumChild, maxNumChild,
base, type.sizeof):
for i in self.childRange():
+3 -1
View File
@@ -2595,7 +2595,9 @@ void tst_Dumpers::dumper_data()
% Cxx11Profile()
% MacLibCppProfile()
% Check("a", "<4 items>", Pattern("std::array<int, 4.*>"))
% Check("b", "<4 items>", Pattern("std::array<@QString, 4.*>"));
% Check("a.0", "[0]", "1", "int")
% Check("b", "<4 items>", Pattern("std::array<@QString, 4.*>"))
% Check("b.0", "[0]", "\"1\"", "@QString");
QTest::newRow("StdComplex")
<< Data("#include <complex>\n",