Commit d8e132d1 authored by hjk's avatar hjk
Browse files

Debugger: Disable item model dumper for LLDB



Needs better infrastructure.

Change-Id: I53a53953bd347c296626c03636775f6057faf385
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 3dc74ecb
......@@ -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)
......
......@@ -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",
......
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