Debugger: Disable item model dumper for LLDB

Needs better infrastructure.

Change-Id: I53a53953bd347c296626c03636775f6057faf385
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-22 16:25:39 +01:00
parent 3dc74ecb93
commit d8e132d15d
2 changed files with 11 additions and 1 deletions

View File

@@ -413,6 +413,16 @@ class Dumper(DumperBase):
#warn(" -> %s" % result) #warn(" -> %s" % result)
return 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): def parseAndEvaluate(self, expr):
thread = self.currentThread() thread = self.currentThread()
frame = thread.GetFrameAtIndex(0) frame = thread.GetFrameAtIndex(0)

View File

@@ -3370,7 +3370,7 @@ void tst_Dumpers::dumper_data()
% Check("i11", "", "@QStandardItem") % Check("i11", "", "@QStandardItem")
% Check("i2", "", "@QStandardItem") % Check("i2", "", "@QStandardItem")
% Check("m", "", "@QStandardItemModel") % Check("m", "", "@QStandardItemModel")
% Check("mi", "\"1\"", "@QModelIndex"); % Check("mi", "\"1\"", "@QModelIndex").setEngines(GdbEngine);
QTest::newRow("QStackInt") QTest::newRow("QStackInt")
<< Data("#include <QStack>\n", << Data("#include <QStack>\n",