Commit afe4da27 authored by hjk's avatar hjk

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

Change-Id: I9f7f944ed9dfccfe36d2610dd70908b8bb10727e
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 075f55e0
......@@ -947,9 +947,12 @@ class Dumper(DumperBase):
def isQObject(self, value):
try:
#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)
......
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