Commit 2719eb28 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: use {type}&main trick for more streamlined type lookup with gdb

Change-Id: Idfe0e5259bc715cb4d38063f336d257b1f55f76a
Reviewed-by: default avatarhjk <>
parent 6477d3f8
......@@ -138,6 +138,29 @@ def lookupType(typestring):
if not type is None:
return type
if typestring == "void":
type = gdb.lookup_type(typestring)
typeCache[typestring] = type
return type
if typestring.find("(anon") != -1:
# gdb doesn't like
# '(anonymous namespace)::AddAnalysisMessageSuppressionComment'
typeCache[typestring] = None
return None
type = gdb.parse_and_eval("{%s}&main" % typestring).type
typeCache[typestring] = type
return type
#warn(" RESULT '%s': %s" % (typestring, type))
typeCache[typestring] = type
return None
ts = typestring
while True:
#WARN("ts: '%s'" % ts)
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