aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/debugger/debugger_controller.h
diff options
context:
space:
mode:
authorTobia Tesan2016-02-29 15:39:42 +0100
committerTobia Tesan2016-03-01 20:40:46 +0100
commita120aa855990f045d38d3b603306490305a48a39 (patch)
treec29f829e36ea762de60f683b23dbefd725717d16 /engines/wintermute/debugger/debugger_controller.h
parentd5d25b0e89faebe4b1c5961d7b1ab872339e4a03 (diff)
downloadscummvm-rg350-a120aa855990f045d38d3b603306490305a48a39.tar.gz
scummvm-rg350-a120aa855990f045d38d3b603306490305a48a39.tar.bz2
scummvm-rg350-a120aa855990f045d38d3b603306490305a48a39.zip
WINTERMUTE: Add Watch functionality
Diffstat (limited to 'engines/wintermute/debugger/debugger_controller.h')
-rw-r--r--engines/wintermute/debugger/debugger_controller.h13
1 files changed, 13 insertions, 0 deletions
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<BreakpointInfo> getBreakpoints() const;
+ Common::Array<WatchInfo> 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);
};
}