Commit 6222ba81 authored by hjk's avatar hjk
Browse files

debugger: make QObject dumper more robust for symbian

parent eb7f665a
...@@ -651,7 +651,11 @@ def extractCString(table, offset): ...@@ -651,7 +651,11 @@ def extractCString(table, offset):
def qdump__QObject(d, item): def qdump__QObject(d, item):
#warn("OBJECT: %s " % item.value) #warn("OBJECT: %s " % item.value)
try: try:
privateType = lookupType(d.ns + "QObjectPrivate")
staticMetaObject = item.value["staticMetaObject"] staticMetaObject = item.value["staticMetaObject"]
d_ptr = item.value["d_ptr"]["d"].cast(privateType.pointer()).dereference()
#warn("D_PTR: %s " % d_ptr)
objectName = d_ptr["objectName"]
except: except:
d.putPlainChildren(item) d.putPlainChildren(item)
return return
...@@ -663,7 +667,6 @@ def qdump__QObject(d, item): ...@@ -663,7 +667,6 @@ def qdump__QObject(d, item):
# superData = superData.dereference()["d"]["superdata"] # superData = superData.dereference()["d"]["superdata"]
# warn("SUPERDATA: %s" % superData) # warn("SUPERDATA: %s" % superData)
privateType = lookupType(d.ns + "QObjectPrivate")
if privateType is None: if privateType is None:
d.putNumChild(4) d.putNumChild(4)
#d.putValue(cleanAddress(item.value.address)) #d.putValue(cleanAddress(item.value.address))
...@@ -671,9 +674,6 @@ def qdump__QObject(d, item): ...@@ -671,9 +674,6 @@ def qdump__QObject(d, item):
with Children(d): with Children(d):
d.putFields(item) d.putFields(item)
return return
d_ptr = item.value["d_ptr"]["d"].cast(privateType.pointer()).dereference()
#warn("D_PTR: %s " % d_ptr)
objectName = d_ptr["objectName"]
#warn("OBJECTNAME: %s " % objectName) #warn("OBJECTNAME: %s " % objectName)
#warn("D_PTR: %s " % d_ptr) #warn("D_PTR: %s " % d_ptr)
mo = d_ptr["metaObject"] mo = d_ptr["metaObject"]
......
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