forked from qt-creator/qt-creator
Debugger: Better fallback for resolving function local struct types
Function-local struct definitions produces types 'names' like 'QList<main(int, char**)::SomeStruct>'. Remove the part up to the '::' and rely on local lookup. Task-number: QTCREATORBUG-15400 Change-Id: Ic73005f294c5f62c504b2d7ded4dd2716d88f2e4 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -667,7 +667,12 @@ class DumperBase:
|
||||
else:
|
||||
inner += c
|
||||
skipSpace = False
|
||||
return inner.strip()
|
||||
# Handle local struct definitions like QList<main(int, char**)::SomeStruct>
|
||||
inner = inner.strip()
|
||||
p = inner.find(')::')
|
||||
if p > -1:
|
||||
inner = inner[p+3:]
|
||||
return inner
|
||||
|
||||
def putStringValueByAddress(self, addr):
|
||||
elided, data = self.encodeStringHelper(addr, self.displayStringLimit)
|
||||
|
||||
Reference in New Issue
Block a user