Commit 982ada02 authored by hjk's avatar hjk
Browse files

debugger: don't try to deref void pointers in dumpers

parent d4ed1e2b
......@@ -1298,8 +1298,15 @@ class Dumper:
elif typedefStrippedType.code == gdb.TYPE_CODE_PTR:
#warn("POINTER: %s" % format)
isHandled = False
target = stripTypedefs(type.target())
if not format is None:
if (not isHandled) and target.code == gdb.TYPE_CODE_VOID:
self.putType(item.value.type)
self.putValue(str(value))
self.putNumChild(0)
isHandled = True
if (not isHandled) and (not format is None):
self.putAddress(value.address)
self.putType(item.value.type)
isHandled = True
......@@ -1339,8 +1346,7 @@ class Dumper:
self.putNumChild(0)
isHandled = True
target = stripTypedefs(type.target())
if (not isHandled) and target.code == gdb.TYPE_CODE_VOID:
if (not isHandled):
self.putType(item.value.type)
self.putValue(str(value))
self.putNumChild(0)
......
......@@ -1384,6 +1384,9 @@ def qdump__QRegion(d, item):
with Children(d):
d.putCallItem("rects", item, "rects()")
# qt_rgn might be 0
# gdb.parse_and_eval("region")["d"].dereference()["qt_rgn"].dereference()
def qdump__QSet(d, item):
def hashDataFirstNode(value):
......
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