aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-04-10 18:28:26 +0200
committerhjk <hjk121@nokiamail.com>2014-04-11 17:04:12 +0200
commite7eb2271570dd9574deeedebf96e95dcd42f9938 (patch)
tree586904d00d5907f05da7a86e2fc4ae6af1b0c6cd /share
parente6292d3681bd93f9965322ad39a47bb0c24f060b (diff)
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: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/debugger/misctypes.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/share/qtcreator/debugger/misctypes.py b/share/qtcreator/debugger/misctypes.py
index 808ce34d89..0523c0a783 100644
--- a/share/qtcreator/debugger/misctypes.py
+++ b/share/qtcreator/debugger/misctypes.py
@@ -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)