Commit 04eaf6cd authored by hjk's avatar hjk

Debugger: Make function pointers visible with LLDB

Change-Id: I230bee9c55e54f62c93a8515af0f56cdafed78bf
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 6448d26a
......@@ -1072,12 +1072,16 @@ class Dumper(DumperBase):
self.putArrayData(innerType, value, 1000)
return
#if innerType.code == MethodCode or innerType.code == FunctionCode:
# # A function pointer with format None.
# self.putValue(str(value))
# self.putType(typeName)
# self.putNumChild(0)
# return
if innerType.IsFunctionType():
# A function pointer.
val = str(value)
pos = val.find(" = ")
if pos > 0:
val = val[pos + 3:]
self.putValue(val)
self.putType(innerType)
self.putNumChild(0)
return
#warn("AUTODEREF: %s" % self.autoDerefPointers)
#warn("INAME: %s" % self.currentIName)
......
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