Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.2.0
-
None
-
0e6c9d26f1e3e0ba0d19dcb62e234b606e0ae2d9 et al
Description
struct Foo { int bar = 0; }; struct TestClass { Foo *foos = new Foo[10]; }; int main() { TestClass tc; return 0; // Break here }
The dumper is:
def qdump__TestClass(d, value): size = 10 foos = value["foos"] d.putItemCount(size, 10) d.putNumChild(size) if d.isExpanded(): with Children(d, size, maxNumChild=10, childType=foos.type): for i in d.childRange(): d.putSubItem(i, foos[i])
In 4.1, bar values are all 0...
In 4.2 they look random (9903144, 9902248, 32...)
Attachments
For Gerrit Dashboard: QTCREATORBUG-17428 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
179775,2 | Debugger: Fix pointer arithmetic in dumper framework | 4.2 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |