Debugger: Add asynchronous expression evaluation interface

Operating Systems / Haiku - Rene Gollent [gollent.com] - 28 October 2014 22:30 UTC

- Add UserInterfaceListener hook to request expression evaluation.
- Add corresponding events/handlers in Team and TeamDebugger.

These allow callers to request evaluation of expressions by the debugger core's worker threads with asynchronous notifications of results. While not strictly necessary right now, this paves the way for further changes to come, as handling of variables will potentially require resolving their values if they haven't been already, and this shouldn't be done from user interface threads.

2d5794a Debugger: Add asynchronous expression evaluation interface.
src/apps/debugger/Jamfile | 1 +
src/apps/debugger/MessageCodes.h | 1 +
src/apps/debugger/controllers/TeamDebugger.cpp | 66 ++++++++++++++++++++
src/apps/debugger/controllers/TeamDebugger.h | 13 ++++
src/apps/debugger/model/Team.cpp | 46 +++++++++++++-
src/apps/debugger/model/Team.h | 35 ++++++++++-
src/apps/debugger/user_interface/UserInterface.h | 7 +++
.../gui/team_window/ExpressionEvaluationWindow.cpp | 1 -
8 files changed, 166 insertions(+), 4 deletions(-)

Upstream: cgit.haiku-os.org


  • Share