forked from qt-creator/qt-creator
debugger: prevent endless loop in resolution of some types
Reviewed-by: Friedemann Kleint
This commit is contained in:
@@ -121,9 +121,13 @@ def lookupType(typestring):
|
|||||||
elif ts.startswith("enum "):
|
elif ts.startswith("enum "):
|
||||||
ts = ts[5:]
|
ts = ts[5:]
|
||||||
elif ts.endswith(" const"):
|
elif ts.endswith(" const"):
|
||||||
ts = ts[-5:]
|
ts = ts[:-6]
|
||||||
elif ts.endswith(" volatile"):
|
elif ts.endswith(" volatile"):
|
||||||
ts = ts[-8:]
|
ts = ts[:-9]
|
||||||
|
elif ts.endswith("*const"):
|
||||||
|
ts = ts[:-5]
|
||||||
|
elif ts.endswith("*volatile"):
|
||||||
|
ts = ts[:-8]
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user