forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -381,7 +381,6 @@ protected:
|
||||
//
|
||||
// Watch specific stuff
|
||||
//
|
||||
virtual bool setToolTipExpression(const DebuggerToolTipContext &);
|
||||
virtual void assignValueInDebugger(WatchItem *item,
|
||||
const QString &expr, const QVariant &value);
|
||||
|
||||
@@ -396,7 +395,6 @@ protected:
|
||||
virtual void watchPoint(const QPoint &);
|
||||
void handleWatchPoint(const DebuggerResponse &response);
|
||||
|
||||
void updateWatchItem(WatchItem *item);
|
||||
void showToolTip();
|
||||
|
||||
void handleVarAssign(const DebuggerResponse &response);
|
||||
@@ -407,9 +405,8 @@ protected:
|
||||
Q_SLOT void createFullBacktrace();
|
||||
void handleCreateFullBacktrace(const DebuggerResponse &response);
|
||||
|
||||
void updateLocals();
|
||||
void doUpdateLocals(const UpdateParameters ¶meters);
|
||||
void handleStackFramePython(const DebuggerResponse &response);
|
||||
void doUpdateLocals(const UpdateParameters ¶meters);
|
||||
void handleStackFrame(const DebuggerResponse &response);
|
||||
|
||||
void setLocals(const QList<GdbMi> &locals);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user