breakpoint_query breakpoint_trigger
API Reference Manual  /  5 Model-to-Simulator Interfaces  / 

breakpoint_query_v2

Description
Objects of the context and memory-space classes implement the breakpoint_query_v2 interface. It is used by processors to check for breakpoints.

Implementors of this interface should use SIM_register_compatible_interfaces after SIM_register_interface to also register earlier versions of the interface.

The get_breakpoints function returns a set of breakpoints that intersect the range given in start and end, including both start and end in the range. Only breakpoints set on access types with bits set in read_write_execute will be returned.

When information from get_breakpoints has been processed, the breakpoints array in the breakpoint_set_t structure should be freed with MM_FREE.

SIM_INTERFACE(breakpoint_query_v2) {
        breakpoint_set_t (*get_breakpoints)(conf_object_t *obj,
                                            access_t read_write_execute,
                                            generic_address_t start,
                                            generic_address_t end);
};

#define BREAKPOINT_QUERY_V2_INTERFACE "breakpoint_query_v2"

Execution Context
Cell Context for all methods.

breakpoint_query breakpoint_trigger