Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_socket.h>
#include <rz_cmp.h>
#include <config.h>
#include <rz_util.h>
#include "core_private.h"
Go to the source code of this file.
Classes | |
struct | RzIORap |
Macros | |
#define | DB core->sdb |
#define | rizin_argc (sizeof(rizin_argv) / sizeof(const char *) - 1) |
#define | ADDARG(x) |
#define | MINLEN 1 |
Variables | |
static ut64 | letter_divs [RZ_CORE_ASMQJMPS_LEN_LETTERS - 1] |
static const char * | rizin_argv [] |
RZ_IPI RzIOPlugin | rz_core_io_plugin_vfile |
IO Plugin that opens RzBinVirtualFiles supplied by the plugin of an RzBinFile. More... | |
#define rizin_argc (sizeof(rizin_argv) / sizeof(const char *) - 1) |
Definition at line 2601 of file core.c.
References rz_core_t::config, rz_config_get(), rz_cons_flush(), rz_cons_printf(), rz_core_cmd0(), snprintf, and v.
Referenced by rz_core_bind_cons().
Disassemble one instruction at specified address.
Definition at line 1732 of file core.c.
References _core, addr, len, rz_core_t::offset, rz_core_print_disasm_instructions(), rz_core_seek(), and ut64().
Referenced by rz_core_init().
Definition at line 365 of file core.c.
References rz_core_t::flags, and rz_flag_get_list().
Referenced by rz_core_bind().
Definition at line 2170 of file core.c.
References rz_core_t::autocomplete, i, rz_core_autocomplete_add(), and type.
Referenced by __init_autocomplete_default().
|
static |
Definition at line 2230 of file core.c.
References __init_autocomplete_default(), rz_core_t::autocomplete, AUTOCOMPLETE_DEFAULT, rz_core_t::autocomplete_type, and RZ_NEW0.
Referenced by rz_core_autocomplete_reload(), and rz_core_init().
|
static |
Definition at line 2177 of file core.c.
References __foreach(), rz_core_t::autocomplete, files, flags, i, NULL, rizin_argc, rizin_argv, RZ_CORE_AUTOCMPLT_BRKP, RZ_CORE_AUTOCMPLT_DFLT, RZ_CORE_AUTOCMPLT_EVAL, RZ_CORE_AUTOCMPLT_FCN, RZ_CORE_AUTOCMPLT_FILE, RZ_CORE_AUTOCMPLT_FLAG, RZ_CORE_AUTOCMPLT_FLSP, RZ_CORE_AUTOCMPLT_MACR, RZ_CORE_AUTOCMPLT_MINS, RZ_CORE_AUTOCMPLT_SDB, RZ_CORE_AUTOCMPLT_SEEK, RZ_CORE_AUTOCMPLT_THME, rz_core_autocomplete_add(), and rz_core_autocomplete_find().
Referenced by __init_autocomplete().
|
static |
Definition at line 1247 of file core.c.
References rz_flag_item_t::name, and rz_line_completion_push().
Referenced by autocomplete_flags(), and rz_core_autocomplete().
Definition at line 341 of file core.c.
References addr, and rz_core_seek_arch_bits().
Referenced by rz_core_bind().
|
static |
Definition at line 1232 of file core.c.
References addr, b, rz_debug_t::bp, rz_bp_t::bps, rz_core_t::dbg, free(), n, PFMT64x, rz_line_completion_push(), rz_return_if_fail, rz_str_newf(), and cmd_descs_generate::str.
Referenced by find_autocomplete().
|
static |
Definition at line 1181 of file core.c.
References a, i, length, NULL, rizin_argc, rizin_argv, and rz_line_completion_push().
Referenced by rz_core_autocomplete().
|
static |
Definition at line 1200 of file core.c.
References rz_core_t::config, n, rz_config_node_t::name, rz_config_t::nodes, rz_line_completion_push(), rz_return_if_fail, cmd_descs_generate::str, and autogen_x86imm::tmp.
Referenced by find_autocomplete().
|
static |
Definition at line 1380 of file core.c.
References autocomplete_process_path(), pipe, rz_return_if_fail, rz_str_trim_head_ro(), and cmd_descs_generate::str.
Referenced by find_autocomplete(), and rz_core_autocomplete().
|
static |
Definition at line 1253 of file core.c.
References add_argv(), rz_core_t::flags, n, rz_flag_foreach_prefix(), rz_return_if_fail, and cmd_descs_generate::str.
Referenced by find_autocomplete(), and rz_core_autocomplete().
|
static |
Definition at line 1332 of file core.c.
References rz_core_t::flags, length, msg, rz_line_completion_push(), rz_return_if_fail, and s.
Referenced by find_autocomplete().
|
static |
Definition at line 1349 of file core.c.
References rz_core_t::analysis, rz_analysis_t::fcns, free(), n, rz_core_analysis_fcn_name(), rz_line_completion_push(), rz_return_if_fail, and cmd_descs_generate::str.
Referenced by find_autocomplete().
|
static |
Definition at line 1363 of file core.c.
References free(), rz_cmd_t::macro, rz_cmd_macro_t::macros, n, rz_cmd_macro_item_t::name, p, rz_core_t::rcmd, rz_line_completion_push(), rz_return_if_fail, rz_str_newf(), and cmd_descs_generate::str.
Referenced by find_autocomplete().
|
static |
Definition at line 1216 of file core.c.
References count, i, keys, length, rz_core_t::rcmd, rz_cmd_alias_keys(), rz_line_completion_push(), rz_return_if_fail, and cmd_descs_generate::str.
Referenced by find_autocomplete().
|
static |
Definition at line 1052 of file core.c.
References basename, free(), list(), n, NULL, out, p, path, rz_file_is_directory(), rz_line_completion_push(), rz_list_free(), rz_str_home(), rz_str_last(), rz_str_new(), rz_str_newf(), rz_str_replace_ch(), RZ_SYS_DIR, rz_sys_dir(), s, cmd_descs_generate::str, and strdup().
Referenced by autocomplete_file(), and autocompleteFilename().
|
static |
Definition at line 1260 of file core.c.
References free(), key, n, NULL, out, pipe, rz_line_completion_push(), rz_return_if_fail, rz_str_ndup(), rz_str_new(), rz_str_newf(), rz_str_trim_head_ro(), rz_core_t::sdb, sdb_querys(), cmd_descs_generate::str, and autogen_x86imm::tmp.
Referenced by find_autocomplete().
|
static |
Definition at line 1394 of file core.c.
References len, rz_core_theme_list(), rz_line_completion_push(), rz_list_free(), rz_return_if_fail, and cmd_descs_generate::str.
Referenced by find_autocomplete().
|
static |
Definition at line 1133 of file core.c.
References args, autocomplete_process_path(), free(), i, input(), n, NULL, out, pipe, rz_str_new(), rz_str_newf(), rz_str_trim_head_ro(), rz_str_word_get0(), rz_str_word_set0(), RZ_SYS_DIR, and s.
Referenced by rz_core_autocomplete().
|
static |
Definition at line 440 of file core.c.
References addr, rz_analysis_bb_t::addr, rz_analysis_function_t::bbs, RZ_BETWEEN, rz_analysis_bb_t::size, and UT64_MAX.
Referenced by num_callback().
|
static |
Definition at line 462 of file core.c.
References addr, rz_analysis_bb_t::addr, rz_analysis_function_t::bbs, rz_analysis_bb_t::fail, RZ_BETWEEN, rz_analysis_bb_t::size, and UT64_MAX.
Referenced by num_callback().
|
static |
Definition at line 429 of file core.c.
References addr, rz_analysis_bb_t::addr, rz_analysis_function_t::bbs, rz_analysis_bb_t::ninstr, RZ_BETWEEN, rz_analysis_bb_t::size, and UT64_MAX.
Referenced by num_callback().
|
static |
Definition at line 451 of file core.c.
References addr, rz_analysis_bb_t::addr, rz_analysis_function_t::bbs, rz_analysis_bb_t::jump, RZ_BETWEEN, rz_analysis_bb_t::size, and UT64_MAX.
Referenced by num_callback().
|
static |
Definition at line 473 of file core.c.
References addr, rz_analysis_bb_t::addr, rz_analysis_function_t::bbs, RZ_BETWEEN, and rz_analysis_bb_t::size.
Referenced by num_callback().
Definition at line 2335 of file core.c.
References addr, rz_core_t::analysis, rz_analysis_t::bits, NULL, r, and rz_core_arch_bits_at().
Referenced by rz_core_init().
Definition at line 2307 of file core.c.
References addr, rz_core_t::dbg, rz_core_t::io, map(), rz_debug_t::maps, NULL, rz_core_is_debug(), and rz_io_map_is_mapped().
Referenced by rz_core_init().
|
static |
Definition at line 2328 of file core.c.
References rz_core_t::dbg, rz_core_is_debug(), and rz_debug_map_sync().
Referenced by rz_core_init().
Definition at line 349 of file core.c.
References rz_core_t::config, k, and rz_config_get().
Referenced by rz_core_bind().
Definition at line 345 of file core.c.
References rz_core_t::config, k, and rz_config_get_i().
Referenced by rz_core_bind().
Definition at line 357 of file core.c.
References rz_core_t::config, k, rz_config_set(), and v.
Referenced by rz_core_bind().
Definition at line 353 of file core.c.
References rz_core_t::config, k, rz_config_set_i(), and v.
Referenced by rz_core_bind().
Definition at line 2237 of file core.c.
References addr, rz_core_analysis_optype_colorfor(), and verbose.
Referenced by rz_core_init().
|
static |
Definition at line 2260 of file core.c.
References f, rz_flag_get(), and RZ_FLAGS_FS_CLASSES.
Referenced by rz_core_init().
|
static |
Definition at line 2253 of file core.c.
References addr, f, rz_flag_set(), and RZ_FLAGS_FS_CLASSES.
Referenced by rz_core_init().
|
static |
Definition at line 2267 of file core.c.
References addr, f, rz_flag_set(), and RZ_FLAGS_FS_FUNCTIONS.
Referenced by rz_core_init().
Definition at line 2369 of file core.c.
References rz_core_file_bin_file_deleted(), and rz_core_vfile_bin_file_deleted().
Referenced by rz_core_init().
Definition at line 2359 of file core.c.
References rz_event_io_desc_close_t::desc, and rz_core_file_io_desc_closed().
Referenced by rz_core_init().
Definition at line 2364 of file core.c.
References rz_event_io_map_del_t::map, and rz_core_file_io_map_deleted().
Referenced by rz_core_init().
Definition at line 2342 of file core.c.
References rz_event_io_write_t::addr, rz_core_t::analysis, rz_core_t::config, rz_core_t::cons, rz_cons_t::event_data, rz_cons_t::event_resize, rz_event_io_write_t::len, rz_analysis_update_analysis_range(), and rz_config_get_i().
Referenced by rz_core_init().
Definition at line 2139 of file core.c.
References rz_analysis_function_get_var_byname(), rz_analysis_get_function_at(), cmd_descs_generate::str, and rz_print_t::user.
Referenced by rz_core_init().
|
static |
Definition at line 1456 of file core.c.
References rz_core_t::autocomplete, autocomplete_breakpoints(), autocomplete_evals(), autocomplete_file(), autocomplete_flags(), autocomplete_flagspaces(), autocomplete_functions(), autocomplete_macro(), autocomplete_minus(), autocomplete_sdb(), autocomplete_theme(), c, rz_core_autocomplete_t::cmd, rz_core_t::config, desc, e, i, rz_core_autocomplete_t::length, length, memcpy(), rz_core_autocomplete_t::n_subcmds, NULL, p, rz_core_t::root_cmd_descriptor, RZ_ARRAY_SIZE, rz_config_get_i(), rz_cons_flush(), RZ_CORE_AUTOCMPLT_BRKP, RZ_CORE_AUTOCMPLT_EVAL, RZ_CORE_AUTOCMPLT_FCN, RZ_CORE_AUTOCMPLT_FILE, RZ_CORE_AUTOCMPLT_FLAG, RZ_CORE_AUTOCMPLT_FLSP, RZ_CORE_AUTOCMPLT_MACR, RZ_CORE_AUTOCMPLT_MINS, RZ_CORE_AUTOCMPLT_OPTN, RZ_CORE_AUTOCMPLT_SDB, RZ_CORE_AUTOCMPLT_SEEK, RZ_CORE_AUTOCMPLT_THME, rz_core_autocomplete_find(), rz_core_cmd_help(), rz_line_completion_clear(), rz_line_completion_push(), rz_str_trim_head_ro(), rz_str_trim_head_wp(), rz_core_autocomplete_t::subcmds, and rz_core_autocomplete_t::type.
Referenced by rz_core_autocomplete().
|
static |
Definition at line 1408 of file core.c.
References rz_core_t::config, i, n, NULL, rz_line_comp_t::opt, option, rz_config_node_t::options, out, p, rz_regmatch_t::rm_eo, rz_config_node_get(), rz_line_completion_push(), rz_regex_exec(), rz_regex_free(), rz_regex_new(), rz_str_appendch(), rz_str_ichr(), sp, and cmd_descs_generate::str.
Referenced by rz_core_autocomplete().
|
static |
Definition at line 2249 of file core.c.
References addr, and rz_core_analysis_get_comments().
Referenced by rz_core_init().
Definition at line 2245 of file core.c.
References addr, and rz_core_get_section_name().
Referenced by rz_core_init().
Definition at line 314 of file core.c.
References addr, rz_core_t::flags, rz_flag_item_t::name, NULL, rz_flag_item_t::realname, rz_flag_t::realnames, and rz_flag_get_i().
Referenced by rz_core_bind().
Definition at line 327 of file core.c.
References addr, rz_core_t::flags, rz_flag_item_t::name, NULL, rz_flag_item_t::offset, PFMT64u, rz_flag_item_t::realname, rz_flag_t::realnames, rz_flag_get_at(), rz_str_newf(), and strdup().
Referenced by rz_core_bind().
Definition at line 400 of file core.c.
References addr, rz_core_t::analysis, i, list(), n, rz_core_t::offset, r, rz_analysis_function_get_xrefs_from(), rz_analysis_function_get_xrefs_to(), rz_analysis_get_fcn_in(), rz_list_free(), type, ut64(), and UT64_MAX.
Referenced by num_callback().
Definition at line 2241 of file core.c.
References addr, and rz_core_analysis_hasrefs().
Referenced by rz_core_init().
Definition at line 1775 of file core.c.
References i, IS_PRINTABLE, len, and MINLEN.
Referenced by rz_core_analysis_hasrefs_to_depth().
Definition at line 2135 of file core.c.
References len, and rz_cons_memcat().
Referenced by rz_core_init().
Definition at line 501 of file core.c.
References addr, rz_analysis_function_t::addr, rz_core_t::analysis, bbBegin(), bbFail(), bbInstructions(), bbJump(), bbSize(), rz_print_t::big_endian, rz_core_t::bin, rz_asm_t::bits, rz_core_t::block, rz_core_t::blocksize, rz_core_t::config, rz_print_t::cur, rz_print_t::cur_enabled, rz_num_calc_t::curr_tok, rz_core_t::dbg, delta, dst, eprintf, rz_num_calc_t::errors, rz_core_file_t::fd, rz_core_t::file, rz_core_t::flags, free(), getref(), rz_core_t::io, IS_DIGIT, map(), rz_debug_t::maps, n, RzNumCalcValue::n, rz_num_t::nc, rz_analysis_function_t::ninstr, NULL, rz_core_t::num, rz_num_calc_t::number_value, off, rz_core_t::offset, rz_flag_item_t::offset, ok, op, out, p, rz_debug_t::pid, rz_core_t::print, rz_core_t::prompt_offset, r, rz_core_t::rasm, reg, rz_analysis_function_get_label(), rz_analysis_function_linear_size(), rz_analysis_function_max_addr(), rz_analysis_function_realsize(), rz_analysis_get_fcn_in(), rz_analysis_get_function_at(), rz_analysis_get_function_byname(), rz_analysis_op(), rz_analysis_op_fini(), rz_analysis_op_is_eob(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_XREF_TYPE_CALL, RZ_ANALYSIS_XREF_TYPE_CODE, RZ_ANALYSIS_XREF_TYPE_DATA, rz_bin_cur_object(), rz_bin_get_section_at(), rz_config_get_i(), rz_cons_get_size(), rz_core_reg_default(), rz_core_reg_getv_by_role_or_name(), rz_debug_get_baddr(), rz_debug_reg_get(), RZ_EMPTY, rz_flag_get(), rz_flag_get_i(), rz_io_fd_size(), rz_io_map_get(), rz_io_read_at(), rz_itv_begin(), rz_itv_size(), RZ_MIN, rz_num_calc_index(), rz_num_math(), rz_num_tail(), rz_read_ble16(), rz_read_ble32(), rz_read_ble64(), rz_read_ble8(), rz_reg_get(), rz_reg_get_name(), rz_reg_get_name_idx(), rz_reg_get_value(), rz_str_replace_char(), rz_sys_getpid(), s, rz_core_t::sdb, sdb_querys(), rz_flag_item_t::size, st64, cmd_descs_generate::str, strdup(), ut64(), UT64_MAX, and rz_num_t::value.
Referenced by rz_core_init().
Definition at line 361 of file core.c.
References k, rz_core_t::num, and rz_num_math().
Referenced by rz_core_bind().
|
static |
Definition at line 121 of file core.c.
References addr, rz_analysis_function_t::addr, cmd, rz_core_t::config, rz_core_t::offset, rz_config_get(), rz_core_cmd0(), rz_core_seek(), and ut64().
Referenced by rz_core_init().
|
static |
Definition at line 108 of file core.c.
References addr, rz_analysis_function_t::addr, cmd, rz_core_t::config, rz_core_t::offset, rz_config_get(), rz_core_cmd0(), rz_core_seek(), and ut64().
Referenced by rz_core_init().
|
static |
Definition at line 134 of file core.c.
References addr, rz_analysis_function_t::addr, cmd, rz_core_t::config, rz_core_t::offset, rz_config_get(), rz_core_cmd0(), rz_core_seek(), and ut64().
Referenced by rz_core_init().
Definition at line 2707 of file core.c.
References rz_core_t::config, rz_io_t::desc, rz_core_t::io, rz_io_desc_t::name, rz_config_get_b(), rz_file_basename(), rz_strbuf_append(), and sb.
Referenced by set_prompt().
Definition at line 2733 of file core.c.
References a, b, rz_debug_t::bits, rz_core_t::config, rz_core_t::dbg, f, rz_core_t::flags, rz_core_t::offset, PFMT64u, PFMT64x, rz_core_t::print, rz_config_get_b(), rz_config_get_i(), rz_flag_get_at(), rz_strbuf_append(), rz_strbuf_appendf(), RZ_SYS_BITS_64, sb, and rz_print_t::wide_offsets.
Referenced by set_prompt().
Definition at line 2718 of file core.c.
References rz_core_t::bin, rz_core_t::config, rz_bin_section_t::name, rz_core_t::offset, rz_bin_cur_object(), rz_bin_get_section_at(), rz_config_get_b(), rz_strbuf_append(), and sb.
Referenced by set_prompt().
|
static |
Definition at line 2894 of file core.c.
References RzIORap::fd, NULL, and rz_socket_close().
Referenced by rz_core_serve().
Takes addr and returns already saved shortcut or a new one The returned buffer needs to be freed
Definition at line 238 of file core.c.
References addr, rz_core_t::asmqjmps, rz_core_t::asmqjmps_count, rz_core_t::asmqjmps_size, found, i, rz_core_t::is_asmqjmps_letter, NULL, realloc(), RZ_CORE_ASMQJMPS_LEN_LETTERS, RZ_CORE_ASMQJMPS_MAX_LETTERS, rz_core_set_asmqjmps(), strdup(), and ut64().
Referenced by ds_print_shortcut(), get_bbnodes(), and get_bbupdate().
Definition at line 2091 of file core.c.
References addr, rz_core_t::analysis, NULL, rz_meta_get_string(), RZ_META_TYPE_COMMENT, RZ_META_TYPE_VARTYPE, rz_str_newf(), strdup(), and type.
Referenced by disasm_strings(), and get_comments_cb().
Definition at line 1805 of file core.c.
References rz_core_t::flags, free(), rz_flag_item_t::name, NULL, pj_drain(), pj_new(), rz_core_analysis_hasrefs_to_depth(), rz_flag_get_i(), strdup(), and value.
Referenced by hasrefs_cb(), references_handler(), and rz_regs_show_valgroup().
Definition at line 1853 of file core.c.
References rz_cons_printable_palette_t::ai_ascii, rz_core_t::analysis, rz_core_t::bin, rz_asm_t::bits, bits(), buf, c, Color_RESET, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, rz_core_t::dbg, eprintf, f, rz_core_t::flags, flags, free(), getvalue(), rz_core_t::io, is_string(), len, map(), rz_debug_t::maps, n, rz_analysis_function_t::name, rz_bin_section_t::name, NULL, op, rz_cons_context_t::pal, PFMT64x, pj_end(), pj_k(), pj_ka(), pj_kn(), pj_ks(), pj_o(), pj_s(), r, rz_core_t::rasm, RZ_ANALYSIS_ADDR_TYPE_ASCII, RZ_ANALYSIS_ADDR_TYPE_EXEC, RZ_ANALYSIS_ADDR_TYPE_HEAP, RZ_ANALYSIS_ADDR_TYPE_LIBRARY, RZ_ANALYSIS_ADDR_TYPE_PROGRAM, RZ_ANALYSIS_ADDR_TYPE_READ, RZ_ANALYSIS_ADDR_TYPE_SEQUENCE, RZ_ANALYSIS_ADDR_TYPE_STACK, RZ_ANALYSIS_ADDR_TYPE_WRITE, rz_analysis_get_fcn_in(), rz_asm_disassemble(), rz_asm_op_get_asm(), rz_asm_set_pc(), rz_bin_cur_object(), rz_bin_get_section_at(), rz_config_get_i(), rz_core_analysis_address(), rz_core_analysis_optype_colorfor(), rz_debug_map_get(), rz_flag_get_list(), rz_flag_get_liststr(), RZ_FREE, rz_io_read_at(), rz_return_val_if_fail, rz_str_lchr(), rz_str_trim_tail(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_new(), rz_utf8_encode_str(), s, type, ut64(), UT64_MAX, val, and value.
Referenced by cmd_pxr(), and rz_core_analysis_hasrefs().
Definition at line 2108 of file core.c.
References addr, rz_cons_printable_palette_t::ai_ascii, rz_cons_printable_palette_t::ai_exec, rz_cons_printable_palette_t::ai_read, rz_cons_printable_palette_t::ai_seq, rz_cons_printable_palette_t::ai_write, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, rz_print_t::flags, NULL, rz_cons_context_t::pal, rz_core_t::print, RZ_ANALYSIS_ADDR_TYPE_ASCII, RZ_ANALYSIS_ADDR_TYPE_EXEC, RZ_ANALYSIS_ADDR_TYPE_READ, RZ_ANALYSIS_ADDR_TYPE_SEQUENCE, RZ_ANALYSIS_ADDR_TYPE_WRITE, rz_config_get_i(), rz_core_analysis_address(), RZ_PRINT_FLAGS_COLOR, type, and ut64().
Referenced by colorfor_cb(), and rz_core_analysis_hasrefs_to_depth().
|
static |
Definition at line 2148 of file core.c.
References addr, rz_io_bind_t::io, rz_analysis_t::iob, len, and rz_io_read_at().
Referenced by rz_core_init().
RZ_API void rz_core_autocomplete | ( | RZ_NULLABLE RzCore * | core, |
RzLineCompletion * | completion, | ||
RzLineBuffer * | buf, | ||
RzLinePromptType | prompt_type | ||
) |
Definition at line 1550 of file core.c.
References add_argv(), ADDARG, autocomplete_default(), autocomplete_file(), autocomplete_flags(), autocompleteFilename(), find_autocomplete(), find_e_opts(), i, int, key, len, n, rz_analysis_var_t::name, NULL, pipe, rz_analysis_get_fcn_in(), RZ_ANALYSIS_VAR_KIND_BPV, rz_analysis_var_list(), rz_flag_foreach_prefix(), rz_line_completion_clear(), rz_line_completion_push(), RZ_LINE_PROMPT_FILE, RZ_LINE_PROMPT_OFFSET, rz_list_free(), rz_list_new(), rz_str_trim_head_ro(), rz_sub_str_lchr(), and rz_sub_str_rchr().
RZ_API RzCoreAutocomplete* rz_core_autocomplete_add | ( | RzCoreAutocomplete * | parent, |
const char * | cmd, | ||
int | type, | ||
bool | lock | ||
) |
Definition at line 3366 of file core.c.
References rz_core_autocomplete_t::cmd, cmd, free(), rz_core_autocomplete_t::length, lock(), rz_core_autocomplete_t::locked, rz_core_autocomplete_t::n_subcmds, NULL, realloc(), RZ_CORE_AUTOCMPLT_END, RZ_NEW0, strdup(), rz_core_autocomplete_t::subcmds, type, and rz_core_autocomplete_t::type.
Referenced by __foreach(), and __init_autocomplete_default().
RZ_API RzCoreAutocomplete* rz_core_autocomplete_find | ( | RzCoreAutocomplete * | parent, |
const char * | cmd, | ||
bool | exact | ||
) |
Definition at line 3403 of file core.c.
References rz_core_autocomplete_t::cmd, cmd, i, len, rz_core_autocomplete_t::length, rz_core_autocomplete_t::n_subcmds, NULL, and rz_core_autocomplete_t::subcmds.
Referenced by __init_autocomplete_default(), and find_autocomplete().
RZ_API void rz_core_autocomplete_free | ( | RzCoreAutocomplete * | obj | ) |
Definition at line 3389 of file core.c.
References rz_core_autocomplete_t::cmd, free(), i, rz_core_autocomplete_t::n_subcmds, NULL, and rz_core_autocomplete_t::subcmds.
Referenced by rz_core_autocomplete_reload(), rz_core_autocomplete_remove(), and rz_core_fini().
Definition at line 2274 of file core.c.
References __init_autocomplete(), rz_core_t::autocomplete, rz_core_autocomplete_free(), and rz_return_if_fail.
RZ_API bool rz_core_autocomplete_remove | ( | RzCoreAutocomplete * | parent, |
const char * | cmd | ||
) |
Definition at line 3419 of file core.c.
References rz_core_autocomplete_t::cmd, cmd, eprintf, i, rz_core_autocomplete_t::locked, rz_core_autocomplete_t::n_subcmds, NULL, realloc(), rz_core_autocomplete_free(), rz_str_glob(), and rz_core_autocomplete_t::subcmds.
RZ_API int rz_core_bind | ( | RzCore * | core, |
RzCoreBind * | bnd | ||
) |
Definition at line 369 of file core.c.
References __flagsGet(), rz_core_bind_t::applyBinInfo, archbits(), rz_core_bind_t::archbits, rz_core_bind_t::bphit, cfgget(), rz_core_bind_t::cfgGet, cfggeti(), rz_core_bind_t::cfggeti, cfgset(), rz_core_bind_t::cfgSet, cfgseti(), rz_core_bind_t::cfgSetI, rz_core_bind_t::cmd, rz_core_bind_t::cmdf, rz_core_bind_t::cmdstr, rz_core_bind_t::cmdstrf, rz_core_bind_t::core, rz_core_bind_t::flagsGet, getName(), rz_core_bind_t::getName, getNameDelta(), rz_core_bind_t::getNameDelta, numget(), rz_core_bind_t::numGet, rz_core_bind_t::puts, rz_cons_strcat(), rz_core_bin_apply_info(), rz_core_cmd0(), rz_core_cmd_str(), rz_core_cmd_strf(), rz_core_cmdf(), rz_core_debug_breakpoint_hit(), rz_core_debug_syscall_hit(), setab(), rz_core_bind_t::setab, and rz_core_bind_t::syshit.
Referenced by rz_core_init().
Definition at line 2612 of file core.c.
References __cons_cb_fkey(), rz_cons_t::cb_break, rz_cons_t::cb_editor, rz_cons_t::cb_fkey, rz_cons_t::cb_sleep_begin, rz_cons_t::cb_sleep_end, rz_cons_t::cb_task_oneshot, rz_core_t::cons, rz_cons_t::num, rz_core_t::num, rz_core_break(), rz_core_editor(), rz_core_sleep_begin(), rz_core_sleep_end(), rz_core_task_enqueue_oneshot(), and rz_cons_t::user.
Referenced by rz_core_init().
Definition at line 2842 of file core.c.
References rz_core_t::block, rz_core_t::blocksize, rz_core_t::blocksize_max, memset(), rz_core_t::offset, realloc(), rz_core_seek(), and RZ_LOG_ERROR.
Referenced by backup_current_addr(), cmd_pCd(), cmd_pCD(), cmd_print_bars(), cmd_print_format(), core_disassembly(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_iter_offsets(), do_iter_sections(), foreach_pairs(), handle_tmp_desc(), printraw(), restore_current_addr(), rz_analyze_n_ins_esil_handler(), rz_analyze_n_ins_handler(), rz_analyze_n_ins_size_handler(), rz_block_decrease_handler(), rz_block_flag_handler(), rz_block_handler(), rz_block_increase_handler(), rz_cmd_analysis(), rz_cmd_disassembly_all_methods_class_handler(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_disassembly_function_handler(), rz_cmd_disassembly_function_summary_handler(), rz_cmd_disassembly_n_instrs_as_text_json_handler(), rz_cmd_print(), rz_cmd_sizes_of_n_instructions_handler(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_subst_i(), rz_core_handle_backwards_disasm(), rz_core_print_disasm_json(), rz_core_serve(), rz_core_visual(), rz_core_visual_cmd(), rz_core_visual_title(), rz_core_visual_trackflags(), rz_main_rizin(), rz_print_utf16be_handler(), rz_print_utf16le_handler(), rz_print_utf32be_handler(), rz_print_utf32le_handler(), and rz_serialize_core_load().
|
static |
RZ_API RzCmdStatus rz_core_core_plugin_print | ( | RzCorePlugin * | cp, |
RzCmdStateOutput * | state, | ||
const char * | license | ||
) |
Definition at line 3457 of file core.c.
References rz_core_plugin_t::author, rz_core_plugin_t::desc, rz_core_plugin_t::name, pj_end(), pj_ks(), pj_o(), RZ_CMD_STATUS_NONEXISTINGCMD, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, and rz_core_plugin_t::version.
Referenced by rz_core_core_plugins_print().
RZ_API RzCmdStatus rz_core_core_plugins_print | ( | RzCore * | core, |
RzCmdStateOutput * | state | ||
) |
Definition at line 3483 of file core.c.
References rz_core_plugin_t::license, rz_core_t::plugins, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_core_plugin_print(), and status.
Referenced by rz_plugins_core_print_handler().
|
static |
Definition at line 148 of file core.c.
References rz_core_t::config, rz_bp_item_t::data, rz_config_get(), rz_cons_flush(), rz_cons_pop(), rz_cons_push(), rz_cons_set_flush(), and rz_core_cmd0().
Referenced by rz_core_bind().
|
static |
Definition at line 169 of file core.c.
References rz_core_t::config, rz_config_get(), rz_cons_flush(), and rz_core_cmd0().
Referenced by rz_core_bind().
RZ_API RZ_OWN char* rz_core_editor | ( | const RzCore * | core, |
RZ_NULLABLE const char * | file, | ||
RZ_NULLABLE const char * | str | ||
) |
Definition at line 3214 of file core.c.
References close, rz_core_t::config, eprintf, fd, free(), len, NULL, O_CREAT, O_RDONLY, O_RDWR, rz_config_get(), rz_cons_is_interactive(), rz_file_mkstemp(), rz_file_rm(), rz_file_slurp(), RZ_LOG_ERROR, rz_str_escape_sh(), RZ_STR_ISEMPTY, rz_sys_cmdf(), rz_sys_open(), cmd_descs_generate::str, strdup(), and write.
Referenced by config_visual_hit(), meta_variable_comment_editor(), rz_cmd_alias(), rz_cmd_debug_process_profile_edit_handler(), rz_cmd_panels(), rz_core_analysis_function_signature_editor(), rz_core_bind_cons(), rz_core_init(), rz_core_meta_editor(), rz_core_run_script(), rz_eval_editor_handler(), rz_types_open_editor(), rz_types_open_file(), rz_write_from_file_handler(), rz_write_hex_from_file_handler(), rz_yank_editor_handler(), and visual_comma().
Definition at line 1694 of file core.c.
References rz_line_t::completion, rz_cons_t::context, rz_line_hist_t::data, rz_line_t::history, rz_cons_context_t::is_interactive, len, rz_cons_t::line, rz_line_t::ns_completion, NULL, prompt(), rz_line_comp_t::run, rz_line_ns_completion_t::run, rz_line_comp_t::run_user, rz_line_ns_completion_t::run_user, rz_cons_singleton(), rz_line_completion_set(), rz_line_readline(), rz_str_ncpy(), and rzshell_autocomplete().
Referenced by cb_scrfgets(), and rz_core_init().
Definition at line 1290 of file cfile.c.
References rz_core_file_t::binfiles, rz_core_t::files, and rz_pvector_remove_data().
Referenced by ev_binfiledel_cb().
RZ_IPI void rz_core_file_free | ( | RzCoreFile * | cf | ) |
Definition at line 26 of file cfile.c.
References rz_core_file_t::binfiles, rz_core_file_t::extra_files, free(), rz_core_file_t::maps, and rz_pvector_fini().
Referenced by rz_core_init().
Definition at line 1271 of file cfile.c.
References desc, rz_core_file_t::extra_files, rz_core_t::files, and rz_pvector_remove_data().
Referenced by ev_iodescclose_cb().
Definition at line 1280 of file cfile.c.
References rz_core_t::files, map(), rz_core_file_t::maps, rz_core_io_map_info_free(), and rz_pvector_remove_data().
Referenced by ev_iomapdel_cb().
Definition at line 2623 of file core.c.
References c, NULL, rz_agraph_free(), rz_analysis_free(), rz_asm_free(), rz_bin_free(), rz_buf_free(), rz_cmd_free(), rz_config_free(), rz_cons_free(), rz_cons_singleton(), rz_core_autocomplete_free(), rz_core_plugin_fini(), rz_core_seek_free(), rz_core_task_break_all(), rz_core_task_join(), rz_core_task_scheduler_fini(), rz_core_wait(), rz_debug_free(), rz_egg_free(), rz_event_free(), rz_flag_free(), RZ_FREE, RZ_FREE_CUSTOM, rz_hash_free(), rz_io_free(), rz_lang_free(), rz_lib_free(), rz_list_free(), rz_num_free(), rz_parse_free(), rz_print_free(), rz_search_free(), sdb_free(), and rz_cons_t::teefile.
Referenced by open_core_file(), rz_core_free(), and rz_main_rz_bin().
RZ_API RzFlagItem* rz_core_flag_get_by_spaces | ( | RzFlag * | f, |
ut64 | off | ||
) |
Definition at line 2280 of file core.c.
References f, NULL, off, rz_flag_get_by_spaces(), RZ_FLAGS_FS_CLASSES, RZ_FLAGS_FS_FUNCTIONS, RZ_FLAGS_FS_IMPORTS, RZ_FLAGS_FS_RELOCS, RZ_FLAGS_FS_RESOURCES, RZ_FLAGS_FS_SECTIONS, RZ_FLAGS_FS_SEGMENTS, RZ_FLAGS_FS_SIGNS, RZ_FLAGS_FS_STRINGS, RZ_FLAGS_FS_SYMBOLS, and RZ_FLAGS_FS_SYMBOLS_SECTIONS.
Referenced by __core_analysis_fcn(), disasm_strings(), ds_print_ptr(), ds_sub_jumps(), getFunctionName(), rz_core_analysis_esil(), rz_core_debug_bp_add(), and rz_core_init().
Definition at line 2683 of file core.c.
References c, free(), and rz_core_fini().
Referenced by execute_command(), rz_diff_graphs_files(), rz_diff_hex_visual(), rz_diff_load_file_with_core(), rz_main_rizin(), rz_main_rz_asm(), and rz_main_rz_sign().
Definition at line 203 of file core.c.
References rz_core_t::asmqjmps, i, rz_core_t::is_asmqjmps_letter, islower, isupper, len, pos, RZ_CORE_ASMQJMPS_LETTERS, cmd_descs_generate::str, and UT64_MAX.
Referenced by goto_asmqjmps(), and rz_core_visual_jump().
Definition at line 3288 of file core.c.
References rz_core_t::bin.
Definition at line 3284 of file core.c.
References rz_core_t::config.
Definition at line 3280 of file core.c.
References rz_core_t::cons.
RZ_API RzBinReloc* rz_core_get_reloc_to | ( | RzCore * | core, |
ut64 | addr | ||
) |
Definition at line 189 of file core.c.
References addr, rz_core_t::bin, NULL, rz_bin_file_t::o, rz_bin_object_t::relocs, rz_bin_cur(), rz_bin_reloc_storage_get_reloc_to(), and rz_return_val_if_fail.
Referenced by ds_print_relocs(), and ds_sub_jumps().
RZ_API RzBinReloc* rz_core_getreloc | ( | RzCore * | core, |
ut64 | addr, | ||
int | size | ||
) |
Definition at line 178 of file core.c.
References addr, rz_core_t::bin, NULL, rz_bin_file_t::o, rz_bin_object_t::relocs, rz_bin_cur(), rz_bin_reloc_storage_get_reloc_in(), and UT64_MAX.
Referenced by _analysis_calls(), ds_print_relocs(), ds_sub_jumps(), process_reference_noreturn_cb(), rz_cmd_print(), and rz_core_print_disasm_json().
XXX shouhld be using coreb
Definition at line 2381 of file core.c.
References __disasm(), __init_autocomplete(), a, rz_parse_t::analb, rz_core_t::analysis, rz_debug_t::analysis, rz_core_t::asmqjmps, rz_core_t::asmqjmps_size, rz_core_t::bin, rz_analysis_t::binb, rz_asm_t::binb, rz_core_t::block, rz_core_t::blocksize, rz_core_t::blocksize_max, rz_debug_t::bp, bp_bits_at(), bp_is_mapped(), bp_maps_sync(), calloc(), rz_analysis_t::cb, rz_print_t::cb_color, rz_line_t::cb_editor, rz_print_t::cb_eprintf, rz_cons_t::cb_fkey, rz_line_t::cb_fkey, rz_bin_t::cb_printf, rz_bp_t::cb_printf, rz_debug_t::cb_printf, rz_io_t::cb_printf, rz_lang_t::cb_printf, rz_print_t::cb_printf, rz_lang_t::cmd_str, rz_lang_t::cmdf, rz_core_t::cmdfilter, rz_core_t::cmdlog, rz_core_t::cmdqueue, rz_core_t::cmdremote, rz_core_t::cmdrepeat, rz_print_t::colorfor, colorfor_cb(), rz_core_t::config, rz_core_t::cons, rz_print_t::cons, rz_bin_t::consb, rz_print_t::consbind, rz_analysis_t::core, rz_asm_t::core, core_flg_class_get(), core_flg_class_set(), core_flg_fcn_set(), rz_analysis_t::coreb, rz_print_t::coreb, rz_debug_t::corebind, rz_io_t::corebind, rz_core_t::curtheme, rz_core_t::dbg, rz_print_t::disasm, rz_core_t::egg, eprintf, rz_analysis_t::ev, rz_core_t::ev, rz_debug_t::ev, ev_binfiledel_cb(), ev_iodescclose_cb(), ev_iomapdel_cb(), ev_iowrite_cb(), rz_bin_t::event, rz_io_t::event, exists_var(), rz_print_t::exists_var, rz_io_t::ff, rz_core_t::file, rz_core_t::files, rz_core_t::fixedarch, rz_core_t::fixedbits, rz_analysis_t::flag_get, rz_parse_t::flag_get, rz_core_t::flags, rz_analysis_t::flb, rz_analysis_t::flg_class_get, rz_analysis_t::flg_class_set, rz_analysis_t::flg_fcn_set, rz_list_t::free, free(), rz_core_t::gadgets, rz_print_t::get_comments, get_comments_cb(), get_section_name(), rz_print_t::get_section_name, rz_core_t::graph, rz_core_t::hash, rz_print_t::hasrefs, hasrefs_cb(), rz_core_t::http_up, rz_core_t::incomment, int, rz_core_t::io, rz_analysis_t::iob, rz_bin_t::iob, rz_bp_t::iob, rz_debug_t::iob, rz_search_t::iob, rz_type_db_t::iob, rz_print_t::iob, rz_parse_t::label_get, rz_core_t::lang, rz_core_t::lastcmd, rz_core_t::lastsearch, rz_cons_t::line, rz_core_t::max_cmd_depth, mywrite(), rz_ascii_graph_t::need_reload_nodes, NULL, rz_asm_t::num, rz_core_t::num, rz_print_t::num, num_callback(), rz_print_t::offname, rz_core_t::offset, rz_print_t::offsize, on_fcn_delete(), rz_analysis_callbacks_t::on_fcn_delete, on_fcn_new(), rz_analysis_callbacks_t::on_fcn_new, on_fcn_rename(), rz_analysis_callbacks_t::on_fcn_rename, rz_core_t::parser, rz_core_t::print, rz_core_t::printidx, rz_core_t::prompt_offset, rz_core_t::rasm, rz_analysis_t::read_at, rz_cons_t::refcnt, rz_core_t::root_cmd_descriptor, rz_core_t::ropchain, rz_core_t::rtr_n, rz_agraph_new(), rz_analysis_bind(), rz_analysis_function_get_label_at(), rz_analysis_function_get_var_fields(), rz_analysis_new(), rz_analysis_use(), rz_asm_new(), rz_asm_use(), rz_bin_bind(), rz_bin_new(), rz_bin_set_user_ptr(), rz_bp_use(), rz_buf_new_with_bytes(), rz_config_set(), rz_config_set_i(), rz_cons_bind(), rz_cons_canvas_new(), RZ_CONS_CMD_DEPTH, rz_cons_new(), rz_cons_printf(), rz_cons_rainbow_get(), rz_cons_singleton(), rz_core_analysis_read_at(), rz_core_analysis_type_init(), RZ_CORE_ASMQJMPS_NUM, rz_core_bind(), rz_core_bind_cons(), RZ_CORE_BLOCKSIZE, RZ_CORE_BLOCKSIZE_MAX, rz_core_cmd_init(), rz_core_cmd_str(), rz_core_cmdf(), rz_core_cmpwatch_free(), rz_core_config_init(), rz_core_editor(), rz_core_fgets(), rz_core_file_free(), rz_core_flag_get_by_spaces(), rz_core_gadget_free(), rz_core_io_plugin_vfile, rz_core_loadlibs_init(), rz_core_plugin_init(), rz_core_print_offname(), rz_core_print_offsize(), rz_core_rtr_init(), rz_core_run_script(), rz_core_seek_reset(), rz_core_task_break_cb(), rz_core_task_ctx_switch(), rz_core_task_scheduler_init(), rz_debug_new(), rz_egg_new(), rz_egg_setup(), RZ_EVENT_BIN_FILE_DEL, rz_event_hook(), RZ_EVENT_IO_DESC_CLOSE, RZ_EVENT_IO_MAP_DEL, RZ_EVENT_IO_WRITE, rz_event_new(), rz_file_path_join(), rz_flag_bind(), rz_flag_new(), RZ_FLAGS, rz_hash_new(), rz_io_bind(), rz_io_new(), rz_io_plugin_add(), rz_lang_define(), rz_lang_new(), rz_lang_set_user_ptr(), rz_line_hist_load(), rz_list_new(), rz_list_newf(), RZ_NEW0, RZ_NEWS, rz_num_new(), rz_parse_new(), rz_parse_set_user_ptr(), rz_path_home_history(), rz_path_system(), rz_print_new(), RZ_SEARCH_KEYWORD, rz_search_new(), RZ_SYS_ARCH, RZ_SYS_BITS, RZ_SYS_BITS_32, RZ_SYS_BITS_64, RZ_SYS_OS, rz_syscall_ref(), rz_core_t::scriptstack, rz_core_t::sdb, sdb_new(), rz_core_t::search, rz_core_t::stkcmd, str_callback(), strdup(), rz_core_t::switch_file_view, rz_analysis_t::syscall, rz_asm_t::syscall, rz_core_t::tasks, rz_core_t::times, rz_analysis_t::typedb, update_sdb(), rz_print_t::use_comments, rz_bp_context_t::user, rz_line_t::user, rz_print_t::user, rz_cons_t::user_fgets, rz_cons_t::user_fgets_user, ut64(), rz_parse_t::varlist, rz_core_t::visual_inputing, rz_core_t::visual_is_inputing, rz_core_t::vmode, rz_core_t::watchers, rz_print_t::write, rz_core_t::yank_buf, and ZERO_FILL.
Referenced by open_core_file(), rz_core_new(), and rz_main_rz_bin().
Definition at line 866 of file core.c.
References c, rz_core_init(), and RZ_NEW0.
Referenced by rz_diff_hex_visual(), rz_diff_load_file_with_core(), rz_main_rizin(), rz_main_rz_asm(), and rz_main_rz_sign().
RZ_API void rz_core_notify_begin | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL const char * | format, | ||
... | |||
) |
Prints a message definining the beginning of a task.
core | The RzCore to use |
format | The message to notify |
Definition at line 33 of file core.c.
References args, Color_RESET, Color_YELLOW, rz_config_get_b(), rz_config_get_i(), rz_return_if_fail, and verbose.
Referenced by core_perform_auto_analysis(), objc_analyze(), objc_find_refs(), rz_core_analysis_everything(), rz_core_analysis_recover_golang_functions(), and rz_core_analysis_resolve_golang_strings().
RZ_API void rz_core_notify_done | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL const char * | format, | ||
... | |||
) |
Prints a message definining the end of a task which succeeded.
core | The RzCore to use |
format | The message to notify |
Definition at line 60 of file core.c.
References args, Color_GREEN, Color_RESET, rz_config_get_b(), rz_config_get_i(), rz_return_if_fail, and verbose.
Referenced by core_perform_auto_analysis(), core_recover_golang_functions_go_1_16(), core_recover_golang_functions_go_1_18(), core_recover_golang_functions_go_1_2(), objc_analyze(), objc_find_refs(), rz_core_analysis_everything(), rz_core_analysis_recover_golang_functions(), rz_core_analysis_resolve_golang_strings(), and rz_core_analysis_value_pointers().
RZ_API void rz_core_notify_error | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL const char * | format, | ||
... | |||
) |
Prints a message definining the end of a task which errored.
core | The RzCore to use |
format | The message to notify |
Definition at line 87 of file core.c.
References args, Color_RED, Color_RESET, rz_config_get_b(), rz_config_get_i(), rz_return_if_fail, and verbose.
Referenced by core_recover_golang_functions_go_1_16(), core_recover_golang_functions_go_1_18(), core_recover_golang_functions_go_1_2(), rz_core_analysis_recover_golang_functions(), and rz_core_analysis_resolve_golang_strings().
RZ_API RzAnalysisOp* rz_core_op_analysis | ( | RzCore * | core, |
ut64 | addr, | ||
RzAnalysisOpMask | mask | ||
) |
Definition at line 2880 of file core.c.
References addr, rz_core_t::analysis, rz_core_t::io, mask, op, rz_analysis_op(), rz_io_read_at(), and RZ_NEW.
Referenced by analyze_noreturn_function(), is_repeatable_inst(), rz_cmd_debug_trace_add_handler(), and rz_core_analysis_propagate_noreturn().
Definition at line 2869 of file core.c.
References addr, rz_core_t::io, NULL, rz_core_t::rasm, rz_asm_disassemble(), rz_asm_op_fini(), rz_asm_set_pc(), rz_io_read_at(), rz_strbuf_get(), cmd_descs_generate::str, and strdup().
Referenced by do_analysis_search().
Definition at line 1717 of file core.c.
References addr, c, rz_flag_item_t::name, NULL, p, and rz_flag_get_i().
Referenced by rz_core_init().
Definition at line 1723 of file core.c.
References addr, c, p, rz_flag_get_i(), and rz_flag_item_t::size.
Referenced by rz_core_init().
Definition at line 2805 of file core.c.
References free(), setup::line, NULL, r, rz_cons_fgets(), RZ_CORE_CMD_EXIT, rz_core_gadget_print(), rz_core_prompt_exec(), set_prompt(), and strdup().
Referenced by rz_core_prompt_loop().
Definition at line 2830 of file core.c.
References NULL, r, rz_cons_echo(), rz_cons_flush(), rz_cons_zero(), and rz_core_cmd().
Referenced by rz_core_prompt(), and rz_core_prompt_loop().
Definition at line 2688 of file core.c.
References err, r, rz_config_get_b(), RZ_CORE_CMD_EXIT, rz_core_debug_print_status(), rz_core_prompt(), and rz_core_prompt_exec().
Referenced by rz_main_rizin().
Definition at line 3184 of file core.c.
References rz_core_t::blocksize, cb, delta, done, eprintf, free(), from, int, rz_core_t::io, len, malloc(), PFMT64x, rz_io_read_at(), to, and ut64().
Definition at line 2904 of file core.c.
References b, baddr(), rz_core_t::block, rz_core_t::blocksize, c, calloc(), close, cmd, rz_core_t::config, eprintf, fd, RzIORap::fd, rz_core_file_t::fd, rz_core_t::file, free(), i, if(), rz_core_t::io, setup::line, malloc(), memcpy(), n, NULL, rz_core_t::offset, once, rap_break(), RAP_PACKET_CLOSE, RAP_PACKET_CMD, RAP_PACKET_MAX, RAP_PACKET_OPEN, RAP_PACKET_READ, RAP_PACKET_REPLY, RAP_PACKET_SEEK, RAP_PACKET_WRITE, rz_config_get(), rz_config_get_i(), rz_config_set_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_bin_load(), rz_core_block_read(), rz_core_block_size(), rz_core_cmd_str(), rz_core_file_open(), rz_core_seek(), rz_core_write_at(), RZ_FREE, rz_io_fd_get_current(), rz_io_fd_size(), rz_io_map_add(), RZ_PERM_R, RZ_PERM_W, rz_read_at_be32(), rz_read_at_be64(), rz_read_be32(), rz_socket_accept(), rz_socket_close(), rz_socket_flush(), rz_socket_free(), rz_socket_printf(), rz_socket_read_block(), rz_socket_write(), rz_str_uri_decode(), rz_write_be32(), rz_write_be64(), strdup(), ut64(), ut8, UT8_ADD_OVFCHK, and x.
Referenced by rz_core_file_open(), and rz_core_rtr_rap_run().
Definition at line 282 of file core.c.
References i, rz_core_t::is_asmqjmps_letter, len, letter_divs, pos, RZ_CORE_ASMQJMPS_LEN_LETTERS, RZ_CORE_ASMQJMPS_LETTERS, snprintf, and cmd_descs_generate::str.
Referenced by rz_core_add_asmqjmp().
|
static |
Definition at line 2155 of file core.c.
References rz_core_task_self(), rz_core_task_sleep_begin(), and rz_core_t::tasks.
Referenced by rz_core_bind_cons().
|
static |
Definition at line 2163 of file core.c.
References rz_core_task_sleep_end().
Referenced by rz_core_bind_cons().
XXX USE trap
Definition at line 3305 of file core.c.
References rz_core_t::analysis, rz_analysis_plugin_t::arch, args, b, rz_asm_t::bits, rz_analysis_t::cur, rz_core_t::egg, eprintf, i, NULL, num, rz_core_t::rasm, rz_cons_printf(), rz_egg_assemble(), rz_egg_compile(), rz_egg_get_bin(), rz_egg_load(), rz_egg_reset(), rz_syscall_get_num(), snprintf, and rz_analysis_t::syscall.
Referenced by rz_cmd_debug(), rz_core_syscallf(), and rz_egg_syscall_handler().
Definition at line 3292 of file core.c.
References buf, rz_core_syscall(), cmd_descs_generate::str, and vsnprintf.
Referenced by rz_cmd_debug().
Definition at line 3449 of file core.c.
References rz_core_t::cons, RzTable::cons, and rz_table_new().
Referenced by cmd_print_blocks(), references_handler(), rz_analysis_function_list_ascii_handler(), rz_cmd_info_section_bars_handler(), rz_core_analysis_bbs_asciiart(), rz_open_binary_list_ascii_handler(), and rz_open_maps_list_ascii_handler().
RZ_IPI void rz_core_task_break_cb | ( | RzCoreTask * | task, |
void * | user | ||
) |
Definition at line 738 of file task.c.
References NULL, and rz_cons_context_break().
Referenced by rz_core_init().
RZ_IPI void rz_core_task_ctx_switch | ( | RzCoreTask * | next, |
void * | user | ||
) |
Definition at line 727 of file task.c.
References rz_cons_context_load(), and rz_cons_context_reset().
Referenced by rz_core_init().
Definition at line 156 of file cvfile.c.
References desc, rz_io_t::files, rz_core_t::io, rz_io_plugin_t::name, rz_core_io_plugin_vfile, rz_id_storage_list(), rz_io_desc_close(), and rz_list_free().
Referenced by ev_binfiledel_cb().
RZ_LIB_VERSION | ( | rz_core | ) |
|
static |
Definition at line 1690 of file core.c.
References rz_core_autocomplete_rzshell().
Referenced by rz_core_fgets().
|
static |
Definition at line 2770 of file core.c.
References free(), NULL, prompt(), prompt_add_file(), prompt_add_offset(), prompt_add_section(), r, rz_config_get(), rz_config_get_i(), rz_core_cmd(), rz_core_cmd_str(), rz_line_set_prompt(), rz_num_math(), rz_strbuf_appendf(), rz_strbuf_drain_nofree(), rz_strbuf_init(), and s.
Referenced by rz_core_prompt().
Definition at line 305 of file core.c.
References arch, bits(), rz_core_t::config, rz_config_set(), and rz_config_set_i().
Referenced by rz_core_bind().
Definition at line 484 of file core.c.
References f, rz_flag_item_t::name, NULL, off, ok, and rz_flag_get_i().
Referenced by rz_core_init().
|
static |
Definition at line 1743 of file core.c.
References rz_core_t::analysis, rz_core_t::bin, d, DB, rz_syscall_t::db, rz_core_t::dbg, rz_bin_object_t::kv, rz_core_t::rasm, rz_bin_cur_object(), rz_analysis_t::sdb, rz_bin_t::sdb, sdb_ns(), sdb_ns_set(), rz_debug_t::sgnls, and rz_asm_t::syscall.
Referenced by rz_core_init().
|
static |
Definition at line 18 of file core.c.
Referenced by rz_core_set_asmqjmps().
|
static |
Definition at line 877 of file core.c.
Referenced by __init_autocomplete_default(), and autocomplete_default().
|
extern |
IO Plugin that opens RzBinVirtualFiles supplied by the plugin of an RzBinFile.
URIs look like vfile://1/decompressed_data_0
where 1
is the id of a loaded RzBinFile and decompressed_data_0
is the name of the RzBinVirtualFile inside this RzBinFile that provides the data.
Definition at line 134 of file cvfile.c.
Referenced by rz_core_init(), rz_core_vfile_bin_file_deleted(), and vf_open().