diff options
author | Willem Jan Palenstijn | 2017-05-26 14:12:41 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2017-06-10 21:32:35 +0200 |
commit | 8e683db72b280fbe4319d68466c7f3c61a6c107d (patch) | |
tree | f7d23f413eef10dabad968083696d87b2d83c7c3 /engines/sci/debug.h | |
parent | cb69d10e962e2cea604175fdd35189726f6a6436 (diff) | |
download | scummvm-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.h | 7 |
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 { |