aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/debug.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2017-05-27 20:26:57 +0200
committerWillem Jan Palenstijn2017-06-10 21:32:35 +0200
commite2e3f7c4c51e64df05b3252379bcc56f52b576dc (patch)
tree7ba3bb19a5309402e5fa0c218bffe4f4f7ced252 /engines/sci/debug.h
parent0f0ecff0b8b095205a3a1c9b9a133f283d1ad39b (diff)
downloadscummvm-rg350-e2e3f7c4c51e64df05b3252379bcc56f52b576dc.tar.gz
scummvm-rg350-e2e3f7c4c51e64df05b3252379bcc56f52b576dc.tar.bz2
scummvm-rg350-e2e3f7c4c51e64df05b3252379bcc56f52b576dc.zip
SCI: Move bpk/logkernel to main breakpoint infrastructure
This changes the syntax for bpk and logkernel: Enable breakpoint on kernel call: bpk FrameOut Enable logging for kernel call: bpk FrameOut log For backward compatibility this has an alias: logkernel FrameOut Removing a kernel call breakpoint is done with bp_del/bc now.
Diffstat (limited to 'engines/sci/debug.h')
-rw-r--r--engines/sci/debug.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/debug.h b/engines/sci/debug.h
index afcac19f04..cd1d8095f9 100644
--- a/engines/sci/debug.h
+++ b/engines/sci/debug.h
@@ -31,7 +31,7 @@ namespace Sci {
// These types are used both as identifiers and as elements of bitfields
enum BreakpointType {
/**
- * Break when a selector is executed. Data contains (char *) selector name
+ * Break when a selector is executed. Data contains selector name
* (in the format Object::Method)
*/
BREAK_SELECTOREXEC = 1 << 0, // break when a function selector is executed
@@ -39,11 +39,12 @@ enum BreakpointType {
BREAK_SELECTORWRITE = 1 << 2, // break when a variable selector is written
/**
- * Break when an exported function is called. Data contains
+ * Break when an exported function is called. _address contains
* script_no << 16 | export_no.
*/
BREAK_EXPORT = 1 << 3,
- BREAK_ADDRESS = 1 << 4 // break when pc is at this address
+ BREAK_ADDRESS = 1 << 4, // break when pc is at _regAddress
+ BREAK_KERNEL = 1 << 5 // break on named kernel call
};
enum BreakpointAction {