Modifyhittrace

OllyDbg Plugin API

Modifyhittrace

Function adds, resets, removes or restores specified range in the combined hit/run trace data buffer. This buffer contains flags specifying which actions should be undertaken when corresponding command is reached, don't mix it with the run trace log buffer that contains results of run trace. If necessary, buffer is created. Returns 0 on success (even partial) and -1 on error.

Warning: Setting hit trace or forced run trace on data may have disastrous effects on your program!

int Modifyhittrace(ulong addr0,ulong addr1,int mode);

Parameters:

addr0 - address of the first byte of the code range in the address space of debugged application;

addr1 - address of the last byte of the code range in the address space of debugged application (not included);

mode - action to perform, one of the following:

ATR_ADD Hit trace specified range
ATR_ADDPROC Hit trace only recognized procedures in the range
ATR_RESET Mark range as not traced
ATR_REMOVE Remove range and breakpoints
ATR_REMOVEALL Destroy range and breakpoints
ATR_RESTORE Restore breakpoints in memory
ATR_RTRADD Hit trace range and force run trace
ATR_RTRJUMPS Hit trace and run trace jumps only
ATR_RTRENTRY Hit trace and run trace entries only
ATR_RTREMOVE Remove trace from range
ATR_RTSKIP Skip range from run trace

See also: Findhittrace, Runtracesize