Debugger: Update subtree if partial variable is requested

Instead of dumping the complete locals just dump the subtree
with the partial variable.

Change-Id: Ieac5f62efd87144bbea7a6a559d8be8d48d9084e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2016-12-08 15:51:49 +01:00
parent b352082a45
commit 16b44c80f6
3 changed files with 40 additions and 12 deletions

View File

@@ -267,11 +267,9 @@ class Dumper(DumperBase):
self.anonNumber = 0
variables = []
for val in cdbext.listOfLocals():
self.currentContextValue = val
name = val.name()
for val in cdbext.listOfLocals(self.partialVariable):
value = self.fromNativeValue(val)
value.name = name
value.name = val.name()
variables.append(value)
self.handleLocals(variables)