From e2e3f7c4c51e64df05b3252379bcc56f52b576dc Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sat, 27 May 2017 20:26:57 +0200 Subject: 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. --- engines/sci/debug.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/sci/debug.h') 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 { -- cgit v1.2.3