From a120aa855990f045d38d3b603306490305a48a39 Mon Sep 17 00:00:00 2001 From: Tobia Tesan Date: Mon, 29 Feb 2016 15:39:42 +0100 Subject: WINTERMUTE: Add Watch functionality --- engines/wintermute/debugger/debugger_controller.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engines/wintermute/debugger/debugger_controller.h') diff --git a/engines/wintermute/debugger/debugger_controller.h b/engines/wintermute/debugger/debugger_controller.h index 87b4945f27..8c720281db 100644 --- a/engines/wintermute/debugger/debugger_controller.h +++ b/engines/wintermute/debugger/debugger_controller.h @@ -43,6 +43,13 @@ struct BreakpointInfo { bool _enabled; }; +struct WatchInfo { + Common::String _filename; + Common::String _symbol; + int _hits; + bool _enabled; +}; + struct TopEntry { bool current; Common::String filename; @@ -70,7 +77,12 @@ public: Error removeBreakpoint(uint id); Error disableBreakpoint(uint id); Error enableBreakpoint(uint id); + Error addWatch(const char *filename, const char *symbol); + Error removeWatchpoint(uint id); + Error disableWatchpoint(uint id); + Error enableWatchpoint(uint id); Common::Array getBreakpoints() const; + Common::Array getWatchlist() const; /** * @brief step one instruction */ @@ -99,6 +111,7 @@ public: * Inherited from ScriptMonitor */ void onBreakpoint(const Breakpoint *breakpoint, DebuggableScript *script); + void onWatch(const Watch *watch, DebuggableScript *script); void notifyStep(DebuggableScript *script); }; } -- cgit v1.2.3