Commit 1ca3da61 authored by Christian Stenger's avatar Christian Stenger Committed by hjk
Browse files

Dumpers: Fix dumper for QVariant holding QList for old GDB



Change-Id: Id34806f06546ad9a6618f9b9431143465a988c1d
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent bcfec559
......@@ -1898,8 +1898,12 @@ def qdump__QVariant(d, value):
# User types.
d_ptr = value["d"]
typeCode = int(d_ptr["type"])
exp = "((const char *(*)(int))%sQMetaType::typeName)(%d)" % (d.ns, typeCode)
type = str(d.parseAndEvaluate(exp))
try:
exp = "((const char *(*)(int))%sQMetaType::typeName)(%d)" % (d.ns, typeCode)
type = str(d.parseAndEvaluate(exp))
except:
exp = "%sQMetaType::typeName(%d)" % (d.ns, typeCode)
type = str(d.parseAndEvaluate(exp))
type = type[type.find('"') + 1 : type.rfind('"')]
type = type.replace("Q", d.ns + "Q") # HACK!
type = type.replace("uint", "unsigned int") # HACK!
......
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