aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/debug.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2017-05-26 14:12:41 +0200
committerWillem Jan Palenstijn2017-06-10 21:32:35 +0200
commit8e683db72b280fbe4319d68466c7f3c61a6c107d (patch)
treef7d23f413eef10dabad968083696d87b2d83c7c3 /engines/sci/debug.h
parentcb69d10e962e2cea604175fdd35189726f6a6436 (diff)
downloadscummvm-rg350-8e683db72b280fbe4319d68466c7f3c61a6c107d.tar.gz
scummvm-rg350-8e683db72b280fbe4319d68466c7f3c61a6c107d.tar.bz2
scummvm-rg350-8e683db72b280fbe4319d68466c7f3c61a6c107d.zip
SCI: Add break/log/backtrace actions for triggered breakpoints
The action can be set using the new console command bp_action/bpact.
Diffstat (limited to 'engines/sci/debug.h')
-rw-r--r--engines/sci/debug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/debug.h b/engines/sci/debug.h
index b8557bb493..03ab594e0d 100644
--- a/engines/sci/debug.h
+++ b/engines/sci/debug.h
@@ -46,11 +46,18 @@ enum BreakpointType {
BREAK_ADDRESS = 1 << 4 // break when pc is at this address
};
+enum BreakpointAction {
+ BREAK_BREAK, // break into debugger when breakpoint is triggered
+ BREAK_LOG, // log the breakpoint, and don't break into debugger
+ BREAK_BACKTRACE // show a backtrace, and don't break into debugger
+};
+
struct Breakpoint {
BreakpointType _type;
uint32 _address; ///< Breakpoints on exports
reg32_t _regAddress; ///< Breakpoints on addresses
Common::String _name; ///< Breakpoints on selector names
+ BreakpointAction _action;
};
enum DebugSeeking {