Commit 5e5eb43d authored by hjk's avatar hjk

Debugger: move dumper initialization to separate method for re-use

Change-Id: I8eb6f67ee342c88bc0f1b15874e37e130fa719a1
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent bd31e1e8
......@@ -979,7 +979,7 @@ registerCommand("p2", p2)
class Dumper:
def __init__(self, args):
def defaultInit(self):
self.output = []
self.currentIName = ""
self.currentPrintsAddress = True
......@@ -994,15 +994,17 @@ class Dumper:
self.currentTypePriority = -100
self.typeformats = {}
self.formats = {}
self.expandedINames = ""
self.output.append('data=[')
self.useDynamicType = True
self.expandedINames = {}
options = []
varList = []
watchers = ""
resultVarName = ""
def __init__(self, args):
self.defaultInit()
self.output.append('data=[')
for arg in args.split(' '):
pos = arg.find(":") + 1
if arg.startswith("options:"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment