diff options
author | Colin Snover | 2016-11-05 17:56:15 -0500 |
---|---|---|
committer | Colin Snover | 2016-11-20 12:31:43 -0600 |
commit | 9380b541204e2ec446d75627b8fad1b78850f356 (patch) | |
tree | 16340e97cc926cd44332c7bad5b1cb74c9467055 /engines/sci/debug.h | |
parent | 1af7fe8b9616c5ade0af00b7720db0b4967471ff (diff) | |
download | scummvm-rg350-9380b541204e2ec446d75627b8fad1b78850f356.tar.gz scummvm-rg350-9380b541204e2ec446d75627b8fad1b78850f356.tar.bz2 scummvm-rg350-9380b541204e2ec446d75627b8fad1b78850f356.zip |
SCI: Add code-address breakpoints to debugger
Diffstat (limited to 'engines/sci/debug.h')
-rw-r--r-- | engines/sci/debug.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/sci/debug.h b/engines/sci/debug.h index 4fcb757c10..60fad26671 100644 --- a/engines/sci/debug.h +++ b/engines/sci/debug.h @@ -42,12 +42,16 @@ enum BreakpointType { * Break when an exported function is called. Data contains * script_no << 16 | export_no. */ - BREAK_EXPORT = 1 << 3 + BREAK_EXPORT = 1 << 3, + BREAK_ADDRESS = 1 << 4 // break when pc is at this address }; struct Breakpoint { BreakpointType type; - uint32 address; ///< Breakpoints on exports + union { + uint32 address; ///< Breakpoints on exports + reg32_t regAddress; ///< Breakpoints on addresses + }; Common::String name; ///< Breakpoints on selector names }; |