Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | refline_end |
Macros | |
#define | mid_down_refline(a, r) ((r)->from > (r)->to && (a) < (r)->from && (a) > (r)->to) |
#define | mid_up_refline(a, r) ((r)->from < (r)->to && (a) > (r)->from && (a) < (r)->to) |
#define | mid_refline(a, r) (mid_down_refline(a, r) || mid_up_refline(a, r)) |
#define | in_refline(a, r) (mid_refline(a, r) || (a) == (r)->from || (a) == (r)->to) |
Typedefs | |
typedef struct refline_end | ReflineEnd |
Definition at line 12 of file reflines.c.
Definition at line 9 of file reflines.c.
#define mid_refline | ( | a, | |
r | |||
) | (mid_down_refline(a, r) || mid_up_refline(a, r)) |
Definition at line 11 of file reflines.c.
Definition at line 10 of file reflines.c.
typedef struct refline_end ReflineEnd |
Definition at line 39 of file reflines.c.
References addr, cmp_asc(), rz_analysis_refline_t::direction, free(), rz_analysis_refline_t::from, setup::idx, rz_analysis_refline_t::index, rz_analysis_refline_t::level, list(), refline_end_new(), rz_list_add_sorted(), rz_list_append(), RZ_NEW0, rz_analysis_refline_t::to, and to.
Referenced by rz_analysis_reflines_get().
Definition at line 298 of file reflines.c.
References b, level, pos, rz_buf_append_string(), and rz_str_pad().
Referenced by rz_analysis_reflines_str().
|
static |
Definition at line 20 of file reflines.c.
Referenced by add_refline().
|
static |
Definition at line 24 of file reflines.c.
Referenced by rz_analysis_reflines_str().
|
static |
Definition at line 311 of file reflines.c.
References b, pos, r, rz_buf_append_string(), rz_buf_write_at(), and rz_str_pad().
Referenced by rz_analysis_reflines_str().
|
static |
Definition at line 279 of file reflines.c.
References addr, rz_analysis_refline_t::from, and rz_analysis_refline_t::to.
Referenced by rz_analysis_reflines_str().
|
static |
Definition at line 28 of file reflines.c.
References refline_end::is_from, NULL, refline_end::r, RZ_NEW0, refline_end::val, and val.
Referenced by add_refline().
|
inlinestatic |
Definition at line 327 of file reflines.c.
References addr, rz_analysis_refline_t::direction, rz_analysis_refline_t::from, and rz_analysis_refline_t::to.
Referenced by rz_analysis_reflines_str().
RZ_API void rz_analysis_reflines_free | ( | RzAnalysisRefline * | rl | ) |
RZ_API RzList* rz_analysis_reflines_get | ( | RzAnalysis * | analysis, |
ut64 | addr, | ||
const ut8 * | buf, | ||
ut64 | len, | ||
int | nlines, | ||
int | linesout, | ||
int | linescall | ||
) |
Definition at line 82 of file reflines.c.
References add_refline(), addr, count, rz_interval_node_t::data, test_evm::end, free(), rz_io_bind_t::io, rz_analysis_t::iob, refline_end::is_from, rz_io_bind_t::is_valid_offset, rz_analysis_case_obj_t::jump, len, rz_analysis_refline_t::level, list(), rz_analysis_t::maxreflines, memset(), metas, min, NULL, op, opc, refline_end::r, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_MASK_HINT, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_SWITCH, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_list_free(), rz_list_length(), rz_list_newf(), rz_meta_get_all_at(), RZ_META_TYPE_DATA, RZ_META_TYPE_FORMAT, RZ_META_TYPE_HIDE, RZ_META_TYPE_MAGIC, RZ_META_TYPE_STRING, RZ_NEWS0, RZ_PERM_X, rz_pvector_foreach, rz_pvector_free(), skip(), rz_analysis_meta_item_t::type, ut64(), and UT64_MAX.
Referenced by ds_reflines_init().
Definition at line 266 of file reflines.c.
References a, addr, len, list(), and rz_analysis_refline_t::to.
Referenced by ds_adistrick_comments().
RZ_API RzAnalysisRefStr* rz_analysis_reflines_str | ( | void * | _core, |
ut64 | addr, | ||
int | opts | ||
) |
Definition at line 344 of file reflines.c.
References _core, add_spaces(), addr, rz_core_t::analysis, b, rz_cons_context_t::breaked, c, cmp_by_ref_lvl(), rz_core_t::cons, rz_cons_t::context, fill_level(), rz_analysis_refline_t::from, get_corner_char(), in_refline, rz_analysis_refline_t::level, rz_analysis_t::lineswidth, memset(), NULL, out, pos, refline_kept(), rz_analysis_t::reflines, RZ_ANALYSIS_REFLINE_TYPE_MIDDLE_AFTER, RZ_ANALYSIS_REFLINE_TYPE_MIDDLE_BEFORE, RZ_ANALYSIS_REFLINE_TYPE_WIDE, rz_buf_append_string(), rz_buf_free(), rz_buf_new_with_bytes(), rz_buf_to_string(), rz_buf_write_at(), rz_list_add_sorted(), rz_list_free(), rz_list_new(), RZ_NEW0, rz_return_val_if_fail, rz_str_append(), rz_str_cpy, rz_str_prepend(), cmd_descs_generate::str, and rz_analysis_refline_t::to.
Referenced by ds_begin_cont(), and ds_update_ref_lines().
RZ_API void rz_analysis_reflines_str_free | ( | RzAnalysisRefStr * | refstr | ) |
Definition at line 483 of file reflines.c.
References rz_analysis_ref_char::cols, free(), and rz_analysis_ref_char::str.
Referenced by ds_begin_cont().