Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Definition at line 50 of file xrefs.c.
References rz_analysis_ref_t::from, list(), rz_analysis_xref_new(), rz_list_append(), rz_analysis_ref_t::to, rz_analysis_ref_t::type, and v.
Referenced by listxrefs(), and mylistrefs_cb().
|
static |
Definition at line 278 of file xrefs.c.
References rz_analysis_bb_t::addr, rz_analysis_function_t::bbs, i, list(), listxrefs(), rz_analysis_bb_t::ninstr, NULL, rz_analysis_block_get_op_offset(), rz_analysis_xref_list_new(), sortxrefs(), and ut64().
Referenced by rz_analysis_function_get_xrefs_from(), and rz_analysis_function_get_xrefs_to().
Definition at line 87 of file xrefs.c.
References addr, appendRef(), d, list(), regress::m, mylistrefs_cb(), NULL, and UT64_MAX.
Referenced by fcn_get_refs(), rz_analysis_xrefs_get_from(), rz_analysis_xrefs_get_to(), and rz_analysis_xrefs_list().
Definition at line 61 of file xrefs.c.
References appendRef(), list(), and v.
Referenced by listxrefs().
|
static |
RZ_API RzList* rz_analysis_function_get_xrefs_from | ( | RzAnalysisFunction * | fcn | ) |
Definition at line 297 of file xrefs.c.
References rz_analysis_function_t::analysis, fcn_get_refs(), rz_analysis_t::ht_xrefs_from, NULL, and rz_return_val_if_fail.
Referenced by __refs(), analysis_path_exists(), autoname_imp_trampoline(), check_purity(), fcn_print_info(), function_list_print_as_cmd(), function_list_print_to_table(), function_print_to_json(), get_cgnodes(), getref(), rz_analysis_analyze_fcn_refs(), rz_analysis_del_jmprefs(), rz_analysis_function_xrefs_handler(), rz_analysis_set_stringrefs(), rz_analysis_trim_jmprefs(), rz_core_analysis_callgraph(), rz_core_analysis_calls_count(), rz_core_analysis_coderefs(), rz_core_analysis_datarefs(), rz_core_analysis_fcn_get_calls(), rz_core_analysis_function_add(), rz_core_analysis_function_autoname(), rz_core_analysis_function_strings_print(), and rz_core_visual_xrefs().
RZ_API RzList* rz_analysis_function_get_xrefs_to | ( | RzAnalysisFunction * | fcn | ) |
Definition at line 302 of file xrefs.c.
References rz_analysis_function_t::analysis, fcn_get_refs(), rz_analysis_t::ht_xrefs_to, NULL, and rz_return_val_if_fail.
Referenced by fcn_print_info(), function_list_print_to_table(), function_print_to_json(), and getref().
RZ_API const char* rz_analysis_ref_type_tostring | ( | RzAnalysisXRefType | t | ) |
Definition at line 307 of file xrefs.c.
References RZ_ANALYSIS_XREF_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_CODE, RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_NULL, and RZ_ANALYSIS_XREF_TYPE_STRING.
RZ_API bool rz_analysis_xref_del | ( | RzAnalysis * | analysis, |
ut64 | from, | ||
ut64 | to | ||
) |
Definition at line 163 of file xrefs.c.
References from, RZ_ANALYSIS_XREF_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_CODE, RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_NULL, RZ_ANALYSIS_XREF_TYPE_STRING, rz_analysis_xrefs_deln(), and to.
Referenced by rz_analysis_xrefs_del_handler().
|
static |
Definition at line 34 of file xrefs.c.
References free().
Referenced by rz_analysis_xrefs_set(), and xrefs_ref_free().
Definition at line 38 of file xrefs.c.
References free(), and rz_list_newf().
Referenced by fcn_get_refs(), rz_analysis_xrefs_get_from(), rz_analysis_xrefs_get_to(), and rz_analysis_xrefs_list().
|
static |
Definition at line 24 of file xrefs.c.
References rz_analysis_ref_t::from, from, RZ_ANALYSIS_XREF_TYPE_CODE, RZ_NEW, rz_analysis_ref_t::to, to, type, and rz_analysis_ref_t::type.
Referenced by appendRef(), and rz_analysis_xrefs_set().
RZ_API ut64 rz_analysis_xrefs_count | ( | RzAnalysis * | analysis | ) |
Definition at line 272 of file xrefs.c.
References count_cb(), rz_analysis_t::ht_xrefs_to, and ut64().
Referenced by rz_print_analysis_details_handler().
RZ_API bool rz_analysis_xrefs_deln | ( | RzAnalysis * | analysis, |
ut64 | from, | ||
ut64 | to, | ||
RzAnalysisXRefType | type | ||
) |
Definition at line 148 of file xrefs.c.
References from, rz_analysis_t::ht_xrefs_from, rz_analysis_t::ht_xrefs_to, NULL, and to.
Referenced by rz_analysis_del_jmprefs(), rz_analysis_trim_jmprefs(), rz_analysis_xref_del(), and rz_analysis_xrefs_set().
RZ_API RzList* rz_analysis_xrefs_get_from | ( | RzAnalysis * | analysis, |
ut64 | addr | ||
) |
Definition at line 187 of file xrefs.c.
References addr, rz_analysis_t::ht_xrefs_from, list(), listxrefs(), NULL, rz_analysis_xref_list_new(), rz_list_free(), and sortxrefs().
Referenced by ds_build_op_str(), ds_print_ptr(), ds_show_refs(), rz_analysis_xrefs_from_list_handler(), rz_analyze_all_data_references_to_code_handler(), rz_core_print_disasm_json(), and rz_core_visual_xrefs().
RZ_API RzList* rz_analysis_xrefs_get_to | ( | RzAnalysis * | analysis, |
ut64 | addr | ||
) |
Definition at line 173 of file xrefs.c.
References addr, rz_analysis_t::ht_xrefs_to, list(), listxrefs(), NULL, rz_analysis_xref_list_new(), rz_list_free(), and sortxrefs().
Referenced by __op_refs(), __xrefs(), add_single_addr_xrefs(), analysis_graph_to(), do_ref_search(), ds_show_xrefs(), get_xrefs(), objc_find_refs(), rz_analysis_vtable_parse_at(), rz_analysis_xrefs_copy_handler(), rz_analysis_xrefs_del_handler(), rz_analysis_xrefs_to_graph_cmd_handler(), rz_analysis_xrefs_to_list_handler(), rz_core_analysis_fcn(), rz_core_analysis_propagate_noreturn(), rz_core_print_disasm_json(), rz_core_visual_xrefs(), vtable_is_addr_vtable_start_msvc(), and xrefs_graph().
RZ_API bool rz_analysis_xrefs_init | ( | RzAnalysis * | analysis | ) |
Definition at line 245 of file xrefs.c.
References rz_analysis_t::ht_xrefs_from, rz_analysis_t::ht_xrefs_to, NULL, autogen_x86imm::tmp, and xrefs_ht_free().
Referenced by __rebase_everything(), rz_analysis_new(), and rz_analysis_xrefs_del_all_handler().
RZ_API RZ_OWN RzList* rz_analysis_xrefs_list | ( | RzAnalysis * | analysis | ) |
Get list of all xrefs.
analysis | RzAnalysis instance |
Definition at line 206 of file xrefs.c.
References rz_analysis_t::ht_xrefs_from, list(), listxrefs(), NULL, rz_analysis_xref_list_new(), rz_return_val_if_fail, sortxrefs(), and UT64_MAX.
Referenced by rz_analysis_xrefs_list_handler(), and rz_core_analysis_resolve_jumps().
RZ_API bool rz_analysis_xrefs_set | ( | RzAnalysis * | analysis, |
ut64 | from, | ||
ut64 | to, | ||
RzAnalysisXRefType | type | ||
) |
Definition at line 117 of file xrefs.c.
References from, rz_analysis_t::ht_xrefs_from, rz_analysis_t::ht_xrefs_to, rz_io_bind_t::io, rz_analysis_t::iob, rz_io_bind_t::is_valid_offset, rz_analysis_xref_free(), rz_analysis_xref_new(), rz_analysis_xrefs_deln(), set_xref(), to, and type.
Referenced by __core_analysis_fcn(), __rebase_xrefs_i(), _analysis_calls(), _CbInRangeAav(), add_string_ref(), apply_case(), apply_switch(), core_analysis_followptr(), esilbreak_mem_read(), golang_recover_string_arm32(), golang_recover_string_arm64(), golang_recover_string_mips32(), golang_recover_string_mips64(), golang_recover_string_ppc64(), golang_recover_string_riscv64(), golang_recover_string_x64(), golang_recover_string_x86(), objc_find_refs(), run_basic_block_analysis(), rz_analysis_set_stringrefs(), rz_analysis_xrefs_copy_handler(), rz_core_analysis_esil(), rz_core_analysis_fcn(), rz_core_bin_load(), set_new_xref(), xrefs_load_cb(), and xrefs_set().
RZ_API RzAnalysisXRefType rz_analysis_xrefs_type | ( | char | ch | ) |
Definition at line 232 of file xrefs.c.
References RZ_ANALYSIS_XREF_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_CODE, RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_NULL, and RZ_ANALYSIS_XREF_TYPE_STRING.
RZ_API const char* rz_analysis_xrefs_type_tostring | ( | RzAnalysisXRefType | type | ) |
Definition at line 216 of file xrefs.c.
References RZ_ANALYSIS_XREF_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_CODE, RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_NULL, RZ_ANALYSIS_XREF_TYPE_STRING, and type.
Referenced by do_ref_search(), ds_show_xrefs(), rz_analysis_xrefs_copy_handler(), rz_analysis_xrefs_list_handler(), rz_analysis_xrefs_to_list_handler(), rz_core_print_disasm_json(), rz_core_visual_xrefs(), xref_print_to_json(), and xrefs_list_print().
|
static |
Definition at line 98 of file xrefs.c.
References cb, rz_analysis_ref_t::from, regress::m, NULL, rz_analysis_ref_t::to, ut64(), and xrefs_ref_free().
Referenced by rz_analysis_xrefs_set().
|
static |
Definition at line 83 of file xrefs.c.
References list(), ref_cmp(), and rz_list_sort().
Referenced by fcn_get_refs(), rz_analysis_xrefs_get_from(), rz_analysis_xrefs_get_to(), and rz_analysis_xrefs_list().
|
static |
Definition at line 42 of file xrefs.c.
Referenced by rz_analysis_xrefs_init().
|
static |
Definition at line 46 of file xrefs.c.
References rz_analysis_xref_free().
Referenced by set_xref().