forked from qt-creator/qt-creator
debugger: workaround gdb 7.1
Change-Id: I14ac857af34218457b237798a09224cd6976d282 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -160,14 +160,16 @@ def lookupType(typestring):
|
||||
except:
|
||||
pass
|
||||
|
||||
#warn(" RESULT '%s': %s" % (typestring, type))
|
||||
typeCache[typestring] = type
|
||||
return None
|
||||
#warn(" RESULT FOR 7.2: '%s': %s" % (typestring, type))
|
||||
#typeCache[typestring] = type
|
||||
#return None
|
||||
|
||||
# This part should only trigger for
|
||||
# gdb 7.1 for types with namespace separators.
|
||||
|
||||
ts = typestring
|
||||
while True:
|
||||
#WARN("ts: '%s'" % ts)
|
||||
#warn("TS: '%s'" % ts)
|
||||
if ts.startswith("class "):
|
||||
ts = ts[6:]
|
||||
elif ts.startswith("struct "):
|
||||
@@ -883,6 +885,8 @@ def stripForFormat(typeName):
|
||||
return stripped
|
||||
|
||||
def bbsetup(args):
|
||||
typeInfoCache = {}
|
||||
typeCache = {}
|
||||
module = sys.modules[__name__]
|
||||
for key, value in module.__dict__.items():
|
||||
if key.startswith("qdump__"):
|
||||
|
||||
Reference in New Issue
Block a user