Commit 896907f7 authored by hjk's avatar hjk
Browse files

debugger: be nicer in the presence of missing debug information

parent ea6ff591
......@@ -1198,8 +1198,15 @@ class Dumper:
type = value.type
if type.code == gdb.TYPE_CODE_REF:
type = type.target()
value = value.cast(type)
try:
# This throws "RuntimeError: Attempt to dereference a
# generic pointer." with MinGW's gcc 4.5 when it "identifies"
# a "QWidget &" as "void &".
type = type.target()
value = value.cast(type)
except RuntimeError:
value = item.value
type = value.type
if type.code == gdb.TYPE_CODE_TYPEDEF:
type = type.target()
......
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