Setbreakpoint

OllyDbg Plugin API

Setbreakpoint

Simplified (old) version of Setbreakpointext, kept for compatibility reasons. Equivalent to call Setbreakpointext(addr,type,cmd,0).

int Setbreakpoint(ulong addr,ulong type,uchar cmd);

Parameters:

addr - address of breakpoint. If address points to data or in the middle of the command, OllyDbg will ask you for confirmation;

type - combination of bits TY_xxx that specify requested actions and type of breakpoint, see description of Setbreakpointext;

cmd - original command that will be saved to descriptor if bit TY_KEEPCODE is set. Otherwise, this parameter is ignored and command is read from the memory.