Commit afe4da27 authored by hjk's avatar hjk
Browse files

Debugger: Don't search for object names in non-QObjects

Change-Id: I9f7f944ed9dfccfe36d2610dd70908b8bb10727e
Reviewed-by: default avatarhjk <>
parent 075f55e0
......@@ -947,9 +947,12 @@ class Dumper(DumperBase):
def isQObject(self, value):
#if True:
vtable = self.dereference(toInteger(value.address)) # + ptrSize
if vtable & 0x3: # This is not a pointer.
return False
metaObjectEntry = self.dereference(vtable) # It's the first entry.
if metaObjectEntry & 0x3: # This is not a pointer.
return False
#warn("MO: 0x%x " % metaObjectEntry)
s = gdb.execute("info symbol 0x%x" % metaObjectEntry, to_string=True)
#warn("S: %s " % s)
Supports Markdown
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