Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_util/rz_graph_drawable.h>
#include "../core_private.h"
#include "cmd_regs_meta.inc"
Go to the source code of this file.
Classes | |
struct | AeaStats |
struct | AeaMemItem |
struct | ListJsonCtx |
Macros | |
#define | MAX_SCAN_SIZE 0x7ffffff |
#define | PJ_KS(pj, key, value) |
#define | PJ_KN(pj, key, value) |
#define | PRINTF_LN(k, fmt, arg) |
#define | PRINTF_LN_NOT(k, fmt, arg, notv) |
#define | PRINTF_LN_STR(k, arg) |
#define | return_tail(x) |
#define | RZ_NEW_DUP(x) memcpy((void *)malloc(sizeof(x)), &(x), sizeof(x)) |
#define | hasNext(x) (x & 1) ? (addr < addr_end) : (ops < ops_end) |
#define | var_ref_list(a, d, t) |
#define | CMD_REGS_PREFIX analysis |
#define | CMD_REGS_REG_PATH analysis->reg |
#define | CMD_REGS_SYNC NULL |
Enumerations | |
enum | RzVarListType { IS_VAR = 0 , IS_ARG , IS_ARG_AND_VAR } |
enum | STATS_MODE { STATS_MODE_DEF , STATS_MODE_FML , STATS_MODE_TYPE } |
enum | CoreAnalysisType { CORE_ANALYSIS_SIMPLE , CORE_ANALYSIS_DEEP , CORE_ANALYSIS_EXPERIMENTAL } |
Variables | |
static const char * | help_msg_a [] |
static const char * | help_msg_ad [] |
static const char * | help_msg_ae [] |
static const char * | help_detail_ae [] |
static const char * | help_msg_aea [] |
static const char * | help_msg_ag [] |
static const char * | help_msg_age [] |
static const char * | help_msg_agn [] |
static char * | oldregread = NULL |
static RzList * | mymemxsr = NULL |
static RzList * | mymemxsw = NULL |
static const char | _handler_no_name [] = "<no name>" |
#define CMD_REGS_PREFIX analysis |
Definition at line 4814 of file cmd_analysis.c.
#define CMD_REGS_REG_PATH analysis->reg |
Definition at line 4815 of file cmd_analysis.c.
#define CMD_REGS_SYNC NULL |
Definition at line 4816 of file cmd_analysis.c.
#define MAX_SCAN_SIZE 0x7ffffff |
Definition at line 10 of file cmd_analysis.c.
Definition at line 382 of file cmd_analysis.c.
Definition at line 375 of file cmd_analysis.c.
Definition at line 673 of file cmd_analysis.c.
Definition at line 683 of file cmd_analysis.c.
Definition at line 688 of file cmd_analysis.c.
#define return_tail | ( | x | ) |
Definition at line 1227 of file cmd_analysis.c.
Definition at line 2468 of file cmd_analysis.c.
enum CoreAnalysisType |
Enumerator | |
---|---|
CORE_ANALYSIS_SIMPLE | aa |
CORE_ANALYSIS_DEEP | aaa |
CORE_ANALYSIS_EXPERIMENTAL | aaaa |
Definition at line 7247 of file cmd_analysis.c.
enum RzVarListType |
enum STATS_MODE |
Enumerator | |
---|---|
STATS_MODE_DEF | |
STATS_MODE_FML | |
STATS_MODE_TYPE |
Definition at line 5491 of file cmd_analysis.c.
Definition at line 1811 of file cmd_analysis.c.
References addr, rz_analysis_bb_t::addr, rz_core_t::analysis, rz_analysis_function_t::bbs, calloc(), test_evm::end, eprintf, rz_analysis_t::esil, free(), rz_core_t::io, NULL, op, pc, PFMT64x, rz_analysis_t::reg, rz_analysis_esil_free(), rz_analysis_esil_parse(), rz_analysis_esil_stack_free(), RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_SYM, rz_analysis_get_fcn_in(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_RET, rz_core_analysis_esil_init_mem(), rz_core_esil_dumpstack(), rz_io_read_at(), RZ_MIN, RZ_REG_NAME_PC, rz_reg_set_value_by_role(), RZ_STRBUF_SAFEGET, rz_analysis_bb_t::size, UT32_MAX, ut64(), and UT64_MAX.
Referenced by cmd_analysis_esil().
Definition at line 1753 of file cmd_analysis.c.
References _handler_no_name, rz_analysis_esil_interrupt_t::handler, key, rz_analysis_esil_interrupt_handler_t::name, PFMT64x, rz_cons_printf(), and value.
Referenced by cmd_analysis_esil().
Definition at line 2194 of file cmd_analysis.c.
References addr, rz_io_t::addrbytes, rz_core_t::analysis, rz_analysis_hint_t::bits, rz_asm_t::bits, calloc(), rz_core_t::config, eprintf, f, rz_core_t::flags, free(), rz_bin_reloc_t::import, rz_core_t::io, malloc(), memset(), NULL, op, rz_core_t::rasm, rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_MIN_OP_SIZE, rz_analysis_hint_free(), rz_analysis_hint_get(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_CALL, rz_analysis_xrefs_set(), rz_config_get_i(), rz_config_set_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_analysis_fcn(), rz_core_getreloc(), rz_flag_get_i(), rz_io_is_valid_offset(), rz_io_read_at(), rz_bin_reloc_t::symbol, and UT32_MAX.
Referenced by rz_core_analysis_calls().
Definition at line 5594 of file cmd_analysis.c.
References k.
Referenced by rz_analysis_function_all_opcode_stat_handler().
|
static |
Definition at line 1206 of file cmd_analysis.c.
References AeaStats::inputregs, AeaStats::regread, AeaStats::regs, AeaStats::regwrite, and RZ_FREE.
Referenced by cmd_aea().
|
static |
Definition at line 1198 of file cmd_analysis.c.
References free(), AeaStats::inputregs, AeaStats::regread, AeaStats::regs, AeaStats::regvalues, AeaStats::regwrite, and rz_list_newf().
Referenced by cmd_aea().
|
static |
Definition at line 6379 of file cmd_analysis.c.
References analysis_class_print_to_json_cb(), pj_a(), pj_end(), and rz_analysis_class_foreach().
Referenced by rz_analysis_class_list_handler().
|
static |
Definition at line 6238 of file cmd_analysis.c.
References free(), i, PFMT64x, rz_analysis_class_base_get_all(), rz_analysis_class_method_get_all(), rz_analysis_class_vtable_get_all(), rz_cons_printf(), RZ_LOG_ERROR, rz_pvector_new(), rz_pvector_push(), rz_str_new(), rz_str_newf(), rz_table_add_row_vec(), rz_table_align(), RZ_TABLE_ALIGN_RIGHT, rz_table_free(), rz_table_new(), rz_table_set_columnsf(), rz_table_tostring(), rz_vector_foreach, rz_vector_free(), rz_vector_len(), and s.
Referenced by rz_analysis_class_info_handler(), and rz_analysis_class_list_handler().
|
static |
Definition at line 6389 of file cmd_analysis.c.
References PFMT64d, PFMT64u, PFMT64x, rz_analysis_class_base_get_all(), rz_analysis_class_method_get_all(), rz_analysis_class_vtable_get_all(), rz_cons_printf(), rz_vector_foreach, and rz_vector_free().
Referenced by rz_analysis_class_list_handler().
|
static |
Definition at line 6310 of file cmd_analysis.c.
References pj_a(), pj_end(), pj_k(), pj_kn(), pj_ks(), pj_o(), rz_analysis_class_base_get_all(), rz_analysis_class_method_get_all(), rz_analysis_class_vtable_get_all(), rz_vector_foreach, rz_vector_free(), and ut64().
Referenced by analysis_class_print_to_json_cb(), and rz_analysis_class_info_handler().
Definition at line 6373 of file cmd_analysis.c.
References analysis_class_print_to_json(), and k.
Referenced by analysis_class_list_print_to_json().
Definition at line 3180 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, b, rz_analysis_function_t::bbs, calloc(), f, free(), i, rz_core_t::offset, PFMT64u, PFMT64x, RZ_ANALYSIS_FCN_TYPE_ANY, rz_analysis_function_size_from_entry(), rz_analysis_get_fcn_in(), rz_cons_printf(), RZ_MIN, ut64(), and UT64_MAX.
Referenced by rz_cmd_analysis().
Definition at line 3225 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, rz_asm_t::bits, cmpaddr(), test_evm::end, rz_analysis_t::fcns, i, PFMT64x, capstone::range, rz_core_t::rasm, rz_analysis_function_size_from_entry(), rz_cons_printf(), rz_list_sort(), ut64(), and UT64_MAX.
Referenced by rz_cmd_analysis().
|
static |
Definition at line 4120 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), eprintf, list(), rz_analysis_var_t::name, NULL, rz_core_t::offset, rz_analysis_function_get_var_byname(), rz_analysis_var_all_list(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_list_free(), and var_accesses_list().
Referenced by rz_analysis_function_vars_reads_handler(), and rz_analysis_function_vars_writes_handler().
|
static |
Definition at line 4231 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_function_delete_var().
Referenced by rz_analysis_function_vars_bp_del_handler(), rz_analysis_function_vars_regs_del_handler(), and rz_analysis_function_vars_sp_del_handler().
|
static |
Definition at line 4240 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_core_t::offset, rz_analysis_function_delete_vars_by_kind(), RZ_CMD_STATUS_ERROR, and RZ_CMD_STATUS_OK.
Referenced by rz_analysis_function_vars_bp_del_all_handler(), and rz_analysis_function_vars_regs_del_all_handler().
|
static |
Definition at line 4249 of file cmd_analysis.c.
References addr, rz_core_t::analysis, analysis_get_function_in(), delta, eprintf, rz_analysis_function_t::maxstack, NULL, rz_core_t::offset, rz_analysis_function_get_var(), rz_analysis_op_free(), RZ_ANALYSIS_VAR_KIND_SPV, rz_analysis_var_set_access(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_op().
Referenced by rz_analysis_function_vars_bp_getref_handler(), rz_analysis_function_vars_bp_setref_handler(), rz_analysis_function_vars_regs_getref_handler(), rz_analysis_function_vars_regs_setref_handler(), rz_analysis_function_vars_sp_getref_handler(), and rz_analysis_function_vars_sp_setref_handler().
|
static |
Definition at line 4226 of file cmd_analysis.c.
References rz_core_t::analysis, core_analysis_var_list_show(), and RZ_CMD_STATUS_OK.
Referenced by rz_analysis_function_vars_bp_handler(), rz_analysis_function_vars_regs_handler(), and rz_analysis_function_vars_sp_handler().
|
static |
Helper to get function in offset
.
Case of overlapped functions is treated as an error if offset
is not an entry point.
Definition at line 239 of file cmd_analysis.c.
References test-lz4-list::exit, list(), PFMT64x, rz_analysis_get_function_at(), rz_analysis_get_functions_in(), rz_list_first(), rz_list_free(), rz_list_length(), RZ_LOG_ERROR, and rz_warn_if_reached.
Referenced by analysis_function_vars_accesses(), analysis_function_vars_del(), analysis_function_vars_del_all(), analysis_function_vars_getsetref(), rz_analysis_function_address_handler(), rz_analysis_function_args_and_vars_xrefs_handler(), rz_analysis_function_autoname_handler(), rz_analysis_function_blocks_asciiart_handler(), rz_analysis_function_blocks_del_all_handler(), rz_analysis_function_blocks_list_handler(), rz_analysis_function_cc_reg_usage_handler(), rz_analysis_function_cc_set_get_handler(), rz_analysis_function_del_handler(), rz_analysis_function_import_list_del_handler(), rz_analysis_function_import_list_handler(), rz_analysis_function_opcode_stat_handler(), rz_analysis_function_returns_handler(), rz_analysis_function_setbits_handler(), rz_analysis_function_signature_handler(), rz_analysis_function_signature_type_handler(), rz_analysis_function_stacksz_handler(), rz_analysis_function_strings_handler(), rz_analysis_function_type_matching_handler(), rz_analysis_function_vars_bp_handler(), rz_analysis_function_vars_del_handler(), rz_analysis_function_vars_detect_handler(), rz_analysis_function_vars_dis_refs_handler(), rz_analysis_function_vars_display_handler(), rz_analysis_function_vars_handler(), rz_analysis_function_vars_regs_handler(), rz_analysis_function_vars_sp_handler(), rz_analysis_function_vars_stackframe_handler(), rz_analysis_function_vars_type_handler(), and rz_analysis_function_xrefs_handler().
|
static |
Definition at line 7456 of file cmd_analysis.c.
References rz_core_t::config, NULL, rz_flag_item_t::offset, rz_config_get_b(), and rz_core_analysis_function_add().
Referenced by rz_analyze_symbols_entries_flags_handler(), and rz_analyze_symbols_entries_handler().
|
static |
Definition at line 6565 of file cmd_analysis.c.
References class_error(), err, RZ_CMD_STATUS_ERROR, RZ_LOG_ERROR, and status.
Referenced by rz_analysis_class_base_add_handler(), and rz_analysis_class_base_del_handler().
|
static |
Definition at line 6469 of file cmd_analysis.c.
References err, log_err_nonexist_class(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, and status.
Referenced by class_base_error(), class_method_error(), class_vtable_error(), rz_analysis_class_add_handler(), and rz_analysis_class_rename_handler().
|
static |
Definition at line 6524 of file cmd_analysis.c.
References class_error(), err, RZ_CMD_STATUS_ERROR, RZ_LOG_ERROR, and status.
Referenced by rz_analysis_class_method_add_handler(), rz_analysis_class_method_del_handler(), and rz_analysis_class_method_rename_handler().
|
static |
Definition at line 6621 of file cmd_analysis.c.
References class_error(), err, RZ_CMD_STATUS_ERROR, RZ_LOG_ERROR, and status.
Referenced by rz_analysis_class_vtable_add_handler(), and rz_analysis_class_vtable_del_handler().
|
static |
Definition at line 1124 of file cmd_analysis.c.
References addr, pj_end(), pj_ks(), pj_o(), RZ_ANALYSIS_ADDR_TYPE_ASCII, RZ_ANALYSIS_ADDR_TYPE_EXEC, RZ_ANALYSIS_ADDR_TYPE_FLAG, RZ_ANALYSIS_ADDR_TYPE_FUNC, RZ_ANALYSIS_ADDR_TYPE_HEAP, RZ_ANALYSIS_ADDR_TYPE_LIBRARY, RZ_ANALYSIS_ADDR_TYPE_PROGRAM, RZ_ANALYSIS_ADDR_TYPE_READ, RZ_ANALYSIS_ADDR_TYPE_REG, RZ_ANALYSIS_ADDR_TYPE_SEQUENCE, RZ_ANALYSIS_ADDR_TYPE_STACK, RZ_ANALYSIS_ADDR_TYPE_WRITE, rz_cons_printf(), rz_core_analysis_address(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, type, and ut64().
Referenced by rz_analysis_info_show_handler().
Definition at line 1364 of file cmd_analysis.c.
References addr, aea_stats_fini(), aea_stats_init(), rz_core_t::analysis, c, rz_analysis_esil_t::cb, rz_core_t::config, contains(), eprintf, rz_analysis_op_t::esil, free(), hasNext, rz_analysis_esil_callbacks_t::hook_mem_read, rz_analysis_esil_callbacks_t::hook_mem_write, rz_analysis_esil_callbacks_t::hook_reg_read, rz_analysis_esil_callbacks_t::hook_reg_write, AeaStats::inputregs, rz_core_t::io, len, length, malloc(), mymemread(), mymemwrite(), mymemxsr, mymemxsw, myregread(), myregwrite(), n, rz_analysis_esil_t::nowrite, NULL, ops, PFMT64x, pj_end(), pj_free(), pj_k(), pj_new(), pj_o(), pj_string(), reg, rz_analysis_t::reg, AeaStats::regread, AeaStats::regs, AeaStats::regvalues, AeaStats::regwrite, rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_MAX_OP_SIZE, rz_analysis_esil_free(), rz_analysis_esil_new(), rz_analysis_esil_parse(), rz_analysis_esil_setup(), rz_analysis_esil_stack_free(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, rz_config_get_i(), rz_cons_printf(), rz_cons_println(), RZ_EMPTY, RZ_FREE, rz_io_read_at(), rz_list_free(), rz_list_new(), rz_list_newf(), rz_list_push(), rz_reg_arena_pop(), rz_reg_arena_push(), RZ_STR_ISNOTEMPTY, RZ_STRBUF_SAFEGET, showmem(), showmem_json(), showregs(), showregs_json(), strdup(), rz_analysis_esil_t::user, and ut64().
Referenced by cmd_analysis_esil().
Definition at line 2604 of file cmd_analysis.c.
References args, help_msg_age, input(), rz_cons_printf(), rz_core_agraph_add_edge(), rz_core_agraph_del_edge(), rz_core_cmd_help(), rz_str_argv(), and rz_str_argv_free().
Referenced by cmd_analysis_graph().
Definition at line 2565 of file cmd_analysis.c.
References args, color, help_msg_agn, input(), rz_cons_printf(), rz_core_agraph_add_node(), rz_core_agraph_del_node(), rz_core_cmd_help(), rz_str_argv(), and rz_str_argv_free().
Referenced by cmd_analysis_graph().
Definition at line 1870 of file cmd_analysis.c.
References __analysis_esil_function(), _aeli_iter(), a, addr, rz_analysis_bb_t::addr, rz_core_t::analysis, b, cmd_aea(), rz_core_t::config, eprintf, rz_analysis_t::esil, rz_analysis_op_t::esil, free(), help_detail_ae, help_msg_ae, help_msg_aea, hex, input(), rz_analysis_esil_t::interrupts, len, NULL, rz_core_t::num, rz_core_t::offset, out, pc, reg, rz_analysis_t::reg, rz_analysis_aefa(), rz_analysis_esil_load_interrupts_from_lib(), rz_analysis_esil_new(), rz_analysis_esil_parse(), rz_analysis_esil_set_pc(), rz_analysis_esil_setup(), rz_analysis_esil_stack_free(), rz_analysis_find_most_relevant_block_in(), rz_analysis_function_linear_size(), rz_analysis_function_min_addr(), rz_analysis_get_blocks_in(), rz_analysis_get_fcn_in(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, rz_config_get_i(), rz_cons_printf(), rz_cons_println(), rz_core_analysis_esil_emulate_bb(), rz_core_analysis_op(), rz_core_analysis_set_reg(), rz_core_cmd_help(), rz_core_esil_dumpstack(), RZ_EMPTY, rz_hex_str2bin(), rz_num_math(), rz_reg_getv(), rz_reg_setv(), rz_str_newf(), rz_str_trim_head_ro(), RZ_STRBUF_SAFEGET, sdb_querys(), sdb_reset(), rz_analysis_bb_t::size, rz_analysis_esil_t::stats, cmd_descs_generate::str, strdup(), rz_analysis_esil_t::trap, rz_analysis_esil_t::trap_code, and ut64().
Referenced by rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), rop_classify_nops(), and rz_cmd_analysis().
Definition at line 2842 of file cmd_analysis.c.
References addr, rz_analysis_function_t::addr, rz_core_t::analysis, cmd_agraph_edge(), cmd_agraph_node(), rz_core_t::config, convert_dotcmd_to_image(), e, eprintf, rz_analysis_t::fcns, free(), from, rz_core_t::graph, help_msg_ag, input(), rz_ascii_graph_t::is_callgraph, NULL, rz_core_t::num, rz_core_t::offset, PFMT64u, PFMT64x, RZ_ANALYSIS_FCN_TYPE_ROOT, rz_analysis_get_fcn_in(), RZ_BETWEEN, rz_config_get_i(), rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set_i(), rz_cons_enable_highlight(), rz_cons_enable_mouse(), rz_cons_show_cursor(), rz_core_agraph_print(), rz_core_agraph_print_ascii(), rz_core_agraph_print_sdb(), rz_core_agraph_reset(), rz_core_analysis_callgraph(), rz_core_analysis_coderefs(), rz_core_analysis_codexrefs(), rz_core_analysis_datarefs(), rz_core_analysis_graph(), RZ_CORE_ANALYSIS_GRAPHBODY, RZ_CORE_ANALYSIS_GRAPHDIFF, RZ_CORE_ANALYSIS_GRAPHLINES, rz_core_analysis_importxrefs(), RZ_CORE_ANALYSIS_JSON, RZ_CORE_ANALYSIS_JSON_FORMAT_DISASM, RZ_CORE_ANALYSIS_STAR, rz_core_cmd0(), rz_core_cmd_help(), rz_core_cmdf(), rz_core_gdiff_function_1_file(), rz_core_graph_print(), rz_core_print_bb_custom(), rz_core_print_bb_gml(), rz_core_visual_graph(), RZ_GRAPH_FORMAT_CMD, RZ_GRAPH_FORMAT_DOT, RZ_GRAPH_FORMAT_GML, RZ_GRAPH_FORMAT_GMLFCN, RZ_GRAPH_FORMAT_JSON, rz_graph_free(), rz_num_math(), rz_str_newf(), rz_ascii_graph_t::show_node_titles, to, ut64(), and UT64_MAX.
Referenced by rz_cmd_analysis().
Definition at line 444 of file cmd_analysis.c.
References a, b, bits(), rz_core_t::config, free(), input(), rz_core_t::num, p, print_trampolines(), rz_config_get_i(), rz_num_math(), strdup(), and ut64().
Referenced by rz_cmd_analysis().
Definition at line 2446 of file cmd_analysis.c.
References addr, rz_core_t::analysis, rz_analysis_function_t::name, PFMT64x, rz_analysis_get_function_at(), and rz_cons_printf().
Referenced by rz_analysis_xrefs_from_list_handler().
Definition at line 1213 of file cmd_analysis.c.
Referenced by cmd_aea(), myregread(), and myregwrite().
Definition at line 2550 of file cmd_analysis.c.
References convert_dot_to_image(), rz_cons_flush(), rz_cons_printf(), rz_file_dump(), and cmd_descs_generate::str.
Referenced by rz_core_graph_print().
|
static |
Definition at line 2510 of file cmd_analysis.c.
References cmd, rz_core_t::config, dot_executable_path(), test_evm::end, eprintf, ext, free(), getViewerPath(), NULL, rz_config_get(), rz_core_cmd0(), and rz_str_newf().
Referenced by convert_dot_str_to_image(), and convert_dotcmd_to_image().
Definition at line 2541 of file cmd_analysis.c.
References convert_dot_to_image(), rz_cmd(), rz_cons_flush(), rz_cons_printf(), and rz_core_cmdf().
Referenced by cmd_analysis_graph(), and rz_core_agraph_print_write().
Definition at line 516 of file cmd_analysis.c.
References addr, rz_core_t::analysis, rz_core_t::config, d, free(), i, setup::idx, len, rz_core_t::offset, rz_core_t::parser, PFMT64x, rz_core_t::rasm, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, RZ_ANALYSIS_OP_MASK_IL, RZ_ANALYSIS_OP_MASK_OPEX, rz_asm_describe(), rz_asm_disassemble(), rz_asm_op_get_asm(), rz_asm_set_pc(), rz_config_get_i(), rz_cons_printf(), RZ_LOG_ERROR, rz_str_split(), strdup(), rz_parse_t::subrel, and ut64().
Referenced by rz_analyze_n_bytes_desc_handler(), and rz_analyze_opcode_handler().
Definition at line 552 of file cmd_analysis.c.
References addr, rz_core_t::analysis, color, Color_RESET, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, rz_print_t::flags, i, setup::idx, rz_cons_printable_palette_t::label, len, NULL, rz_core_t::offset, rz_cons_context_t::pal, rz_core_t::parser, PFMT64x, rz_core_t::print, rz_core_t::rasm, rz_analysis_esil_free(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, RZ_ANALYSIS_OP_MASK_IL, RZ_ANALYSIS_OP_MASK_OPEX, rz_asm_set_pc(), rz_config_get_i(), rz_cons_printf(), RZ_LOG_ERROR, RZ_PRINT_FLAGS_COLOR, RZ_STR_ISNOTEMPTY, RZ_STRBUF_SAFEGET, rz_parse_t::subrel, and ut64().
Referenced by rz_analyze_n_bytes_esil_handler(), and rz_analyze_n_ins_esil_handler().
|
static |
Definition at line 590 of file cmd_analysis.c.
References rz_analysis_hint_t::esil, esil_cost(), len, NULL, rz_analysis_hint_t::opcode, pj_a(), pj_end(), pj_j(), pj_k(), pj_kb(), pj_ki(), pj_kn(), PJ_KN, PJ_KS, pj_o(), rz_analysis_datatype_to_string(), rz_analysis_op_family_to_string(), RZ_ANALYSIS_OP_TYPE_COND, rz_analysis_optype_to_string(), rz_analysis_stackop_tostring(), rz_core_analysis_bytes(), rz_il_op_effect_json(), rz_pvector_foreach, rz_pvector_free(), RZ_STR_ISNOTEMPTY, RZ_STRBUF_SAFEGET, and rz_type_cond_tostring().
Referenced by rz_analyze_bytes_handler(), rz_analyze_n_bytes_handler(), and rz_analyze_n_ins_handler().
Definition at line 492 of file cmd_analysis.c.
References addr, rz_core_t::analysis, rz_core_t::config, i, setup::idx, len, rz_core_t::offset, rz_core_t::parser, PFMT64x, rz_core_t::rasm, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, RZ_ANALYSIS_OP_MASK_IL, RZ_ANALYSIS_OP_MASK_OPEX, rz_asm_set_pc(), rz_config_get_i(), rz_cons_printf(), RZ_LOG_ERROR, rz_parse_t::subrel, and ut64().
Referenced by rz_analyze_n_bytes_size_handler(), and rz_analyze_n_ins_size_handler().
|
static |
Definition at line 699 of file cmd_analysis.c.
References color, rz_core_t::cons, rz_cons_t::context, rz_analysis_hint_t::esil, esil_cost(), rz_print_t::flags, rz_cons_printable_palette_t::label, len, NULL, rz_analysis_hint_t::opcode, rz_cons_context_t::pal, PFMT64u, PFMT64x, rz_core_t::print, PRINTF_LN, PRINTF_LN_NOT, PRINTF_LN_STR, rz_analysis_datatype_to_string(), rz_analysis_op_family_to_string(), RZ_ANALYSIS_OP_TYPE_COND, rz_analysis_optype_to_string(), RZ_ANALYSIS_STACK_NULL, rz_analysis_stackop_tostring(), rz_core_analysis_bytes(), rz_il_op_effect_stringify(), RZ_PRINT_FLAGS_COLOR, rz_pvector_foreach, rz_pvector_free(), rz_str_bool(), rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), RZ_STRBUF_SAFEGET, rz_type_cond_tostring(), and UT64_MAX.
Referenced by rz_analyze_bytes_handler(), rz_analyze_n_bytes_handler(), and rz_analyze_n_ins_handler().
|
static |
Definition at line 390 of file cmd_analysis.c.
References rz_core_t::offset, p, PFMT64x, pj_a(), pj_end(), pj_kn(), pj_ks(), PJ_KS, pj_o(), rz_cons_printf(), rz_cons_println(), rz_core_analysis_name(), rz_core_analysis_name_free(), rz_core_analysis_name_type_to_str(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
Referenced by rz_analyse_name_handler().
|
static |
Definition at line 3795 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_analysis_function_t::bp_off, delta, rz_analysis_var_t::delta, fail, free(), i, rz_analysis_var_t::isarg, rz_analysis_var_t::kind, list(), rz_analysis_function_t::maxstack, rz_analysis_var_t::name, rz_reg_t::name, PFMT64x, pj_a(), pj_end(), pj_k(), pj_kN(), pj_ks(), pj_o(), rz_analysis_t::reg, RZ_ABS, RZ_ANALYSIS_VAR_KIND_BPV, RZ_ANALYSIS_VAR_KIND_REG, RZ_ANALYSIS_VAR_KIND_SPV, rz_analysis_var_list(), rz_cons_printf(), rz_list_free(), rz_list_sort(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, rz_reg_index_get(), RZ_REG_NAME_BP, RZ_REG_NAME_SP, rz_type_as_string(), st64, rz_analysis_var_t::type, rz_analysis_t::typedb, and var_comparator().
Referenced by analysis_function_vars_kind_list(), fcn_print_info(), function_list_print_as_cmd(), function_print_to_json(), and rz_analysis_function_vars_handler().
|
inlinestatic |
Definition at line 2455 of file cmd_analysis.c.
References rz_core_t::flags, NULL, RZ_ANALYSIS_XREF_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_STRING, rz_flag_get_at(), rz_flag_get_by_spaces(), RZ_FLAGS_FS_CLASSES, RZ_FLAGS_FS_FUNCTIONS, RZ_FLAGS_FS_IMPORTS, RZ_FLAGS_FS_STRINGS, RZ_FLAGS_FS_SYMBOLS, rz_analysis_ref_t::to, and rz_analysis_ref_t::type.
|
static |
Definition at line 7253 of file cmd_analysis.c.
References rz_core_t::config, CORE_ANALYSIS_EXPERIMENTAL, CORE_ANALYSIS_SIMPLE, rz_debug_t::cur, rz_core_t::dbg, rz_io_t::desc, finish(), rz_core_t::io, rz_io_plugin_t::isdbg, rz_debug_plugin_t::name, NULL, rz_core_t::offset, rz_io_desc_t::plugin, rz_config_get_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_break_timeout(), rz_cons_clear_line(), rz_cons_is_breaked(), rz_core_analysis_all(), rz_core_analysis_everything(), rz_core_analysis_flag_every_function(), rz_core_notify_begin(), rz_core_notify_done(), rz_core_seek(), rz_core_task_yield(), RZ_FREE, strdup(), rz_core_t::tasks, timeout, type, and ut64().
Referenced by rz_analyze_everything_experimental_handler(), rz_analyze_everything_handler(), and rz_analyze_simple_handler().
Definition at line 4067 of file cmd_analysis.c.
References a, b, rz_analysis_var_t::delta, and patch_major_os_version::vb.
Referenced by rz_analysis_function_vars_stackframe_handler().
Definition at line 4073 of file cmd_analysis.c.
References a, b, rz_analysis_var_t::delta, and patch_major_os_version::vb.
Referenced by rz_analysis_function_vars_stackframe_handler().
|
static |
Definition at line 4944 of file cmd_analysis.c.
References RZ_ANALYSIS_DIFF_TYPE_NULL, and rz_analysis_diff_t::type.
Referenced by fcn_list_bbs(), and function_list_print_as_cmd().
|
static |
Definition at line 4937 of file cmd_analysis.c.
References RZ_ANALYSIS_DIFF_TYPE_MATCH, RZ_ANALYSIS_DIFF_TYPE_NULL, and rz_analysis_diff_t::type.
Referenced by fcn_print_info(), and function_print_to_json().
|
static |
Definition at line 2495 of file cmd_analysis.c.
References free(), NULL, and rz_file_path().
Referenced by convert_dot_to_image().
Definition at line 477 of file cmd_analysis.c.
References rz_core_t::analysis, e, expr(), mr(), mw(), rz_analysis_esil_free(), rz_analysis_esil_new(), rz_analysis_esil_parse(), rz_analysis_esil_setup(), and RZ_STR_ISEMPTY.
Referenced by core_analysis_bytes_json(), and core_analysis_bytes_standard().
|
static |
Definition at line 4948 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_analysis_bb_t::addr, rz_analysis_function_t::bbs, rz_analysis_bb_t::diff, diff_type_to_char(), rz_analysis_bb_t::fail, rz_analysis_bb_t::jump, PFMT64u, PFMT64x, rz_cons_printf(), and rz_analysis_bb_t::size.
Referenced by function_list_print_as_cmd().
|
static |
Definition at line 5413 of file cmd_analysis.c.
References fcn_print_info(), and rz_cons_newline().
Referenced by rz_analysis_function_info_handler().
|
static |
Definition at line 5318 of file cmd_analysis.c.
References rz_analysis_diff_t::addr, rz_analysis_function_t::addr, rz_core_t::analysis, rz_analysis_function_t::bbs, rz_analysis_function_t::bits, rz_analysis_function_t::cc, core_analysis_var_list_show(), rz_core_t::dbg, rz_analysis_function_t::diff, diff_type_to_str(), rz_debug_trace_t::enabled, fcn_print_trace_info(), free(), rz_analysis_ref_t::from, rz_analysis_function_t::is_noreturn, rz_analysis_function_t::maxstack, rz_analysis_diff_t::name, PFMT64d, PFMT64u, PFMT64x, RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_SYM, rz_analysis_fcntype_tostring(), rz_analysis_function_complexity(), rz_analysis_function_cost(), rz_analysis_function_count_edges(), rz_analysis_function_get_xrefs_from(), rz_analysis_function_get_xrefs_to(), rz_analysis_function_linear_size(), rz_analysis_function_loops(), rz_analysis_function_purity(), rz_analysis_function_realsize(), rz_analysis_var_count(), RZ_ANALYSIS_XREF_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_CODE, RZ_ANALYSIS_XREF_TYPE_DATA, rz_cons_printf(), rz_core_analysis_fcn_name(), rz_list_free(), rz_list_length(), rz_str_bool(), rz_analysis_ref_t::to, rz_debug_t::trace, rz_analysis_function_t::type, and rz_analysis_ref_t::type.
Referenced by fcn_list_print_info().
|
static |
Definition at line 5303 of file cmd_analysis.c.
References rz_debug_tracepoint_t::addr, rz_analysis_function_contains(), rz_cons_printf(), rz_debug_trace_t::tag, rz_debug_tracepoint_t::tag, test-lz4-versions::tag, rz_debug_tracepoint_t::times, and rz_debug_trace_t::traces.
Referenced by fcn_print_info().
|
static |
Definition at line 782 of file cmd_analysis.c.
References list(), n, PFMT64x, rz_strbuf_appendf(), rz_strbuf_fini(), rz_strbuf_get(), rz_strbuf_init(), s, and strdup().
Referenced by rz_analysis_basic_block_list_handler().
Definition at line 4896 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_analysis_function_t::bbs, free(), list(), msg, PFMT64u, PFMT64x, rz_analysis_function_linear_size(), rz_analysis_function_realsize(), rz_cons_printf(), rz_core_analysis_fcn_name(), rz_list_length(), rz_str_newf(), and ut64().
Referenced by rz_analysis_function_list_handler().
|
static |
Definition at line 4964 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, rz_analysis_function_t::bits, rz_analysis_function_t::cc, core_analysis_var_list_show(), rz_analysis_function_t::diff, diff_type_to_char(), fcn_list_bbs(), free(), function_type_to_char(), list(), rz_analysis_function_t::maxstack, PFMT64u, PFMT64x, rz_analysis_cc_default(), rz_analysis_function_get_xrefs_from(), rz_analysis_function_linear_size(), rz_cons_printf(), rz_core_analysis_fcn_name(), rz_list_free(), and xref_list_print_as_cmd().
Referenced by rz_analysis_function_info_handler(), and rz_analysis_function_list_handler().
Definition at line 4915 of file cmd_analysis.c.
References rz_analysis_function_t::addr, list(), rz_analysis_function_t::name, PFMT64x, and rz_cons_printf().
Referenced by rz_analysis_function_list_handler(), and rz_analysis_function_list_in_handler().
|
static |
Definition at line 5116 of file cmd_analysis.c.
References function_print_to_json(), list(), pj_a(), and pj_end().
Referenced by rz_analysis_function_info_handler(), and rz_analysis_function_list_handler().
|
static |
Definition at line 4826 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, args, rz_analysis_function_t::bbs, rz_analysis_function_t::is_noreturn, list(), rz_analysis_function_t::maxstack, rz_analysis_function_t::name, NULL, rz_analysis_function_complexity(), rz_analysis_function_cost(), rz_analysis_function_count_edges(), rz_analysis_function_get_xrefs_from(), rz_analysis_function_get_xrefs_to(), rz_analysis_function_linear_size(), rz_analysis_function_loops(), rz_analysis_function_max_addr(), rz_analysis_function_min_addr(), rz_analysis_function_realsize(), rz_analysis_var_count(), rz_core_analysis_fcn_get_calls(), rz_list_free(), rz_list_length(), rz_list_uniq(), rz_table_add_column(), rz_table_add_rowf(), rz_table_type(), RzAnalysisRef_cmp(), typeString(), and verbose.
Referenced by rz_analysis_function_list_handler().
|
static |
Definition at line 5185 of file cmd_analysis.c.
References rz_analysis_function_t::addr, dst, f, rz_core_t::flags, free(), rz_analysis_ref_t::from, rz_analysis_function_t::name, PFMT64x, pj_a(), pj_end(), pj_k(), pj_kn(), pj_ks(), pj_o(), rz_cons_newline(), rz_cons_printf(), rz_core_analysis_fcn_get_calls(), rz_flag_get_i(), rz_list_free(), rz_list_uniq(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_str_newf(), RzAnalysisRef_cmp(), and rz_analysis_ref_t::to.
Referenced by rz_analysis_function_list_calls_handler().
|
static |
Definition at line 4999 of file cmd_analysis.c.
References rz_analysis_diff_t::addr, rz_analysis_function_t::addr, rz_core_t::analysis, rz_analysis_function_t::bbs, rz_analysis_function_t::bits, rz_analysis_function_t::cc, core_analysis_var_list_show(), rz_analysis_function_t::diff, diff_type_to_str(), free(), rz_analysis_function_t::is_noreturn, rz_analysis_function_t::maxstack, rz_analysis_diff_t::name, rz_analysis_function_t::name, pj_a(), pj_end(), pj_k(), pj_kb(), pj_ki(), pj_kn(), pj_ks(), pj_o(), RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_SYM, rz_analysis_fcntype_tostring(), rz_analysis_function_complexity(), rz_analysis_function_cost(), rz_analysis_function_count_edges(), rz_analysis_function_get_xrefs_from(), rz_analysis_function_get_xrefs_to(), rz_analysis_function_linear_size(), rz_analysis_function_loops(), rz_analysis_function_max_addr(), rz_analysis_function_min_addr(), rz_analysis_function_purity(), rz_analysis_function_realsize(), rz_analysis_var_count(), RZ_ANALYSIS_XREF_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_CODE, RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_STRING, rz_core_analysis_fcn_name(), rz_core_analysis_function_signature(), rz_list_free(), rz_list_length(), RZ_OUTPUT_MODE_STANDARD, rz_str_trim(), rz_analysis_function_t::type, rz_analysis_ref_t::type, and xref_print_to_json().
Referenced by function_list_print_to_json().
|
static |
Definition at line 4923 of file cmd_analysis.c.
References RZ_ANALYSIS_FCN_TYPE_IMP, RZ_ANALYSIS_FCN_TYPE_LOC, RZ_ANALYSIS_FCN_TYPE_SYM, and rz_analysis_function_t::type.
Referenced by function_list_print_as_cmd().
|
static |
Definition at line 5523 of file cmd_analysis.c.
References rz_analysis_bb_t::addr, rz_analysis_function_t::bbs, i, rz_analysis_bb_t::op_pos, rz_analysis_bb_t::op_pos_size, and update_stat_for_op().
Referenced by rz_analysis_function_all_opcode_stat_handler(), and rz_analysis_function_opcode_stat_handler().
|
static |
Definition at line 7054 of file cmd_analysis.c.
References rz_analysis_bb_t::addr, rz_analysis_bb_t::analysis, free(), i, rz_io_bind_t::io, rz_analysis_t::iob, list(), malloc(), NULL, op, rz_io_bind_t::read_at, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_HINT, RZ_ANALYSIS_OP_TYPE_CALL, rz_list_newf(), rz_list_push(), and rz_analysis_bb_t::size.
Referenced by rz_analysis_basic_block_list_handler().
|
static |
Definition at line 7036 of file cmd_analysis.c.
References rz_analysis_bb_t::addr, rz_analysis_bb_t::analysis, free(), rz_analysis_ref_t::from, i, list(), rz_analysis_bb_t::ninstr, NULL, rz_analysis_bb_t::op_pos, rz_analysis_xrefs_get_to(), rz_list_newf(), rz_list_push(), and ut64().
Referenced by rz_analysis_basic_block_list_handler().
|
static |
Definition at line 2471 of file cmd_analysis.c.
References free(), i, NULL, and rz_file_path().
Referenced by convert_dot_to_image().
HEAPTYPE | ( | ut64 | ) |
|
static |
Definition at line 808 of file cmd_analysis.c.
References addr, rz_core_t::analysis, rz_core_t::bin, rz_analysis_esil_t::cmd, rz_analysis_esil_t::cmd_step, rz_analysis_esil_t::cmd_step_out, rz_core_t::config, entries(), rz_analysis_t::esil, rz_analysis_esil_t::exectrap, free(), rz_bin_info_t::has_va, info(), NULL, rz_core_t::offset, rz_analysis_esil_new(), rz_analysis_esil_setup(), rz_bin_get_entries(), rz_bin_get_info(), rz_config_get(), rz_config_get_i(), rz_config_set(), rz_core_esil_cmd(), rz_list_pop_head(), rz_list_push(), s, strdup(), ut64(), UT64_MAX, and rz_analysis_esil_t::verbose.
Referenced by rz_core_esil_step().
|
static |
Definition at line 6683 of file cmd_analysis.c.
References PFMT64x, rz_analysis_class_vtable_get_all(), rz_analysis_vtable_begin(), rz_cons_printf(), rz_vector_foreach, rz_vector_free(), and ut64().
Referenced by rz_analysis_class_vtable_lookup_handler().
Definition at line 5535 of file cmd_analysis.c.
References k, list(), and rz_list_push().
Referenced by print_stats(), and rz_analysis_function_all_opcode_stat_handler().
|
static |
Definition at line 311 of file cmd_analysis.c.
References rz_analysis_var_t::accesses, rz_analysis_function_t::addr, rz_core_t::analysis, rz_analysis_var_t::delta, IS_ARG_AND_VAR, rz_analysis_var_t::isarg, list(), rz_analysis_var_t::name, NULL, rz_analysis_var_access_t::offset, rz_core_t::offset, PFMT64x, pj_a(), pj_end(), rz_analysis_t::reg, rz_analysis_function_get_var_byname(), RZ_ANALYSIS_VAR_ACCESS_TYPE_READ, RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE, rz_analysis_var_all_list(), rz_cons_printf(), rz_core_print_disasm_instructions(), rz_core_seek(), rz_reg_get_name(), RZ_REG_NAME_BP, rz_vector_foreach, type, rz_analysis_var_access_t::type, ut64(), and var_accesses_list().
Referenced by rz_analysis_function_args_and_vars_xrefs_handler().
Definition at line 270 of file cmd_analysis.c.
References k, rz_cons_printf(), and v.
Referenced by rz_display_opcode_handler().
|
inlinestatic |
Definition at line 6444 of file cmd_analysis.c.
References RZ_LOG_ERROR.
Referenced by class_error(), rz_analysis_class_base_list_handler(), rz_analysis_class_info_handler(), rz_analysis_class_vtable_list_handler(), and rz_analysis_class_vtable_lookup_handler().
|
static |
Definition at line 471 of file cmd_analysis.c.
References len, and rz_analysis_esil_t::user.
Referenced by add_map(), esil_cost(), rz_debug_bochs_map_get(), xnu_dbg_maps(), and xnu_dbg_modules().
Definition at line 465 of file cmd_analysis.c.
References len, and rz_analysis_esil_t::user.
Referenced by esil_cost().
|
static |
Definition at line 1253 of file cmd_analysis.c.
References addr, rz_analysis_esil_t::analysis, rz_io_bind_t::io, rz_analysis_t::iob, len, mymemxsr, n, rz_io_is_valid_offset(), rz_list_push(), and RZ_NEW.
Referenced by cmd_aea().
Definition at line 1233 of file cmd_analysis.c.
References addr, rz_analysis_esil_t::analysis, rz_io_bind_t::io, rz_analysis_t::iob, len, mymemxsw, n, rz_io_is_valid_offset(), rz_list_push(), and RZ_NEW.
Referenced by cmd_aea().
|
static |
Definition at line 1295 of file cmd_analysis.c.
References contains(), AeaStats::inputregs, IS_DIGIT, AeaStats::regread, AeaStats::regs, AeaStats::regwrite, rz_list_push(), strdup(), and rz_analysis_esil_t::user.
Referenced by cmd_aea().
|
static |
Definition at line 1273 of file cmd_analysis.c.
References contains(), free(), IS_DIGIT, oldregread, PFMT64d, AeaStats::regread, AeaStats::regs, AeaStats::regvalues, AeaStats::regwrite, RZ_FREE, rz_list_pop(), rz_list_push(), rz_str_newf(), strdup(), rz_analysis_esil_t::user, v, and val.
Referenced by cmd_aea().
|
static |
Definition at line 2095 of file cmd_analysis.c.
References addr, free(), malloc(), map(), NULL, PFMT64x, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_NOP, RZ_ANALYSIS_OP_TYPE_TRAP, rz_bin_cur(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_io_map_get(), rz_io_read_at(), RZ_LOG_ERROR, RZ_PERM_X, rz_bin_file_t::size, and ut64().
Referenced by rz_print_commands_after_traps_handler().
|
static |
Definition at line 2679 of file cmd_analysis.c.
References rz_analysis_graph_node_info_t::body, rz_graph_node_t::data, free(), len, rz_graph_t::nodes, rz_graph_node_t::out_nodes, rz_base64_encode_dyn(), rz_cons_printf(), RZ_STR_ISNOTEMPTY, rz_analysis_graph_node_info_t::title, and to.
Referenced by rz_core_graph_print().
Definition at line 2708 of file cmd_analysis.c.
References rz_core_t::config, free(), NULL, rz_config_get(), rz_graph_drawable_to_dot(), and rz_str_newf().
Referenced by rz_core_graph_print().
|
static |
Definition at line 5540 of file cmd_analysis.c.
References free(), int, list(), list_keys_cb(), name, rz_analysis_function_t::name, NULL, rz_cons_printf(), rz_list_free(), rz_list_newf(), rz_list_sort(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_TABLE, rz_pvector_new(), rz_pvector_push(), rz_str_newf(), rz_table_add_column(), rz_table_add_row_vec(), rz_table_type(), strdup(), and typeString().
Referenced by rz_analysis_function_opcode_stat_handler().
Definition at line 427 of file cmd_analysis.c.
References a, b, rz_core_t::block, rz_core_t::blocksize, i, memcpy(), n, rz_core_t::offset, PFMT32x, PFMT64x, and rz_cons_printf().
Referenced by cmd_analysis_trampoline().
RZ_IPI RzCmdStatus rz_analyse_name_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6998 of file cmd_analysis.c.
References argv, bool2status(), core_analysis_name_print(), rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_rename(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
Definition at line 1759 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, delta, eprintf, from, NULL, rz_core_t::num, off, rz_core_t::offset, PFMT64x, rz_analysis_get_fcn_in(), rz_core_analysis_esil_init_mem(), rz_core_analysis_esil_step_over(), rz_core_analysis_set_reg(), rz_core_cmd0(), rz_core_seek(), rz_num_get(), rz_num_math(), to, UT32_MAX, ut64(), and UT64_MAX.
Referenced by cmd_analysis_esil().
RZ_IPI RzCmdStatus rz_analysis_all_esil_functions_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7026 of file cmd_analysis.c.
References rz_core_t::flags, RZ_CMD_STATUS_OK, rz_core_analysis_esil_references_all_functions(), rz_flag_unset_all_in_space(), and RZ_FLAGS_FS_REGISTERS.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_all_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7012 of file cmd_analysis.c.
References argv, rz_core_t::flags, NULL, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_core_analysis_esil(), rz_core_analysis_esil_default(), rz_flag_unset_all_in_space(), RZ_FLAGS_FS_REGISTERS, and rz_num_get().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_appcall_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1557 of file cmd_analysis.c.
References rz_core_t::analysis, argv, i, NULL, rz_core_t::num, rz_core_t::offset, rz_analysis_t::reg, RZ_CMD_STATUS_OK, rz_core_esil_step(), rz_core_reg_update_flags(), rz_num_math(), rz_reg_getv(), rz_reg_setv(), rz_str_newf(), sp, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_basic_block_find_paths_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7214 of file cmd_analysis.c.
References addr, rz_analysis_bb_t::addr, rz_core_t::analysis, argv, NULL, rz_core_t::num, rz_core_t::offset, path, PFMT64x, pj_n(), rz_analysis_block_shortest_path(), rz_analysis_get_block_at(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_printf(), rz_list_free(), RZ_LOG_ERROR, rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, status, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_basic_block_info_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7081 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, PFMT64x, rz_analysis_find_most_relevant_block_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_bb_info_print(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_basic_block_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7091 of file cmd_analysis.c.
References addr, rz_analysis_function_t::addr, rz_analysis_bb_t::addr, rz_core_t::analysis, rz_analysis_t::bb_tree, call(), rz_analysis_bb_t::fail, fail, fcnjoin(), rz_analysis_bb_t::fcns, free(), get_calls(), get_xrefs(), rz_analysis_bb_t::jump, jump(), rz_analysis_bb_t::ninstr, NULL, PFMT64d, PFMT64x, pj_end(), pj_ka(), pj_kb(), pj_kn(), pj_n(), pj_o(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_cmd_state_output_set_columnsf(), RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_printf(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, rz_rbtree_foreach, rz_str_newf(), rz_table_add_rowf(), rz_warn_if_reached, rz_analysis_bb_t::size, status, strdup(), rz_analysis_bb_t::traced, ut64(), UT64_MAX, and ut64join().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6487 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_error(), err, rz_analysis_class_create(), RZ_CMD_STATUS_WRONG_ARGS, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_base_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6581 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_base_error(), err, NULL, rz_core_t::num, rz_analysis_class_base_fini(), rz_analysis_class_base_set(), rz_num_math(), and strdup().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_base_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6594 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_base_error(), err, and rz_analysis_class_base_delete().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_base_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6599 of file cmd_analysis.c.
References rz_core_t::analysis, argv, free(), log_err_nonexist_class(), PFMT64x, rz_analysis_class_base_get_all(), rz_analysis_class_exists(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_str_sanitize_sdb_key(), rz_vector_foreach, and rz_vector_free().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6497 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_analysis_class_delete(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_graph_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6513 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_class_get_inheritance_graph(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_graph_print(), rz_graph_free(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_info_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6448 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_class_print(), analysis_class_print_to_json(), argv, log_err_nonexist_class(), rz_analysis_class_exists(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6418 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_class_list_print_to_json(), analysis_class_print(), analysis_class_print_as_cmd(), classes(), ls_foreach, ls_free(), rz_analysis_class_get_all(), RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_RIZIN, and sdbkv_key().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_method_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6540 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_method_error(), err, rz_core_t::num, rz_analysis_class_method_fini(), rz_analysis_class_method_set(), rz_num_math(), st64, and strdup().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_method_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6555 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_method_error(), err, and rz_analysis_class_method_delete().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_method_rename_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6560 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_method_error(), err, and rz_analysis_class_method_rename().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_rename_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6502 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_error(), err, rz_analysis_class_rename(), RZ_CMD_STATUS_WRONG_ARGS, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_vtable_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6637 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_vtable_error(), err, NULL, rz_core_t::num, rz_analysis_class_vtable_fini(), rz_analysis_class_vtable_set(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_vtable_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6654 of file cmd_analysis.c.
References rz_core_t::analysis, argv, class_vtable_error(), err, and rz_analysis_class_vtable_delete().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_vtable_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6659 of file cmd_analysis.c.
References rz_core_t::analysis, argv, free(), log_err_nonexist_class(), PFMT64x, rz_analysis_class_exists(), rz_analysis_class_vtable_get_all(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_str_sanitize_sdb_key(), rz_vector_foreach, and rz_vector_free().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_class_vtable_lookup_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6706 of file cmd_analysis.c.
References rz_core_t::analysis, argv, classes(), list_all_functions_at_vtable_offset(), log_err_nonexist_class(), ls_foreach, ls_free(), NULL, rz_core_t::num, rz_analysis_class_exists(), rz_analysis_class_get_all(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), sdbkv_key(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_continue_until_addr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1602 of file cmd_analysis.c.
References argv, NULL, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_esil_step(), rz_core_reg_update_flags(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_continue_until_breakpoint_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1582 of file cmd_analysis.c.
References RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_esil_continue_back(), rz_core_reg_update_flags(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_continue_until_call_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1597 of file cmd_analysis.c.
References bool2status(), and rz_core_analysis_continue_until_call().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_continue_until_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1609 of file cmd_analysis.c.
References argv, NULL, RZ_CMD_STATUS_OK, rz_core_esil_step(), rz_core_reg_update_flags(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_continue_until_except_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1575 of file cmd_analysis.c.
References NULL, RZ_CMD_STATUS_OK, rz_core_esil_step(), rz_core_reg_update_flags(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_continue_until_syscall_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1592 of file cmd_analysis.c.
References bool2status(), and rz_core_analysis_continue_until_syscall().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_esil_deinit_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1622 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_esil_deinit().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_esil_init_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1616 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_esil_reinit().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_esil_init_mem_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1634 of file cmd_analysis.c.
References addr, argv, NULL, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_analysis_esil_init_mem(), rz_num_math(), UT32_MAX, ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_esil_init_mem_p_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1652 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_esil_init_mem_p().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_esil_init_mem_remove_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1643 of file cmd_analysis.c.
References addr, argv, NULL, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_analysis_esil_init_mem_del(), rz_num_math(), UT32_MAX, ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_esil_init_p_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1628 of file cmd_analysis.c.
References rz_core_t::offset, RZ_CMD_STATUS_OK, and rz_core_analysis_set_reg().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_add_recu_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5847 of file cmd_analysis.c.
References argv, bool2status(), rz_core_t::config, NULL, rz_core_t::offset, rz_config_get_b(), and rz_core_analysis_function_add().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_address_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 3751 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, analysis_get_function_in(), NULL, rz_core_t::offset, PFMT64x, pj_end(), pj_free(), pj_ki(), pj_new(), pj_o(), pj_string(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_cons_println(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, and rz_return_val_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_all_opcode_stat_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5601 of file cmd_analysis.c.
References add_keys_to_set_cb(), rz_analysis_function_t::addr, rz_core_t::analysis, argv, test-lz4-list::exit, rz_analysis_t::fcns, free(), gather_opcode_stat_for_fcn(), key, keys, list_keys_cb(), n, rz_analysis_function_t::name, NULL, PFMT64x, rz_analysis_get_function_at(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_list_append(), rz_list_free(), rz_list_newf(), rz_list_sort(), RZ_OUTPUT_MODE_TABLE, rz_pvector_new(), rz_pvector_push(), rz_str_newf(), rz_table_add_column(), rz_table_add_row_vec(), rz_table_type(), STATS_MODE_DEF, STATS_MODE_FML, STATS_MODE_TYPE, strdup(), typeString(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_analyze_args_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5938 of file cmd_analysis.c.
References argv, rz_core_t::config, RZ_CMD_STATUS_OK, rz_config_get_b(), and rz_core_print_func_args().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_analyze_jmptable_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5921 of file cmd_analysis.c.
References rz_core_t::analysis, argv, blocks, rz_analysis_bb_t::fcns, rz_core_t::num, rz_core_t::offset, rz_analysis_get_blocks_in(), rz_analysis_jmptbl(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_list_first(), rz_list_free(), RZ_LOG_ERROR, rz_num_math(), ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_args_and_vars_xrefs_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode, | ||
bool | use_args, | ||
bool | use_vars | ||
) |
Definition at line 4175 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, free(), IS_ARG, IS_VAR, list_vars(), NULL, rz_core_t::offset, pj_drain(), pj_end(), pj_k(), pj_new(), pj_o(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), and RZ_OUTPUT_MODE_JSON.
Referenced by rz_analysis_function_vars_xrefs_args_handler(), rz_analysis_function_vars_xrefs_handler(), and rz_analysis_function_vars_xrefs_vars_handler().
RZ_IPI RzCmdStatus rz_analysis_function_autoname_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5676 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), free(), rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), and rz_core_analysis_function_autoname().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3557 of file cmd_analysis.c.
References addr, rz_core_t::analysis, argv, eprintf, err, fail, jump(), NULL, rz_core_t::num, PFMT64x, rz_analysis_diff_free(), rz_analysis_diff_new(), RZ_ANALYSIS_DIFF_TYPE_MATCH, RZ_ANALYSIS_DIFF_TYPE_UNMATCH, rz_analysis_fcn_add_bb(), rz_analysis_get_function_at(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), rz_analysis_diff_t::type, ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_asciiart_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3538 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_bbs_asciiart().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_color_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3584 of file cmd_analysis.c.
References addr, rz_core_t::analysis, argv, color, rz_analysis_bb_t::colorize, eprintf, rz_core_t::num, PFMT64x, rz_analysis_find_most_relevant_block_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_del_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3481 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_analysis_function_t::bbs, rz_core_t::offset, rz_analysis_function_remove_block(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_list_first().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3470 of file cmd_analysis.c.
References rz_core_t::analysis, b, eprintf, rz_core_t::offset, rz_analysis_find_most_relevant_block_in(), rz_analysis_function_remove_block(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_list_first().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_edge_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3492 of file cmd_analysis.c.
References rz_core_t::analysis, argv, blocks, rz_core_t::num, rz_analysis_block_add_switch_case(), rz_analysis_get_blocks_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_list_first(), rz_list_free(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_info_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 3547 of file cmd_analysis.c.
References rz_core_t::analysis, eprintf, rz_core_t::offset, PFMT64x, rz_analysis_find_most_relevant_block_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_bb_info_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 3461 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_bbs_info_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_blocks_switch_type_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3505 of file cmd_analysis.c.
References rz_core_t::analysis, argv, b, blocks, e, rz_core_t::num, PFMT64x, rz_analysis_get_blocks_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_list_first(), rz_list_free(), RZ_LOG_ERROR, rz_num_math(), rz_type_db_get_enum(), rz_type_free(), rz_type_identifier_of_base_type(), rz_analysis_t::typedb, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_cc_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 5794 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_types_calling_conventions_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_cc_load_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5799 of file cmd_analysis.c.
References rz_core_t::analysis, argv, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_file_exists(), RZ_LOG_ERROR, rz_analysis_t::sdb_cc, sdb_close(), sdb_free(), sdb_merge(), and sdb_new().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_cc_reg_usage_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5814 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_analysis_function_t::cc, NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_cc_print(), and RZ_OUTPUT_MODE_JSON.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_cc_set_get_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5777 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, rz_analysis_function_t::cc, rz_analysis_t::constpool, rz_core_t::offset, rz_analysis_cc_exist(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_println(), RZ_LOG_ERROR, and rz_str_constpool_get().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_count_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5168 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_t::fcns, RZ_CMD_STATUS_OK, rz_cons_printf(), and rz_list_length().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_create_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5856 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::offset, rz_analysis_create_function(), rz_analysis_diff_free(), rz_analysis_diff_new(), RZ_ANALYSIS_DIFF_TYPE_MATCH, RZ_ANALYSIS_DIFF_TYPE_UNMATCH, RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_IMP, RZ_ANALYSIS_FCN_TYPE_LOC, RZ_ANALYSIS_FCN_TYPE_SYM, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, type, and rz_analysis_diff_t::type.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_del_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5911 of file cmd_analysis.c.
References rz_core_t::analysis, f, rz_analysis_t::fcns, rz_analysis_del_jmprefs(), RZ_CMD_STATUS_OK, and rz_core_analysis_undefine().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5899 of file cmd_analysis.c.
References addr, rz_core_t::analysis, analysis_get_function_in(), f, rz_core_t::offset, rz_analysis_fcn_del(), rz_analysis_fcn_del_locs(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_undefine(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_describe_offset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5824 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, delta, list(), rz_analysis_function_t::name, rz_core_t::offset, PFMT64d, PFMT64x, rz_analysis_get_functions_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_list_free(), RZ_LOG_ERROR, and st64.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_import_list_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5471 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_analysis_function_t::imports, NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_list_free().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_import_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5444 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, free(), rz_analysis_function_t::imports, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_list_append(), rz_list_newf(), and strdup().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_info_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5422 of file cmd_analysis.c.
References rz_core_t::analysis, fcn_list_print_info(), function_list_print_as_cmd(), function_list_print_to_json(), list(), rz_core_t::offset, rz_analysis_get_functions_in(), RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_list_ascii_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5267 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_function_t::bits, rz_core_t::blocksize, rz_core_t::config, fcn_cmpaddr(), free(), info(), NULL, rz_core_t::offset, rz_analysis_function_linear_size(), rz_analysis_function_list(), rz_analysis_function_min_addr(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_i(), rz_cons_get_size(), rz_cons_printf(), rz_core_analysis_fcn_name(), rz_core_table(), rz_list_append(), rz_list_clone(), rz_list_free(), rz_list_newf(), rz_list_sort(), rz_listinfo_free(), rz_listinfo_new(), rz_strf, rz_table_free(), rz_table_tostring(), and rz_table_visual_list().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_list_calls_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5250 of file cmd_analysis.c.
References rz_core_t::analysis, function_print_calls(), list(), rz_analysis_function_list(), RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5126 of file cmd_analysis.c.
References rz_core_t::analysis, function_list_print(), function_list_print_as_cmd(), function_list_print_quiet(), function_list_print_to_json(), function_list_print_to_table(), list(), rz_analysis_function_list(), rz_cmd_state_output_fini(), rz_cmd_state_output_init(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, and rz_warn_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_list_in_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5161 of file cmd_analysis.c.
References rz_core_t::analysis, function_list_print_quiet(), list(), rz_core_t::offset, rz_analysis_get_functions_in(), RZ_CMD_STATUS_OK, and rz_list_free().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_opcode_stat_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5575 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, gather_opcode_stat_for_fcn(), rz_core_t::offset, print_stats(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, STATS_MODE_DEF, STATS_MODE_FML, and STATS_MODE_TYPE.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_rename_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5672 of file cmd_analysis.c.
References argv, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_function_rename().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_returns_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3529 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_fcn_returns().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_setbits_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3596 of file cmd_analysis.c.
References rz_analysis_bb_t::addr, rz_core_t::analysis, analysis_get_function_in(), argv, rz_analysis_function_t::bbs, rz_analysis_function_t::bits, rz_analysis_t::bits, bits(), rz_core_t::offset, rz_analysis_hint_set_bits(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_analysis_bb_t::size.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_signature_editor_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3643 of file cmd_analysis.c.
References rz_core_t::offset, RZ_CMD_STATUS_OK, and rz_core_analysis_function_signature_editor().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_signature_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 3612 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, f, free(), NULL, rz_core_t::offset, rz_analysis_function_get_json(), rz_analysis_function_get_signature(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), rz_core_analysis_function_set_signature(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, and cmd_descs_generate::str.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_signature_type_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3648 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, eprintf, free(), rz_analysis_function_t::name, NULL, rz_core_t::offset, rz_type_db_t::parser, rz_analysis_function_t::ret_type, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_type_func_ret_set(), rz_type_parse_string_single(), and rz_analysis_t::typedb.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_size_sum_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5173 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_t::fcns, PFMT64u, rz_analysis_function_realsize(), RZ_CMD_STATUS_OK, rz_cons_printf(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_stacksz_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3741 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, rz_analysis_function_t::maxstack, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_strings_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5690 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_function_strings_print(), and RZ_OUTPUT_MODE_JSON.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_type_matching_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5700 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, analysis_get_function_in(), rz_analysis_t::esil, NULL, rz_core_t::offset, rz_analysis_esil_set_pc(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_type_match(), rz_core_seek(), seek(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_until_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3781 of file cmd_analysis.c.
References argv, eprintf, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_function_until(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_bp_del_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4303 of file cmd_analysis.c.
References analysis_function_vars_del_all(), and RZ_ANALYSIS_VAR_KIND_BPV.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_bp_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4299 of file cmd_analysis.c.
References analysis_function_vars_del(), argv, and RZ_ANALYSIS_VAR_KIND_BPV.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_bp_getref_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4307 of file cmd_analysis.c.
References addr, analysis_function_vars_getsetref(), argv, delta, int, rz_core_t::num, RZ_ANALYSIS_VAR_ACCESS_TYPE_READ, RZ_ANALYSIS_VAR_KIND_BPV, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
------— Base pointer based variable handlers ----------—
Definition at line 4273 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_function_vars_kind_list(), analysis_get_function_in(), argv, rz_analysis_function_t::bp_off, delta, eprintf, free(), int, NULL, rz_core_t::num, rz_core_t::offset, rz_type_db_t::parser, rz_analysis_function_set_var(), RZ_ANALYSIS_VAR_KIND_BPV, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), rz_type_free(), rz_type_parse_string_single(), and rz_analysis_t::typedb.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_bp_setref_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4313 of file cmd_analysis.c.
References addr, analysis_function_vars_getsetref(), argv, delta, int, rz_core_t::num, RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE, RZ_ANALYSIS_VAR_KIND_BPV, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4015 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, rz_core_t::offset, RZ_ANALYSIS_VAR_KIND_BPV, RZ_ANALYSIS_VAR_KIND_REG, RZ_ANALYSIS_VAR_KIND_SPV, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_function_delete_var().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_detect_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4027 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), rz_core_t::offset, rz_analysis_function_delete_all_vars(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_recover_vars().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_dis_refs_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3980 of file cmd_analysis.c.
References rz_analysis_var_t::accesses, rz_analysis_function_t::addr, rz_core_t::analysis, analysis_get_function_in(), list(), rz_analysis_var_t::name, rz_analysis_var_access_t::offset, rz_core_t::offset, PFMT64x, RZ_ANALYSIS_VAR_ACCESS_TYPE_READ, RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE, rz_analysis_var_all_list(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_print_disasm_instructions(), rz_core_seek(), rz_list_free(), rz_vector_foreach, rz_analysis_var_access_t::type, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_display_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4038 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, eprintf, free(), NULL, rz_core_t::offset, r, rz_analysis_function_get_var_byname(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_all_vars_display(), rz_core_analysis_var_display(), rz_return_val_if_reached, and v.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 3939 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), core_analysis_var_list_show(), rz_analysis_var_t::delta, list(), rz_analysis_var_t::name, NULL, rz_core_t::offset, pj_end(), pj_k(), pj_o(), rz_analysis_t::reg, rz_analysis_var_all_list(), RZ_ANALYSIS_VAR_KIND_BPV, RZ_ANALYSIS_VAR_KIND_REG, RZ_ANALYSIS_VAR_KIND_SPV, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_reg_get_name(), RZ_REG_NAME_BP, and rz_return_val_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_reads_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4145 of file cmd_analysis.c.
References analysis_function_vars_accesses(), argv, and RZ_ANALYSIS_VAR_ACCESS_TYPE_READ.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_regs_del_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4356 of file cmd_analysis.c.
References analysis_function_vars_del_all(), and RZ_ANALYSIS_VAR_KIND_REG.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_regs_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4352 of file cmd_analysis.c.
References analysis_function_vars_del(), argv, and RZ_ANALYSIS_VAR_KIND_REG.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_regs_getref_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4360 of file cmd_analysis.c.
References addr, rz_core_t::analysis, analysis_function_vars_getsetref(), argv, delta, eprintf, i, rz_core_t::num, rz_analysis_t::reg, RZ_ANALYSIS_VAR_ACCESS_TYPE_READ, RZ_ANALYSIS_VAR_KIND_REG, RZ_CMD_STATUS_ERROR, rz_num_math(), rz_reg_get(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_regs_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
------— Register-based variable handlers ----------—
Definition at line 4321 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_function_vars_kind_list(), analysis_get_function_in(), argv, delta, eprintf, free(), i, NULL, rz_core_t::offset, rz_type_db_t::parser, rz_analysis_t::reg, rz_analysis_function_set_var(), RZ_ANALYSIS_VAR_KIND_REG, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_reg_get(), rz_type_free(), rz_type_parse_string_single(), and rz_analysis_t::typedb.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_regs_setref_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4371 of file cmd_analysis.c.
References addr, rz_core_t::analysis, analysis_function_vars_getsetref(), argv, delta, eprintf, i, rz_core_t::num, rz_analysis_t::reg, RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE, RZ_ANALYSIS_VAR_KIND_REG, RZ_CMD_STATUS_ERROR, rz_num_math(), rz_reg_get(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_rename_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4113 of file cmd_analysis.c.
References argv, RZ_CMD_STATUS_OK, and rz_core_analysis_var_rename().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_sp_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4410 of file cmd_analysis.c.
References analysis_function_vars_del(), argv, and RZ_ANALYSIS_VAR_KIND_SPV.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_sp_getref_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4414 of file cmd_analysis.c.
References addr, analysis_function_vars_getsetref(), argv, delta, int, rz_core_t::num, RZ_ANALYSIS_VAR_ACCESS_TYPE_READ, RZ_ANALYSIS_VAR_KIND_SPV, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_sp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
------— Stack-based variable handlers ----------—
Definition at line 4384 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_function_vars_kind_list(), analysis_get_function_in(), argv, delta, eprintf, free(), int, rz_analysis_function_t::maxstack, NULL, rz_core_t::num, rz_core_t::offset, rz_type_db_t::parser, rz_analysis_function_set_var(), RZ_ANALYSIS_VAR_KIND_SPV, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), rz_type_free(), rz_type_parse_string_single(), and rz_analysis_t::typedb.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_sp_setref_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4420 of file cmd_analysis.c.
References addr, analysis_function_vars_getsetref(), argv, delta, int, rz_core_t::num, RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE, RZ_ANALYSIS_VAR_KIND_SPV, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_stackframe_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4079 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), delta_cmp(), delta_cmp2(), free(), list(), rz_core_t::offset, p, pad(), PFMT64x, rz_analysis_var_all_list(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_list_free(), rz_list_sort(), rz_str_pad(), rz_type_as_string(), rz_analysis_t::typedb, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_type_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4153 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), argv, eprintf, free(), NULL, rz_core_t::offset, rz_type_db_t::parser, rz_analysis_function_get_var_byname(), rz_analysis_var_set_type(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_type_parse_string_single(), rz_analysis_t::typedb, and v.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_writes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4149 of file cmd_analysis.c.
References analysis_function_vars_accesses(), argv, and RZ_ANALYSIS_VAR_ACCESS_TYPE_WRITE.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_xrefs_args_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4218 of file cmd_analysis.c.
References argv, and rz_analysis_function_args_and_vars_xrefs_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_xrefs_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4214 of file cmd_analysis.c.
References argv, and rz_analysis_function_args_and_vars_xrefs_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_vars_xrefs_vars_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4222 of file cmd_analysis.c.
References argv, and rz_analysis_function_args_and_vars_xrefs_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_function_xrefs_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 3686 of file cmd_analysis.c.
References rz_core_t::analysis, analysis_get_function_in(), test-lz4-list::exit, free(), rz_analysis_ref_t::from, rz_core_t::offset, PFMT64x, rz_analysis_function_get_xrefs_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_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_printf(), rz_core_cmd_strf(), rz_core_print_disasm_instructions(), rz_core_seek(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, s, status, rz_analysis_ref_t::to, rz_analysis_ref_t::type, ut64(), and xref_list_print_to_json().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_functions_map_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5712 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, b, rz_analysis_function_t::bbs, calloc(), Color_GREEN, rz_core_t::config, counter, rz_analysis_t::fcns, free(), i, rz_core_t::num, PFMT64u, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_config_get_i(), rz_cons_printf(), rz_num_get(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_functions_merge_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5771 of file cmd_analysis.c.
References addr, argv, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_core_analysis_fcn_merge(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_global_variable_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3287 of file cmd_analysis.c.
References addr, rz_core_t::analysis, argv, free(), NULL, rz_core_t::num, rz_type_db_t::parser, rz_analysis_var_global_add(), rz_analysis_var_global_free(), rz_analysis_var_global_new(), rz_analysis_var_global_set_type(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, rz_num_math(), rz_type_parse_string_single(), type, rz_analysis_t::typedb, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_global_variable_delete_byaddr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3312 of file cmd_analysis.c.
References addr, rz_core_t::analysis, argv, rz_core_t::num, rz_analysis_var_global_delete_byaddr_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_global_variable_delete_byname_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3322 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_analysis_var_global_delete_byname(), RZ_CMD_STATUS_ERROR, and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_global_variable_rename_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3330 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_analysis_var_global_rename(), RZ_CMD_STATUS_ERROR, and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_global_variable_retype_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3339 of file cmd_analysis.c.
References rz_core_t::analysis, argv, free(), NULL, rz_type_db_t::parser, rz_analysis_var_global_get_byname(), rz_analysis_var_global_set_type(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, rz_type_parse_string_single(), type, and rz_analysis_t::typedb.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6040 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_hint_clear(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_arch_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6051 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_arch(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_bits_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6062 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_bits(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6093 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_esil(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_fail_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6125 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_fail(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6031 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::num, rz_core_t::offset, rz_analysis_hint_del(), RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_high_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6072 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_high(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_immbase_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6208 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_immbase(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_jump_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6083 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_jump(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_offset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6217 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_offset(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_opcode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6103 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_opcode(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_optype_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6193 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_type(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_ptr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6157 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_pointer(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_ret_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6168 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_ret(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_size_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6114 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_size(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_stackframe_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6136 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_stackframe(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_syntax_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6146 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_syntax(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_del_val_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6179 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_unset_val(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_list_at_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6026 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, RZ_CMD_STATUS_OK, and rz_core_analysis_hint_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6021 of file cmd_analysis.c.
References rz_core_t::analysis, RZ_CMD_STATUS_OK, and rz_core_analysis_hint_list_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_arch_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6045 of file cmd_analysis.c.
References rz_core_t::analysis, arch, argv, NULL, rz_core_t::offset, rz_analysis_hint_set_arch(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_bits_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6056 of file cmd_analysis.c.
References rz_core_t::analysis, argv, bits(), rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_bits(), RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6088 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::offset, rz_analysis_hint_set_esil(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_fail_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6119 of file cmd_analysis.c.
References rz_core_t::analysis, argv, fail, rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_fail(), RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_high_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6067 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_hint_set_high(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_immbase_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6198 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_immbase(), rz_analysis_hint_set_nword(), RZ_CMD_STATUS_OK, rz_num_base_of_string(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_jump_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6077 of file cmd_analysis.c.
References rz_core_t::analysis, argv, jump(), rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_jump(), RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_offset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6213 of file cmd_analysis.c.
References argv, bool2status(), and rz_core_analysis_hint_set_offset().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_opcode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6098 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::offset, rz_analysis_hint_set_opcode(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_optype_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6184 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::offset, rz_analysis_hint_set_type(), rz_analysis_optype_from_string(), RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, and type.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_ptr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6151 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_pointer(), RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_ret_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6162 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_ret(), RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_size_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6108 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_size(), RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_stackframe_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6130 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_stackframe(), RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_syntax_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6141 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::offset, rz_analysis_hint_set_syntax(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_hint_set_val_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6173 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::num, rz_core_t::offset, rz_analysis_hint_set_val(), RZ_CMD_STATUS_OK, rz_num_math(), ut64(), and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_info_show_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7601 of file cmd_analysis.c.
References cmd_address_info(), rz_core_t::offset, and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_list_struct_offsets_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6222 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_core_t::num, rz_type_path_t::path, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_printf(), rz_list_free(), rz_num_math(), rz_type_db_get_by_offset(), rz_analysis_t::typedb, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_list_vtables_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 3247 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_list_vtables(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_print_global_variable_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 3280 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_analysis_var_global_list_show(), RZ_CMD_STATUS_ERROR, and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_print_rtti_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 3257 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_rtti_print_all(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_print_rtti_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 3252 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_t::offset, rz_analysis_rtti_print_at_vtable(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_recover_rtti_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3262 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_rtti_recover_all(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_rtti_demangle_class_name_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3267 of file cmd_analysis.c.
References rz_core_t::analysis, argv, free(), rz_analysis_rtti_demangle_class_name(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_cons_println().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_syscall_dump_assembly_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2438 of file cmd_analysis.c.
References argv, and syscalls_dump().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_syscall_dump_c_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2442 of file cmd_analysis.c.
References argv, and syscalls_dump().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_syscall_name_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2372 of file cmd_analysis.c.
References rz_core_t::analysis, argv, num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), RZ_LOG_ERROR, rz_syscall_get_num(), st64, rz_analysis_t::syscall, and syscallNumber().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_syscall_number_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2382 of file cmd_analysis.c.
References rz_core_t::analysis, argv, NULL, num, PFMT64d, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), RZ_LOG_ERROR, rz_num_math(), rz_syscall_get(), si, st64, and rz_analysis_t::syscall.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_syscall_print_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 2344 of file cmd_analysis.c.
References rz_core_t::analysis, list(), pj_end(), pj_ki(), pj_ks(), pj_o(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_OK, rz_cons_printf(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_syscall_list(), rz_warn_if_reached, si, rz_analysis_t::syscall, and syscallNumber().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_syscall_show_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2328 of file cmd_analysis.c.
References argv, free(), n, rz_core_t::num, rz_core_t::offset, PFMT64d, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), rz_core_syscall_as_string(), RZ_LOG_ERROR, rz_num_math(), and st64.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_copy_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4681 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_analysis_ref_t::from, list(), rz_core_t::num, rz_core_t::offset, PFMT64x, rz_analysis_xrefs_get_to(), rz_analysis_xrefs_set(), rz_analysis_xrefs_type_tostring(), RZ_CMD_STATUS_OK, rz_cons_printf(), rz_list_free(), rz_num_math(), src, rz_analysis_ref_t::type, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_del_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4677 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_xrefs_init(), RZ_CMD_STATUS_ERROR, and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_del_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4657 of file cmd_analysis.c.
References test_group_name::all, rz_core_t::analysis, argv, rz_analysis_ref_t::from, from, list(), rz_core_t::num, rz_analysis_xref_del(), rz_analysis_xrefs_get_to(), RZ_CMD_STATUS_OK, rz_list_free(), rz_num_math(), rz_analysis_ref_t::to, to, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_from_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 4576 of file cmd_analysis.c.
References rz_core_t::analysis, rz_print_t::big_endian, cmd_analysis_ucall_ref(), desc, rz_core_t::flags, rz_analysis_ref_t::from, rz_core_t::io, list(), rz_flag_item_t::name, rz_core_t::offset, rz_core_t::parser, PFMT64x, rz_core_t::print, rz_core_t::rasm, rz_analysis_hint_free(), rz_analysis_hint_get(), rz_analysis_op(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_UCALL, RZ_ANALYSIS_XREF_TYPE_CALL, rz_analysis_xrefs_get_from(), rz_asm_disassemble(), rz_asm_op_get_asm(), rz_asm_set_pc(), RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_newline(), rz_cons_printf(), rz_flag_get_at(), rz_io_read_at(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_parse_filter(), rz_warn_if_reached, status, cmd_descs_generate::str, rz_analysis_ref_t::to, rz_analysis_op_t::type, rz_analysis_ref_t::type, xref_list_print_as_cmd(), and xref_list_print_to_json().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_graph_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 4803 of file cmd_analysis.c.
References NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_OUTPUT_MODE_JSON, and xrefs_graph().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 4501 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_ref_t::from, list(), PFMT64x, rz_analysis_xrefs_list(), rz_analysis_xrefs_type_tostring(), RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_printf(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, status, rz_analysis_ref_t::to, rz_analysis_ref_t::type, xref_list_print_as_cmd(), xref_list_print_to_json(), and xrefs_list_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_set_0_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4432 of file cmd_analysis.c.
References argv, RZ_ANALYSIS_XREF_TYPE_NULL, and xrefs_set().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_set_c_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4436 of file cmd_analysis.c.
References argv, RZ_ANALYSIS_XREF_TYPE_CODE, and xrefs_set().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_set_C_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4440 of file cmd_analysis.c.
References argv, RZ_ANALYSIS_XREF_TYPE_CALL, and xrefs_set().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_set_d_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4444 of file cmd_analysis.c.
References argv, RZ_ANALYSIS_XREF_TYPE_DATA, and xrefs_set().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_set_s_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4448 of file cmd_analysis.c.
References argv, RZ_ANALYSIS_XREF_TYPE_STRING, and xrefs_set().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_to_graph_cmd_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 4634 of file cmd_analysis.c.
References addr, rz_core_t::analysis, free(), rz_analysis_ref_t::from, list(), rz_analysis_function_t::name, rz_core_t::offset, PFMT64x, rz_analysis_get_fcn_in(), rz_analysis_xrefs_get_to(), RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_cmd_strf(), rz_list_free(), rz_str_trim_tail(), cmd_descs_generate::str, strdup(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analysis_xrefs_to_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 4530 of file cmd_analysis.c.
References rz_core_t::analysis, free(), rz_analysis_ref_t::from, list(), rz_analysis_function_t::name, NULL, rz_core_t::offset, PFMT64x, print_comment(), rz_analysis_get_fcn_in(), rz_analysis_xrefs_get_to(), rz_analysis_xrefs_type_tostring(), RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_cons_printf(), rz_core_disasm_instruction(), rz_list_free(), rz_meta_get_string(), RZ_META_TYPE_COMMENT, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_str_ndup(), rz_str_newf(), rz_warn_if_reached, status, rz_analysis_ref_t::type, xref_list_print_as_cmd(), and xref_list_print_to_json().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_consecutive_functions_in_section_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7335 of file cmd_analysis.c.
References rz_core_t::config, list(), map(), NULL, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_config_set_b(), rz_core_analysis_function_add(), rz_core_get_boundaries_prot(), rz_core_seek(), rz_list_free(), RZ_LOG_ERROR, RZ_PERM_X, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_data_references_to_code_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7309 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_ref_t::from, rz_core_t::io, list(), RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_NULL, rz_analysis_xrefs_get_from(), RZ_CMD_STATUS_OK, rz_core_analysis_fcn(), rz_io_is_valid_offset(), rz_list_free(), rz_analysis_ref_t::to, rz_analysis_ref_t::type, and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_function_calls_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7299 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_calls().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_function_calls_to_imports_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7304 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_calls().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_functions_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7330 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_cmd0().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_functions_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7322 of file cmd_analysis.c.
References rz_core_t::config, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_config_set_b(), and rz_core_cmd0().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_objc_references_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7432 of file cmd_analysis.c.
References bool2status(), and cmd_analysis_objc().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_preludes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7446 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_search_preludes().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_all_unresolved_jumps_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7418 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_resolve_jumps().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_bytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6729 of file cmd_analysis.c.
References argv, core_analysis_bytes_json(), core_analysis_bytes_standard(), free(), len, malloc(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_hex_str2bin(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, and st32.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_cycles_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6901 of file cmd_analysis.c.
References rz_analysis_cycle_hook_t::addr, argv, rz_core_t::config, rz_analysis_cycle_hook_t::cycles, free(), NULL, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set_i(), rz_cons_clear_line(), rz_cons_flush(), rz_cons_printf(), rz_core_analysis_cycles(), rz_core_disassemble_instr(), rz_list_free(), RZ_LOG_ERROR, rz_num_get(), and st32.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_everything_experimental_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7294 of file cmd_analysis.c.
References CORE_ANALYSIS_EXPERIMENTAL, core_perform_auto_analysis(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_everything_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7289 of file cmd_analysis.c.
References CORE_ANALYSIS_DEEP, core_perform_auto_analysis(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_function_linked_offsets_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7488 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_analysis_t::fcns, rz_core_t::num, rz_analysis_get_function_at(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_is_breaked(), rz_core_link_stroff(), RZ_LOG_ERROR, rz_num_math(), ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_n_bytes_desc_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6780 of file cmd_analysis.c.
References rz_core_t::block, rz_core_t::blocksize, core_analysis_bytes_desc(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_n_bytes_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6775 of file cmd_analysis.c.
References rz_core_t::block, rz_core_t::blocksize, core_analysis_bytes_esil(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_n_bytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6759 of file cmd_analysis.c.
References rz_core_t::block, rz_core_t::blocksize, core_analysis_bytes_json(), core_analysis_bytes_standard(), RZ_CMD_STATUS_OK, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, and rz_warn_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_n_bytes_size_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6785 of file cmd_analysis.c.
References rz_core_t::block, rz_core_t::blocksize, core_analysis_bytes_size(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_n_ins_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6851 of file cmd_analysis.c.
References argv, rz_core_t::block, rz_core_t::blocksize, core_analysis_bytes_esil(), count, rz_core_t::num, obs, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_size(), RZ_LOG_ERROR, rz_num_math(), and st32.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_n_ins_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6790 of file cmd_analysis.c.
References argv, rz_core_t::block, rz_core_t::blocksize, core_analysis_bytes_json(), core_analysis_bytes_standard(), count, rz_core_t::num, obs, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_size(), RZ_LOG_ERROR, rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, and st32.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_n_ins_size_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6826 of file cmd_analysis.c.
References argv, rz_core_t::block, rz_core_t::blocksize, core_analysis_bytes_size(), count, rz_core_t::num, obs, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_size(), RZ_LOG_ERROR, rz_num_math(), and st32.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_opcode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6876 of file cmd_analysis.c.
References argv, rz_core_t::block, rz_core_t::blocksize, core_analysis_bytes_desc(), rz_print_t::cur, d, free(), rz_core_t::print, rz_core_t::rasm, rz_asm_describe(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), RZ_LOG_ERROR, RZ_MAX, and RZ_STR_ISEMPTY.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_recursively_all_function_types_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7358 of file cmd_analysis.c.
References bool2status(), and rz_core_analysis_types_propagation().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_simple_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7284 of file cmd_analysis.c.
References CORE_ANALYSIS_SIMPLE, core_perform_auto_analysis(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_symbols_entries_flags_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7482 of file cmd_analysis.c.
References analyze_function_at_flag(), rz_core_t::flags, RZ_CMD_STATUS_OK, and rz_flag_foreach_glob().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_symbols_entries_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7462 of file cmd_analysis.c.
References analyze_function_at_flag(), rz_core_t::bin, rz_core_t::config, rz_core_t::flags, NULL, rz_bin_cur_object(), rz_bin_object_get_symbols(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_core_analysis_function_add(), rz_flag_foreach_glob(), RZ_LOG_ERROR, symbols(), and rz_bin_symbol_t::vaddr.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_value_to_maps_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7596 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_value_pointers().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_analyze_xrefs_section_bytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7451 of file cmd_analysis.c.
References argv, bool2status(), rz_core_t::num, rz_core_analysis_refs(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_apply_signatures_from_sigdb_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7362 of file cmd_analysis.c.
References argv, bool2status(), NULL, and rz_core_analysis_sigdb_apply().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_autoname_all_functions_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7436 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_autoname_all_fcns().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_autoname_all_functions_noreturn_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7441 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, rz_core_analysis_propagate_noreturn(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
Definition at line 3358 of file cmd_analysis.c.
References a, rz_core_t::analysis, analysis_fcn_data(), analysis_fcn_data_gaps(), b, rz_core_t::block, rz_core_t::blocksize, calloc(), cmd_analysis_esil(), cmd_analysis_graph(), cmd_analysis_trampoline(), delta, eprintf, free(), help_msg_a, help_msg_ad, input(), rz_core_t::io, rz_core_t::num, off, rz_core_t::offset, p, PFMT64x, pos, r, rz_analysis_data_kind(), RZ_ANALYSIS_XREF_TYPE_NULL, rz_cons_clear_line(), rz_cons_is_breaked(), rz_cons_printf(), rz_cons_println(), rz_core_analysis_data(), rz_core_analysis_fcn(), rz_core_block_size(), rz_core_cmd0_rzshell(), rz_core_cmd_help(), rz_io_read_at(), rz_mem_mem(), rz_mem_reverse(), rz_num_math(), rz_str_trim_head_ro(), ut64(), and UT64_MAX.
Referenced by rz_core_cmd_init(), and rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_convert_mne_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6939 of file cmd_analysis.c.
References argv, free(), id, rz_core_t::num, ops, rz_core_t::rasm, rz_asm_mnemonics(), rz_asm_mnemonics_byname(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_cons_println(), RZ_LOG_ERROR, rz_num_math(), rz_str_isnumber(), and st32.
Referenced by rzshell_cmddescs_init().
Definition at line 2638 of file cmd_analysis.c.
References rz_core_t::config, eprintf, input(), rz_config_set_i(), rz_core_agraph_print_ascii(), rz_core_agraph_print_dot(), rz_core_agraph_print_gml(), rz_core_agraph_print_interactive(), rz_core_agraph_print_json(), rz_core_agraph_print_rizin(), rz_core_agraph_print_sdb(), rz_core_agraph_print_tiny(), rz_core_agraph_print_write(), and rz_str_trim_head_ro().
Referenced by cmd_analysis_graph().
Definition at line 2561 of file cmd_analysis.c.
References convert_dotcmd_to_image().
Referenced by rz_core_agraph_print().
RZ_API void rz_core_analysis_calls | ( | RZ_NONNULL RzCore * | core, |
bool | imports_only | ||
) |
Definition at line 2287 of file cmd_analysis.c.
References _analysis_calls(), addr, map(), NULL, r, rz_bin_cur(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_get_boundaries_prot(), rz_itv_end(), rz_list_free(), rz_list_length(), RZ_PERM_X, rz_return_if_fail, and ut64().
Referenced by __calls_cb(), rz_analyze_all_function_calls_handler(), rz_analyze_all_function_calls_to_imports_handler(), and rz_core_analysis_everything().
RZ_API bool rz_core_esil_continue_back | ( | RZ_NONNULL RzCore * | core | ) |
Definition at line 1086 of file cmd_analysis.c.
References rz_analysis_esil_t::analysis, rz_reg_item_t::arena, eprintf, rz_analysis_t::esil, rz_analysis_esil_trace_t::idx, setup::idx, NULL, rz_reg_item_t::offset, PFMT64x, reg, rz_analysis_t::reg, rz_analysis_esil_trace_t::registers, rz_analysis_esil_trace_restore(), rz_bp_get_in(), rz_core_reg_update_flags(), RZ_LOG_ERROR, RZ_PERM_X, rz_reg_get(), rz_return_val_if_fail, rz_vector_foreach_prev, and rz_analysis_esil_t::trace.
Referenced by rz_analysis_continue_until_breakpoint_handler().
RZ_API bool rz_core_esil_dumpstack | ( | RzAnalysisEsil * | esil | ) |
Definition at line 1794 of file cmd_analysis.c.
References i, rz_analysis_esil_trapstr(), rz_cons_printf(), rz_return_val_if_fail, rz_analysis_esil_t::stack, rz_analysis_esil_t::stackptr, rz_analysis_esil_t::trap, and rz_analysis_esil_t::trap_code.
Referenced by __analysis_esil_function(), cmd_analysis_esil(), and rz_core_visual_esil().
RZ_API int rz_core_esil_step | ( | RzCore * | core, |
ut64 | until_addr, | ||
const char * | until_expr, | ||
ut64 * | prev_addr, | ||
bool | stepOver | ||
) |
Definition at line 860 of file cmd_analysis.c.
References addr, rz_analysis_esil_t::analysis, rz_core_t::analysis, rz_debug_t::bp, rz_analysis_esil_t::cmd, rz_analysis_esil_t::cmd_trap, rz_core_t::config, rz_analysis_t::cur, rz_core_t::dbg, e, rz_debug_trace_t::enabled, eprintf, rz_analysis_t::esil, rz_analysis_op_t::esil, rz_analysis_plugin_t::esil_post_loop, rz_analysis_esil_t::exectrap, initializeEsil(), rz_core_t::io, NULL, rz_core_t::offset, pc, rz_analysis_t::pcalign, PFMT64x, rz_core_t::rasm, reg, rz_analysis_t::reg, rz_debug_t::reg, repeat(), return_tail, rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_DATA_ALIGN, rz_analysis_esil_condition(), rz_analysis_esil_parse(), rz_analysis_esil_set_pc(), rz_analysis_esil_stack_free(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_CRET, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_RCALL, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_RJMP, RZ_ANALYSIS_OP_TYPE_SWI, RZ_ANALYSIS_OP_TYPE_UCALL, RZ_ANALYSIS_OP_TYPE_UJMP, RZ_ANALYSIS_TRAP_EXEC_ERR, RZ_ANALYSIS_TRAP_INVALID, RZ_ANALYSIS_TRAP_UNALIGNED, rz_asm_set_pc(), rz_bp_get_at(), rz_config_get_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_core_seek_to_register(), rz_debug_trace_op(), rz_io_is_valid_offset(), rz_io_read_at(), rz_io_read_at_mapped(), RZ_PERM_X, rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_PC, rz_reg_setv(), RZ_STR_ISNOTEMPTY, RZ_STRBUF_SAFEGET, rz_time_now_mono(), st64, rz_debug_t::trace, rz_analysis_esil_t::trap, rz_analysis_esil_t::trap_code, rz_analysis_op_t::type, ut64(), UT64_MAX, and rz_analysis_esil_t::verbose.
Referenced by __esil_step_to(), rz_analysis_appcall_handler(), rz_analysis_continue_until_addr_handler(), rz_analysis_continue_until_esil_handler(), rz_analysis_continue_until_except_handler(), rz_core_analysis_continue_until_call(), rz_core_analysis_continue_until_syscall(), rz_core_analysis_esil_step_over(), rz_core_analysis_esil_step_over_until(), rz_core_analysis_esil_step_over_untilexpr(), rz_core_analysis_type_match(), rz_core_debug_continue(), rz_core_debug_single_step_in(), rz_core_debug_step_one(), rz_core_link_stroff(), rz_il_step_handler(), rz_il_step_until_addr_handler(), and step_until_optype().
Definition at line 1075 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_t::esil, rz_analysis_esil_trace_t::idx, rz_analysis_esil_trace_restore(), rz_core_reg_update_flags(), rz_return_val_if_fail, and rz_analysis_esil_t::trace.
Referenced by rz_core_debug_step_back(), and rz_il_step_back_handler().
|
static |
Definition at line 2716 of file cmd_analysis.c.
References rz_ascii_graph_t::can, rz_cons_canvas_t::color, rz_core_t::config, convert_dot_str_to_image(), create_agraph_from_graph(), rz_graph_node_t::data, e, eprintf, rz_ascii_graph_t::force_update_seek, free(), rz_graph_node_t::idx, input(), rz_ascii_graph_t::is_tiny, rz_ascii_graph_t::layout, rz_cons_canvas_t::linemode, rz_ascii_graph_t::need_set_layout, rz_ascii_graph_t::need_update_dim, rz_graph_t::nodes, NULL, rz_core_t::offset, rz_graph_node_t::out_nodes, pj_free(), pj_new(), pj_string(), print_graph_agg(), print_graph_dot(), rz_agraph_get_first_node(), rz_agraph_get_sdb(), rz_agraph_print(), 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_printf(), rz_cons_println(), rz_cons_show_cursor(), rz_core_seek(), rz_core_visual_graph(), rz_graph_drawable_to_json(), rz_str_trim_head_ro(), sdb_querys(), rz_analysis_graph_node_info_t::title, update_seek(), and ut64().
Referenced by cmd_analysis_graph(), and rz_analysis_class_graph_handler().
RZ_IPI RzCmdStatus rz_delete_global_imports_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7628 of file cmd_analysis.c.
References rz_core_t::analysis, rz_analysis_purge_imports(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_display_opcode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6896 of file cmd_analysis.c.
References listOpDescriptions(), rz_asm_t::pair, rz_core_t::rasm, RZ_CMD_STATUS_OK, and sdb_foreach().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_global_imports_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7606 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_analysis_t::imports, rz_analysis_add_import(), RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_OUTPUT_MODE_STANDARD, RZ_STR_ISNOTEMPTY, and rz_warn_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_back_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1677 of file cmd_analysis.c.
References RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_esil_step_back(), rz_core_reg_update_flags(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_evaluate_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1670 of file cmd_analysis.c.
References argv, int, n, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_core_analysis_esil_emulate(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1658 of file cmd_analysis.c.
References argv, int, n, NULL, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_analysis_esil_emulate(), rz_core_esil_step(), rz_core_reg_update_flags(), rz_num_math(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_over_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1687 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_esil_step_over().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_over_until_addr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1693 of file cmd_analysis.c.
References argv, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_analysis_esil_step_over_until(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_skip_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1700 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, rz_core_analysis_esil_step_over_until(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_skip_until_addr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1706 of file cmd_analysis.c.
References argv, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_analysis_esil_step_over_until(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_skip_until_expr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1713 of file cmd_analysis.c.
References argv, RZ_CMD_STATUS_OK, and rz_core_analysis_esil_step_over_untilexpr().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_until_addr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1719 of file cmd_analysis.c.
References argv, NULL, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_esil_step(), rz_core_reg_update_flags(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_until_expr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1727 of file cmd_analysis.c.
References argv, RZ_CMD_STATUS_OK, rz_core_analysis_esil_step_over_untilexpr(), and rz_core_reg_update_flags().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_step_until_opt_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1734 of file cmd_analysis.c.
References argv, RZ_CMD_STATUS_OK, rz_core_reg_update_flags(), rz_list_free(), rz_list_new_from_array(), and step_until_optype().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_trace_start_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1743 of file cmd_analysis.c.
References RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_esil_trace_start().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_trace_stop_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1748 of file cmd_analysis.c.
References RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_analysis_esil_trace_stop().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_vm_initialize_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5945 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_il_reinit().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_vm_status_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 6008 of file cmd_analysis.c.
References argv, NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_analysis_il_vm_set(), rz_core_analysis_il_vm_status(), rz_num_math(), ut64(), and value.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_vm_step_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5950 of file cmd_analysis.c.
References argv, i, NULL, RZ_CMD_STATUS_OK, rz_core_il_step(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_vm_step_until_addr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5984 of file cmd_analysis.c.
References rz_core_t::analysis, argv, rz_analysis_t::il_vm, rz_core_t::num, pc, rz_analysis_t::reg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_is_breaked(), rz_cons_printf(), rz_core_il_step(), RZ_LOG_ERROR, rz_num_math(), rz_reg_get_value_by_role(), RZ_REG_NAME_PC, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_il_vm_step_with_events_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 5960 of file cmd_analysis.c.
References argv, i, NULL, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), rz_core_analysis_il_step_with_events(), RZ_LOG_ERROR, rz_num_math(), RZ_OUTPUT_MODE_JSON, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_list_mne_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6969 of file cmd_analysis.c.
References desc, free(), ops, pad(), rz_core_t::rasm, rz_asm_describe(), rz_asm_mnemonics(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), and rz_str_pad().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_list_plugins_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6994 of file cmd_analysis.c.
References NULL, and rz_core_asm_plugins_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_list_signatures_in_sigdb_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7367 of file cmd_analysis.c.
References RZ_CMD_STATUS_OK, and rz_core_analysis_sigdb_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_analysis_details_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 7372 of file cmd_analysis.c.
References rz_core_t::analysis, call(), rz_analysis_t::fcns, rz_core_t::flags, PFMT64d, pj_end(), pj_ki(), pj_o(), rz_analysis_xrefs_count(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_analysis_calls_count(), rz_core_analysis_code_count(), rz_core_analysis_coverage_count(), rz_flag_count(), rz_list_length(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, and st64.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_areas_no_functions_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7520 of file cmd_analysis.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, argv, b, rz_analysis_function_t::bbs, calloc(), counter, rz_analysis_t::fcns, free(), i, rz_analysis_function_t::name, rz_core_t::num, PFMT64u, PFMT64x, RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_SYM, rz_analysis_get_fcn_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_LOG_ERROR, rz_num_get(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_commands_after_traps_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7515 of file cmd_analysis.c.
References argv, bool2status(), rz_core_t::num, print_cmd_analysis_after_traps_print(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_recover_all_golang_functions_strings_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 7423 of file cmd_analysis.c.
References RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_recover_golang_functions(), rz_core_analysis_resolve_golang_strings(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
|
static |
Definition at line 4822 of file cmd_analysis.c.
References rz_analysis_ref_t::to.
Referenced by function_list_print_to_table(), and function_print_calls().
|
static |
Definition at line 1327 of file cmd_analysis.c.
References AeaMemItem::addr, list(), PFMT64x, rz_cons_newline(), and rz_cons_printf().
Referenced by cmd_aea().
Definition at line 1351 of file cmd_analysis.c.
References AeaMemItem::addr, list(), pj_a(), pj_end(), and pj_n().
Referenced by cmd_aea().
|
static |
Definition at line 1313 of file cmd_analysis.c.
References list(), reg, rz_cons_newline(), and rz_cons_printf().
Referenced by cmd_aea().
|
static |
Definition at line 2397 of file cmd_analysis.c.
References rz_cons_printf(), si, and syscallNumber().
Referenced by syscalls_dump().
Definition at line 2340 of file cmd_analysis.c.
Referenced by do_analysis_search(), do_syscall_search(), rz_analysis_syscall_name_handler(), rz_analysis_syscall_print_handler(), syscall_dump(), and syscalls_dump().
|
static |
Definition at line 2405 of file cmd_analysis.c.
References rz_core_t::analysis, argv, list(), n, rz_core_t::num, PFMT64d, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_list_free(), RZ_LOG_ERROR, rz_num_math(), rz_syscall_get(), rz_syscall_get_num(), rz_syscall_item_free(), rz_syscall_list(), si, st64, rz_analysis_t::syscall, syscall_dump(), and syscallNumber().
Referenced by rz_analysis_syscall_dump_assembly_handler(), and rz_analysis_syscall_dump_c_handler().
Definition at line 5497 of file cmd_analysis.c.
References addr, ht_inc(), key, rz_analysis_op_family_to_string(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_MASK_DISASM, RZ_ANALYSIS_OP_MASK_HINT, rz_analysis_optype_to_string(), rz_core_analysis_op(), rz_strbuf_fini(), rz_strbuf_get(), rz_strbuf_init(), rz_strbuf_set(), rz_strbuf_setbin(), sp, STATS_MODE_FML, and STATS_MODE_TYPE.
Referenced by gather_opcode_stat_for_fcn().
|
static |
Definition at line 795 of file cmd_analysis.c.
References list(), n, PFMT64x, rz_strbuf_appendf(), rz_strbuf_fini(), rz_strbuf_get(), rz_strbuf_init(), s, strdup(), and ut64().
Referenced by rz_analysis_basic_block_list_handler().
|
static |
Definition at line 275 of file cmd_analysis.c.
References rz_analysis_var_t::accesses, addr, rz_analysis_function_t::addr, rz_analysis_var_access_t::offset, PFMT64x, pj_end(), pj_ka(), pj_ks(), pj_n(), pj_o(), rz_cons_newline(), rz_cons_printf(), rz_vector_foreach, rz_analysis_var_access_t::type, and ut64().
Referenced by analysis_function_vars_accesses(), and list_vars().
|
static |
Definition at line 4493 of file cmd_analysis.c.
References rz_analysis_ref_t::from, list(), PFMT64x, rz_cons_printf(), rz_analysis_ref_t::to, rz_analysis_ref_t::type, and xref_type2cmd().
Referenced by function_list_print_as_cmd(), rz_analysis_xrefs_from_list_handler(), rz_analysis_xrefs_list_handler(), and rz_analysis_xrefs_to_list_handler().
Definition at line 3676 of file cmd_analysis.c.
References list(), pj_a(), pj_end(), and xref_print_to_json().
Referenced by rz_analysis_function_xrefs_handler(), rz_analysis_xrefs_from_list_handler(), rz_analysis_xrefs_list_handler(), and rz_analysis_xrefs_to_list_handler().
|
static |
Definition at line 3668 of file cmd_analysis.c.
References rz_analysis_ref_t::from, pj_end(), pj_kn(), pj_ks(), pj_o(), rz_analysis_xrefs_type_tostring(), rz_analysis_ref_t::to, and rz_analysis_ref_t::type.
Referenced by function_print_to_json(), and xref_list_print_to_json().
|
static |
Definition at line 4477 of file cmd_analysis.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 xref_list_print_as_cmd().
|
static |
Definition at line 4706 of file cmd_analysis.c.
References addr, rz_analysis_function_t::addr, rz_core_t::analysis, rz_analysis_ref_t::from, level, memset(), rz_analysis_function_t::name, PFMT64x, pj_a(), pj_end(), pj_k(), pj_ks(), pj_o(), rz_analysis_get_fcn_in_bounds(), rz_analysis_xrefs_get_to(), rz_cons_printf(), rz_list_free(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, sdb_itoa(), spaces(), and xrefs_graph_fcn_start_json().
Referenced by rz_analysis_xrefs_graph_handler().
|
static |
Definition at line 4694 of file cmd_analysis.c.
References addr, rz_analysis_function_t::addr, rz_analysis_function_t::name, PFMT64u, pj_a(), pj_k(), pj_kn(), pj_ks(), pj_o(), and rz_strf.
Referenced by xrefs_graph().
Definition at line 4452 of file cmd_analysis.c.
References rz_core_t::analysis, rz_core_bind_t::core, rz_analysis_t::coreb, free(), rz_analysis_ref_t::from, rz_core_bind_t::getNameDelta, list(), PFMT64x, rz_analysis_xrefs_type_tostring(), rz_cons_printf(), rz_str_replace_ch(), rz_analysis_ref_t::to, and rz_analysis_ref_t::type.
Referenced by rz_analysis_xrefs_list_handler().
|
static |
Definition at line 4426 of file cmd_analysis.c.
References rz_core_t::analysis, argv, from, rz_core_t::num, rz_core_t::offset, rz_analysis_xrefs_set(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), to, type, and ut64().
Referenced by rz_analysis_xrefs_set_0_handler(), rz_analysis_xrefs_set_c_handler(), rz_analysis_xrefs_set_C_handler(), rz_analysis_xrefs_set_d_handler(), and rz_analysis_xrefs_set_s_handler().
Definition at line 1752 of file cmd_analysis.c.
Referenced by _aeli_iter().
|
static |
Definition at line 92 of file cmd_analysis.c.
Referenced by cmd_analysis_esil().
|
static |
Definition at line 14 of file cmd_analysis.c.
Referenced by rz_cmd_analysis().
|
static |
Definition at line 41 of file cmd_analysis.c.
Referenced by rz_cmd_analysis().
|
static |
Definition at line 53 of file cmd_analysis.c.
Referenced by cmd_analysis_esil().
|
static |
Definition at line 157 of file cmd_analysis.c.
Referenced by cmd_analysis_esil().
|
static |
Definition at line 181 of file cmd_analysis.c.
Referenced by cmd_analysis_graph().
|
static |
Definition at line 212 of file cmd_analysis.c.
Referenced by cmd_agraph_edge().
|
static |
Definition at line 222 of file cmd_analysis.c.
Referenced by cmd_agraph_node().
Definition at line 1224 of file cmd_analysis.c.
Referenced by cmd_aea(), and mymemread().
Definition at line 1225 of file cmd_analysis.c.
Referenced by cmd_aea(), and mymemwrite().
|
static |
Definition at line 1223 of file cmd_analysis.c.
Referenced by myregwrite().