breakpoint_query_v2
instead. Classes
implementing breakpoint_query_v2
can add support for
breakpoint_query
by using
SIM_register_compatible_interfaces.
Objects of the context and
memory-space classes implement the
breakpoint_query
interface. It is used by processors
to check for breakpoints.
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 return value should be freed by calling the free_breakpoint_set function.
SIM_INTERFACE(breakpoint_query) { breakpoint_set_t (*get_breakpoints)(conf_object_t *obj, access_t read_write_execute, generic_address_t start, generic_address_t end); #ifndef PYWRAP void (*free_breakpoint_set)(conf_object_t *obj, breakpoint_set_t *set); #endif }; #define BREAKPOINT_QUERY_INTERFACE "breakpoint_query"