Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | BpLoadCtx |
Enumerations | |
enum | { BP_FIELD_NAME , BP_FIELD_MODULE_NAME , BP_FIELD_MODULE_DELTA , BP_FIELD_DELTA , BP_FIELD_SIZE , BP_FIELD_SWSTEP , BP_FIELD_PERM , BP_FIELD_HW , BP_FIELD_TRACE , BP_FIELD_INTERNAL , BP_FIELD_ENABLED , BP_FIELD_TOGGLEHITS , BP_FIELD_HITS , BP_FIELD_PIDS , BP_FIELD_DATA , BP_FIELD_COND , BP_FIELD_EXPR } |
Functions | |
RZ_API void | rz_serialize_bp_save (RZ_NONNULL Sdb *db, RZ_NONNULL RzBreakpoint *bp) |
serialize and save the breakpoints in a sdb More... | |
RZ_API RzSerializeBpParser | rz_serialize_bp_parser_new (void) |
Create a new RzSerializeBpParser instance. More... | |
static bool | bp_load_cb (void *user, const char *k, const char *v) |
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. More... | |
anonymous enum |
Definition at line 65 of file serialize_bp.c.
Definition at line 122 of file serialize_bp.c.
References rz_bp_item_t::addr, BP_FIELD_DELTA, BP_FIELD_ENABLED, BP_FIELD_HITS, BP_FIELD_HW, BP_FIELD_INTERNAL, BP_FIELD_MODULE_DELTA, BP_FIELD_MODULE_NAME, BP_FIELD_PERM, BP_FIELD_PIDS, BP_FIELD_SIZE, BP_FIELD_SWSTEP, BP_FIELD_TOGGLEHITS, BP_FIELD_TRACE, rz_json_t::children, rz_bp_item_t::delta, rz_bp_item_t::enabled, rz_bp_item_t::hits, rz_bp_item_t::hw, if(), rz_bp_item_t::internal, k, rz_bp_item_t::module_delta, rz_bp_item_t::module_name, rz_bp_item_t::name, NULL, rz_bp_item_t::perm, rz_bp_item_t::pids, RZ_JSON_ARRAY, RZ_JSON_BOOLEAN, RZ_JSON_INTEGER, RZ_JSON_OBJECT, rz_json_parse(), RZ_JSON_STRING, RZ_KEY_PARSER_JSON, rz_bp_item_t::size, strdup(), rz_bp_item_t::swstep, rz_bp_item_t::togglehits, rz_bp_item_t::trace, rz_json_t::type, and v.
Referenced by rz_serialize_bp_load().
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.
db | sdb to load the breakpoints from |
bp | RzBreakpoint instance to load the deserialized breakpoints |
res | RzSerializeResultInfo to store info/errors/warnings |
Definition at line 302 of file serialize_bp.c.
References bp_load_cb(), rz_bp_del_all(), rz_key_parser_free(), rz_return_val_if_fail, rz_serialize_bp_parser_new(), RZ_SERIALIZE_ERR, and sdb_foreach().
Referenced by rz_serialize_debug_load().
RZ_API RzSerializeBpParser rz_serialize_bp_parser_new | ( | void | ) |
Create a new RzSerializeBpParser instance.
Definition at line 90 of file serialize_bp.c.
References BP_FIELD_COND, BP_FIELD_DATA, BP_FIELD_DELTA, BP_FIELD_ENABLED, BP_FIELD_EXPR, BP_FIELD_HITS, BP_FIELD_HW, BP_FIELD_INTERNAL, BP_FIELD_MODULE_DELTA, BP_FIELD_MODULE_NAME, BP_FIELD_NAME, BP_FIELD_PERM, BP_FIELD_PIDS, BP_FIELD_SIZE, BP_FIELD_SWSTEP, BP_FIELD_TOGGLEHITS, BP_FIELD_TRACE, NULL, cmd_descs_generate::parser, rz_key_parser_add(), and rz_key_parser_new().
Referenced by rz_serialize_bp_load().
RZ_API void rz_serialize_bp_save | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzBreakpoint * | bp | ||
) |
serialize and save the breakpoints in a sdb
db | sdb to save the breakpoints |
bp | RzBreakpoint instance to serialize and save |
Definition at line 13 of file serialize_bp.c.
References rz_bp_item_t::addr, rz_bp_item_t::cond, rz_bp_item_t::data, rz_bp_item_t::delta, rz_bp_item_t::enabled, rz_bp_item_t::expr, rz_bp_item_t::hits, rz_bp_item_t::hw, i, rz_bp_item_t::internal, key, rz_bp_item_t::module_delta, rz_bp_item_t::module_name, rz_bp_item_t::name, rz_bp_item_t::perm, PFMT64x, rz_bp_item_t::pids, pj_end(), pj_free(), pj_i(), pj_ka(), pj_kb(), pj_ki(), pj_kN(), pj_kn(), pj_ks(), pj_new(), pj_o(), pj_string(), RZ_BP_MAXPIDS, rz_return_if_fail, rz_strf, sdb_set(), rz_bp_item_t::size, rz_bp_item_t::swstep, rz_bp_item_t::togglehits, and rz_bp_item_t::trace.
Referenced by rz_serialize_debug_save().