Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
Go to the source code of this file.
Macros | |
#define | MAXSTRLEN 50 |
Functions | |
RZ_DEPRECATE RZ_API ut64 | rz_core_arg_get (RzCore *core, const char *cc, int num) |
Get the value of the num-th argument from the current debug or emulation state. More... | |
RZ_DEPRECATE RZ_API bool | rz_core_arg_set (RzCore *core, const char *cc, int num, ut64 val) |
Set the value of the num-th argument in the current debug or emulation state. More... | |
static void | set_fcn_args_info (RzAnalysisFuncArg *arg, RzAnalysis *analysis, const char *fcn_name, const char *cc, int arg_num) |
RZ_API char * | resolve_fcn_name (RzAnalysis *analysis, const char *func_name) |
static ut64 | get_buf_val (ut8 *buf, int endian, int width) |
static void | print_arg_str (int argcnt, const char *name, bool color) |
static void | print_format_values (RzCore *core, const char *fmt, bool onstack, ut64 src, bool color) |
RZ_API void | rz_core_print_func_args (RzCore *core) |
static void | rz_analysis_fcn_arg_free (RzAnalysisFuncArg *arg) |
RZ_API RZ_OWN RzList * | rz_core_get_func_args (RzCore *core, const char *fcn_name) |
Definition at line 102 of file carg.c.
References rz_read_ble32(), rz_read_ble64(), ut64(), and width.
Referenced by print_format_values().
Definition at line 106 of file carg.c.
References color, Color_BCYAN, Color_BYELLOW, Color_RESET, and rz_cons_printf().
Referenced by rz_core_print_func_args().
|
static |
Definition at line 115 of file carg.c.
References rz_core_t::analysis, b, rz_print_t::big_endian, rz_analysis_t::bits, rz_core_t::blocksize, color, Color_BGREEN, Color_BWHITE, Color_RESET, eprintf, free(), get_buf_val(), i, rz_core_t::io, IS_PRINTABLE, malloc(), MAXSTRLEN, PFMT64x, rz_core_t::print, rz_cons_newline(), rz_cons_printf(), rz_cons_println(), rz_io_read_at(), RZ_MIN, src, ut64(), and width.
Referenced by rz_core_print_func_args().
RZ_API char* resolve_fcn_name | ( | RzAnalysis * | analysis, |
const char * | func_name | ||
) |
Definition at line 86 of file carg.c.
References rz_analysis_function_name_guess(), rz_type_func_exist(), cmd_descs_generate::str, strdup(), and rz_analysis_t::typedb.
Referenced by ds_print_esil_analysis(), rz_core_analysis_function_signature(), and rz_core_get_func_args().
|
static |
Get the value of the num-th argument from the current debug or emulation state.
Warning: this function contains hacks. Rewrite it before using it in new code.
Definition at line 13 of file carg.c.
References rz_core_t::analysis, rz_analysis_t::bits, rz_debug_t::bits, bits(), rz_core_t::dbg, rz_core_t::io, num, reg, rz_analysis_cc_arg(), rz_analysis_syscc_default(), rz_core_is_debug(), rz_core_reg_default(), rz_core_reg_getv_by_role_or_name(), rz_debug_reg_sync(), rz_io_read_at(), rz_reg_get_value_by_role(), RZ_REG_NAME_SP, RZ_REG_TYPE_ANY, rz_return_val_if_fail, RZ_STR_ISEMPTY, rz_strf, sp, ut64(), and UT64_MAX.
Referenced by ds_print_esil_analysis(), rz_core_print_func_args(), and rz_core_syscall_as_string().
Set the value of the num-th argument in the current debug or emulation state.
Warning: this function contains hacks. Rewrite it before using it in new code.
Definition at line 55 of file carg.c.
References rz_core_t::analysis, num, reg, rz_analysis_cc_arg(), rz_analysis_syscc_default(), rz_core_reg_set_by_role_or_name(), rz_return_val_if_fail, RZ_STR_ISEMPTY, rz_strf, and val.
Definition at line 276 of file carg.c.
References rz_core_t::analysis, rz_analysis_t::bits, test_evm::cs, free(), i, key, list(), cmd_descs_generate::nargs, NULL, rz_analysis_t::reg, resolve_fcn_name(), rz_analysis_cc_arg(), rz_analysis_cc_default(), rz_analysis_cc_func(), rz_analysis_fcn_arg_free(), rz_list_append(), rz_list_free(), rz_list_newf(), RZ_NEW0, rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_SP, rz_type_func_args_count(), set_fcn_args_info(), sp, src, strdup(), rz_analysis_t::typedb, and ut64().
Referenced by ds_print_esil_analysis(), rz_core_analysis_function_signature(), and rz_core_print_func_args().
Definition at line 203 of file carg.c.
References rz_core_t::analysis, arg(), color, rz_core_t::config, rz_core_t::flags, i, list(), arg::name, rz_analysis_function_t::name, rz_flag_item_t::name, cmd_descs_generate::nargs, NULL, pc, PFMT64x, print_arg_str(), print_format_values(), rz_analysis_t::reg, rz_analysis_cc_default(), rz_analysis_get_function_at(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_CALL, rz_config_get_i(), rz_cons_newline(), rz_cons_printf(), rz_core_analysis_op(), rz_core_arg_get(), rz_core_get_func_args(), rz_flag_get_i(), rz_list_free(), rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_PC, ut64(), UT64_MAX, and v.
Referenced by rz_analysis_function_analyze_args_handler().
|
static |
Definition at line 70 of file carg.c.
References eprintf, arg::name, rz_analysis_cc_arg(), rz_type_as_format(), rz_type_db_get_bitsize(), rz_type_func_args_name(), rz_type_func_args_type(), and rz_analysis_t::typedb.
Referenced by rz_core_get_func_args().