aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-06-08 18:07:11 +0200
committerhjk <hjk@theqtcompany.com>2015-06-10 07:40:27 +0000
commit5309e217e460d4f20ab932334b9e808216f9b2a7 (patch)
tree26b5f6010ea7efb2bb0acf1c2a2f407790d36bb3 /share
parent7d257acb4b82b644c3c0d91ff38d6661d38896e1 (diff)
Debugger: Consolidate GDB and LLDB "updateLocals" code paths
This splits the bool setToolTipExpression() operation into a bool canHandleToolTip(), and the actual processing of the request, which is mostly identical to the handling of a watcher. Handling a watcher is now mostly the same as a full Locals update, except for the 'partial' flag. Pushing the handling of that down to the bridges gives identical code paths in the gdb and lldbengine. Move that to the DebuggerEngine base class. Change-Id: I3861b43e8630c7e7bd57fcd549b2a2387e3d4869 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/debugger/lldbbridge.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py
index aa6af7b508d..98d581543c5 100644
--- a/share/qtcreator/debugger/lldbbridge.py
+++ b/share/qtcreator/debugger/lldbbridge.py
@@ -1179,9 +1179,11 @@ class Dumper(DumperBase):
shadowed = {}
ids = {} # Filter out duplicates entries at the same address.
- if isPartial:
- values = [frame.FindVariable(partialVariable)]
- else:
+ # FIXME: Implement shortcut for partial updates.
+ #if isPartial:
+ # values = [frame.FindVariable(partialVariable)]
+ #else:
+ if True:
values = list(frame.GetVariables(True, True, False, False))
values.reverse() # To get shadowed vars numbered backwards.