Commit 7932a9dd authored by hjk's avatar hjk
Browse files

Debugger: More robust metaobject extraction



Change-Id: I359cbdcfb0594b988e041c06efa44c6fd85a8d65
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 17fd00b6
......@@ -955,7 +955,7 @@ class DumperBase:
superdata = self.extractPointer(result)
if toInteger(superdata) == 0:
# This looks like a Q_GADGET
result = 0
return 0
return result
......@@ -971,7 +971,15 @@ class DumperBase:
if result is not None: # Is 0 or the static metaobject.
return result
result = self.extractStaticMetaObjectHelper(typeobj)
try:
result = self.extractStaticMetaObjectHelper(typeobj)
except RuntimeError as error:
warn("METAOBJECT EXTRACTION FAILED: %s" % error)
result = 0
except:
warn("METAOBJECT EXTRACTION FAILED FOR UNKNOWN REASON")
result = 0
if not result:
base = self.directBaseClass(typeobj, 0)
if base:
......
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