Commit 56691bcd authored by hjk's avatar hjk

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

Change-Id: Ib2aa41d6a059246e15d1f42831bdec96c235161e
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 85f1a031
......@@ -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():
......
......@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment