From 8e683db72b280fbe4319d68466c7f3c61a6c107d Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Fri, 26 May 2017 14:12:41 +0200 Subject: SCI: Add break/log/backtrace actions for triggered breakpoints The action can be set using the new console command bp_action/bpact. --- engines/sci/debug.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/sci/debug.h') 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 { -- cgit v1.2.3