15 #define RZ_BP_MAXPIDS 10
16 #define RZ_BP_CONT_NORMAL 0
169 typedef void *RzSerializeBpParser;
int bits(struct state *s, int need)
RZ_API RZ_BORROW RzBreakpointItem * rz_bp_get_ending_at(RZ_NONNULL RzBreakpoint *bp, ut64 addr)
Get the breakpoint b that fulfills b->addr + b-> size == addr After hitting a (usually software) brea...
RZ_API int rz_bp_set_trace_all(RzBreakpoint *bp, int set)
RZ_API bool rz_bp_is_valid(RzBreakpoint *bp, RzBreakpointItem *b)
RZ_API int rz_bp_del_index(RzBreakpoint *bp, int idx)
RZ_API RzBreakpointItem * rz_bp_get_in(RzBreakpoint *bp, ut64 addr, int perm)
RZ_API RzBreakpointItem * rz_bp_get_index(RzBreakpoint *bp, int idx)
RZ_API int rz_bp_get_index_at(RzBreakpoint *bp, ut64 addr)
RZ_API RzBreakpoint * rz_bp_new(RZ_BORROW RZ_NONNULL RzBreakpointContext *ctx)
RZ_API int rz_bp_set_trace(RzBreakpoint *bp, ut64 addr, int set)
RZ_API bool rz_bp_item_set_data(RZ_NONNULL RzBreakpointItem *item, RZ_NULLABLE const char *data)
set the data for a RzBreakpointItem
RZ_API RZ_BORROW RzBreakpointItem * rz_bp_get_at(RZ_NONNULL RzBreakpoint *bp, ut64 addr)
Get the breakpoint at exactly addr.
RZ_API int rz_bp_size(RZ_NONNULL RzBreakpoint *bp, int bits)
Predict the software breakpoint size to use for the given arch-bitness.
RZ_API RzBreakpoint * rz_bp_free(RzBreakpoint *bp)
RZ_API bool rz_bp_del(RzBreakpoint *bp, ut64 addr)
RZ_API bool rz_bp_del_all(RzBreakpoint *bp)
RZ_API RzBreakpointItem * rz_bp_add_hw(RzBreakpoint *bp, ut64 addr, int size, int perm)
RZ_API RzBreakpointItem * rz_bp_enable(RzBreakpoint *bp, ut64 addr, int set, int count)
RZ_API bool rz_bp_item_set_cond(RZ_NONNULL RzBreakpointItem *item, RZ_NULLABLE const char *cond)
set the condition for a RzBreakpointItem
RZ_API int rz_bp_add_fault(RzBreakpoint *bp, ut64 addr, int size, int perm)
RZ_API int rz_bp_get_bytes(RZ_NONNULL RzBreakpoint *bp, ut64 addr, RZ_NONNULL ut8 *buf, int len)
RZ_API bool rz_bp_enable_all(RzBreakpoint *bp, int set)
RZ_API bool rz_bp_item_set_name(RZ_NONNULL RzBreakpointItem *item, RZ_NULLABLE const char *name)
set the name for a RzBreakpointItem
RZ_API bool rz_bp_item_set_expr(RZ_NONNULL RzBreakpointItem *item, RZ_NULLABLE const char *expr)
set the expr for a RzBreakpointItem
RZ_API RZ_BORROW RzBreakpointItem * rz_bp_add_sw(RZ_NONNULL RzBreakpoint *bp, ut64 addr, int size, int perm)
Add a software breakpoint size preferred size of the breakpoint, or 0 to determine automatically.
RZ_API int rz_bp_size_at(RZ_NONNULL RzBreakpoint *bp, ut64 addr)
Predict the software breakpoint size to use when placing a breakpoint at addr.
struct rz_bp_plugin_t rz_bp_plugin_arm
struct rz_bp_plugin_t rz_bp_plugin_bf
RZ_API void rz_bp_restore_one(RzBreakpoint *bp, RzBreakpointItem *b, bool set)
RZ_API int rz_bp_restore(RzBreakpoint *bp, bool set)
RZ_API bool rz_bp_restore_except(RzBreakpoint *bp, bool set, ut64 addr)
struct rz_bp_plugin_t rz_bp_plugin_mips
RZ_API void rz_bp_plugin_list(RzBreakpoint *bp)
RZ_API int rz_bp_use(RZ_NONNULL RzBreakpoint *bp, RZ_NONNULL const char *name)
RZ_API bool rz_bp_plugin_add(RzBreakpoint *bp, RZ_BORROW RZ_NONNULL RzBreakpointPlugin *plugin)
RZ_API int rz_bp_plugin_del(RzBreakpoint *bp, const char *name)
struct rz_bp_plugin_t rz_bp_plugin_ppc
struct rz_bp_plugin_t rz_bp_plugin_sh
RZ_API int rz_bp_traptrace_at(RzBreakpoint *bp, ut64 from, int len)
RZ_API void rz_bp_traptrace_list(RzBreakpoint *bp)
RZ_API void rz_bp_traptrace_enable(RzBreakpoint *bp, int enable)
RZ_API ut64 rz_bp_traptrace_next(RzBreakpoint *bp, ut64 addr)
RZ_API int rz_bp_traptrace_add(RzBreakpoint *bp, ut64 from, ut64 to)
RZ_API void rz_bp_traptrace_free(void *ptr)
RZ_API void rz_bp_traptrace_reset(RzBreakpoint *bp, int hard)
RZ_API RzList * rz_bp_traptrace_new(void)
RZ_API int rz_bp_traptrace_free_at(RzBreakpoint *bp, ut64 from)
RZ_API RZ_BORROW RzBreakpointItem * rz_bp_watch_add(RZ_NONNULL RzBreakpoint *bp, ut64 addr, int size, int hw, int perm)
struct rz_bp_plugin_t rz_bp_plugin_x86
static RzNumCalcValue expr(RzNum *, RzNumCalc *, int)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
struct rz_bp_arch_t RzBreakpointArch
struct rz_bp_plugin_t RzBreakpointPlugin
int(* RzBreakpointCallback)(struct rz_bp_t *bp, RzBreakpointItem *b, bool set)
struct rz_bp_trace_t RzBreakpointTrace
RZ_LIB_VERSION_HEADER(rz_bp)
struct rz_bp_t RzBreakpoint
struct rz_bp_item_t RzBreakpointItem
struct rz_bp_context_t RzBreakpointContext
Outer context of mappings/etc. in which the RzBreakpoint instance will operate in....
int(* PrintfCallback)(const char *str,...) RZ_PRINTF_CHECK(1
RZ_API bool rz_serialize_bp_load(RZ_NONNULL Sdb *db, RZ_NONNULL RzBreakpoint *bp, RZ_NULLABLE RzSerializeResultInfo *res)
Load a serialized breakpoints to a RzBreakpoint instance.
RZ_API void rz_serialize_bp_save(RZ_NONNULL Sdb *db, RZ_NONNULL RzBreakpoint *bp)
serialize and save the breakpoints in a sdb
RZ_API RzSerializeBpParser rz_serialize_bp_parser_new(void)
Create a new RzSerializeBpParser instance.
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr from
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
#define cond(bop, top, mask, flags)
Outer context of mappings/etc. in which the RzBreakpoint instance will operate in....
int(* bits_at)(ut64 addr, void *user)
get the arch-bitness to use at the given address (e.g. thumb or 32)
bool(* is_mapped)(ut64 addr, int perm, void *user)
check if the address is mapped and has the given permissions
void(* maps_sync)(void *user)
synchronize any maps from the debugee
RzBreakpointItem ** bps_idx
RzBreakpointCallback breakpoint
ut64(WINAPI *w32_GetEnabledXStateFeatures)()