Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Definition at line 35 of file canalysis.c.
|
inlinestatic |
Definition at line 208 of file core_private.h.
References RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and val.
Referenced by open_core_file(), reopen_nobin_headers(), rz_analyse_name_handler(), rz_analysis_continue_until_call_handler(), rz_analysis_continue_until_syscall_handler(), rz_analysis_function_add_recu_handler(), rz_analysis_hint_set_offset_handler(), rz_analyze_all_objc_references_handler(), rz_analyze_recursively_all_function_types_handler(), rz_analyze_xrefs_section_bytes_handler(), rz_apply_signatures_from_sigdb_handler(), rz_basefind_compute_handler(), rz_cmd_debug_handler_set_handler(), rz_cmd_debug_process_close_handler(), rz_cmd_debug_step_back_handler(), rz_cmd_debug_step_frame_handler(), rz_cmd_debug_step_handler(), rz_cmd_debug_step_line_handler(), rz_cmd_debug_step_over_handler(), rz_cmd_debug_step_skip_handler(), rz_cmd_disassembly_n_bytes_handler(), rz_cmd_disassembly_n_instructions_handler(), rz_cmd_eval_color_load_theme_handler(), rz_cmd_info_archs_handler(), rz_cmd_info_binary_handler(), rz_cmd_info_class_as_source_handler(), rz_cmd_info_class_fields_handler(), rz_cmd_info_class_methods_handler(), rz_cmd_info_classes_handler(), rz_cmd_info_cur_export_handler(), rz_cmd_info_cur_section_handler(), rz_cmd_info_cur_segment_handler(), rz_cmd_info_cur_symbol_handler(), rz_cmd_info_dwarf_handler(), rz_cmd_info_entry_handler(), rz_cmd_info_entryexits_handler(), rz_cmd_info_exports_handler(), rz_cmd_info_fields_handler(), rz_cmd_info_guess_size_handler(), rz_cmd_info_handler(), rz_cmd_info_headers_handler(), rz_cmd_info_imports_handler(), rz_cmd_info_libs_handler(), rz_cmd_info_main_handler(), rz_cmd_info_memory_handler(), rz_cmd_info_pdb_load_handler(), rz_cmd_info_relocs_handler(), rz_cmd_info_resources_handler(), rz_cmd_info_sections_handler(), rz_cmd_info_segments_handler(), rz_cmd_info_signature_handler(), rz_cmd_info_source_handler(), rz_cmd_info_sourcelines_handler(), rz_cmd_info_sourcelines_here_handler(), rz_cmd_info_strings_handler(), rz_cmd_info_symbols_handler(), rz_cmd_info_trycatch_handler(), rz_cmd_info_versions_handler(), rz_cmd_info_whole_strings_handler(), rz_flag_add_handler(), rz_flag_append_handler(), rz_flag_comment_handler(), rz_flag_move_handler(), rz_flag_remove_handler(), rz_flag_space_add_handler(), rz_flag_space_remove_all_handler(), rz_flag_space_remove_handler(), rz_flag_space_rename_handler(), rz_flag_space_stack_pop_handler(), rz_flag_space_stack_push_handler(), rz_meta_format_handler(), rz_meta_hidden_handler(), rz_meta_magic_handler(), rz_open_handler(), rz_open_write_handler(), rz_print_commands_after_traps_handler(), rz_print_hexdump_comments_handler(), rz_print_hexdump_handler(), rz_print_hexdump_hex_common_handler(), rz_print_hexdump_hexl_common_handler(), rz_print_hexdump_n_lines_handler(), rz_print_hexdump_oct_handler(), rz_print_hexdump_signed_integer_common_handler(), rz_print_op_analysis_color_map_handler(), rz_push_escaped_handler(), rz_reopen_binary_handler(), rz_reopen_nobin_handler(), rz_reopen_nobin_write_handler(), rz_write_assembly_opcode_handler(), rz_write_block_handler(), rz_write_debruijn_handler(), rz_write_duplicate_handler(), rz_write_extend_hexbytes_handler(), rz_write_extend_shift_handler(), rz_write_extend_zero_handler(), rz_write_handler(), rz_write_mask_reset_handler(), rz_write_mask_set_handler(), rz_write_op_2byteswap_handler(), rz_write_op_4byteswap_handler(), rz_write_op_8byteswap_handler(), rz_write_op_decrypt_handler(), rz_write_op_encrypt_handler(), rz_write_op_sequence_handler(), rz_write_pcache_commit_handler(), rz_write_wide_string_handler(), rz_write_zero_string_handler(), rz_yank_hex_print_handler(), rz_yank_hexpairs_handler(), rz_yank_paste_handler(), rz_yank_print_handler(), rz_yank_string_handler(), rz_yank_string_print_handler(), rz_yank_to_handler(), and write_op_val().
Definition at line 40 of file canalysis.c.
Referenced by rz_analysis_function_list_ascii_handler().
RZ_IPI bool rz_analysis_var_global_list_show | ( | RzAnalysis * | analysis, |
RzCmdStateOutput * | state, | ||
RZ_NULLABLE const char * | name | ||
) |
Definition at line 6220 of file canalysis.c.
References addr, rz_analysis_var_global_t::addr, free(), rz_analysis_var_global_t::name, NULL, PFMT64x, pj_end(), pj_ks(), pj_o(), rz_analysis_var_global_get_all(), rz_analysis_var_global_get_byname(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_cons_printf(), rz_list_append(), rz_list_free(), rz_list_new(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_return_val_if_fail, rz_strf, rz_type_as_string(), rz_analysis_var_global_t::type, and rz_analysis_t::typedb.
Referenced by rz_analysis_print_global_variable_handler().
Definition at line 39 of file cagraph.c.
References rz_core_t::graph, rz_agraph_add_edge(), rz_agraph_get_node(), rz_cons_printf(), and v.
Referenced by cmd_agraph_edge().
RZ_IPI void rz_core_agraph_add_node | ( | RzCore * | core, |
const char * | title, | ||
const char * | body, | ||
int | color | ||
) |
Definition at line 12 of file cagraph.c.
References b, color, free(), rz_core_t::graph, rz_agraph_add_node_with_color(), rz_base64_decode_dyn(), rz_str_append(), RZ_STR_ISEMPTY, rz_str_replace(), rz_str_startswith(), and strdup().
Referenced by cmd_agraph_node().
Definition at line 52 of file cagraph.c.
References rz_core_t::graph, rz_agraph_del_edge(), rz_agraph_get_node(), rz_cons_printf(), and v.
Referenced by cmd_agraph_edge().
Definition at line 35 of file cagraph.c.
References rz_core_t::graph, and rz_agraph_del_node().
Referenced by cmd_agraph_node().
Definition at line 65 of file cagraph.c.
References rz_ascii_graph_t::can, rz_cons_canvas_t::color, rz_core_t::config, rz_core_t::graph, rz_cons_canvas_t::linemode, rz_agraph_print(), rz_agraph_set_title(), rz_config_get(), and rz_config_get_i().
Referenced by cmd_analysis_graph(), and rz_core_agraph_print().
Definition at line 147 of file cagraph.c.
References agraph_print_edge_dot(), agraph_print_node_dot(), rz_core_t::config, rz_core_t::graph, NULL, rz_agraph_foreach(), rz_agraph_foreach_edge(), rz_config_get(), and rz_cons_printf().
Referenced by rz_core_agraph_print().
Definition at line 195 of file cagraph.c.
References agraph_print_edge_gml(), agraph_print_node_gml(), rz_core_t::graph, NULL, rz_agraph_foreach(), rz_agraph_foreach_edge(), and rz_cons_printf().
Referenced by rz_core_agraph_print().
Definition at line 88 of file cagraph.c.
References rz_core_t::config, eprintf, rz_ascii_graph_t::force_update_seek, rz_core_t::graph, rz_ascii_graph_t::layout, rz_ascii_graph_t::need_set_layout, rz_ascii_graph_t::need_update_dim, NULL, rz_core_t::offset, rz_agraph_get_first_node(), rz_agraph_set_curnode(), rz_agraph_set_title(), rz_config_get(), rz_config_get_i(), rz_config_set_i(), rz_cons_enable_mouse(), rz_cons_is_interactive(), rz_cons_show_cursor(), rz_core_seek(), rz_core_visual_graph(), update_seek(), and ut64().
Referenced by dot_trace_traverse(), rz_core_agraph_print(), and rz_core_visual_graph().
Definition at line 164 of file cagraph.c.
References rz_core_t::graph, pj_a(), pj_end(), pj_free(), pj_k(), pj_new(), pj_o(), pj_string(), rz_agraph_print_json(), and rz_cons_println().
Referenced by rz_core_agraph_print().
Definition at line 159 of file cagraph.c.
References agraph_print_edge(), agraph_print_node(), rz_core_t::graph, NULL, rz_agraph_foreach(), and rz_agraph_foreach_edge().
Referenced by rz_core_agraph_print().
Definition at line 81 of file cagraph.c.
References free(), rz_core_t::graph, rz_agraph_get_sdb(), and sdb_querys().
Referenced by cmd_analysis_graph(), and rz_core_agraph_print().
Definition at line 72 of file cagraph.c.
References rz_core_t::config, e, rz_core_t::graph, rz_ascii_graph_t::is_tiny, NULL, rz_config_get_i(), rz_config_set_i(), and rz_core_visual_graph().
Referenced by rz_core_agraph_print().
Definition at line 2561 of file cmd_analysis.c.
References convert_dotcmd_to_image().
Referenced by rz_core_agraph_print().
Definition at line 8 of file cagraph.c.
References rz_core_t::graph, and rz_agraph_reset().
Referenced by cmd_analysis_graph(), dot_trace_traverse(), and rz_core_visual_graph().
RZ_IPI char* rz_core_analysis_all_vars_display | ( | RzCore * | core, |
RzAnalysisFunction * | fcn, | ||
bool | add_name | ||
) |
Definition at line 6206 of file canalysis.c.
References rz_core_t::analysis, core_noretl::core, free(), list(), NULL, p, r, rz_analysis_var_all_list(), rz_core_analysis_var_display(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), and sb.
Referenced by backtrace_vars(), and rz_analysis_function_vars_display_handler().
RZ_IPI void rz_core_analysis_bb_info_print | ( | RzCore * | core, |
RzAnalysisBlock * | bb, | ||
ut64 | addr, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 496 of file canalysis.c.
References addr, bb_info_print(), rz_analysis_bb_t::fcns, rz_cmd_state_output_set_columnsf(), rz_list_first(), and rz_return_if_fail.
Referenced by rz_analysis_basic_block_info_handler(), and rz_analysis_function_blocks_info_handler().
RZ_IPI void rz_core_analysis_bbs_asciiart | ( | RzCore * | core, |
RzAnalysisFunction * | fcn | ||
) |
Definition at line 305 of file canalysis.c.
References b, rz_analysis_function_t::bbs, rz_core_t::blocksize, rz_core_t::config, info(), ls_foreach, NULL, rz_core_t::offset, rz_config_get_i(), rz_cons_get_size(), rz_cons_printf(), rz_core_table(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_listinfo_free(), rz_listinfo_new(), rz_table_free(), rz_table_tostring(), and rz_table_visual_list().
Referenced by rz_analysis_function_blocks_asciiart_handler().
RZ_IPI void rz_core_analysis_bbs_info_print | ( | RzCore * | core, |
RzAnalysisFunction * | fcn, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 478 of file canalysis.c.
References rz_analysis_bb_t::addr, bb_cmp(), bb_info_print(), rz_analysis_function_t::bbs, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_cmd_state_output_set_columnsf(), rz_cons_printf(), rz_list_sort(), RZ_OUTPUT_MODE_RIZIN, and rz_return_if_fail.
Referenced by rz_analysis_function_blocks_list_handler().
RZ_IPI void rz_core_analysis_cc_print | ( | RzCore * | core, |
RZ_NONNULL const char * | cc, | ||
RZ_NULLABLE PJ * | pj | ||
) |
Print Calling Convention info.
core | The RzCore instance |
cc | Calling Convention name |
pj | Optional PJ instance for JSON mode |
Definition at line 6686 of file canalysis.c.
References rz_core_t::analysis, core_noretl::core, i, pj_end(), pj_ka(), pj_ks(), pj_o(), pj_s(), regname(), rz_analysis_cc_arg(), rz_analysis_cc_error(), rz_analysis_cc_max_arg(), rz_analysis_cc_ret(), rz_analysis_cc_self(), rz_cons_printf(), and rz_return_if_fail.
Referenced by rz_analysis_function_cc_reg_usage_handler(), and rz_core_types_calling_conventions_print().
Definition at line 409 of file cil.c.
References rz_core_t::config, eprintf, from, list(), map(), NULL, rz_config_get(), rz_config_get_i(), rz_core_analysis_esil(), rz_core_get_boundaries_prot(), rz_list_free(), RZ_PERM_X, to, and ut64().
Referenced by objc_analyze(), and rz_analysis_all_esil_handler().
Emulate n_instr
instructions from addr
. If until_addr
is specified and that address is met before all the instructions are emulated, stop there.
Definition at line 305 of file cil.c.
References addr, rz_analysis_op_t::addr, rz_search_t::align, rz_core_t::analysis, rz_core_t::blocksize, rz_core_t::config, e, eprintf, rz_analysis_t::esil, rz_analysis_op_t::esil, flags, free(), i, if(), rz_core_t::io, malloc(), NULL, off, rz_core_t::offset, pc, PFMT64x, rz_analysis_t::reg, rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_MIN_OP_SIZE, rz_analysis_esil_new(), rz_analysis_esil_parse(), rz_analysis_esil_setup(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_MASK_DISASM, RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, RZ_ANALYSIS_OP_TYPE_CALL, rz_config_get_i(), rz_cons_is_breaked(), rz_core_seek(), rz_io_read_at(), RZ_MAX, rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_PC, rz_reg_setv(), RZ_STRBUF_SAFEGET, rz_core_t::search, rz_analysis_op_t::size, rz_analysis_op_t::type, and ut64().
Referenced by rz_core_analysis_esil_emulate_bb(), rz_il_step_evaluate_handler(), and rz_il_step_handler().
Definition at line 380 of file cil.c.
References rz_analysis_bb_t::addr, rz_core_t::analysis, rz_analysis_bb_t::ninstr, rz_core_t::offset, PFMT64x, rz_analysis_find_most_relevant_block_in(), rz_core_analysis_esil_emulate(), RZ_LOG_ERROR, and UT64_MAX.
Referenced by cmd_analysis_esil().
Definition at line 43 of file cil.c.
References rz_core_t::analysis, core_esil_init(), and rz_analysis_t::esil.
Referenced by rz_cmd_debug_trace_esil_handler(), rz_cmd_debug_trace_esils_handler(), rz_cmd_debug_traces_esil_delete_handler(), rz_cmd_debug_traces_esil_i_handler(), rz_core_analysis_esil_init_mem(), rz_core_analysis_esil_init_mem_del(), rz_core_analysis_esil_init_mem_p(), and rz_core_analysis_types_propagation().
Definition at line 213 of file cil.c.
References addr, rz_core_t::analysis, rz_analysis_t::esil, rz_core_t::flags, initialize_stack(), NULL, rz_flag_item_t::offset, rz_core_analysis_esil_init(), rz_core_analysis_esil_init_mem(), rz_flag_get(), rz_flag_item_t::size, rz_analysis_esil_t::stack_addr, rz_analysis_esil_t::stack_size, UT32_MAX, ut64(), and UT64_MAX.
Referenced by rz_analysis_esil_init_mem_p_handler().
Definition at line 290 of file cil.c.
References rz_core_t::analysis, rz_analysis_t::fcns, from, rz_analysis_function_max_addr(), rz_analysis_function_min_addr(), rz_core_analysis_esil(), to, and ut64().
Referenced by rz_analysis_all_esil_functions_handler(), and rz_core_analysis_everything().
Definition at line 280 of file cil.c.
References addr, NULL, rz_core_esil_step(), and rz_core_reg_update_flags().
Referenced by rz_il_step_over_until_addr_handler(), rz_il_step_skip_handler(), and rz_il_step_skip_until_addr_handler().
Definition at line 285 of file cil.c.
References expr(), NULL, rz_core_esil_step(), rz_core_reg_update_flags(), and UT64_MAX.
Referenced by rz_il_step_skip_until_expr_handler(), and rz_il_step_until_expr_handler().
RZ_IPI void rz_core_analysis_fcn_returns | ( | RzCore * | core, |
RzAnalysisFunction * | fcn | ||
) |
Definition at line 328 of file canalysis.c.
References b, rz_analysis_function_t::bbs, ls_foreach, PFMT64x, rz_analysis_block_get_op_addr(), rz_cons_printf(), ut64(), and UT64_MAX.
Referenced by rz_analysis_function_returns_handler().
RZ_IPI bool rz_core_analysis_function_delete_var | ( | RzCore * | core, |
RzAnalysisFunction * | fcn, | ||
RzAnalysisVarKind | kind, | ||
const char * | id | ||
) |
Definition at line 6133 of file canalysis.c.
References core_noretl::core, delta, IS_DIGIT, rz_analysis_var_t::kind, NULL, rz_core_t::num, rz_analysis_function_get_var(), rz_analysis_function_get_var_byname(), rz_analysis_var_delete(), and rz_num_math().
Referenced by analysis_function_vars_del(), and rz_analysis_function_vars_del_handler().
RZ_IPI bool rz_core_analysis_function_set_signature | ( | RzCore * | core, |
RzAnalysisFunction * | fcn, | ||
const char * | newsig | ||
) |
Definition at line 6380 of file canalysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, core_noretl::core, err, free(), rz_analysis_function_t::name, NULL, rz_analysis_function_set_type_str(), rz_analysis_get_fcn_in(), rz_core_analysis_function_rename(), rz_str_lchr(), rz_str_newf(), rz_str_trim_tail(), and strdup().
Referenced by rz_analysis_function_signature_handler(), and rz_core_analysis_function_signature_editor().
RZ_IPI char* rz_core_analysis_function_signature | ( | RzCore * | core, |
RzOutputMode | mode, | ||
char * | fcn_name | ||
) |
Definition at line 5382 of file canalysis.c.
References rz_core_t::analysis, arg(), rz_analysis_var_t::delta, free(), rz_analysis_var_t::isarg, key, list(), arg::name, rz_analysis_function_t::name, rz_analysis_var_t::name, cmd_descs_generate::nargs, NULL, rz_core_t::offset, pj_a(), pj_end(), pj_free(), pj_k(), pj_ki(), pj_ks(), pj_new(), pj_o(), pj_string(), resolve_fcn_name(), rz_analysis_fcn_format_sig(), rz_analysis_fcn_vars_cache_fini(), rz_analysis_fcn_vars_cache_init(), rz_analysis_get_fcn_in(), rz_analysis_get_function_byname(), rz_core_get_func_args(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_str_get_null(), rz_type_as_string(), rz_type_func_args_count(), rz_type_func_ret(), signature(), strdup(), type, rz_analysis_var_t::type, and rz_analysis_t::typedb.
Referenced by agraph_update_title(), and function_print_to_json().
Definition at line 6409 of file canalysis.c.
References rz_core_t::analysis, core_noretl::core, eprintf, f, free(), NULL, rz_core_t::offset, PFMT64x, rz_analysis_function_get_signature(), rz_analysis_get_fcn_in(), rz_core_analysis_function_set_signature(), and rz_core_editor().
Referenced by rz_analysis_function_signature_editor_handler(), rz_core_visual_analysis(), and rz_core_visual_define().
Definition at line 6425 of file canalysis.c.
References a, addr, rz_core_t::analysis, b, c, rz_core_t::config, core_noretl::core, rz_core_t::offset, rz_analysis_function_resize(), rz_analysis_get_fcn_in(), RZ_ANALYSIS_XREF_TYPE_NULL, rz_config_get(), rz_config_get_i(), rz_config_set(), rz_config_set_i(), rz_core_analysis_fcn(), rz_return_if_fail, ut64(), and UT64_MAX.
Referenced by rz_analysis_function_until_handler().
Definition at line 434 of file cil.c.
References rz_core_t::analysis, rz_analysis_t::il_vm, rz_core_t::offset, rz_analysis_t::reg, rz_analysis_il_vm_setup(), rz_core_reg_update_flags(), RZ_REG_NAME_PC, and rz_reg_set_value_by_role().
Referenced by rz_il_vm_initialize_handler().
Perform a single step at the PC given by analysis->reg in RzIL and print any events that happened
Definition at line 655 of file cil.c.
References rz_core_t::analysis, rz_core_t::config, rz_il_vm_t::events, rz_analysis_t::il_vm, NULL, rz_config_get_b(), rz_core_il_step(), rz_il_event_json(), RZ_IL_EVENT_MEM_READ, rz_il_event_stringify(), RZ_IL_EVENT_VAR_READ, RZ_LOG_ERROR, rz_strbuf_append(), rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), sb, rz_il_vm_event_t::type, and rz_analysis_il_vm_t::vm.
Referenced by rz_il_vm_step_with_events_handler().
Set a vm variable from user input.
Sets the given var, or "PC" to the given value. The type of the variable is handled dynamically. This is intended for setting from user input only.
Definition at line 451 of file cil.c.
References rz_core_t::analysis, rz_il_sort_pure_t::bv, rz_analysis_t::il_vm, bitvector_t::len, NULL, rz_il_vm_t::pc, rz_il_sort_pure_t::props, rz_bv_free(), rz_bv_new_from_ut64(), rz_il_bool_new(), RZ_IL_TYPE_PURE_BITVECTOR, RZ_IL_TYPE_PURE_BOOL, rz_il_value_new_bitv(), rz_il_value_new_bool(), RZ_IL_VAR_KIND_GLOBAL, rz_il_vm_get_var(), rz_il_vm_set_global_var(), RZ_LOG_ERROR, rz_return_val_if_fail, rz_il_var_t::sort, rz_il_sort_pure_t::type, val, value, and rz_analysis_il_vm_t::vm.
Referenced by rz_il_vm_status_handler().
RZ_IPI void rz_core_analysis_il_vm_status | ( | RzCore * | core, |
const char * | varname, | ||
RzOutputMode | mode | ||
) |
Definition at line 531 of file cil.c.
References rz_core_t::analysis, free(), rz_analysis_t::il_vm, rz_il_var_t::name, NULL, out, p, p_pj, p_sb, p_tbl, rz_il_vm_t::pc, pj_drain(), pj_end(), pj_new(), pj_o(), rz_cons_printf(), RZ_IL_TYPE_PURE_BITVECTOR, RZ_IL_TYPE_PURE_BOOL, RZ_IL_VAR_KIND_GLOBAL, rz_il_vm_get_all_vars(), rz_il_vm_get_var_value(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, rz_pvector_foreach, rz_pvector_free(), rz_strbuf_drain(), rz_strbuf_fini(), rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_length(), rz_strbuf_new(), rz_table_free(), rz_table_new(), rz_table_set_columnsf(), rz_table_tostring(), rz_warn_if_reached, rzil_print_register_bitv(), rzil_print_register_bool(), val, and rz_analysis_il_vm_t::vm.
Referenced by rz_il_vm_status_handler().
Definition at line 389 of file cil.c.
References rz_core_t::analysis, eprintf, r, rz_analysis_t::reg, regname(), rz_core_reg_update_flags(), rz_reg_get(), rz_reg_get_name(), rz_reg_get_name_idx(), rz_reg_set_value(), and val.
Referenced by cmd_analysis_esil(), rz_analysis_aefa(), rz_analysis_esil_init_p_handler(), rz_core_analysis_esil_init_regs(), and rz_core_visual_cmd().
Definition at line 6325 of file canalysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, rz_core_t::config, core_noretl::core, eprintf, rz_analysis_t::esil, rz_analysis_t::fcns, rz_core_t::flags, free(), NULL, rz_core_t::offset, rz_analysis_t::reg, rz_analysis_esil_set_pc(), rz_analysis_fcn_vars_add_types(), rz_config_get_b(), rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set_b(), rz_cons_is_breaked(), rz_core_analysis_esil_init(), rz_core_analysis_esil_init_mem(), rz_core_analysis_esil_init_mem_del(), rz_core_analysis_type_match(), rz_core_debug_clear_register_flags(), rz_core_seek(), RZ_FLAGS_FS_REGISTERS, rz_reg_arena_peek(), rz_reg_arena_poke(), rz_reg_arena_pop(), rz_reg_arena_push(), rz_reg_arena_zero(), RZ_REG_TYPE_ANY, seek(), UT32_MAX, ut64(), and UT64_MAX.
Referenced by rz_analyze_recursively_all_function_types_handler(), and rz_core_analysis_everything().
RZ_IPI void rz_core_analysis_value_pointers | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 6502 of file canalysis.c.
References _CbInRangeAav(), rz_core_t::analysis, rz_asm_t::bits, rz_core_t::config, core_noretl::core, test_evm::end, free(), from, rz_io_map_t::itv, list(), map(), MAX_SCAN_SIZE, NULL, PFMT64x, rz_core_t::rasm, rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_ALIGN, rz_config_get(), rz_config_get_b(), rz_config_get_i(), rz_config_set(), rz_config_set_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_get_boundaries_prot(), rz_core_notify_done(), rz_core_search_value_in_range(), rz_itv_begin(), rz_itv_end(), rz_list_free(), strdup(), autogen_x86imm::tmp, to, UT32_MAX, ut64(), and UT64_MAX.
Referenced by rz_analyze_value_to_maps_handler(), and rz_core_analysis_everything().
RZ_IPI char* rz_core_analysis_var_display | ( | RzCore * | core, |
RzAnalysisVar * | var, | ||
bool | add_name | ||
) |
Definition at line 6148 of file canalysis.c.
References rz_core_t::analysis, rz_analysis_function_t::bp_off, core_noretl::core, rz_analysis_var_t::delta, rz_analysis_var_t::fcn, free(), i, rz_analysis_var_t::isarg, rz_analysis_var_t::kind, rz_analysis_function_t::maxstack, rz_analysis_var_t::name, rz_reg_t::name, NULL, r, rz_analysis_t::reg, RZ_ABS, RZ_ANALYSIS_VAR_KIND_BPV, RZ_ANALYSIS_VAR_KIND_REG, RZ_ANALYSIS_VAR_KIND_SPV, rz_core_cmd_strf(), RZ_LOG_DEBUG, rz_reg_index_get(), RZ_REG_NAME_BP, RZ_REG_NAME_SP, rz_strbuf_append(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_as_format(), rz_type_atomic_str_eq(), rz_type_is_strictly_atomic(), sb, st32, rz_analysis_var_t::type, and rz_analysis_t::typedb.
Referenced by ds_show_functions(), ds_show_functions_argvar(), rz_analysis_function_vars_display_handler(), and rz_core_analysis_all_vars_display().
Definition at line 5728 of file canalysis.c.
References rz_core_t::analysis, core_noretl::core, eprintf, rz_analysis_var_t::name, NULL, rz_core_t::offset, PFMT64x, rz_analysis_function_get_var_byname(), rz_analysis_get_fcn_in(), rz_analysis_get_used_function_var(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, rz_analysis_var_rename(), rz_core_analysis_op(), and v1.
Referenced by rz_analysis_function_vars_rename_handler(), and variable_rename().
RZ_IPI void rz_core_asm_bb_middle | ( | RZ_NONNULL RzCore * | core, |
ut64 | at, | ||
RZ_INOUT RZ_NONNULL int * | oplen, | ||
RZ_NONNULL int * | ret | ||
) |
Update oplen
by "asm.bb.middle" and "asm.flags.middle".
core | RzCore reference | |
at | Address | |
[in,out] | oplen | Opcode length |
ret | Value by call rz_asm_disassemble |
Definition at line 1684 of file disasm.c.
References RzDisasmState::at, handleMidBB(), handleMidFlags(), RzDisasmState::midflags, rz_config_get_b(), and rz_return_if_fail.
Referenced by rz_core_analysis_bytes().
RZ_IPI RZ_OWN char* rz_core_base_type_as_c | ( | RzCore * | core, |
RZ_NONNULL RzBaseType * | type, | ||
bool | multiline | ||
) |
Definition at line 408 of file ctypes.c.
References rz_core_t::analysis, NULL, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_ANONYMOUS, RZ_TYPE_PRINT_END_NEWLINE, RZ_TYPE_PRINT_MULTILINE, type, and rz_analysis_t::typedb.
Referenced by rz_core_types_as_c(), and rz_types_open_editor().
RZ_IPI RzCmdStatus rz_core_bin_plugin_print | ( | const RzBinPlugin * | bp, |
RzCmdStateOutput * | state | ||
) |
Definition at line 4783 of file cbin.c.
References rz_bin_plugin_t::author, rz_bin_plugin_t::desc, rz_bin_plugin_t::license, rz_bin_plugin_t::name, pj_end(), pj_ks(), pj_o(), rz_cmd_state_output_set_columnsf(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_NONEXISTINGCMD, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, rz_return_val_if_fail, rz_table_add_rowf(), rz_warn_if_reached, and rz_bin_plugin_t::version.
Referenced by rz_cmd_info_plugins_handler(), and rz_core_bin_plugins_print().
RZ_IPI RzCmdStatus rz_core_binxtr_plugin_print | ( | const RzBinXtrPlugin * | bx, |
RzCmdStateOutput * | state | ||
) |
Definition at line 4823 of file cbin.c.
References rz_bin_xtr_plugin_t::desc, rz_bin_xtr_plugin_t::license, rz_bin_xtr_plugin_t::name, NULL, pj_end(), pj_ks(), pj_o(), rz_cmd_state_output_set_columnsf(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_NONEXISTINGCMD, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, rz_return_val_if_fail, rz_table_add_rowf(), and rz_warn_if_reached.
Referenced by rz_cmd_info_plugins_handler(), and rz_core_bin_plugins_print().
Definition at line 216 of file cmd.c.
References addr, rz_core_t::blocksize, rz_cons_context_t::cmd_depth, rz_core_t::cons, rz_cons_t::context, rz_core_t::is_lastcmd, rz_core_t::lastcmd, rz_core_t::num, rz_core_t::offset, rz_core_cmd0(), rz_core_seek(), rz_core_seek_opcode(), rz_core_seek_to_register(), rz_num_math(), and ut64().
Referenced by DEFINE_HANDLE_TS_FCN(), rz_core_cmd_nullcallback(), rz_core_cmd_subst(), rz_interpret_handler(), and rz_repeat_forward_handler().
Definition at line 284 of file cdebug.c.
References rz_debug_plugin_t::canstep, rz_core_t::config, rz_debug_t::cur, rz_core_t::dbg, rz_core_file_t::fd, rz_core_t::file, rz_core_t::io, rz_debug_t::pid, pid, rz_config_set_i(), rz_debug_attach(), rz_debug_reg_profile_sync(), rz_debug_select(), rz_io_fd_get_pid(), rz_io_system(), rz_strf, and rz_debug_t::tid.
Referenced by cmd_debug_pid(), and rz_core_setup_debugger().
RZ_IPI void rz_core_debug_bp_add | ( | RzCore * | core, |
ut64 | addr, | ||
const char * | arg_perm, | ||
bool | hwbp, | ||
bool | watch | ||
) |
Definition at line 1574 of file cmd_debug.c.
References addr, rz_core_t::dbg, f, rz_core_t::flags, free(), rz_bp_item_t::name, NULL, PFMT64x, rz_bp_item_set_name(), rz_core_flag_get_by_spaces(), rz_debug_bp_add(), RZ_LOG_ERROR, RZ_LOG_WARN, RZ_PERM_RW, RZ_PERM_RWX, rz_str_newf(), rz_str_rwx(), and strdup().
Referenced by __watch_points_cb(), rz_cmd_debug_add_bp_handler(), rz_cmd_debug_add_hw_bp_handler(), and rz_cmd_debug_add_watchpoint_handler().
Definition at line 81 of file cdebug.c.
References rz_debug_t::continue_all_threads, rz_core_t::dbg, NULL, rz_debug_t::reg, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_esil_step(), rz_core_is_debug(), rz_core_reg_update_flags(), rz_core_static_debug_stop(), rz_debug_continue(), rz_reg_arena_swap(), and UT64_MAX.
Referenced by __continue_cb(), __panels_process(), graph_continue(), rz_cmd_debug_continue_execution_handler(), and visual_nkey().
Definition at line 356 of file cdebug.c.
References rz_core_t::offset, reg, rz_cons_flush(), rz_core_print_disasm_instructions(), rz_core_reg_default(), rz_core_reg_print_diff(), rz_core_seek(), rz_list_free(), rz_reg_filter_items_covered(), rz_reg_get_value_by_role(), RZ_REG_NAME_PC, and ut64().
Referenced by rz_core_prompt_loop().
Definition at line 193 of file cdebug.c.
References rz_print_t::cur, rz_print_t::cur_enabled, NULL, rz_core_t::offset, rz_core_t::print, rz_core_debug_continue_until(), rz_core_debug_step_one(), rz_core_esil_step(), rz_core_is_debug(), rz_core_reg_update_flags(), and UT64_MAX.
Referenced by __panel_single_step_in(), graph_single_step_in(), rz_core_visual_cmd(), and visual_nkey().
Definition at line 207 of file cdebug.c.
References rz_core_t::config, rz_print_t::cur_enabled, rz_core_t::dbg, rz_core_t::print, rz_debug_t::reg, RZ_ANALYSIS_OP_TYPE_RET, rz_config_get_b(), rz_config_set_b(), rz_cons_break_pop(), rz_cons_break_push(), rz_core_analysis_esil_step_over(), rz_core_dbg_follow_seek_register(), rz_core_debug_step_over(), rz_core_is_debug(), rz_core_reg_update_flags(), rz_core_static_debug_stop(), rz_debug_continue_until_optype(), and rz_reg_arena_swap().
Referenced by __panel_single_step_over(), graph_single_step_over(), rz_core_visual_cmd(), and visual_nkey().
Definition at line 184 of file cdebug.c.
References rz_debug_t::bits, rz_core_t::config, rz_core_t::dbg, rz_config_get_i(), rz_config_set_i(), rz_core_is_debug(), and ut64().
Referenced by rz_core_dbg_follow_seek_register(), and rz_core_visual_title().
RZ_IPI void rz_core_flag_describe | ( | RzCore * | core, |
ut64 | addr, | ||
bool | strict_offset, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 327 of file cmd_flag.c.
References addr, f, rz_core_t::flags, pj_end(), pj_kn(), pj_ks(), pj_o(), rz_flag_t::realnames, rz_cons_printf(), rz_cons_println(), rz_flag_get_at(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
Referenced by rz_core_visual_xrefs(), and rz_flag_describe_handler().
RZ_IPI void rz_core_flag_print | ( | RzFlag * | f, |
RzCmdStateOutput * | state | ||
) |
Definition at line 169 of file cflag.c.
References f, flag_print(), and UT64_MAX.
Referenced by rz_flag_list_handler().
RZ_IPI void rz_core_flag_range_print | ( | RzFlag * | f, |
RzCmdStateOutput * | state, | ||
ut64 | range_from, | ||
ut64 | range_to | ||
) |
Definition at line 184 of file cflag.c.
References f, flag_print(), print_flag_t::range_from, and print_flag_t::range_to.
Referenced by rz_flag_list_at_handler(), and rz_flag_range_handler().
RZ_IPI void rz_core_flag_real_name_print | ( | RzFlag * | f, |
RzCmdStateOutput * | state | ||
) |
Definition at line 173 of file cflag.c.
References print_flag_t::f, f, print_flag_orig_name(), rz_flag_foreach_space(), and UT64_MAX.
RZ_IPI bool rz_core_handle_backwards_disasm | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL RZ_INOUT int * | pn_opcodes, | ||
RZ_NONNULL RZ_INOUT int * | pn_bytes | ||
) |
Converting negative numbers n_opcodes and n_opcodes to positive numbers n_opcodes and n_opcodes and seek the appropriate offset.
core | RzCore reference |
pn_opcodes | Pointer to n_opcodes |
pn_bytes | Pointer to n_bytes |
Definition at line 5984 of file disasm.c.
References if(), int, RZ_ABS, rz_core_block_read(), rz_core_block_size(), rz_core_prevop_addr(), rz_core_prevop_addr_force(), rz_core_seek(), RZ_LOG_ERROR, RZ_MIN, rz_return_val_if_fail, ST16_MAX, ST16_MIN, and ut64().
Referenced by core_disassembly(), rz_core_disasm_pdi(), rz_core_print_disasm_instructions(), and rz_core_print_disasm_json().
Perform a single step at the PC given by analysis->reg in RzIL
Definition at line 630 of file cil.c.
References rz_core_t::analysis, rz_analysis_t::il_vm, PFMT64x, r, rz_analysis_t::reg, RZ_ANALYSIS_IL_STEP_INVALID_OP, RZ_ANALYSIS_IL_STEP_RESULT_SUCCESS, rz_analysis_il_vm_step(), rz_core_reg_update_flags(), RZ_LOG_ERROR, rz_reg_get_value_by_role(), and RZ_REG_NAME_PC.
Referenced by rz_core_analysis_il_step_with_events(), rz_il_vm_step_handler(), and rz_il_vm_step_until_addr_handler().
RZ_IPI void rz_core_io_map_info_free | ( | RzCoreIOMapInfo * | info | ) |
RZ_IPI RzCoreIOMapInfo* rz_core_io_map_info_new | ( | RzCoreFile * | cf, |
int | perm_orig | ||
) |
Definition at line 1669 of file cfile.c.
References info(), NULL, and RZ_NEW.
Referenced by add_map(), and io_create_mem_map().
Definition at line 634 of file cmd.c.
References free(), k, NULL, out, rz_core_t::sdb, and sdb_querys().
Referenced by rz_cmd_kuery(), and rz_core_types_calling_conventions_print().
RZ_IPI void rz_core_meta_append | ( | RzCore * | core, |
const char * | newcomment, | ||
RzAnalysisMetaType | mtype, | ||
ut64 | addr | ||
) |
Definition at line 376 of file cmeta.c.
References addr, rz_core_t::analysis, free(), rz_meta_get_string(), rz_meta_set_string(), rz_str_newf(), rz_str_unescape(), rz_sys_perror, strdup(), and create_tags_rz::text.
Referenced by add_comment(), rz_comment_append_handler(), and rz_comment_handler().
Definition at line 17 of file cmd_meta.c.
References addr, rz_core_t::analysis, rz_meta_get_string(), rz_meta_set_string(), and RZ_META_TYPE_COMMENT.
Referenced by add_arch_platform_flag_comment_cb(), and rz_comment_unique_handler().
RZ_IPI void rz_core_meta_editor | ( | RzCore * | core, |
RzAnalysisMetaType | mtype, | ||
ut64 | addr | ||
) |
Definition at line 394 of file cmeta.c.
References addr, rz_core_t::analysis, free(), NULL, out, rz_core_editor(), rz_meta_del(), rz_meta_get_string(), and rz_meta_set_string().
Referenced by add_comment(), rz_comment_editor_handler(), and rz_meta_type_editor_handler().
RZ_IPI void rz_core_meta_print | ( | RzCore * | core, |
RzAnalysisMetaItem * | d, | ||
ut64 | start, | ||
ut64 | size, | ||
bool | show_full, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 74 of file cmeta.c.
References A, rz_core_t::analysis, b, cmd, d, free(), g, rz_analysis_t::meta_spaces, meta_string_escape(), NULL, PFMT64u, PFMT64x, pj_end(), pj_k(), pj_kb(), pj_kn(), pj_ks(), pj_o(), pj_s(), r, rz_base64_encode_dyn(), rz_cons_printf(), rz_cons_rgb_parse(), rz_cons_rgb_tostring(), 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_to_string(), RZ_META_TYPE_VARTYPE, rz_name_filter(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_spaces_current(), rz_str_enc_as_string(), rz_str_escape(), rz_str_get(), rz_str_is_ascii(), rz_str_sanitize(), RZ_STRING_ENC_8BIT, RZ_STRING_ENC_UTF16BE, RZ_STRING_ENC_UTF16LE, RZ_STRING_ENC_UTF32BE, RZ_STRING_ENC_UTF32LE, RZ_STRING_ENC_UTF8, s, sdb_encode(), start, cmd_descs_generate::str, strdup(), and type.
Referenced by print_meta_list(), rz_core_meta_print_list_at(), and rz_meta_string_at_handler().
RZ_IPI void rz_core_meta_print_list_all | ( | RzCore * | core, |
int | type, | ||
RzCmdStateOutput * | state | ||
) |
RZ_IPI void rz_core_meta_print_list_at | ( | RzCore * | core, |
ut64 | addr, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 326 of file cmeta.c.
References addr, rz_core_t::analysis, collect_nodes_at(), rz_interval_node_t::data, rz_analysis_t::meta_spaces, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_core_meta_print(), RZ_META_TYPE_ANY, rz_pvector_foreach, rz_pvector_free(), rz_spaces_current(), and rz_interval_node_t::start.
Referenced by rz_meta_list_at_handler().
RZ_IPI void rz_core_meta_print_list_in_function | ( | RzCore * | core, |
int | type, | ||
ut64 | addr, | ||
RzCmdStateOutput * | state | ||
) |
RZ_IPI bool rz_core_print_dump | ( | RZ_NONNULL RzCore * | core, |
RzOutputMode | mode, | ||
ut64 | addr, | ||
ut8 | n, | ||
int | len, | ||
RzCorePrintFormatType | format | ||
) |
Definition at line 322 of file cprint.c.
References addr, len, n, PFMT64x, rz_core_print_dump_str(), and RZ_LOG_ERROR.
Referenced by rz_print_hexdump_hex_common_handler(), rz_print_hexdump_oct_handler(), and rz_print_hexdump_signed_integer_common_handler().
RZ_IPI void rz_core_print_hexdiff | ( | RZ_NONNULL RzCore * | core, |
ut64 | aa, | ||
RZ_NONNULL const ut8 * | _a, | ||
ut64 | ba, | ||
RZ_NONNULL const ut8 * | _b, | ||
int | len, | ||
int | scndcol | ||
) |
Definition at line 182 of file cprint.c.
References free(), len, PFMT64x, RZ_LOG_ERROR, and rz_print_hexdiff_str().
Referenced by rizin_compare_unified(), rz_cmd_cmp_hex_block_handler(), and rz_cmd_cmp_hex_diff_lines_handler().
RZ_IPI void rz_core_print_hexdump | ( | RZ_NONNULL RzCore * | core, |
ut64 | addr, | ||
RZ_NONNULL const ut8 * | buf, | ||
int | len, | ||
int | base, | ||
int | step, | ||
size_t | zoomsz | ||
) |
Definition at line 161 of file cprint.c.
References addr, free(), len, PFMT64x, RZ_LOG_ERROR, rz_print_hexdump_str(), and step().
Referenced by cmd_print_op(), ds_print_meta_infos(), print_heap_chunk(), rz_cmd_heap_chunks_print_handler(), rz_core_disasm_pdi_with_buf(), rz_core_yank_print_hexdump(), rz_print_hexdump_hexless_bytes_handler(), rz_print_hexdump_hexless_words_handler(), rz_print_hexdump_sparse_handler(), rz_reg_arenas_hexdump_handler(), and search_collisions().
RZ_IPI bool rz_core_print_hexdump_byline | ( | RZ_NONNULL RzCore * | core, |
bool | hex_offset, | ||
ut64 | addr, | ||
int | len, | ||
ut8 | size | ||
) |
Definition at line 466 of file cprint.c.
References addr, free(), len, PFMT64x, rz_core_print_hexdump_byline_str(), and RZ_LOG_ERROR.
Referenced by rz_print_hexdump_hexl_common_handler().
Definition at line 219 of file cprint.c.
References free(), len, PFMT64x, rz_core_print_hexdump_diff_str(), and RZ_LOG_ERROR.
RZ_IPI bool rz_core_print_hexdump_or_hexdiff | ( | RZ_NONNULL RzCore * | core, |
RzOutputMode | mode, | ||
ut64 | addr, | ||
int | len, | ||
bool | use_comments | ||
) |
RZ_IPI void rz_core_print_jsondump | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL const ut8 * | buf, | ||
int | len, | ||
int | wordsize | ||
) |
Definition at line 172 of file cprint.c.
References free(), len, RZ_LOG_ERROR, and rz_print_jsondump_str().
Construct the list of registers that should be applied as flags by default (e.g. because their size matches the pointer size)
Definition at line 60 of file creg.c.
References rz_core_t::analysis, NULL, pc, reg, rz_analysis_get_address_bits(), rz_list_new(), rz_list_push(), rz_reg_get_by_role(), rz_reg_get_list(), RZ_REG_NAME_PC, RZ_REG_TYPE_GPR, and rz_reg_item_t::size.
Referenced by regs_to_flags(), and rz_reg_flags_handler().
Print registers that have changed since the last step (drd/ard)
Definition at line 116 of file creg.c.
References delta, rz_reg_item_t::name, PFMT64x, reg, rz_cons_printf(), rz_reg_arena_swap(), rz_reg_get_value(), and ut64().
Referenced by rz_core_debug_print_status(), and rz_regs_diff_handler().
Definition at line 453 of file seek.c.
References rz_core_t::analysis, rz_analysis_bb_t::ninstr, rz_core_t::offset, PFMT64x, rz_analysis_block_get_op_addr(), rz_analysis_find_most_relevant_block_in(), rz_core_seek(), RZ_LOG_ERROR, and ut64().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), rz_core_cmd_subst_i(), and rz_core_visual_graph().
Definition at line 86 of file cmd_seek.c.
References n, rz_core_t::num, rz_core_seek_opcode_backward(), rz_core_seek_opcode_forward(), test-lz4-list::silent, val, and rz_num_t::value.
Referenced by cmd_seek_opcode(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), graphNodeMove(), rz_core_cmd_lastcmd_repeat(), rz_core_cmd_subst_i(), and rz_core_visual_graph().
Definition at line 65 of file cmd_seek.c.
References rz_core_t::analysis, rz_core_t::block, rz_core_t::blocksize, i, n, rz_core_t::offset, op, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, rz_core_seek_delta(), rz_core_seek_mark(), rz_core_seek_save(), test-lz4-list::silent, and val.
Referenced by rz_core_seek_opcode().
Definition at line 22 of file cmd_seek.c.
References off, regname(), rz_core_reg_getv_by_role_or_name(), rz_core_seek_opt(), and ut64().
Referenced by agraph_refresh(), rz_core_cmd_lastcmd_repeat(), rz_core_dbg_follow_seek_register(), rz_core_esil_step(), rz_core_file_reopen(), rz_core_file_reopen_debug(), rz_core_file_reopen_remote_debug(), rz_core_setup_debugger(), rz_core_visual_graph(), and rz_seek_register_handler().
RZ_IPI void rz_core_spaces_print | ( | RzCore * | core, |
RzSpaces * | spaces, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 9 of file cmeta.c.
References count, pj_end(), pj_kb(), pj_ki(), pj_ks(), pj_o(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_spaces_count(), rz_spaces_current(), rz_spaces_current_name(), rz_spaces_foreach, rz_warn_if_reached, s, and spaces().
Referenced by rz_flag_space_list_handler(), and rz_meta_space_list_handler().
RZ_IPI void rz_core_static_debug_stop | ( | void * | u | ) |
Definition at line 1565 of file cmd_debug.c.
References dbg, and rz_debug_stop().
Referenced by debug_trace_calls(), rz_cmd_debug(), rz_cmd_debug_continue_back_handler(), rz_cmd_debug_continue_call_handler(), rz_cmd_debug_continue_exception_handler(), rz_cmd_debug_continue_execution_handler(), rz_cmd_debug_continue_fork_handler(), rz_cmd_debug_continue_mapped_io_handler(), rz_cmd_debug_continue_ret_handler(), rz_cmd_debug_continue_send_signal_handler(), rz_cmd_debug_continue_syscall(), rz_cmd_debug_continue_traptrace_handler(), rz_cmd_debug_continue_unknown_call_handler(), rz_cmd_debug_continue_until(), rz_cmd_debug_step_cond_handler(), rz_core_debug_continue(), and rz_core_debug_single_step_over().
RZ_IPI void rz_core_types_calling_conventions_print | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 19 of file ctypes.c.
References rz_core_t::analysis, free(), list(), pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), rz_analysis_calling_conventions(), rz_analysis_cc_get(), rz_cons_printf(), rz_cons_println(), rz_core_analysis_cc_print(), rz_core_kuery_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_SDB, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
Referenced by cb_analysiscc(), cb_analysissyscc(), rz_analysis_function_cc_list_handler(), and rz_type_cc_list_handler().
RZ_IPI RZ_OWN char* rz_core_types_enum_as_c | ( | RzTypeDB * | typedb, |
const RzBaseType * | btype, | ||
bool | multiline | ||
) |
Definition at line 123 of file ctypes.c.
References rz_base_type_t::kind, NULL, RZ_BASE_TYPE_KIND_ENUM, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_ANONYMOUS, RZ_TYPE_PRINT_END_NEWLINE, and RZ_TYPE_PRINT_MULTILINE.
Referenced by rz_core_types_enum_as_c_all(), rz_type_enum_c_handler(), and rz_type_enum_c_nl_handler().
Definition at line 134 of file ctypes.c.
References free(), RZ_BASE_TYPE_KIND_ENUM, rz_core_types_enum_as_c(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_db_get_base_types_of_kind(), and cmd_descs_generate::str.
Referenced by rz_core_types_as_c_all(), rz_type_enum_c_handler(), and rz_type_enum_c_nl_handler().
RZ_IPI void rz_core_types_enum_print | ( | RzCore * | core, |
const RzBaseType * | btype, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 65 of file ctypes.c.
References rz_base_type_enum_t::cases, rz_base_type_t::enum_data, rz_base_type_t::kind, rz_type_enum_case_t::name, rz_base_type_t::name, PFMT64x, pj_end(), pj_k(), pj_kn(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_ENUM, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_vector_empty(), rz_vector_foreach, rz_warn_if_reached, and rz_type_enum_case_t::val.
Referenced by rz_core_types_enum_print_all(), and rz_type_list_enum_handler().
RZ_IPI void rz_core_types_enum_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 104 of file ctypes.c.
References rz_core_t::analysis, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_BASE_TYPE_KIND_ENUM, rz_cons_println(), rz_core_types_enum_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_enum_handler().
RZ_IPI void rz_core_types_function_noreturn_print | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 553 of file ctypes.c.
References rz_core_t::analysis, nonreturn_print(), nonreturn_print_json(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_noreturn_function_names(), and rz_analysis_t::typedb.
Referenced by rz_type_list_noreturn_handler().
RZ_IPI void rz_core_types_function_print | ( | RzTypeDB * | typedb, |
const char * | function, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 472 of file ctypes.c.
References rz_callable_at::args, free(), arg::name, NULL, pj_a(), pj_end(), pj_k(), pj_ks(), pj_o(), rz_callable_at::ret, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, rz_pvector_foreach, rz_return_if_fail, rz_str_get_null(), rz_type_as_string(), rz_type_callable_as_string(), rz_type_func_get(), and cmd_descs_generate::str.
Referenced by rz_core_types_function_print_all(), and rz_type_list_function_handler().
RZ_IPI void rz_core_types_function_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 509 of file ctypes.c.
References rz_core_t::analysis, name, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), rz_cons_println(), rz_core_types_function_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_function_names(), and rz_analysis_t::typedb.
Referenced by rz_type_list_function_handler().
RZ_IPI void rz_core_types_link_print | ( | RzCore * | core, |
RzType * | type, | ||
ut64 | addr, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 879 of file ctypes.c.
References addr, rz_core_t::analysis, eprintf, free(), PFMT64x, pj_end(), pj_ks(), pj_o(), rz_cons_printf(), rz_core_cmdf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_str_newf(), rz_type_as_format(), rz_type_as_string(), rz_warn_if_reached, type, and rz_analysis_t::typedb.
Referenced by rz_core_types_link_show(), and typelink_print_cb().
RZ_IPI void rz_core_types_link_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 931 of file ctypes.c.
References rz_core_t::analysis, c, coremodepj::core, NULL, coremodepj::pj, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, rz_analysis_t::type_links, and typelink_print_cb().
Referenced by rz_type_link_handler().
Definition at line 975 of file ctypes.c.
References addr, rz_core_t::analysis, coremodepj::core, link, NULL, rz_analysis_type_link_at(), rz_core_types_link_print(), and RZ_OUTPUT_MODE_LONG.
Referenced by rz_type_link_show_handler().
RZ_IPI void rz_core_types_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 984 of file ctypes.c.
References rz_core_t::analysis, coremodepj::core, free(), rz_base_type_t::name, coremodepj::pj, pj_a(), pj_end(), pj_free(), pj_ki(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_cons_printf(), rz_cons_println(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_type_db_get_base_types(), rz_type_format(), rz_warn_if_reached, rz_base_type_t::size, rz_analysis_t::typedb, and types.
Referenced by rz_type_handler().
RZ_IPI void rz_core_types_show_format | ( | RzCore * | core, |
const char * | name, | ||
RzOutputMode | mode | ||
) |
Definition at line 568 of file ctypes.c.
References rz_core_t::analysis, eprintf, free(), pj_end(), pj_free(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_type_format(), and rz_analysis_t::typedb.
Referenced by rz_core_types_struct_print_format_all(), rz_core_types_union_print_format_all(), rz_type_handler(), rz_type_list_structure_handler(), and rz_type_list_union_handler().
RZ_IPI RZ_OWN char* rz_core_types_struct_as_c | ( | RzTypeDB * | typedb, |
const RzBaseType * | btype, | ||
bool | multiline | ||
) |
Definition at line 312 of file ctypes.c.
References rz_base_type_t::kind, NULL, RZ_BASE_TYPE_KIND_STRUCT, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_ANONYMOUS, RZ_TYPE_PRINT_END_NEWLINE, and RZ_TYPE_PRINT_MULTILINE.
Referenced by rz_core_types_struct_as_c_all(), rz_type_structure_c_handler(), and rz_type_structure_c_nl_handler().
Definition at line 320 of file ctypes.c.
References free(), RZ_BASE_TYPE_KIND_STRUCT, rz_core_types_struct_as_c(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_db_get_base_types_of_kind(), and cmd_descs_generate::str.
Referenced by rz_core_types_as_c_all(), rz_type_structure_c_handler(), and rz_type_structure_c_nl_handler().
RZ_IPI void rz_core_types_struct_print | ( | RzCore * | core, |
const RzBaseType * | btype, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 246 of file ctypes.c.
References rz_core_t::analysis, free(), rz_base_type_t::kind, rz_base_type_struct_t::members, rz_base_type_union_t::members, rz_type_struct_member_t::name, rz_base_type_t::name, PFMT64d, pj_end(), pj_k(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_STRUCT, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_type_as_string(), rz_type_db_get_bitsize(), rz_vector_empty(), rz_vector_foreach, rz_warn_if_reached, rz_base_type_t::struct_data, rz_type_struct_member_t::type, rz_analysis_t::typedb, rz_base_type_t::union_data, and ut64().
Referenced by rz_core_types_struct_print_all(), and rz_type_list_structure_handler().
RZ_IPI void rz_core_types_struct_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 293 of file ctypes.c.
References rz_core_t::analysis, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_BASE_TYPE_KIND_STRUCT, rz_cons_println(), rz_core_types_struct_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_structure_handler().
Definition at line 602 of file ctypes.c.
References rz_core_t::analysis, rz_base_type_t::name, RZ_BASE_TYPE_KIND_STRUCT, rz_core_types_show_format(), rz_list_free(), RZ_OUTPUT_MODE_RIZIN, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_structure_handler().
RZ_IPI RZ_OWN char* rz_core_types_typedef_as_c | ( | RzTypeDB * | typedb, |
const RzBaseType * | btype | ||
) |
Definition at line 385 of file ctypes.c.
References rz_base_type_t::kind, NULL, RZ_BASE_TYPE_KIND_TYPEDEF, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_END_NEWLINE, and RZ_TYPE_PRINT_SHOW_TYPEDEF.
Referenced by rz_core_types_typedef_as_c_all(), and rz_type_typedef_c_handler().
Definition at line 392 of file ctypes.c.
References free(), RZ_BASE_TYPE_KIND_TYPEDEF, rz_core_types_typedef_as_c(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_db_get_base_types_of_kind(), and cmd_descs_generate::str.
Referenced by rz_core_types_as_c_all(), and rz_type_typedef_c_handler().
RZ_IPI void rz_core_types_typedef_print | ( | RzCore * | core, |
const RzBaseType * | btype, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 338 of file ctypes.c.
References rz_core_t::analysis, free(), rz_base_type_t::kind, rz_base_type_t::name, pj_end(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_TYPEDEF, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_type_as_string(), rz_warn_if_reached, rz_base_type_t::type, and rz_analysis_t::typedb.
Referenced by rz_core_types_typedef_print_all(), and rz_type_list_typedef_handler().
RZ_IPI void rz_core_types_typedef_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 366 of file ctypes.c.
References rz_core_t::analysis, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_BASE_TYPE_KIND_TYPEDEF, rz_cons_println(), rz_core_types_typedef_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_typedef_handler().
RZ_IPI RZ_OWN char* rz_core_types_union_as_c | ( | RzTypeDB * | typedb, |
const RzBaseType * | btype, | ||
bool | multiline | ||
) |
Definition at line 217 of file ctypes.c.
References rz_base_type_t::kind, NULL, RZ_BASE_TYPE_KIND_UNION, rz_return_val_if_fail, rz_type_db_base_type_as_pretty_string(), RZ_TYPE_PRINT_ANONYMOUS, RZ_TYPE_PRINT_END_NEWLINE, and RZ_TYPE_PRINT_MULTILINE.
Referenced by rz_core_types_union_as_c_all(), rz_type_union_c_handler(), and rz_type_union_c_nl_handler().
Definition at line 228 of file ctypes.c.
References free(), RZ_BASE_TYPE_KIND_UNION, rz_core_types_union_as_c(), rz_list_free(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), rz_type_db_get_base_types_of_kind(), and cmd_descs_generate::str.
Referenced by rz_core_types_as_c_all(), rz_type_union_c_handler(), and rz_type_union_c_nl_handler().
RZ_IPI void rz_core_types_union_print | ( | RzCore * | core, |
const RzBaseType * | btype, | ||
RzOutputMode | mode, | ||
PJ * | pj | ||
) |
Definition at line 152 of file ctypes.c.
References rz_core_t::analysis, free(), rz_base_type_t::kind, rz_base_type_union_t::members, rz_type_union_member_t::name, rz_base_type_t::name, PFMT64d, pj_end(), pj_k(), pj_ks(), pj_o(), RZ_BASE_TYPE_KIND_UNION, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_return_if_fail, rz_type_as_string(), rz_type_db_get_bitsize(), rz_vector_empty(), rz_vector_foreach, rz_warn_if_reached, rz_type_union_member_t::type, rz_analysis_t::typedb, rz_base_type_t::union_data, and ut64().
Referenced by rz_core_types_union_print_all(), and rz_type_list_union_handler().
RZ_IPI void rz_core_types_union_print_all | ( | RzCore * | core, |
RzOutputMode | mode | ||
) |
Definition at line 198 of file ctypes.c.
References rz_core_t::analysis, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_BASE_TYPE_KIND_UNION, rz_cons_println(), rz_core_types_union_print(), rz_list_free(), RZ_OUTPUT_MODE_JSON, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_union_handler().
Definition at line 613 of file ctypes.c.
References rz_core_t::analysis, rz_base_type_t::name, RZ_BASE_TYPE_KIND_UNION, rz_core_types_show_format(), rz_list_free(), RZ_OUTPUT_MODE_RIZIN, rz_type_db_get_base_types_of_kind(), and rz_analysis_t::typedb.
Referenced by rz_type_list_union_handler().
Is i_opcodes
< nb_opcodes
and i_bytes
< nb_bytes
?
Definition at line 5804 of file disasm.c.
Referenced by disassembly_as_table(), rz_core_analysis_bytes(), rz_core_disasm_pdi_with_buf(), and rz_core_print_disasm_instructions_with_buf().
RZ_IPI int rz_output_mode_to_char | ( | RzOutputMode | mode | ) |
Definition at line 73 of file cmd_api.c.
References argv_modes, i, RZ_ARRAY_SIZE, and argv_modes_t::suffix.
Referenced by rz_cmd_debug_trace_graph_handler().
RZ_IPI RzCmdStatus rz_reg_arenas_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 483 of file cmd_regs.c.
References a, i, reg, rs, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_reg_get_type(), and RZ_REG_TYPE_LAST.
RZ_IPI RzCmdStatus rz_reg_arenas_hexdump_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 544 of file cmd_regs.c.
References argv, free(), len, reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_print_hexdump(), RZ_LOG_ERROR, rz_reg_get_bytes(), rz_reg_type_by_name(), RZ_REG_TYPE_GPR, and SYNC_READ.
RZ_IPI RzCmdStatus rz_reg_arenas_pop_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 511 of file cmd_regs.c.
References reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_reg_arena_pop(), RZ_REG_TYPE_ANY, and SYNC_WRITE.
RZ_IPI RzCmdStatus rz_reg_arenas_push_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 500 of file cmd_regs.c.
References reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_reg_arena_push(), RZ_REG_TYPE_ANY, SYNC_READ, and SYNC_WRITE.
RZ_IPI RzCmdStatus rz_reg_arenas_stack_size_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 567 of file cmd_regs.c.
References reg, RZ_CMD_STATUS_OK, rz_cons_printf(), and rz_list_length().
RZ_IPI RzCmdStatus rz_reg_arenas_swap_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 518 of file cmd_regs.c.
References reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_reg_arena_swap(), RZ_REG_TYPE_ANY, SYNC_READ, and SYNC_WRITE.
RZ_IPI RzCmdStatus rz_reg_arenas_write_hex_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 572 of file cmd_regs.c.
References a, argv, free(), hex, malloc(), memcpy(), reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_hex_str2bin(), RZ_LOG_ERROR, RZ_MIN, rz_reg_type_by_name(), RZ_REG_TYPE_GPR, RZ_REG_TYPE_LAST, rz_return_val_if_fail, SYNC_READ, SYNC_WRITE, and type.
RZ_IPI RzCmdStatus rz_reg_arenas_zero_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 529 of file cmd_regs.c.
References argv, reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, rz_reg_arena_zero(), RZ_REG_TYPE_ANY, rz_reg_type_by_name(), and SYNC_WRITE.
Definition at line 797 of file cmd_regs.c.
References free(), reg, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_reg_profile_to_cc(), and s.
RZ_IPI RzCmdStatus rz_reg_cond_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 776 of file cmd_regs.c.
References rz_reg_flags_t::c, free(), i, NULL, rz_reg_flags_t::o, rz_reg_flags_t::p, reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_reg_cond_bits(), RZ_REG_COND_LAST, rz_reg_cond_retrieve(), rz_reg_cond_to_string(), RZ_REG_TYPE_ANY, rz_reg_flags_t::s, SYNC_READ, and rz_reg_flags_t::z.
RZ_IPI RzCmdStatus rz_reg_flags_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv, | ||
bool | unset | ||
) |
Definition at line 658 of file cmd_regs.c.
References argv, filter_reg_items(), rz_reg_item_t::name, NULL, PFMT64x, print_reg_not_found(), reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_reg_flags_candidates(), RZ_FLAGS_FS_REGISTERS, rz_list_free(), rz_reg_get_value(), SYNC_READ_LIST, ut64(), and v.
RZ_IPI RzCmdStatus rz_reg_profile_comments_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv | ||
) |
RZ_IPI RzCmdStatus rz_reg_profile_gdb_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 762 of file cmd_regs.c.
References argv, free(), rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_println(), RZ_LOG_ERROR, rz_reg_parse_gdb_profile(), rz_return_val_if_fail, and rz_num_t::value.
RZ_IPI RzCmdStatus rz_reg_profile_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 699 of file cmd_regs.c.
References eprintf, i, pj_a(), pj_end(), pj_k(), pj_kn(), pj_ks(), pj_o(), r, reg, RZ_CMD_STATUS_OK, rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_reg_get_role(), rz_reg_get_type(), RZ_REG_NAME_LAST, and RZ_REG_TYPE_LAST.
RZ_IPI RzCmdStatus rz_reg_profile_open_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 756 of file cmd_regs.c.
References argv, reg, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_reg_set_profile(), and rz_return_val_if_fail.
RZ_IPI RzCmdStatus rz_reg_roles_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 647 of file cmd_regs.c.
References i, reg, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_reg_get_role(), and RZ_REG_NAME_LAST.
RZ_IPI RzCmdStatus rz_reg_types_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 640 of file cmd_regs.c.
References i, RZ_CMD_STATUS_OK, rz_cons_println(), rz_reg_get_type(), and RZ_REG_TYPE_LAST.
RZ_IPI RzCmdStatus rz_regs_args_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 614 of file cmd_regs.c.
References eprintf, i, r, references_handler(), reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_list_free(), rz_list_new(), rz_list_push(), rz_reg_get(), rz_reg_get_name(), RZ_REG_NAME_A0, RZ_REG_NAME_A9, and RZ_REG_TYPE_ANY.
RZ_IPI RzCmdStatus rz_regs_columns_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 298 of file cmd_regs.c.
References argv, color, Color_RESET, format_reg_value(), get_reg_color(), setup::idx, len, memset(), rz_reg_item_t::name, NULL, print_reg_not_found(), reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_reg_filter_items_sync(), rz_list_free(), RZ_MAX, RZ_MIN, and snprintf.
RZ_IPI RzCmdStatus rz_regs_diff_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 806 of file cmd_regs.c.
References reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_reg_print_diff(), RZ_REG_TYPE_ANY, and SYNC_READ.
RZ_IPI RzCmdStatus rz_regs_fpu_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 824 of file cmd_regs.c.
References argv, eprintf, eq, error(), free(), p, reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_reg_get(), rz_reg_get_longdouble(), rz_reg_set_double(), RZ_REG_TYPE_FPU, RZ_REG_TYPE_GPR, rz_str_trim_dup(), SYNC_READ, SYNC_WRITE, and val.
RZ_IPI RzCmdStatus rz_regs_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 283 of file cmd_regs.c.
References argv, assign_reg(), eq, NULL, reg, and show_regs_handler().
RZ_IPI RzCmdStatus rz_regs_prev_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 816 of file cmd_regs.c.
References argv, NULL, r, reg, rz_reg_arena_swap(), and show_regs_handler().
RZ_IPI RzCmdStatus rz_regs_references_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 392 of file cmd_regs.c.
References argv, filter_reg_items(), NULL, print_reg_not_found(), r, references_handler(), reg, RZ_CMD_STATUS_ERROR, and rz_list_free().
RZ_IPI void rz_regs_show_valgroup | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
const RzList * | list | ||
) |
Definition at line 423 of file cmd_regs.c.
References addr, rz_asm_t::bits, Color_RESET, Color_YELLOW, rz_core_t::config, free(), list(), NULL, PFMT64x, r, rz_core_t::rasm, reg, rz_config_get_i(), rz_cons_newline(), rz_cons_printf(), rz_cons_strcat(), rz_core_analysis_hasrefs(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_reg_get_value(), ut64(), valgroup_regcb(), and value.
Referenced by rz_core_debug_ri(), and rz_regs_valgroup_handler().
RZ_IPI RzCmdStatus rz_regs_valgroup_handler | ( | RzCore * | core, |
RzReg * | reg, | ||
RzCmdRegSync | sync_cb, | ||
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 471 of file cmd_regs.c.
References argv, filter_reg_items(), list(), NULL, print_reg_not_found(), reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_list_free(), and rz_regs_show_valgroup().
Definition at line 1029 of file ctypes.c.
References rz_core_t::analysis, coremodepj::core, eprintf, free(), NULL, rz_type_db_t::parser, rz_str_newf(), rz_type_parse_string_stateless(), autogen_x86imm::tmp, type, and rz_analysis_t::typedb.
Referenced by rz_type_define_handler().
RZ_IPI bool rz_types_open_editor | ( | RzCore * | core, |
RZ_NONNULL const char * | typename | ||
) |
Definition at line 1075 of file ctypes.c.
References rz_core_t::analysis, coremodepj::core, free(), rz_base_type_t::name, NULL, rz_core_base_type_as_c(), rz_core_editor(), RZ_LOG_ERROR, rz_return_val_if_fail, rz_type_db_edit_base_type(), rz_type_db_get_compound_type(), cmd_descs_generate::str, autogen_x86imm::tmp, and rz_analysis_t::typedb.
Referenced by rz_type_open_editor_handler().
Definition at line 1046 of file ctypes.c.
References rz_core_t::analysis, rz_core_t::config, coremodepj::core, free(), NULL, rz_type_db_t::parser, path, rz_config_get(), rz_core_editor(), rz_file_exists(), RZ_LOG_ERROR, rz_type_parse_file_stateless(), rz_type_parse_string_stateless(), autogen_x86imm::tmp, and rz_analysis_t::typedb.
Referenced by rz_type_open_file_handler().