Commit a1f2638c authored by hjk's avatar hjk
Browse files

debugger: fix display of arrays of types that gdb forgot about

parent d1f0c171
...@@ -117,11 +117,14 @@ def lookupType(typestring): ...@@ -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
#warn("LOOKING UP '%s': %s" % (ts, error)) #warn("LOOKING UP '%s': %s" % (ts, error))
# See
exp = "(class '%s'*)0" % ts exp = "(class '%s'*)0" % ts
type = parseAndEvaluate(exp) try:
type = parseAndEvaluate(exp)
# Can throw "RuntimeError: No type named class Foo."
except: except:
#warn("LOOKING UP '%s' FAILED" % ts) #warn("LOOKING UP '%s' FAILED" % ts)
pass pass
Supports Markdown
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