Skip to main content

dr_cleancall_save_t_DR_CLEANCALL_READS_APP_CONTEXT

Constant dr_cleancall_save_t_DR_CLEANCALL_READS_APP_CONTEXT 

Source
pub const dr_cleancall_save_t_DR_CLEANCALL_READS_APP_CONTEXT: dr_cleancall_save_t = 256;
Expand description

Indicates that the callee will access the application context (either as passed parameters or by calling dr_get_mcontext()). This flag is passed to callbacks registered with dr_register_clean_call_insertion_event() requesting that register reservation code in clients and libraries restore application values to all registers. Without this flag, register values observed by the callee may be values written by instrumentation rather than application values. If the intent is to have a mixture of application and tool values in registers, manual restoration is required rather than passing this automation flag.