Commit 4c51cbce authored by hjk's avatar hjk
Browse files

debugger: use a more robust method to detect function pointers



The previous one was failing on 'this' pointers of instances of
classes templatized on function pointers.

Change-Id: I2be50db5be643974f318fb6999136f5c7a4cfc1c
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent ed86a7ca
......@@ -1610,7 +1610,7 @@ class Dumper:
self.putNumChild(0)
return
if (typeName.replace("(anonymous namespace)", "").find("(") != -1):
if innerType.code == MethodCode or innerType.code == FunctionCode:
# A function pointer with format None.
self.putValue(str(value))
self.putAddress(value.address)
......
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