Skip to content

Commit

Permalink
Debugger: Add VariablesView listener hook.
Browse files Browse the repository at this point in the history
VariablesView::Listener:
- Add hook for requesting value node value updates.

TeamWindow:
- Implement VariablesView listener hook and forward accordingly to
  TeamDebugger.
  • Loading branch information
anevilyak committed Jul 24, 2015
1 parent 7d25ab9 commit 473b2c6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 2 additions & 0 deletions src/apps/debugger/user_interface/gui/team_window/TeamWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ class TeamWindow : public BWindow, ThreadListView::Listener,
ExpressionInfo* info,
StackFrame* frame,
::Thread* thread);
virtual void ValueNodeWriteRequested(ValueNode* node,
CpuState* state, Value* value);

// Team::Listener
virtual void ThreadStateChanged(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ class VariablesView::Listener {
ExpressionInfo* info,
StackFrame* frame,
Thread* thread) = 0;

virtual void ValueNodeWriteRequested(
ValueNode* node,
CpuState* state,
Value* newValue) = 0;

};


Expand Down

0 comments on commit 473b2c6

Please sign in to comment.