Commit 134234be authored by hjk's avatar hjk
Browse files

Debugger: Workaround LLDB type handling failure on Linux



LLDB 3.7 on Linux doesn't get the namespace right in QMapNode:
sc t = lldb.target.FindFirstType('Myns::QMapNode<int, CustomStruct>')
sc t.GetName() -> QMapNode<int, CustomStruct> (no Myns::)

Change-Id: Ied306f70035e0669bc822700a92371b7de35a603
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent c5de4fa3
...@@ -5347,7 +5347,11 @@ void tst_Dumpers::dumper_data() ...@@ -5347,7 +5347,11 @@ void tst_Dumpers::dumper_data()
"QMap<int, CustomStruct>::iterator it = map.begin();\n") "QMap<int, CustomStruct>::iterator it = map.begin();\n")
+ CoreProfile() + CoreProfile()
+ Check("map", "<2 items>", "@QMap<int, CustomStruct>") + Check("map", "<2 items>", "@QMap<int, CustomStruct>")
+ CheckType("map.0", "[0]", "@QMapNode<int, CustomStruct>") // FIXME: Hack
// LLDB 3.7 on Linux doesn't get the namespace right in QMapNode:
// t = lldb.target.FindFirstType('Myns::QMapNode<int, CustomStruct>')
// t.GetName() -> QMapNode<int, CustomStruct> (no Myns::)
+ CheckType("map.0", "[0]", Pattern(".*QMapNode<int, CustomStruct>"))
+ Check("map.0.key", "-1", "int") + Check("map.0.key", "-1", "int")
+ CheckType("map.0.value", "CustomStruct") + CheckType("map.0.value", "CustomStruct")
+ Check("map.0.value.dvalue", FloatValue("3.14"), "double") + Check("map.0.value.dvalue", FloatValue("3.14"), "double")
......
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