Debugger: Add VariablesView listener hook.

VariablesView::Listener:
- Add hook for requesting value node value updates.

TeamWindow:
- Implement VariablesView listener hook and forward accordingly to
  TeamDebugger.
This commit is contained in:
Rene Gollent
2015-07-24 17:08:53 -04:00
parent 7d25ab995d
commit 473b2c6ac9
3 changed files with 16 additions and 0 deletions
@@ -897,6 +897,14 @@ TeamWindow::ExpressionEvaluationRequested(ExpressionInfo* info,
}
void
TeamWindow::ValueNodeWriteRequested(ValueNode* node, CpuState* state,
Value* newValue)
{
fListener->ValueNodeWriteRequested(node, state, newValue);
}
void
TeamWindow::ThreadStateChanged(const Team::ThreadEvent& event)
{
@@ -130,6 +130,8 @@ private:
ExpressionInfo* info,
StackFrame* frame,
::Thread* thread);
virtual void ValueNodeWriteRequested(ValueNode* node,
CpuState* state, Value* value);
// Team::Listener
virtual void ThreadStateChanged(
@@ -159,6 +159,12 @@ public:
ExpressionInfo* info,
StackFrame* frame,
Thread* thread) = 0;
virtual void ValueNodeWriteRequested(
ValueNode* node,
CpuState* state,
Value* newValue) = 0;
};