forked from qt-creator/qt-creator
LLDB: Fixup filtering out function signatures
Amends 2f67d75ca4
.
Task-number: QTCREATORBUG-25185
Task-number: QTCREATORBUG-25217
Change-Id: Ic22d67d742273f9a8944c64df4c8a0647c4157f4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -787,8 +787,6 @@ class Dumper(DumperBase):
|
|||||||
def removeTypePrefix(self, name):
|
def removeTypePrefix(self, name):
|
||||||
return re.sub('^(struct|class|union|enum|typedef) ', '', name)
|
return re.sub('^(struct|class|union|enum|typedef) ', '', name)
|
||||||
|
|
||||||
__funcSignature_Regex__ = re.compile(r'^.+\(.*\)')
|
|
||||||
|
|
||||||
def lookupNativeType(self, name):
|
def lookupNativeType(self, name):
|
||||||
#DumperBase.warn('LOOKUP TYPE NAME: %s' % name)
|
#DumperBase.warn('LOOKUP TYPE NAME: %s' % name)
|
||||||
typeobj = self.typeCache.get(name)
|
typeobj = self.typeCache.get(name)
|
||||||
@@ -809,7 +807,7 @@ class Dumper(DumperBase):
|
|||||||
# Note that specifying a prefix like enum or typedef or class will make the call fail to
|
# Note that specifying a prefix like enum or typedef or class will make the call fail to
|
||||||
# find the type, thus the prefix is stripped.
|
# find the type, thus the prefix is stripped.
|
||||||
nonPrefixedName = self.canonicalTypeName(self.removeTypePrefix(name))
|
nonPrefixedName = self.canonicalTypeName(self.removeTypePrefix(name))
|
||||||
if __funcSignature_Regex__.match(nonPrefixedName) is not None:
|
if re.match(r'^.+\(.*\)', nonPrefixedName) is not None:
|
||||||
return lldb.SBType()
|
return lldb.SBType()
|
||||||
|
|
||||||
typeobjlist = self.target.FindTypes(nonPrefixedName)
|
typeobjlist = self.target.FindTypes(nonPrefixedName)
|
||||||
|
Reference in New Issue
Block a user