Commit 40813174 authored by hjk's avatar hjk
Browse files

Debugger: Fix check for QObject-ness.



Change-Id: Idd33e104e6e80f9b1f87af9409db810c2c37a4a2
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 1d834c11
......@@ -962,7 +962,7 @@ class Dumper(DumperBase):
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.
if metaObjectEntry & 0x1: # This is not a pointer.
return False
#warn("MO: 0x%x " % metaObjectEntry)
s = gdb.execute("info symbol 0x%x" % metaObjectEntry, to_string=True)
......
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