diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py index 26de4dde467c5dffcbc697e06562a393c06fec56..1bf322692d24ead4c63588775a8fb26008bcee8f 100644 --- a/share/qtcreator/debugger/lldbbridge.py +++ b/share/qtcreator/debugger/lldbbridge.py @@ -413,6 +413,16 @@ class Dumper(DumperBase): #warn(" -> %s" % result) return result + def makeValue(self, type, *args): + thread = self.currentThread() + frame = thread.GetFrameAtIndex(0) + inner = ','.join(args) + value = frame.EvaluateExpression(type + '{' + inner + '}') + #warn(" TYPE: %s" % value.type) + #warn(" ADDR: 0x%x" % value.address) + #warn(" VALUE: %s" % value) + return value + def parseAndEvaluate(self, expr): thread = self.currentThread() frame = thread.GetFrameAtIndex(0) diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 5e79ddef9f6386446899c87de81f3a611a6091e8..ee2eae46386bcc0ac39cce6287158f03e2b584be 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -3370,7 +3370,7 @@ void tst_Dumpers::dumper_data() % Check("i11", "", "@QStandardItem") % Check("i2", "", "@QStandardItem") % Check("m", "", "@QStandardItemModel") - % Check("mi", "\"1\"", "@QModelIndex"); + % Check("mi", "\"1\"", "@QModelIndex").setEngines(GdbEngine); QTest::newRow("QStackInt") << Data("#include <QStack>\n",