forked from qt-creator/qt-creator
debugger: fix display of arrays of types that gdb forgot about
This commit is contained in:
@@ -117,11 +117,14 @@ def lookupType(typestring):
|
|||||||
#warn("LOOKING UP '%s'" % ts)
|
#warn("LOOKING UP '%s'" % ts)
|
||||||
type = gdb.lookup_type(ts)
|
type = gdb.lookup_type(ts)
|
||||||
except RuntimeError, error:
|
except RuntimeError, error:
|
||||||
# Can throw "RuntimeError: No type named class Foo."
|
|
||||||
# See http://sourceware.org/bugzilla/show_bug.cgi?id=11912
|
|
||||||
#warn("LOOKING UP '%s': %s" % (ts, error))
|
#warn("LOOKING UP '%s': %s" % (ts, error))
|
||||||
|
# See http://sourceware.org/bugzilla/show_bug.cgi?id=11912
|
||||||
exp = "(class '%s'*)0" % ts
|
exp = "(class '%s'*)0" % ts
|
||||||
|
try:
|
||||||
type = parseAndEvaluate(exp).type.target()
|
type = parseAndEvaluate(exp).type.target()
|
||||||
|
except:
|
||||||
|
# Can throw "RuntimeError: No type named class Foo."
|
||||||
|
pass
|
||||||
except:
|
except:
|
||||||
#warn("LOOKING UP '%s' FAILED" % ts)
|
#warn("LOOKING UP '%s' FAILED" % ts)
|
||||||
pass
|
pass
|
||||||
|
Reference in New Issue
Block a user