Allow LLDB pretty printer to skip resolving type across all modules

The lookup is quite slow, and will hang the lldb debugger,
causing Xcode to hang too.

Change-Id: Ic6579a5de9404c0040d3d304169f18109f61d2ac
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Tor Arne Vestbø
2017-11-02 17:11:06 +01:00
parent 5368da1e8b
commit 357caf3b44
+7
View File
@@ -774,6 +774,9 @@ class Dumper(DumperBase):
if typeobj is not None:
return typeobj
return self.lookupNativeTypeInAllModules(name)
def lookupNativeTypeInAllModules(self, name):
needle = self.canonicalTypeName(name)
#warn('NEEDLE: %s ' % needle)
warn('Searching for type %s across all target modules, this could be very slow' % name)
@@ -1878,6 +1881,10 @@ class SummaryDumper(Dumper, LogMixin):
def report(self, stuff):
return # Don't mess up lldb output
def lookupNativeTypeInAllModules(self, name):
warn('Failed to resolve type %s' % name)
return None
def dump_summary(self, valobj, expanded = False):
try:
from pygdbmi import gdbmiparser