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:
hjk
2015-07-10 10:09:34 +02:00
parent 6f58f4ba50
commit 6d8dfe03de
2 changed files with 2 additions and 1 deletions

View File

@@ -1677,7 +1677,6 @@ class DumperBase:
pass
def setupDumpers(self, _ = {}):
self.typeCache = {}
self.resetCaches()
for mod in self.dumpermodules:

View File

@@ -144,6 +144,7 @@ ScanStackCommand()
class PlainDumper:
def __init__(self, printer):
self.printer = printer
self.typeCache = {}
def __call__(self, d, value):
printer = self.printer.invoke(value)
@@ -223,6 +224,7 @@ class Dumper(DumperBase):
# These values will be kept between calls to 'showData'.
self.isGdb = True
self.childEventAddress = None
self.typeCache = {}
self.typesReported = {}
self.typesToReport = {}
self.qtNamespaceToReport = None