IDA SDK
Macros | Functions
Instruction tracing

Detailed Description

When instruction tracing is active, each executed instruction is stored in the tracing buffer.

Internally, IDA uses step tracing to monitor register values after the execution of the instruction.

Macros

#define IT_LOG_SAME_IP   0x01
 instruction tracing will log instructions whose IP doesn't change
 

Functions

bool idaapi is_insn_trace_enabled (void)
 Get current state of instructions tracing. More...
 
int idaapi get_insn_trace_options (void)
 Get current instruction tracing options. More...
 
void idaapi set_insn_trace_options (int options)
 Modify instruction tracing options. More...
 
void idaapi request_set_insn_trace_options (int options)
 Post a set_insn_trace_options() request.
 

Enable/Disable instruction tracing

TypeSynchronous function - available as request
Notificationnone (synchronous function)
bool idaapi enable_insn_trace (bool enable=true)
 
bool disable_insn_trace (void)
 
bool idaapi request_enable_insn_trace (bool enable=true)
 
bool request_disable_insn_trace (void)
 

Function Documentation

bool idaapi is_insn_trace_enabled ( void  )
inline

Get current state of instructions tracing.

TypeSynchronous function
Notificationnone (synchronous function)
int idaapi get_insn_trace_options ( void  )
inline

Get current instruction tracing options.

Also see IT_LOG_SAME_IP

TypeSynchronous function
Notificationnone (synchronous function)
void idaapi set_insn_trace_options ( int  options)
inline

Modify instruction tracing options.

TypeSynchronous function - available as request
Notificationnone (synchronous function)