forked from qt-creator/qt-creator
Debugger: Consolidate dumper state setting
Move all the currentFoo initialization to DumperBase Change-Id: I0a59715fe1550f466e78cbf678622dd8dfe1783c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -203,41 +203,7 @@ class Dumper(DumperBase):
|
||||
|
||||
def prepare(self, args):
|
||||
self.output = []
|
||||
self.currentIName = ""
|
||||
self.currentPrintsAddress = True
|
||||
self.currentChildType = ""
|
||||
self.currentChildNumChild = -1
|
||||
self.currentMaxNumChild = -1
|
||||
self.currentNumChild = -1
|
||||
self.currentValue = ReportItem()
|
||||
self.currentType = ReportItem()
|
||||
self.currentAddress = None
|
||||
|
||||
self.resultVarName = args.get("resultvarname", "")
|
||||
self.expandedINames = set(args.get("expanded", []))
|
||||
self.stringCutOff = int(args.get("stringcutoff", 10000))
|
||||
self.displayStringLimit = int(args.get("displaystringlimit", 100))
|
||||
self.typeformats = args.get("typeformats", {})
|
||||
self.formats = args.get("formats", {})
|
||||
self.watchers = args.get("watchers", {})
|
||||
self.useDynamicType = int(args.get("dyntype", "0"))
|
||||
self.useFancy = int(args.get("fancy", "0"))
|
||||
self.forceQtNamespace = int(args.get("forcens", "0"))
|
||||
self.passExceptions = int(args.get("passexceptions", "0"))
|
||||
self.showQObjectNames = int(args.get("qobjectnames", "0"))
|
||||
self.nativeMixed = int(args.get("nativemixed", "0"))
|
||||
self.autoDerefPointers = int(args.get("autoderef", "0"))
|
||||
self.partialUpdate = int(args.get("partial", "0"))
|
||||
self.fallbackQtVersion = 0x50200
|
||||
|
||||
#warn("NAMESPACE: '%s'" % self.qtNamespace())
|
||||
#warn("EXPANDED INAMES: %s" % self.expandedINames)
|
||||
#warn("WATCHERS: %s" % self.watchers)
|
||||
|
||||
# The guess does not need to be updated during a fetchVariables()
|
||||
# as the result is fixed during that time (ignoring "active"
|
||||
# dumpers causing loading of shared objects etc).
|
||||
self.currentQtNamespaceGuess = None
|
||||
self.setVariableFetchingOptions(args)
|
||||
|
||||
def fromNativeDowncastableValue(self, nativeValue):
|
||||
if self.useDynamicType:
|
||||
|
||||
Reference in New Issue
Block a user