Commit e7eb2271 authored by hjk's avatar hjk
Browse files

Debugger: Fix Eigen::Matrix dumper with LLDB

Access by address. Big hammer, but LLDB doesn't cope
well with templates...

Change-Id: I430a83c282bc8a46efa011efb73f32cdbf46398c
Reviewed-by: default avatarhjk <>
parent e6292d36
......@@ -133,9 +133,7 @@ def qdump__Eigen__PlainObjectBase(d, value):
storage = value["m_storage"]
nrows = toInteger(storage["m_rows"] if argRow == -1 else argRow)
ncols = toInteger(storage["m_cols"] if argCol == -1 else argCol)
p = storage["m_data"]
if d.isStructType(p.type): # Static
p = p["array"].cast(innerType.pointer())
p = d.createPointerValue(d.addressOf(value), innerType)
d.putValue("(%s x %s), %s" % (nrows, ncols, ["ColumnMajor", "RowMajor"][rowMajor]))
d.putField("keeporder", "1")
d.putNumChild(nrows * ncols)
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