Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | FindCtx |
struct | CollectCtx |
|
static |
Definition at line 64 of file meta.c.
References addr, collect_nodes_cb(), rz_analysis_t::meta, NULL, rz_interval_tree_all_at(), rz_pvector_new(), and type.
Referenced by rz_meta_get_all_at().
|
static |
Definition at line 56 of file meta.c.
References rz_interval_node_t::data, item_matches_filter(), and rz_pvector_push().
Referenced by collect_nodes_at(), collect_nodes_in(), and collect_nodes_intersect().
|
static |
Definition at line 77 of file meta.c.
References addr, collect_nodes_cb(), rz_analysis_t::meta, NULL, rz_interval_tree_all_in(), rz_pvector_new(), and type.
Referenced by rz_meta_get_all_in().
|
static |
Definition at line 90 of file meta.c.
References collect_nodes_cb(), test_evm::end, rz_analysis_t::meta, NULL, rz_interval_tree_all_intersect(), rz_pvector_new(), start, and type.
Referenced by del(), and rz_meta_get_all_intersect().
|
static |
Definition at line 155 of file meta.c.
References a, addr, collect_nodes_intersect(), test_evm::end, item_matches_filter(), NULL, rz_interval_tree_delete(), rz_interval_tree_foreach, rz_interval_tree_iter_get(), rz_pvector_foreach, rz_pvector_free(), rz_pvector_new(), rz_pvector_push(), type, ut64(), and UT64_MAX.
Referenced by clusterCommand(), rz_io_map_cleanup(), rz_meta_del(), rz_meta_space_unset_for(), and rz_rbtree_aug_delete().
|
static |
Definition at line 29 of file meta.c.
References addr, find_node_cb(), rz_analysis_t::meta, NULL, rz_interval_tree_all_at(), and type.
Referenced by meta_set(), rz_meta_get_at(), and rz_meta_get_string().
|
static |
Definition at line 20 of file meta.c.
References rz_interval_node_t::data, and item_matches_filter().
Referenced by find_node_at(), and find_node_in().
|
static |
Definition at line 39 of file meta.c.
References addr, find_node_cb(), rz_analysis_t::meta, NULL, rz_interval_tree_all_in(), and type.
Referenced by rz_meta_get_in().
|
inlinestatic |
Definition at line 103 of file meta.c.
References RZ_META_TYPE_STRING, RZ_STRING_ENC_8BIT, RZ_STRING_ENC_UTF8, and type.
Referenced by meta_set().
|
static |
Definition at line 9 of file meta.c.
References RZ_META_TYPE_ANY, rz_analysis_meta_item_t::space, type, and rz_analysis_meta_item_t::type.
Referenced by collect_nodes_cb(), del(), and find_node_cb().
|
static |
Definition at line 107 of file meta.c.
References a, rz_interval_node_t::data, rz_interval_node_t::end, find_node_at(), free(), from, is_string_with_zeroes(), NULL, rz_interval_tree_insert(), rz_interval_tree_resize(), RZ_NEW0, rz_spaces_current(), rz_str_ndup(), rz_analysis_meta_item_t::size, rz_analysis_meta_item_t::space, cmd_descs_generate::str, rz_analysis_meta_item_t::str, strdup(), rz_analysis_meta_item_t::subtype, to, type, and rz_analysis_meta_item_t::type.
Referenced by rz_meta_set_string(), and rz_meta_set_with_subtype().
RZ_API void rz_meta_del | ( | RzAnalysis * | a, |
RzAnalysisMetaType | type, | ||
ut64 | addr, | ||
ut64 | size | ||
) |
Definition at line 187 of file meta.c.
References a, addr, del(), rz_spaces_current(), and type.
Referenced by add_comment(), define_data_ntimes(), meta_function_comment_remove(), meta_remove(), meta_remove_all(), meta_remove_size(), rz_cmd_eval_color_highlight_remove_all_handler(), rz_cmd_eval_color_highlight_remove_current_handler(), rz_comment_remove_all_handler(), rz_comment_remove_handler(), rz_core_analysis_undefine(), rz_core_meta_editor(), rz_core_visual_comments(), rz_core_visual_define(), rz_meta_remove_all_handler(), and rz_meta_remove_handler().
RZ_API RzPVector* rz_meta_get_all_at | ( | RzAnalysis * | a, |
ut64 | at | ||
) |
Definition at line 219 of file meta.c.
References a, collect_nodes_at(), RZ_META_TYPE_ANY, and rz_spaces_current().
Referenced by can_emulate_metadata(), ds_disassemble(), and rz_analysis_reflines_get().
RZ_API RzPVector* rz_meta_get_all_in | ( | RzAnalysis * | a, |
ut64 | at, | ||
RzAnalysisMetaType | type | ||
) |
Definition at line 223 of file meta.c.
References a, collect_nodes_in(), rz_spaces_current(), and type.
Referenced by ds_print_meta_infos(), requires_op_size(), rz_analysis_fcn(), and rz_core_analysis_esil().
RZ_API RzPVector* rz_meta_get_all_intersect | ( | RzAnalysis * | a, |
ut64 | start, | ||
ut64 | size, | ||
RzAnalysisMetaType | type | ||
) |
Definition at line 227 of file meta.c.
References a, collect_nodes_intersect(), test_evm::end, NULL, rz_return_val_if_fail, rz_spaces_current(), start, type, ut64(), and UT64_MAX.
Referenced by rz_core_analysis_get_stats().
RZ_API RzAnalysisMetaItem* rz_meta_get_at | ( | RzAnalysis * | a, |
ut64 | addr, | ||
RzAnalysisMetaType | type, | ||
RZ_OUT RZ_NULLABLE ut64 * | size | ||
) |
Definition at line 207 of file meta.c.
References a, addr, rz_interval_node_t::data, rz_interval_node_t::end, find_node_at(), NULL, rz_spaces_current(), rz_interval_node_t::start, and type.
Referenced by __core_analysis_fcn(), ds_print_comments_right(), ds_print_core_vmode(), rz_core_disasm_pdi_with_buf(), rz_core_visual_cmd(), rz_meta_data_at_handler(), and rz_meta_string_at_handler().
RZ_API RzIntervalNode* rz_meta_get_in | ( | RzAnalysis * | a, |
ut64 | addr, | ||
RzAnalysisMetaType | type | ||
) |
Definition at line 215 of file meta.c.
References a, addr, find_node_in(), rz_spaces_current(), and type.
Referenced by annotated_hexdump().
RZ_API ut64 rz_meta_get_size | ( | RzAnalysis * | a, |
RzAnalysisMetaType | type | ||
) |
Definition at line 278 of file meta.c.
References a, rz_interval_node_t::end, NULL, rz_interval_tree_foreach, rz_interval_tree_iter_get(), RZ_MAX, RZ_META_TYPE_ANY, rz_interval_node_t::start, start, type, rz_analysis_meta_item_t::type, and ut64().
Referenced by rz_core_analysis_coverage_count().
RZ_API const char* rz_meta_get_string | ( | RzAnalysis * | a, |
RzAnalysisMetaType | type, | ||
ut64 | addr | ||
) |
Definition at line 146 of file meta.c.
References a, addr, rz_interval_node_t::data, find_node_at(), NULL, rz_spaces_current(), rz_analysis_meta_item_t::str, and type.
Referenced by annotated_hexdump(), disassembly_as_table(), do_ref_search(), ds_build_op_str(), ds_show_comments_right(), ds_show_refs(), is_filtered_flag(), print_rop(), rz_analysis_xrefs_to_list_handler(), rz_cmd_eval_color_highlight_current_instruction_handler(), rz_cmd_eval_color_highlight_instruction_word_handler(), rz_comment_at_handler(), rz_comment_filelink_handler(), rz_core_analysis_get_comments(), rz_core_disasm_pdi_with_buf(), rz_core_meta_append(), rz_core_meta_comment_add(), rz_core_meta_editor(), rz_core_print_disasm_json(), rz_core_visual_view_rop(), rz_core_visual_xrefs(), rz_meta_type_current_handler(), and visual_comma().
RZ_API void rz_meta_rebase | ( | RzAnalysis * | analysis, |
ut64 | diff | ||
) |
Definition at line 251 of file meta.c.
References rz_interval_node_t::end, rz_interval_tree_t::free, rz_analysis_t::meta, NULL, rz_interval_tree_fini(), rz_interval_tree_foreach, rz_interval_tree_init(), rz_interval_tree_insert(), rz_interval_tree_iter_get(), rz_interval_node_t::start, and ut64().
Referenced by __rebase_everything().
RZ_API bool rz_meta_set | ( | RzAnalysis * | a, |
RzAnalysisMetaType | type, | ||
ut64 | addr, | ||
ut64 | size, | ||
const char * | str | ||
) |
Definition at line 191 of file meta.c.
References a, addr, rz_meta_set_with_subtype(), cmd_descs_generate::str, and type.
Referenced by _CbInRangeAav(), add_string_ref(), define_data_ntimes(), meta_set_flag(), meta_set_string(), objc_find_refs(), run_basic_block_analysis(), rz_core_bin_apply_entry(), rz_core_bin_apply_imports(), rz_core_bin_apply_relocs(), rz_core_bin_apply_sections(), rz_core_bin_apply_symbols(), rz_core_visual_define(), rz_meta_set_data_at(), set_bin_relocs(), and set_new_xref().
RZ_API void rz_meta_set_data_at | ( | RzAnalysis * | a, |
ut64 | addr, | ||
ut64 | wordsz | ||
) |
Definition at line 307 of file meta.c.
References a, addr, NULL, rz_meta_set(), RZ_META_TYPE_DATA, and rz_return_if_fail.
Referenced by apply_case(), and rz_analysis_walkthrough_casetbl().
RZ_API bool rz_meta_set_string | ( | RzAnalysis * | a, |
RzAnalysisMetaType | type, | ||
ut64 | addr, | ||
const char * | s | ||
) |
Definition at line 141 of file meta.c.
References a, addr, meta_set(), RZ_STRING_ENC_UTF8, s, and type.
Referenced by apply_switch(), chip8_anop(), gb_op_calljump(), meta_gb_bankswitch_cmt(), rz_analysis_dwarf_integrate_functions(), rz_analysis_extract_rarg(), rz_cmd_eval_color_highlight_current_instruction_handler(), rz_cmd_eval_color_highlight_instruction_word_handler(), rz_comment_filelink_handler(), rz_core_analysis_esil(), rz_core_meta_append(), rz_core_meta_comment_add(), rz_core_meta_editor(), rz_core_visual_graph(), rz_core_visual_view_rop(), set_offset_hint(), type_match(), and visual_comma().
RZ_API bool rz_meta_set_with_subtype | ( | RzAnalysis * | m, |
RzAnalysisMetaType | type, | ||
int | subtype, | ||
ut64 | addr, | ||
ut64 | size, | ||
const char * | str | ||
) |
Definition at line 195 of file meta.c.
References addr, test_evm::end, regress::m, meta_set(), rz_return_val_if_fail, cmd_descs_generate::str, type, ut64(), and UT64_MAX.
Referenced by rz_core_bin_apply_strings(), rz_core_meta_string_add(), and rz_meta_set().
RZ_API int rz_meta_space_count_for | ( | RzAnalysis * | a, |
const RzSpace * | space | ||
) |
Definition at line 295 of file meta.c.
References a, r, rz_interval_tree_foreach, and rz_analysis_meta_item_t::space.
Referenced by meta_count_for().
RZ_API void rz_meta_space_unset_for | ( | RzAnalysis * | a, |
const RzSpace * | space | ||
) |
Definition at line 274 of file meta.c.
References a, del(), RZ_META_TYPE_ANY, and UT64_MAX.
Referenced by meta_unset_for().
Definition at line 236 of file meta.c.
References RZ_META_TYPE_CODE, RZ_META_TYPE_COMMENT, RZ_META_TYPE_DATA, RZ_META_TYPE_FORMAT, RZ_META_TYPE_HIDE, RZ_META_TYPE_HIGHLIGHT, RZ_META_TYPE_MAGIC, RZ_META_TYPE_STRING, RZ_META_TYPE_VARTYPE, and type.
Referenced by rz_core_meta_print().