Tempbreakpoint

OllyDbg Plugin API

Tempbreakpoint

Sets temporary or one-shot breakpoint on execution. If possible, sets hardware breakpoint, otherwise INT3. OllyDbg automatically removes temporary and one-shot breakpoints.

void Tempbreakpoint(ulong addr,int mode);

Parameters:

addr - code address where temporary breakpoint should be set;

mode - type of breakpoint to set:

TY_ONESHOT|TY_KEEPCOND Set one-shot breakpoint. OllyDbg automatically removes one-shot breakpoint when hit and pauses debugged application
TY_ONESHOT|TY_KEEPCOND|TY_STOPAN Same as above, additionally stops any kind of trace or animation when hit
TY_TEMP|TY_KEEPCOND Set temporary breakpoint. OllyDbg automatically removes temporary breakpoint when hit and immediately continues execution
Any other combination Sets INT3 breakpoint of specified type