forked from qt-creator/qt-creator
Debugger: Move typeCache from DumperBase to (Gdb)Dumper
It's an implementation detail of the gdb side (and would not be there if gdb.lookup_type were faster) Change-Id: I135c32a1c9132ab771c8fab5abfd04fbb308891e Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -1677,7 +1677,6 @@ class DumperBase:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def setupDumpers(self, _ = {}):
|
def setupDumpers(self, _ = {}):
|
||||||
self.typeCache = {}
|
|
||||||
self.resetCaches()
|
self.resetCaches()
|
||||||
|
|
||||||
for mod in self.dumpermodules:
|
for mod in self.dumpermodules:
|
||||||
|
@@ -144,6 +144,7 @@ ScanStackCommand()
|
|||||||
class PlainDumper:
|
class PlainDumper:
|
||||||
def __init__(self, printer):
|
def __init__(self, printer):
|
||||||
self.printer = printer
|
self.printer = printer
|
||||||
|
self.typeCache = {}
|
||||||
|
|
||||||
def __call__(self, d, value):
|
def __call__(self, d, value):
|
||||||
printer = self.printer.invoke(value)
|
printer = self.printer.invoke(value)
|
||||||
@@ -223,6 +224,7 @@ class Dumper(DumperBase):
|
|||||||
# These values will be kept between calls to 'showData'.
|
# These values will be kept between calls to 'showData'.
|
||||||
self.isGdb = True
|
self.isGdb = True
|
||||||
self.childEventAddress = None
|
self.childEventAddress = None
|
||||||
|
self.typeCache = {}
|
||||||
self.typesReported = {}
|
self.typesReported = {}
|
||||||
self.typesToReport = {}
|
self.typesToReport = {}
|
||||||
self.qtNamespaceToReport = None
|
self.qtNamespaceToReport = None
|
||||||
|
Reference in New Issue
Block a user