Commit c2f53007 authored by hjk's avatar hjk
Browse files

debugger: fix QRegion dumper for builds without debug info

parent bffeae9b
......@@ -1517,12 +1517,20 @@ def qdump__QRegion(d, item):
d.putValue("<empty>")
d.putNumChild(0)
else:
n = str(p.dereference()["numRects"])
d.putItemCount(n)
d.putNumChild(n)
if d.isExpanded(item):
with Children(d):
d.putFields(Item(p.dereference(), item.iname))
try:
# Fails without debug info.
n = str(p.dereference()["numRects"])
d.putItemCount(n)
d.putNumChild(n)
if d.isExpanded(item):
with Children(d):
d.putFields(Item(p.dereference(), item.iname))
except:
d.putValue(" ")
d.putNumChild(1)
if d.isExpanded(item):
with Children(d):
d.putFields(item)
# qt_rgn might be 0
# gdb.parse_and_eval("region")["d"].dereference()["qt_rgn"].dereference()
......
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