diff options
author | hjk <hjk121@nokiamail.com> | 2013-01-26 17:43:34 +0100 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-01-31 10:30:12 +0100 |
commit | 5e5eb43d183801553a0701c9807b41100a129159 (patch) | |
tree | ca116a8f884823d20e6c900a971d7aaa0a755ab7 | |
parent | bd31e1e89cf1255b03c8b6e4b8e4265c7bec7624 (diff) | |
download | qt-creator-5e5eb43d183801553a0701c9807b41100a129159.tar.gz |
Debugger: move dumper initialization to separate method for re-use
Change-Id: I8eb6f67ee342c88bc0f1b15874e37e130fa719a1
Reviewed-by: hjk <hjk121@nokiamail.com>
-rw-r--r-- | share/qtcreator/dumper/dumper.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/share/qtcreator/dumper/dumper.py b/share/qtcreator/dumper/dumper.py index 8b76b7aa65..6e5bff2254 100644 --- a/share/qtcreator/dumper/dumper.py +++ b/share/qtcreator/dumper/dumper.py @@ -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:"): |