Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | VTABLE_BUFF_SIZE 10 |
#define | VTABLE_READ_ADDR_FUNC(fname, read_fname, sz) |
#define VTABLE_READ_ADDR_FUNC | ( | fname, | |
read_fname, | |||
sz | |||
) |
RZ_API void rz_analysis_list_vtables | ( | RzAnalysis * | analysis, |
RzOutputMode | mode | ||
) |
Definition at line 288 of file vtable.c.
References rz_analysis_function_t::name, NULL, PFMT64d, PFMT64x, pj_a(), pj_end(), pj_free(), pj_ka(), pj_kN(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_analysis_get_fcn_in(), rz_analysis_vtable_begin(), rz_analysis_vtable_info_get_size(), rz_analysis_vtable_search(), rz_cons_newline(), rz_cons_printf(), rz_cons_println(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, rz_vector_foreach, and ut64().
Referenced by rz_analysis_list_vtables_handler().
RZ_API bool rz_analysis_vtable_begin | ( | RzAnalysis * | analysis, |
RVTableContext * | context | ||
) |
Definition at line 41 of file vtable.c.
References rz_analysis_plugin_t::arch, rz_analysis_t::big_endian, rz_analysis_t::bits, rz_analysis_t::cpp_abi, rz_analysis_t::cur, is_arm(), rz_str_startswith(), and ut8.
Referenced by list_all_functions_at_vtable_offset(), rz_analysis_list_vtables(), rz_analysis_rtti_demangle_class_name(), rz_analysis_rtti_print_all(), rz_analysis_rtti_print_at_vtable(), and rz_analysis_rtti_recover_all().
RZ_API void rz_analysis_vtable_info_free | ( | RVTableInfo * | vtable | ) |
Definition at line 29 of file vtable.c.
References free(), and rz_vector_clear().
Referenced by rz_analysis_rtti_msvc_recover_all(), and rz_analysis_vtable_search().
Definition at line 37 of file vtable.c.
References ut64().
Referenced by recovery_apply_vtable(), rz_analysis_list_vtables(), and rz_analysis_vtable_search().
Definition at line 184 of file vtable.c.
References addr, calloc(), NULL, rz_analysis_xrefs_get_to(), rz_list_free(), rz_vector_init(), rz_vector_push(), ut64(), and vtable_is_value_in_text_section().
Referenced by rz_analysis_vtable_search().
Definition at line 219 of file vtable.c.
References rz_bin_bind_t::bin, rz_analysis_t::binb, rz_bin_bind_t::get_sections, if(), rz_io_bind_t::io, rz_analysis_t::iob, rz_io_bind_t::is_valid_offset, NULL, rz_analysis_vtable_info_free(), rz_analysis_vtable_info_get_size(), rz_analysis_vtable_parse_at(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_list_append(), rz_list_free(), rz_list_newf(), sections(), ST32_MAX, ut64(), vtable_is_addr_vtable_start(), and vtable_section_can_contain_vtables().
Referenced by rz_analysis_list_vtables(), rz_analysis_rtti_print_all(), and rz_analysis_rtti_recover_all().
|
static |
Definition at line 100 of file vtable.c.
References rz_str_endswith().
Referenced by vtable_is_addr_vtable_start_itanium().
Definition at line 68 of file vtable.c.
References value.
Referenced by vtable_is_addr_vtable_start_msvc(), and vtable_is_value_in_text_section().
|
static |
Definition at line 174 of file vtable.c.
References RZ_ANALYSIS_CPP_ABI_ITANIUM, RZ_ANALYSIS_CPP_ABI_MSVC, rz_return_val_if_reached, vtable_is_addr_vtable_start_itanium(), and vtable_is_addr_vtable_start_msvc().
Referenced by rz_analysis_vtable_search().
|
static |
Definition at line 112 of file vtable.c.
References NULL, section_can_contain_rtti(), st32, ut64(), UT64_MAX, value, and vtable_is_value_in_text_section().
Referenced by vtable_is_addr_vtable_start().
Definition at line 136 of file vtable.c.
References analop(), rz_analysis_ref_t::from, NULL, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_LEA, RZ_ANALYSIS_OP_TYPE_MOV, rz_analysis_xrefs_get_to(), rz_list_free(), UT64_MAX, vtable_addr_in_text_section(), VTABLE_BUFF_SIZE, and vtable_is_value_in_text_section().
Referenced by vtable_is_addr_vtable_start().
|
static |
Definition at line 75 of file vtable.c.
References ut64(), value, and vtable_addr_in_text_section().
Referenced by rz_analysis_vtable_parse_at(), vtable_is_addr_vtable_start_itanium(), and vtable_is_addr_vtable_start_msvc().
|
static |
Definition at line 89 of file vtable.c.
References rz_str_endswith().
Referenced by rz_analysis_vtable_search().