forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user