debugger: prevent endless loop in resolution of some types

Reviewed-by: Friedemann Kleint
This commit is contained in:
hjk
2011-04-19 11:28:02 +02:00
committed by con
parent f86c9b6572
commit 501f4bba34

View File

@@ -120,10 +120,14 @@ def lookupType(typestring):
ts = ts[9:]
elif ts.startswith("enum "):
ts = ts[5:]
elif ts.endswith("const"):
ts = ts[-5:]
elif ts.endswith("volatile"):
ts = ts[-8:]
elif ts.endswith(" const"):
ts = ts[:-6]
elif ts.endswith(" volatile"):
ts = ts[:-9]
elif ts.endswith("*const"):
ts = ts[:-5]
elif ts.endswith("*volatile"):
ts = ts[:-8]
else:
break
try: