Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_analysis.h>
#include <rz_cons.h>
#include <rz_cmd.h>
#include <rz_windows.h>
#include <stdint.h>
#include <sys/types.h>
#include <ctype.h>
#include <stdarg.h>
#include <cmd_descs.h>
#include <tree_sitter/api.h>
#include "cmd_debug.c"
#include "cmd_analysis.c"
#include "cmd_macro.c"
#include "cmd_magic.c"
#include "cmd_search.c"
#include "cmd_print.c"
#include "cmd_help.c"
#include "rz-shell-parser-cmds.inc"
Go to the source code of this file.
Classes | |
struct | duplicate_flag_t |
struct | exec_command_t |
struct | tsr2cmd_state |
struct | tsr2cmd_edit |
struct | ts_data_symbol_map |
struct | _search_help |
Macros | |
#define | INTERACTIVE_MAX_REP 1024 |
#define | DEPRECATED_DEFINE_CMD_DESCRIPTOR(core, cmd_) |
#define | DEPRECATED_DEFINE_CMD_DESCRIPTOR_WITH_DETAIL(core, cmd_) |
#define | DEPRECATED_DEFINE_CMD_DESCRIPTOR_WITH_DETAIL2(core, cmd_) |
#define | DEPRECATED_DEFINE_CMD_DESCRIPTOR_SPECIAL(core, cmd_, named_cmd) |
#define | cmdstr(x) rz_str_newf(x " '%s'", file); |
#define | TS_START_END(node, start, end) |
#define | DEFINE_SYMBOL_TS_FCN(name) TSSymbol ts_##name##_symbol |
#define | DEFINE_IS_TS_FCN(name) |
#define | DEFINE_IS_TS_FCN_AND_SYMBOL(name) |
#define | DEFINE_HANDLE_TS_FCN(name) |
#define | DEFINE_HANDLE_TS_FCN_AND_SYMBOL(name) |
#define | UPDATE_CMD_STATUS_RES(res, cmd_res, label) |
#define | HANDLER_RULE_OP(name) { #name, handle_ts_##name }, |
#define | RULE_OP(name) |
#define | RULE_OP(name) { #name, &ts_##name##_symbol }, |
#define | HANDLER_RULE_OP(name) RULE_OP(name) |
Typedefs | |
typedef RzCmdStatus(* | ts_handler) (struct tsr2cmd_state *state, TSNode node) |
typedef struct _search_help | RzHelpSearch |
Enumerations | |
enum | dbt_commands_mode { DBT_COMMANDS_MODE_ADDR , DBT_COMMANDS_MODE_BP , DBT_COMMANDS_MODE_SP } |
Variables | |
static const char * | help_msg_dollar [] |
static const char * | help_msg_k [] |
static const char * | help_msg_vertical_bar [] |
static const char * | help_msg_v [] |
struct ts_data_symbol_map | map_ts_stmt_handlers [] |
struct ts_data_symbol_map | map_ts_symbols [] |
#define cmdstr | ( | x | ) | rz_str_newf(x " '%s'", file); |
#define DEFINE_HANDLE_TS_FCN | ( | name | ) |
#define DEFINE_IS_TS_FCN | ( | name | ) |
#define DEPRECATED_DEFINE_CMD_DESCRIPTOR | ( | core, | |
cmd_ | |||
) |
#define DEPRECATED_DEFINE_CMD_DESCRIPTOR_SPECIAL | ( | core, | |
cmd_, | |||
named_cmd | |||
) |
#define DEPRECATED_DEFINE_CMD_DESCRIPTOR_WITH_DETAIL | ( | core, | |
cmd_ | |||
) |
#define DEPRECATED_DEFINE_CMD_DESCRIPTOR_WITH_DETAIL2 | ( | core, | |
cmd_ | |||
) |
#define UPDATE_CMD_STATUS_RES | ( | res, | |
cmd_res, | |||
label | |||
) |
typedef struct _search_help RzHelpSearch |
typedef RzCmdStatus(* ts_handler) (struct tsr2cmd_state *state, TSNode node) |
enum dbt_commands_mode |
|
static |
Definition at line 3525 of file cmd.c.
References tsr2cmd_edit::new_text, NULL, tsr2cmd_edit::old_text, RZ_LOG_DEBUG, rz_str_replace(), and ts_parser_parse_string().
Referenced by substitute_args_do().
Definition at line 2792 of file cmd.c.
References a, rz_analysis_bb_t::addr, and b.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and rz_core_cmd_foreach().
Definition at line 609 of file cmd.c.
References k, rz_cons_printf(), and v.
Referenced by rz_cmd_kuery().
|
static |
Definition at line 28 of file cmd.c.
References cmd, d, cmd_descs_generate::help, and RZ_NEW0.
|
static |
Definition at line 5530 of file cmd.c.
References rz_cmd_descriptor_t::cmd, rz_core_t::cmd_descriptors, compare_cmd_descriptor_name(), tsr2cmd_state::core, d, eprintf, rz_list_t::length, n, p, rz_core_t::root_cmd_descriptor, rz_list_append(), rz_list_sort(), RZ_NEW0, and x.
Referenced by rz_core_cmd_init().
Definition at line 5526 of file cmd.c.
Referenced by cmd_descriptor_init().
|
static |
Definition at line 2415 of file cmd.c.
References rz_list_append(), and rz_mem_dup().
Referenced by rz_core_cmd_foreach3().
Definition at line 5558 of file cmd.c.
References cmd, tsr2cmd_state::core, and rz_core_cmd0().
Referenced by rz_core_cmd_init().
|
static |
Executes a rizin command and pipes the result to the stdin of the program specified in argc/argv.
Executes a rizin command specified in rizin_cmd
and pipe its stdout to the stdin of the system program specified in argc
and argv
arguments.
The output of the second program is then sent into RzCons.
Definition at line 3292 of file cmd.c.
References argv, bytes, core_cmd_raw_node(), free(), rz_core_t::is_pipe, length, out, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_memcat(), and system_exec_stdin().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL().
Definition at line 5483 of file cmd.c.
References cmd, tsr2cmd_state::core, rz_core_t::is_pipe, len, length, NULL, rz_cons_echo(), rz_cons_filter(), rz_cons_get_buffer(), rz_cons_get_buffer_len(), rz_cons_pop(), rz_cons_push(), rz_core_cmd(), rz_str_get(), rz_str_newlen(), and strdup().
Referenced by rz_core_cmd_raw(), and rz_core_cmd_str().
|
static |
Definition at line 3264 of file cmd.c.
References handle_ts_stmt(), len, length, NULL, RZ_CMD_STATUS_OK, rz_cons_echo(), rz_cons_filter(), rz_cons_get_buffer(), rz_cons_get_buffer_len(), rz_cons_pop(), rz_cons_push(), and rz_str_newlen().
Referenced by core_cmd_pipe().
|
static |
Definition at line 5245 of file cmd.c.
References tsr2cmd_state::core, eprintf, free(), input(), rz_cmd_t::language, test-lz4-list::log(), NULL, cmd_descs_generate::parser, rz_core_t::rcmd, root, RZ_CMD_STATUS_INVALID, rz_line_hist_add(), RZ_LOG_DEBUG, rz_pvector_fini(), rz_pvector_init(), rz_return_val_if_fail, rz_str_trim_head_ro(), rz_warn_if_reached, tsr2cmd_state::split_lines, strdup(), tsr2cmd_state::tree, ts_node_has_error(), ts_node_string(), ts_parser_delete(), ts_parser_new(), ts_parser_parse_string(), ts_parser_set_language(), ts_tree_delete(), and ts_tree_root_node().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), rz_core_cmd(), rz_core_cmd_lines(), rz_core_cmd_lines_rzshell(), and rz_core_cmd_rzshell().
|
static |
Definition at line 3331 of file cmd.c.
References TSPoint::column, e, tsr2cmd_edit::new_text, TSPoint::row, RZ_NEW0, ts_node_end_byte(), ts_node_end_point(), ts_node_start_byte(), ts_node_start_point(), and ts_node_sub_parent_string().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and handle_cmd_substitution_arg().
DEFINE_HANDLE_TS_FCN | ( | statements | ) |
Definition at line 5138 of file cmd.c.
References rz_cons_context_t::breaked, rz_cons_context_t::cmd_depth, rz_core_t::cmdrepeat, command, rz_core_t::cons, rz_cons_t::context, eprintf, err, free(), handle_ts_stmt(), i, rz_core_t::max_cmd_depth, NULL, rz_core_t::offset, rz_core_t::prompt_offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_flush(), rz_cons_is_breaked(), rz_core_cmd_lastcmd_repeat(), rz_core_task_yield(), RZ_LOG_DEBUG, RZ_LOG_ERROR, rz_core_t::tasks, ts_node_named_child(), ts_node_named_child_count(), and ts_node_sub_string().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | arged_stmt | ) |
Definition at line 3639 of file cmd.c.
References rz_cmd_parsed_args_t::argc, args, cd, command, core_cmd_tsrzcmd(), test_evm::end, eprintf, err, rz_cmd_parsed_args_t::extra, free(), get_help_wrong_cmd(), rz_cmd_parsed_args_t::has_space_after_cmd, rz_cmd_desc_t::name, NULL, rz_cmd_call_parsed_args(), RZ_CMD_DESC_TYPE_OLDINPUT, rz_cmd_get_desc(), rz_cmd_get_desc_best(), rz_cmd_parsed_args_cmd(), rz_cmd_parsed_args_free(), rz_cmd_parsed_args_newcmd(), rz_cmd_parsed_args_setcmd(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_NONEXISTINGCMD, RZ_CMD_STATUS_WRONG_ARGS, RZ_LOG_DEBUG, rz_return_val_if_fail, rz_str_endswith(), rz_str_newf(), rz_str_unescape(), start, ts_node_child_by_field_name(), ts_node_end_byte(), ts_node_handle_arg_prargs(), ts_node_is_null(), ts_node_start_byte(), and ts_node_sub_string().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | grep_stmt | ) |
Definition at line 5019 of file cmd.c.
References command, free(), handle_ts_stmt(), rz_cmd_unescape_arg(), rz_cons_grep_process(), rz_cons_grep_strip(), RZ_LOG_DEBUG, rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), rz_strbuf_prepend(), sb, ts_node_child_by_field_name(), and ts_node_handle_arg().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | help_stmt | ) |
Definition at line 3905 of file cmd.c.
References args, argv, cd, command, free(), NULL, RZ_CMD_DESC_TYPE_OLDINPUT, rz_cmd_get_desc(), rz_cmd_get_help(), rz_cmd_help_search_handler(), rz_cmd_parsed_args_free(), rz_cmd_parsed_args_newcmd(), rz_cmd_parsed_args_setcmd(), RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, RZ_PRINT_FLAGS_COLOR, ts_node_child_by_field_name(), ts_node_handle_arg_prargs(), ts_node_is_null(), and ts_node_sub_string().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | html_disable_stmt | ) |
Definition at line 5040 of file cmd.c.
References COLOR_MODE_DISABLED, command, handle_ts_stmt(), rz_config_get_i(), rz_config_set_i(), rz_cons_flush(), and ts_node_child_by_field_name().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | html_enable_stmt | ) |
Definition at line 5057 of file cmd.c.
References command, handle_ts_stmt(), rz_config_get_i(), rz_config_set_i(), rz_cons_flush(), and ts_node_child_by_field_name().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_bbs_stmt | ) |
Definition at line 4602 of file cmd.c.
References rz_analysis_bb_t::addr, rz_core_t::analysis, bb_cmp(), rz_analysis_function_t::bbs, rz_core_t::blocksize, command, err, handle_ts_stmt_tmpseek(), obs, rz_core_t::offset, duplicate_flag_t::ret, rz_analysis_get_fcn_in(), RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_core_block_size(), rz_core_seek(), rz_list_sort(), rz_analysis_bb_t::size, ts_node_named_child(), UPDATE_CMD_STATUS_RES, and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_comment_stmt | ) |
Definition at line 4704 of file cmd.c.
References rz_core_t::analysis, command, err, free(), handle_ts_stmt_tmpseek(), rz_analysis_t::meta, NULL, off, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_core_seek(), rz_interval_tree_foreach, rz_interval_tree_iter_get(), RZ_META_TYPE_COMMENT, rz_str_glob(), start, rz_analysis_meta_item_t::str, ts_node_is_null(), ts_node_named_child(), ts_node_sub_string(), rz_analysis_meta_item_t::type, UPDATE_CMD_STATUS_RES, and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_dbgmap_stmt | ) |
Definition at line 4928 of file cmd.c.
References command, rz_debug_t::cur, dbg, rz_core_t::dbg, err, free(), handle_ts_stmt_tmpseek(), map(), rz_debug_t::maps, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_core_seek(), rz_list_append(), rz_list_free(), rz_list_newf(), RZ_NEW, ts_node_named_child(), UPDATE_CMD_STATUS_RES, and val.
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_dbta_stmt | ) |
Definition at line 4408 of file cmd.c.
References DBT_COMMANDS_MODE_ADDR, and iter_dbt_commands().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_dbtb_stmt | ) |
Definition at line 4412 of file cmd.c.
References DBT_COMMANDS_MODE_BP, and iter_dbt_commands().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_dbts_stmt | ) |
Definition at line 4416 of file cmd.c.
References DBT_COMMANDS_MODE_SP, and iter_dbt_commands().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_file_lines_stmt | ) |
Definition at line 4420 of file cmd.c.
References addr, command, rz_cmd_macro_t::counter, err, fd, benchmark::FILE, free(), handle_ts_stmt_tmpseek(), rz_cmd_t::macro, rz_core_t::num, rz_core_t::offset, rz_core_t::rcmd, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_core_seek(), rz_num_math(), rz_sys_fopen(), ts_node_handle_arg(), ts_node_named_child(), UPDATE_CMD_STATUS_RES, and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_flags_stmt | ) |
Definition at line 4323 of file cmd.c.
References command, duplicate_flag(), err, rz_core_t::flags, free(), handle_ts_stmt_tmpseek(), NULL, rz_flag_item_t::offset, PFMT64x, duplicate_flag_t::ret, RZ_CMD_STATUS_OK, rz_cons_is_breaked(), rz_core_seek(), rz_core_task_yield(), rz_flag_foreach_space(), rz_flag_item_free(), rz_list_free(), rz_list_newf(), RZ_LOG_DEBUG, rz_core_t::tasks, ts_node_handle_arg(), ts_node_is_null(), ts_node_named_child(), and UPDATE_CMD_STATUS_RES.
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_function_stmt | ) |
Definition at line 4959 of file cmd.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, rz_core_t::blocksize, command, err, rz_analysis_t::fcns, free(), handle_ts_stmt_tmpseek(), list(), rz_analysis_function_t::name, NULL, obs, rz_core_t::offset, rz_analysis_function_linear_size(), RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_block_size(), rz_core_seek(), rz_str_glob(), ts_node_is_null(), ts_node_named_child(), ts_node_sub_string(), UPDATE_CMD_STATUS_RES, and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_hit_stmt | ) |
Definition at line 4589 of file cmd.c.
References command, rz_core_t::config, free(), handle_ts_stmt(), rz_config_get(), rz_config_set(), strdup(), ts_node_named_child(), and ts_node_sub_string().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_import_stmt | ) |
Definition at line 4731 of file cmd.c.
References addr, rz_core_t::bin, command, err, free(), handle_ts_stmt_tmpseek(), rz_bin_symbol_t::is_imported, list(), n, rz_core_t::offset, rz_bin_get_symbols(), RZ_CMD_STATUS_OK, rz_core_seek(), rz_list_append(), rz_list_free(), rz_list_newf(), RZ_NEW, ts_node_named_child(), UPDATE_CMD_STATUS_RES, ut64(), UT64_MAX, and rz_bin_symbol_t::vaddr.
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_instrs_stmt | ) |
Definition at line 4515 of file cmd.c.
References rz_core_t::analysis, rz_core_t::blocksize, command, eprintf, err, handle_ts_stmt_tmpseek(), i, rz_analysis_bb_t::ninstr, rz_core_t::offset, rz_analysis_block_get_op_addr(), rz_analysis_block_get_op_size(), rz_analysis_block_ref(), rz_analysis_block_unref(), rz_analysis_get_blocks_in(), RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_cons_is_breaked(), rz_core_block_size(), rz_core_seek(), rz_list_free(), rz_list_get_top(), ts_node_named_child(), UPDATE_CMD_STATUS_RES, and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_interpret_offsetssizes_stmt | ) |
Definition at line 4666 of file cmd.c.
References create_cmd_edit(), do_handle_substitution_cmd(), e, err, free(), free_tsr2cmd_edit(), handle_ts_stmt(), rz_cmd_escape_arg(), RZ_CMD_ESCAPE_MULTI_ARG, RZ_CMD_STATUS_INVALID, rz_list_append(), rz_list_free(), rz_list_newf(), strdup(), substitute_args_do(), substitute_args_fini(), substitute_args_init(), ts_node_child(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_interpret_stmt | ) |
Definition at line 4628 of file cmd.c.
References create_cmd_edit(), do_handle_substitution_cmd(), e, err, free(), free_tsr2cmd_edit(), handle_ts_stmt(), rz_cmd_escape_arg(), RZ_CMD_ESCAPE_MULTI_ARG, RZ_CMD_STATUS_INVALID, rz_list_append(), rz_list_free(), rz_list_newf(), strdup(), substitute_args_do(), substitute_args_fini(), substitute_args_init(), ts_node_child(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_iomap_stmt | ) |
Definition at line 4906 of file cmd.c.
References command, err, fd, handle_ts_stmt_tmpseek(), rz_core_t::io, map(), maps(), RZ_CMD_STATUS_OK, rz_core_block_size(), rz_core_seek(), rz_io_fd_get_current(), rz_io_map_get_for_fd(), rz_list_free(), ts_node_named_child(), and UPDATE_CMD_STATUS_RES.
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_offsets_stmt | ) |
Definition at line 4507 of file cmd.c.
References iter_offsets_common().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_offsetssizes_stmt | ) |
Definition at line 4511 of file cmd.c.
References iter_offsets_common().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_register_stmt | ) |
Definition at line 4767 of file cmd.c.
References rz_core_t::analysis, rz_analysis_t::bits, command, err, free(), handle_ts_stmt_tmpseek(), test-lz4-versions::head, i, list(), rz_reg_item_t::name, rz_core_t::offset, reg, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_reg_default(), rz_core_seek(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_reg_get_list(), rz_reg_getv(), RZ_REG_TYPE_LAST, rz_reg_item_t::size, strdup(), ts_node_named_child(), rz_reg_item_t::type, UPDATE_CMD_STATUS_RES, ut64(), and value.
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_sections_stmt | ) |
Definition at line 4898 of file cmd.c.
References do_iter_sections().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_segments_stmt | ) |
Definition at line 4902 of file cmd.c.
References do_iter_sections().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_step_stmt | ) |
Definition at line 4550 of file cmd.c.
References a, args, rz_core_t::blocksize, command, err, from, handle_ts_stmt_tmpseek(), rz_core_t::num, rz_core_t::offset, rz_cmd_parsed_args_free(), RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_cons_is_breaked(), rz_core_block_size(), rz_core_seek(), rz_num_math(), step(), to, ts_node_handle_arg_prargs(), ts_node_named_child(), UPDATE_CMD_STATUS_RES, and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_string_stmt | ) |
Definition at line 4839 of file cmd.c.
References rz_core_t::bin, rz_core_t::blocksize, command, err, free(), handle_ts_stmt_tmpseek(), list(), obs, rz_core_t::offset, rz_bin_get_strings(), RZ_CMD_STATUS_OK, rz_core_block_size(), rz_core_seek(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_mem_dup(), s, ts_node_named_child(), UPDATE_CMD_STATUS_RES, and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_symbol_stmt | ) |
Definition at line 4807 of file cmd.c.
References rz_core_t::bin, rz_core_t::blocksize, command, err, free(), handle_ts_stmt_tmpseek(), list(), NULL, obs, rz_core_t::offset, rz_bin_get_symbols(), RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_block_size(), rz_core_seek(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_mem_dup(), rz_bin_symbol_t::size, ts_node_named_child(), UPDATE_CMD_STATUS_RES, ut64(), and rz_bin_symbol_t::vaddr.
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | iter_threads_stmt | ) |
Definition at line 4993 of file cmd.c.
References command, rz_debug_t::cur, dbg, rz_core_t::dbg, err, handle_ts_stmt(), list(), p, rz_debug_t::pid, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_debug_select(), rz_list_free(), rz_debug_plugin_t::threads, rz_debug_t::tid, ts_node_named_child(), and UPDATE_CMD_STATUS_RES.
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | legacy_quoted_stmt | ) |
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | pipe_stmt | ) |
Definition at line 5069 of file cmd.c.
References a, core_cmd_pipe(), rz_cmd_parsed_args_free(), RZ_CMD_STATUS_INVALID, ts_node_handle_arg_prargs(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | redirect_stmt | ) |
Definition at line 3749 of file cmd.c.
References COLOR_MODE_DISABLED, command, free(), handle_ts_stmt(), output, rz_cmd_alias_get(), rz_cmd_alias_set(), RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_config_get_i(), rz_config_set_i(), rz_cons_flush(), rz_cons_pipe_close(), rz_cons_pipe_open(), rz_cons_set_interactive(), rz_cons_set_last_interactive(), rz_core_cmd_str(), RZ_LOG_DEBUG, RZ_LOG_ERROR, RZ_LOG_WARN, rz_str_newf(), rz_warn_if_reached, ts_node_child_by_field_name(), ts_node_handle_arg(), ts_node_is_null(), ts_node_named_child(), and ts_node_sub_string().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | repeat_stmt | ) |
Definition at line 3726 of file cmd.c.
References command, err, free(), handle_ts_stmt(), i, INTERACTIVE_MAX_REP, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_cons_is_interactive(), rz_cons_yesno(), ts_node_child_by_field_name(), ts_node_sub_string(), and UPDATE_CMD_STATUS_RES.
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_arch_stmt | ) |
Definition at line 4030 of file cmd.c.
References bits(), command, rz_core_t::config, rz_core_t::fixedarch, rz_core_t::fixedbits, free(), handle_ts_stmt(), rz_core_t::num, rz_config_set(), rz_config_set_i(), rz_num_math(), set_tmp_arch(), set_tmp_bits(), ts_node_handle_arg(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_bits_stmt | ) |
Definition at line 4070 of file cmd.c.
References bits(), command, rz_core_t::config, rz_core_t::fixedbits, free(), handle_ts_stmt(), rz_core_t::num, rz_config_set(), rz_config_set_i(), rz_num_math(), set_tmp_bits(), ts_node_handle_arg(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_blksz_stmt | ) |
Definition at line 3976 of file cmd.c.
References command, free(), handle_ts_stmt(), rz_core_block_size(), RZ_LOG_DEBUG, rz_num_math(), ts_node_handle_arg(), ts_node_named_child(), and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_eval_stmt | ) |
Definition at line 4113 of file cmd.c.
References args, command, rz_core_t::config, eprintf, eq, free(), handle_ts_stmt(), i, NULL, rz_config_hold_free(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_hold_s(), rz_config_set(), ts_node_named_child(), ts_node_named_child_count(), and ts_node_sub_string().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_fd_stmt | ) |
Definition at line 4187 of file cmd.c.
References command, rz_io_t::desc, rz_io_desc_t::fd, free(), handle_ts_stmt(), rz_core_t::io, rz_io_use_fd(), ts_node_handle_arg(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_file_stmt | ) |
Definition at line 4250 of file cmd.c.
References command, eprintf, f, free(), handle_tmp_desc(), out, RZ_CMD_STATUS_INVALID, rz_file_slurp(), ts_node_handle_arg(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_fromto_stmt | ) |
Definition at line 3989 of file cmd.c.
References a, command, rz_core_t::config, handle_ts_stmt(), i, NULL, rz_core_t::num, PFMT64x, rz_cmd_parsed_args_free(), RZ_CMD_STATUS_INVALID, rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set_i(), RZ_LOG_DEBUG, rz_num_math(), ts_node_handle_arg_prargs(), ts_node_named_child(), and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_fs_stmt | ) |
Definition at line 4142 of file cmd.c.
References command, rz_core_t::flags, free(), handle_ts_stmt(), ts_node_handle_arg(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_hex_stmt | ) |
Definition at line 4306 of file cmd.c.
References command, free(), handle_tmp_desc(), len, rz_hex_str2bin(), RZ_NEWS, ts_node_handle_arg(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_kuery_stmt | ) |
Definition at line 4170 of file cmd.c.
References command, free(), handle_ts_stmt_tmpseek(), NULL, rz_core_t::num, out, rz_core_seek(), rz_num_math(), rz_core_t::sdb, sdb_querys(), ts_node_handle_arg(), ts_node_named_child(), and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_nthi_stmt | ) |
Definition at line 4093 of file cmd.c.
References command, free(), handle_ts_stmt_tmpseek(), rz_core_t::num, rz_core_seek(), rz_core_seek_bb_instruction(), rz_num_math(), rz_core_t::tmpseek, ts_node_handle_arg(), ts_node_named_child(), and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_reg_stmt | ) |
Definition at line 4200 of file cmd.c.
References command, rz_core_t::dbg, free(), handle_ts_stmt_tmpseek(), rz_core_seek(), rz_debug_reg_get(), ts_node_handle_arg(), ts_node_named_child(), and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_reli_stmt | ) |
Definition at line 4154 of file cmd.c.
References addr, command, free(), handle_ts_stmt_tmpseek(), rz_core_t::num, rz_core_seek(), rz_core_seek_opcode(), rz_num_math(), ts_node_handle_arg(), ts_node_named_child(), and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_seek_stmt | ) |
Definition at line 3952 of file cmd.c.
References command, eprintf, free(), handle_ts_stmt_tmpseek(), isalpha, PFMT64x, RZ_CMD_STATUS_INVALID, rz_core_seek(), rz_flag_get(), RZ_LOG_DEBUG, rz_num_math(), ts_node_handle_arg(), ts_node_named_child(), and ut64().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_string_stmt | ) |
Definition at line 4271 of file cmd.c.
References command, free(), handle_tmp_desc(), ts_node_handle_arg(), and ts_node_named_child().
DEFINE_HANDLE_TS_FCN_AND_SYMBOL | ( | tmp_value_stmt | ) |
Definition at line 4286 of file cmd.c.
References command, rz_core_t::config, free(), handle_tmp_desc(), rz_core_t::num, rz_config_get_i(), rz_num_math(), rz_write_ble(), ts_node_handle_arg(), ts_node_named_child(), ut64(), and v.
|
static |
Definition at line 3373 of file cmd.c.
References rz_core_t::cmd_in_backticks, rz_core_t::config, free(), NULL, rz_core_t::num, out, replace_whitespaces(), rz_config_get_i(), rz_config_set_i(), rz_core_cmd_str(), rz_core_cmd_str_pipe(), RZ_LOG_DEBUG, rz_str_trim(), strdup(), ts_node_sub_parent_string(), value, and rz_num_t::value.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and handle_cmd_substitution_arg().
|
static |
Definition at line 3461 of file cmd.c.
References free(), i, NULL, RZ_CMD_ESCAPE_DOUBLE_QUOTED_ARG, RZ_CMD_ESCAPE_ONE_ARG, RZ_CMD_ESCAPE_SINGLE_QUOTED_ARG, rz_cmd_unescape_arg(), rz_strbuf_append(), rz_strbuf_drain(), rz_strbuf_new(), s, sb, ts_node_named_child(), ts_node_named_child_count(), and ts_node_sub_string().
Referenced by parse_args().
|
static |
Definition at line 4455 of file cmd.c.
References a, addr, rz_core_t::blocksize, command, err, handle_ts_stmt_tmpseek(), i, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_cons_flush(), rz_core_block_size(), rz_core_seek(), rz_num_math(), s, UPDATE_CMD_STATUS_RES, and ut64().
Referenced by iter_offsets_common().
|
static |
Definition at line 4868 of file cmd.c.
References rz_core_t::bin, rz_core_t::blocksize, command, err, handle_ts_stmt_tmpseek(), rz_bin_section_t::is_segment, rz_core_t::offset, rz_bin_cur_object(), RZ_CMD_STATUS_OK, rz_core_block_size(), rz_core_seek(), rz_bin_object_t::sections, ts_node_named_child(), UPDATE_CMD_STATUS_RES, ut64(), UT64_MAX, rz_bin_section_t::vaddr, and rz_bin_section_t::vsize.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL().
|
static |
Definition at line 172 of file cmd.c.
References rz_flag_item_t::name, duplicate_flag_t::ret, rz_flag_item_clone(), rz_list_append(), rz_str_glob(), and duplicate_flag_t::word.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and rz_core_cmd_foreach().
|
static |
Definition at line 1181 of file cmd.c.
References NULL.
Referenced by rz_core_cmd_subst(), and rz_core_cmd_subst_i().
|
static |
|
static |
Definition at line 2421 of file cmd.c.
References arg(), cmd, n, NULL, rz_core_block_size(), rz_core_cmd0(), rz_core_seek(), rz_num_get(), and ut64().
Referenced by rz_core_cmd_foreach3().
Definition at line 2737 of file cmd.c.
References addr, cmd, free(), NULL, rz_core_t::num, rz_cons_flush(), rz_core_cmd(), rz_core_seek(), rz_num_math(), cmd_descs_generate::str, strdup(), and ut64().
Referenced by rz_core_cmd_foreach().
void free_tsr2cmd_edit | ( | struct tsr2cmd_edit * | edit | ) |
Definition at line 3367 of file cmd.c.
References free(), tsr2cmd_edit::new_text, and tsr2cmd_edit::old_text.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and substitute_args().
Definition at line 3617 of file cmd.c.
References eprintf, rz_print_t::flags, free(), rz_core_t::print, rz_core_t::rcmd, rz_cmd_get_help(), rz_cmd_parsed_args_free(), rz_cmd_parsed_args_newcmd(), RZ_PRINT_FLAGS_COLOR, and rz_str_newf().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL().
|
static |
Definition at line 3406 of file cmd.c.
References create_cmd_edit(), do_handle_substitution_cmd(), e, free(), NULL, out, rz_cmd_escape_arg(), RZ_CMD_ESCAPE_DOUBLE_QUOTED_ARG, RZ_CMD_ESCAPE_MULTI_ARG, RZ_CMD_ESCAPE_PF_ARG, rz_list_append(), rz_return_if_fail, ts_node_child(), ts_node_is_null(), and ts_node_parent().
Referenced by handle_substitution_args().
|
static |
Definition at line 3445 of file cmd.c.
References args, handle_cmd_substitution_arg(), i, is_arg(), is_group_of_args(), ts_node_named_child(), and ts_node_named_child_count().
Referenced by substitute_args().
|
static |
Definition at line 4215 of file cmd.c.
References b, rz_core_t::blocksize, command, rz_core_t::config, d, eprintf, rz_core_t::fixedblock, handle_ts_stmt(), rz_core_t::io, rz_core_t::offset, out_buf, rz_buf_free(), rz_buf_new_with_bytes(), rz_buf_size(), RZ_CMD_STATUS_INVALID, rz_config_set_i(), rz_core_block_read(), rz_core_block_size(), rz_io_desc_close(), rz_io_fd_get_current(), rz_io_map_new(), rz_io_open_buffer(), rz_io_use_fd(), RZ_PERM_RWX, and rz_io_t::va.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL().
|
static |
Definition at line 5083 of file cmd.c.
References cmd, rz_core_t::cmdremote, free(), rz_core_t::io, NULL, rz_core_t::rcmd, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_rtr_cmd(), RZ_FREE, rz_io_system(), RZ_LOG_WARN, rz_str_newf(), s, ts_node_sub_string(), ts_node_symbol(), and ts_node_type().
Referenced by core_cmd_raw_node(), DEFINE_HANDLE_TS_FCN(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), handle_tmp_desc(), and handle_ts_stmt_tmpseek().
|
static |
Definition at line 5128 of file cmd.c.
References handle_ts_stmt(), and rz_core_t::tmpseek.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_iter_offsets(), do_iter_sections(), and iter_dbt_commands().
Definition at line 3845 of file cmd.c.
References cd, cmd, hs, rz_cmd_get_help_json(), rz_cmd_get_help_strbuf(), and rz_return_val_if_fail.
Referenced by rz_cmd_help_search_handler().
Definition at line 3436 of file cmd.c.
References args.
Referenced by handle_substitution_args(), and is_handled_args().
Definition at line 3428 of file cmd.c.
References args.
Referenced by handle_substitution_args(), and is_handled_args().
Definition at line 3440 of file cmd.c.
References args, is_arg(), and is_group_of_args().
Referenced by substitute_args().
Definition at line 1173 of file cmd.c.
References IS_DIGIT, and rz_str_trim_head_ro().
Referenced by rz_core_cmd_subst(), and rz_core_cmd_subst_i().
|
static |
Definition at line 4374 of file cmd.c.
References rz_debug_frame_t::addr, rz_debug_frame_t::bp, command, rz_core_t::dbg, DBT_COMMANDS_MODE_ADDR, DBT_COMMANDS_MODE_BP, DBT_COMMANDS_MODE_SP, err, handle_ts_stmt_tmpseek(), list(), rz_core_t::offset, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, rz_cons_newline(), rz_core_seek(), rz_debug_frames(), rz_list_free(), rz_warn_if_reached, rz_debug_frame_t::sp, ts_node_named_child(), UPDATE_CMD_STATUS_RES, ut64(), and UT64_MAX.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL().
|
static |
Definition at line 4485 of file cmd.c.
References a, args, command, do_iter_offsets(), rz_cmd_parsed_args_free(), RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, ts_node_handle_arg_prargs(), ts_node_named_child(), and ts_node_named_child_count().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL().
Definition at line 421 of file cmd.c.
References rz_core_t::lang, rz_core_sysenv_begin(), and rz_lang_run_file().
Referenced by rz_core_run_script().
|
static |
Definition at line 3500 of file cmd.c.
References args, do_handle_ts_unescape_arg(), free(), i, NULL, rz_cmd_parsed_args_newargs(), RZ_NEWS0, ts_node_is_null(), ts_node_named_child(), and ts_node_named_child_count().
Referenced by ts_node_handle_arg_prargs().
Definition at line 1134 of file cmd.c.
References cmd, rz_core_t::config, eprintf, eq, free(), i, NULL, rz_config_get(), rz_config_set(), rz_str_newf(), rz_str_prepend(), rz_str_split(), rz_str_word_get0(), s, cmd_descs_generate::str, and strdup().
Referenced by rz_core_cmd_subst_i().
Definition at line 205 of file cmd.c.
References desc, p, recursive_help_go(), rz_core_t::root_cmd_descriptor, and RZ_ARRAY_SIZE.
Referenced by rz_core_cmd_subst_i().
|
static |
Definition at line 185 of file cmd.c.
References desc, i, RZ_ARRAY_SIZE, and rz_core_cmd_help().
Referenced by recursive_help().
|
static |
Definition at line 5296 of file cmd.c.
References cmd, rz_cons_context_t::cmd_depth, rz_core_t::cons, rz_cons_t::context, tsr2cmd_state::core, eprintf, and rz_core_cmd_subst().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL().
RZ_IPI RzCmdStatus rz_basefind_compute_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5603 of file cmd.c.
References argv, bool2status(), rz_core_bin_basefind_print(), and RZ_STR_ISEMPTY.
Referenced by rzshell_cmddescs_init().
Definition at line 278 of file cmd.c.
References count, def(), desc, eprintf, rz_core_t::flags, free(), help_msg_dollar, i, input(), keys, len, malloc(), memcpy(), n, NULL, rz_core_t::num, out, rz_core_t::rcmd, rz_base64_encode_dyn(), rz_cmd_alias_del(), rz_cmd_alias_get(), rz_cmd_alias_keys(), rz_cmd_alias_set(), rz_cons_newline(), rz_cons_printf(), rz_cons_println(), rz_cons_strcat(), rz_core_cmd0(), rz_core_cmd_help(), rz_core_editor(), rz_core_seek(), rz_flag_set(), rz_num_get(), rz_num_math(), rz_str_newf(), ut64(), UT64_MAX, and v.
Referenced by rz_core_cmd_init(), and rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_help_search_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 3856 of file cmd.c.
References argv, exit_status, rz_print_t::flags, free(), cmd_descs_generate::help, help_search_cmd_desc_entry(), hs, NULL, pj_end(), pj_free(), pj_new(), pj_o(), pj_string(), rz_core_t::print, rz_core_t::rcmd, rz_cmd_foreach_cmdname(), rz_cmd_get_desc(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, RZ_PRINT_FLAGS_COLOR, rz_strbuf_drain(), rz_strbuf_new(), and status.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and rzshell_cmddescs_init().
Definition at line 642 of file cmd.c.
References callback_foreach_kv(), rz_core_t::cons, eprintf, fn, free(), rz_list_t::head, help_msg_k, rz_core_t::http_up, input(), rz_cons_t::line, setup::line, n, NULL, out, p, pj_end(), pj_free(), pj_ka(), pj_ko(), pj_new(), pj_o(), pj_s(), pj_string(), rz_cons_fgets(), rz_cons_flush(), rz_cons_is_interactive(), rz_cons_println(), rz_core_cmd_help(), rz_core_kuery_print(), rz_file_exists(), RZ_FREE, rz_line_hist_cmd_down(), rz_line_hist_cmd_up(), rz_line_hist_sdb_down(), rz_line_hist_sdb_up(), rz_line_set_hist_callback(), rz_line_set_prompt(), rz_list_append(), rz_list_get_n(), rz_list_insert(), rz_list_length(), rz_list_newf(), rz_str_ndup(), rz_str_new(), rz_str_newf(), s, rz_core_t::sdb, sdb_drain(), sdb_file(), sdb_foreach(), sdb_new(), sdb_ns(), sdb_ns_path(), sdb_querys(), sdb_sync(), sp, and strdup().
Referenced by rz_core_cmd_init(), and rzshell_cmddescs_init().
Definition at line 850 of file cmd.c.
References rz_core_t::config, eprintf, free(), help_msg_v, input(), NULL, rz_core_t::panels, rz_core_t::panels_root, r, rz_config_set(), rz_cons_is_interactive(), rz_core_cmd_help(), rz_core_editor(), rz_core_visual_panels_root(), rz_load_panels_layout(), rz_save_panels_layout(), sp, and rz_core_t::vmode.
Referenced by rz_core_cmd_init(), and rzshell_cmddescs_init().
Definition at line 891 of file cmd.c.
References eprintf, rz_core_t::http_up, input(), rz_cons_is_interactive(), and rz_core_visual().
Referenced by rz_core_cmd_init(), and rzshell_cmddescs_init().
Definition at line 5328 of file cmd.c.
References tsr2cmd_state::core, and core_cmd_tsrzcmd().
Referenced by __handleComment(), _cb_hit(), _CbInRangeSearchV(), cmd_task_runner(), core_cmd_raw(), do_analysis_search(), do_ref_search(), do_syscall_search(), foreachOffset(), rz_cmd_debug_dmi(), rz_cmd_help(), rz_core_bin_load(), rz_core_cmd0(), rz_core_cmd_buffer(), rz_core_cmd_command(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_pipe_old(), rz_core_cmd_str_pipe(), rz_core_cmdf(), rz_core_file_open(), rz_core_flush(), rz_core_prompt_exec(), rz_core_rtr_gdb_cb(), rz_core_visual_analysis_classes(), rz_core_visual_bit_editor(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_comments(), rz_core_visual_config(), rz_core_visual_prompt(), rz_core_visual_trackflags(), rz_core_visual_view_rop(), rz_interpret_handler(), rz_interpret_output_handler(), and set_prompt().
Definition at line 5428 of file cmd.c.
References cmd, tsr2cmd_state::core, and rz_core_cmd().
Referenced by __cons_cb_fkey(), __handle_console(), __panels_process(), addVar(), agraph_print(), cb_iova(), cmd_analysis_graph(), cmd_print_format(), convert_dot_to_image(), core_cmd0_wrapper(), core_file_do_load_for_debug(), do_analysis_search(), dot_trace_traverse(), foreach_pairs(), on_fcn_delete(), on_fcn_new(), on_fcn_rename(), perform_analysis(), rz_analysis_aefa(), rz_analyze_all_functions_esil_handler(), rz_analyze_all_functions_handler(), rz_cmd_alias(), rz_cmd_print(), rz_cmd_search(), rz_core_analysis_recover_golang_functions(), rz_core_bind(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_lastcmd_repeat(), rz_core_cmd_subst(), rz_core_cmd_subst_i(), rz_core_cmpwatch_show(), rz_core_debug_breakpoint_hit(), rz_core_debug_syscall_hit(), rz_core_file_open(), rz_core_magic_at(), rz_core_print_examine(), rz_core_rtr_http_run(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_browse(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_debugtraces(), rz_core_visual_define(), rz_core_visual_esil(), rz_core_visual_graph(), rz_core_visual_hud(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_core_visual_view_rop(), rz_core_visual_xrefs(), rz_flag_hexdump_handler(), rz_history_list_or_exec_handler(), rz_interpret_script_handler(), rz_main_rizin(), seek_to_node(), visual_nkey(), visual_offset(), and visual_refresh().
RZ_API RzCmdStatus rz_core_cmd0_rzshell | ( | RzCore * | core, |
const char * | cmd | ||
) |
Definition at line 5424 of file cmd.c.
References cmd, tsr2cmd_state::core, and rz_core_cmd_rzshell().
Referenced by rz_cmd_analysis().
Definition at line 5395 of file cmd.c.
References tsr2cmd_state::core, free(), rz_core_cmd(), cmd_descs_generate::str, and strdup().
Definition at line 5360 of file cmd.c.
References command, tsr2cmd_state::core, free(), len, rz_core_cmd(), rz_core_sysenv_begin(), rz_core_sysenv_end(), and rz_sys_cmd_str().
Definition at line 5341 of file cmd.c.
References tsr2cmd_state::core, eprintf, free(), NULL, rz_core_cmd_lines(), rz_file_abspath(), and rz_file_slurp().
Referenced by cmd_print_format(), load_theme(), rz_core_parse_rizinrc(), rz_core_run_script(), and rz_main_rizin().
Definition at line 2798 of file cmd.c.
References rz_cmd_macro_t::_brk_value, addr, rz_analysis_function_t::addr, rz_analysis_bb_t::addr, rz_debug_frame_t::addr, rz_core_t::analysis, bb_cmp(), rz_analysis_function_t::bbs, rz_core_t::blocksize, rz_debug_frame_t::bp, rz_cmd_macro_t::brk_value, cmd, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, count, rz_cmd_macro_t::counter, rz_debug_t::cur, rz_core_t::dbg, duplicate_flag(), eprintf, rz_analysis_t::fcns, fd, benchmark::FILE, rz_core_t::flags, foreachOffset(), free(), from, rz_cons_context_t::grep, help_msg_at_at, i, list(), rz_cmd_t::macro, rz_analysis_function_t::name, NULL, rz_core_t::num, rz_core_t::offset, rz_flag_item_t::offset, rz_analysis_bb_t::op_pos, rz_analysis_bb_t::op_pos_size, out, p, PFMT64x, rz_debug_t::pid, pid, rz_debug_plugin_t::pids, rz_core_t::rcmd, duplicate_flag_t::ret, rz_analysis_get_function_at(), rz_cmd_macro_call(), rz_config_get(), rz_config_set(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_flush(), rz_cons_get_buffer_dup(), rz_cons_is_breaked(), rz_cons_newline(), rz_cons_pop(), rz_cons_printf(), rz_cons_push(), rz_cons_strcat(), rz_core_block_size(), rz_core_cmd(), rz_core_cmd0(), rz_core_cmd_help(), rz_core_cmd_str(), rz_core_seek(), rz_core_task_yield(), rz_debug_frames(), rz_debug_select(), rz_flag_foreach_space(), rz_flag_item_free(), RZ_FREE, rz_list_free(), rz_list_newf(), rz_list_sort(), RZ_MAX, rz_num_math(), rz_str_split(), rz_str_word_get0(), rz_sys_fopen(), rz_core_t::sdb, sdb_querys(), rz_analysis_bb_t::size, rz_debug_frame_t::sp, sprintf, step(), cmd_descs_generate::str, strdup(), rz_core_t::tasks, to, ut64(), UT64_MAX, and duplicate_flag_t::word.
Referenced by rz_core_cmd_subst_i().
Definition at line 2449 of file cmd.c.
References addr, rz_analysis_function_t::addr, rz_analysis_bb_t::addr, rz_core_t::analysis, rz_analysis_function_t::bbs, rz_core_t::bin, rz_analysis_t::bits, rz_core_t::blocksize, cmd, copy_into_flagitem_list(), rz_debug_t::cur, dbg, rz_core_t::dbg, eprintf, f, rz_analysis_t::fcns, fd, rz_core_t::flags, flags, foreach_pairs(), free(), test-lz4-versions::head, help_msg_at_at_at, i, rz_core_t::io, list(), map(), maps(), rz_debug_t::maps, rz_analysis_t::meta, n, rz_analysis_function_t::name, rz_bin_import_t::name, rz_reg_item_t::name, NULL, rz_core_t::num, obs, off, rz_core_t::offset, p, rz_debug_t::pid, reg, rz_analysis_function_linear_size(), rz_analysis_get_fcn_in(), rz_bin_cur_object(), rz_bin_get_imports(), rz_bin_get_strings(), rz_bin_get_symbols(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_core_block_size(), rz_core_cmd(), rz_core_cmd0(), rz_core_cmd_help(), rz_core_cmd_str(), rz_core_cmdf(), rz_core_reg_default(), rz_core_seek(), rz_flag_foreach_glob(), rz_interval_tree_foreach, rz_interval_tree_iter_get(), rz_io_fd_get_current(), rz_io_map_get_for_fd(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_mem_dup(), RZ_META_TYPE_COMMENT, RZ_NEW, rz_num_math(), rz_reg_get_list(), rz_reg_getv(), RZ_REG_TYPE_LAST, rz_str_glob(), rz_str_newf(), rz_str_trim_dup(), s, rz_bin_object_t::sections, rz_analysis_bb_t::size, rz_bin_symbol_t::size, rz_reg_item_t::size, start, rz_analysis_meta_item_t::str, strdup(), rz_debug_plugin_t::threads, rz_analysis_meta_item_t::type, rz_reg_item_t::type, ut64(), UT64_MAX, rz_bin_section_t::vaddr, rz_bin_symbol_t::vaddr, value, and rz_bin_section_t::vsize.
Referenced by rz_core_cmd_subst_i().
Definition at line 163 of file cmd.c.
References rz_print_t::flags, cmd_descs_generate::help, rz_core_t::print, rz_cons_cmd_help(), and RZ_PRINT_FLAGS_COLOR.
Referenced by __printPattern(), cmd_agraph_edge(), cmd_agraph_node(), cmd_analysis_esil(), cmd_analysis_graph(), cmd_dbg_map_jemalloc(), cmd_dcu(), cmd_debug_pid(), cmd_help_exclamation(), cmd_help_percent(), cmd_print_bars(), cmd_print_blocks(), cmd_print_format(), cmd_print_fromage(), cmd_print_gadget(), cmd_print_op(), cmd_print_pv(), do_analysis_search(), do_esil_search(), find_autocomplete(), helpCmdTasks(), print_format_help_help_help_help(), recursive_help_go(), rz_cmd_alias(), rz_cmd_analysis(), rz_cmd_debug(), rz_cmd_debug_continue_syscall(), rz_cmd_debug_continue_until(), rz_cmd_debug_dmi(), rz_cmd_help(), rz_cmd_kuery(), rz_cmd_macro(), rz_cmd_panels(), rz_cmd_print(), rz_cmd_remote(), rz_cmd_search(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_subst_i(), rz_core_debug_esil(), rz_core_debug_kill(), rz_core_hack_help(), rz_equal_g_handler_old(), rz_equal_h_handler_old(), and rz_equal_H_handler_old().
Definition at line 5562 of file cmd.c.
References cb, rz_cmd_macro_t::cb_printf, rz_cmd_macro_t::cmd, cmd, cmd_descriptor_init(), rz_core_t::cmd_descriptors, rz_core_t::cons, core_cmd0_wrapper(), DEPRECATED_DEFINE_CMD_DESCRIPTOR, DEPRECATED_DEFINE_CMD_DESCRIPTOR_SPECIAL, setup::description, free(), i, k, rz_cmd_t::macro, rz_cmd_t::nullcallback, rz_cmd_macro_t::num, rz_core_t::num, rz_core_t::rcmd, RZ_ARRAY_SIZE, rz_cmd_add(), rz_cmd_alias(), rz_cmd_analysis(), rz_cmd_debug(), rz_cmd_help(), rz_cmd_hexdump(), rz_cmd_kuery(), rz_cmd_macro(), rz_cmd_panels(), rz_cmd_print(), rz_cmd_search(), rz_cmd_set_data(), rz_cmd_visual(), rz_cons_printf(), rz_core_cmd_new(), rz_core_cmd_nullcallback(), rz_list_newf(), rzshell_cmddescs_init(), and rz_cmd_macro_t::user.
Referenced by rz_core_init().
Definition at line 216 of file cmd.c.
References addr, rz_core_t::blocksize, rz_cons_context_t::cmd_depth, rz_core_t::cons, rz_cons_t::context, rz_core_t::is_lastcmd, rz_core_t::lastcmd, rz_core_t::num, rz_core_t::offset, rz_core_cmd0(), rz_core_seek(), rz_core_seek_opcode(), rz_core_seek_to_register(), rz_num_math(), and ut64().
Referenced by DEFINE_HANDLE_TS_FCN(), rz_core_cmd_nullcallback(), rz_core_cmd_subst(), rz_interpret_handler(), and rz_repeat_forward_handler().
Definition at line 5336 of file cmd.c.
References tsr2cmd_state::core, core_cmd_tsrzcmd(), lines(), RZ_CMD_STATUS_OK, and status.
Referenced by run_commands(), rz_core_cmd_file(), and rz_core_run_script().
RZ_API RzCmdStatus rz_core_cmd_lines_rzshell | ( | RzCore * | core, |
const char * | lines | ||
) |
Definition at line 5332 of file cmd.c.
References tsr2cmd_state::core, core_cmd_tsrzcmd(), and lines().
Create an instance of RzCmd for the Rizin language.
Definition at line 5220 of file cmd.c.
References rz_cmd_t::language, map_ts_stmt_handlers, map_ts_symbols, entry::name, NULL, rz_cmd_new(), tree_sitter_rzcmd(), ts_language_symbol_for_name(), and rz_cmd_t::ts_symbols_ht.
Referenced by rz_core_cmd_init().
|
static |
Definition at line 265 of file cmd.c.
References rz_cons_context_t::breaked, rz_core_t::cmdrepeat, rz_core_t::cons, rz_cons_t::context, and rz_core_cmd_lastcmd_repeat().
Referenced by rz_core_cmd_init(), and rz_core_cmd_subst().
Definition at line 1058 of file cmd.c.
References close, COLOR_MODE_DISABLED, rz_core_t::config, dup, dup2, eprintf, free(), NULL, out, duplicate_flag_t::ret, rz_config_get_i(), rz_config_set_i(), rz_cons_flush(), rz_cons_grep_parsecmd(), rz_cons_is_interactive(), rz_cons_memcat(), rz_core_cmd(), rz_core_cmd_str(), rz_str_trim_head(), rz_sys_cmd_str_full(), rz_sys_execl(), rz_sys_fork(), rz_sys_pipe(), rz_sys_pipe_close(), rz_sys_signal(), si, and cmd_descs_generate::str.
Referenced by rz_core_cmd_subst_i().
Executes a rizin command and returns the raw stdout and its length.
Definition at line 5521 of file cmd.c.
References cmd, tsr2cmd_state::core, core_cmd_raw(), length, NULL, and rz_return_val_if_fail.
RZ_API RzCmdStatus rz_core_cmd_rzshell | ( | RzCore * | core, |
const char * | cstr, | ||
int | log | ||
) |
Definition at line 5324 of file cmd.c.
References tsr2cmd_state::core, and core_cmd_tsrzcmd().
Referenced by rz_core_bin_pdb_load(), and rz_core_cmd0_rzshell().
Executes a rizin command and returns the stdout as a string.
Definition at line 5513 of file cmd.c.
References cmd, tsr2cmd_state::core, core_cmd_raw(), NULL, and rz_return_val_if_fail.
Referenced by __handle_cmd_str_cache(), __init_menu_color_settings_layout(), __load_cmdf(), __print_stack_cb(), agraph_print(), cmd_pCd(), cmd_pCD(), cmd_pCx(), cmd_print_pv(), cmd_task_runner(), core_analysis_graph_label(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), disasm_strings(), do_handle_substitution_cmd(), execute_command(), readline_callback(), rz_cmd_debug(), rz_core_bind(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_pipe_old(), rz_core_cmd_str_pipe(), rz_core_cmd_strf(), rz_core_cmd_subst_i(), rz_core_disassemble_bytes(), rz_core_disassemble_instr(), rz_core_gadget_print(), rz_core_init(), rz_core_rtr_cmds(), rz_core_rtr_pushout(), rz_core_serve(), rz_core_visual_analysis_refresh(), rz_core_visual_analysis_refresh_column(), rz_core_visual_colors(), rz_core_visual_esil(), rz_interpret_handler(), set_prompt(), and visual_refresh().
Definition at line 5438 of file cmd.c.
References cmd, tsr2cmd_state::core, eprintf, free(), NULL, p, rz_cons_flush(), rz_cons_pipe_close(), rz_cons_pipe_open(), rz_cons_reset(), rz_core_cmd(), rz_core_cmd_str(), rz_file_exists(), rz_file_mkstemp(), rz_file_rm(), rz_file_slurp(), s, strdup(), and autogen_x86imm::tmp.
Referenced by do_handle_substitution_cmd(), rz_core_cmd_subst_i(), rz_core_rtr_http_run(), and rz_interpret_output_handler().
Definition at line 5472 of file cmd.c.
References tsr2cmd_state::core, rz_core_cmd_str(), and vsnprintf.
Referenced by __core_visual_view_graph_update(), core_analysis_graph_construct_nodes(), disasm_strings(), get_body(), graph_construct_nodes(), print_fcn_arg(), rz_analysis_function_xrefs_handler(), rz_analysis_xrefs_to_graph_cmd_handler(), rz_cmd_print(), rz_core_analysis_var_display(), rz_core_bin_fields_print(), rz_core_bind(), rz_core_print_bb_custom(), rz_core_run_script(), rz_core_visual_debugtraces(), rz_core_visual_view_rop(), rz_core_visual_xrefs(), and rz_resolve_jemalloc().
Definition at line 1197 of file cmd.c.
References rz_core_t::break_loop, cmd, rz_cons_context_t::cmd_depth, rz_core_t::cmdrepeat, rz_core_t::cmdtimes, rz_core_t::cons, rz_cons_t::context, rz_print_t::cur_enabled, rz_core_t::curtab, find_ch_after_macro(), free(), INTERACTIVE_MAX_REP, IS_DIGIT, is_macro_command(), rz_core_t::max_cmd_depth, NULL, rz_core_t::offset, PFMT64d, rz_core_t::print, rz_core_t::prompt_offset, duplicate_flag_t::ret, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_flush(), rz_cons_is_breaked(), rz_cons_is_interactive(), rz_cons_printf(), rz_cons_yesno(), rz_core_cmd0(), rz_core_cmd_lastcmd_repeat(), rz_core_cmd_nullcallback(), rz_core_cmd_subst_i(), rz_core_reg_update_flags(), rz_core_seek(), rz_str_startswith(), rz_str_trim_head_ro(), rz_str_trim_tail(), rz_core_t::seltab, strdup(), rz_core_t::tmpseek, and ut64().
Referenced by run_cmd_depth(), and rz_core_cmd_subst_i().
Definition at line 1404 of file cmd.c.
References addr, append, b, bits(), rz_core_t::blocksize, cmd, rz_core_t::cmd_in_backticks, COLOR_MODE_DISABLED, rz_core_t::config, d, rz_core_t::dbg, rz_io_t::desc, eprintf, f, fail, rz_io_desc_t::fd, find_ch_after_macro(), find_eoq(), findSeparator(), rz_core_t::fixedarch, rz_core_t::fixedbits, rz_core_t::fixedblock, rz_core_t::flags, free(), from, help_msg_at, help_msg_greater_sign, help_msg_vertical_bar, i, int, rz_core_t::io, IS_DIGIT, is_macro_command(), IS_WHITECHAR, IS_WHITESPACE, isalpha, k, len, setup::line, malloc(), n, NULL, rz_core_t::num, rz_core_t::offset, out, p, parse_tmp_evals(), PFMT64x, capstone::range, rz_core_t::rcmd, recursive_help(), duplicate_flag_t::ret, RZ_ABS, RZ_ARRAY_SIZE, rz_buf_new_with_bytes(), rz_buf_size(), rz_cmd_alias_get(), rz_cmd_alias_set(), rz_cmd_call(), rz_cmd_unescape_arg(), rz_config_get(), rz_config_get_i(), rz_config_set(), rz_config_set_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_flush(), rz_cons_grep_help(), rz_cons_grep_parsecmd(), rz_cons_grep_process(), rz_cons_grep_strip(), rz_cons_pipe_close(), rz_cons_pipe_open(), rz_cons_printf(), rz_cons_set_interactive(), rz_cons_set_last_interactive(), rz_core_block_read(), rz_core_block_size(), rz_core_cmd0(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_cmd_help(), rz_core_cmd_pipe_old(), rz_core_cmd_str(), rz_core_cmd_str_pipe(), rz_core_cmd_subst(), rz_core_cmdf(), rz_core_seek(), rz_core_seek_bb_instruction(), rz_core_seek_opcode(), rz_debug_reg_get(), rz_file_rm(), rz_file_slurp(), rz_file_temp(), rz_flag_get(), RZ_FREE, rz_hex_str2bin(), rz_io_desc_close(), rz_io_desc_size(), rz_io_map_new(), rz_io_open_buffer(), rz_io_system(), rz_io_use_fd(), rz_list_append(), rz_list_free(), rz_list_newf(), rz_num_math(), rz_num_tail(), RZ_PERM_RWX, rz_str_append(), rz_str_firstbut(), rz_str_lastbut(), rz_str_newf(), rz_str_prepend(), rz_str_replace(), rz_str_trim(), rz_str_trim_head(), rz_str_trim_head_ro(), rz_str_trim_nc(), rz_str_trim_tail(), rz_sys_cmdf(), rz_sys_setenv(), rz_write_ble32(), rz_write_ble64(), s, sc, rz_core_t::sdb, sdb_querys(), set_tmp_arch(), set_tmp_bits(), st64, cmd_descs_generate::str, strdup(), tick, tmpenvs_free(), rz_core_t::tmpseek, to, trim(), ut64(), UT64_MAX, v, rz_io_t::va, value, and rz_num_t::value.
Referenced by rz_core_cmd_subst().
Definition at line 5413 of file cmd.c.
References tsr2cmd_state::core, rz_core_cmd(), and vsnprintf.
Referenced by __calculator_cb(), __handle_console(), __writeValueCb(), _CbInRangeSearchV(), annotated_hexdump(), cmd_analysis_graph(), cmd_print_pv(), convert_dotcmd_to_image(), do_asm_search(), initialize_stack(), pr_bb(), rz_cmd_debug(), rz_cmd_disassembly_all_methods_class_handler(), rz_cmd_hexdump(), rz_cmd_print(), rz_cmd_search(), rz_core_analysis_esil_init_mem(), rz_core_bin_apply_sections(), rz_core_bind(), rz_core_cmd_foreach3(), rz_core_cmd_subst_i(), rz_core_esil_cmd(), rz_core_init(), rz_core_print_disasm(), rz_core_print_examine(), rz_core_rtr_http(), rz_core_types_link_print(), rz_core_visual_browse(), rz_core_visual_colors(), rz_core_visual_debugtraces(), rz_core_visual_define(), rz_core_visual_trackflags(), rz_main_rizin(), rz_pointer_handler(), rz_seek_search(), type_format_print(), type_format_print_hexstring(), type_format_print_value(), and type_format_print_variable().
Definition at line 5385 of file cmd.c.
References addr, b, cmd, tsr2cmd_state::core, free(), NULL, PFMT64x, rz_core_cmd_str(), and rz_str_newf().
Definition at line 5375 of file cmd.c.
References addr, cmd, tsr2cmd_state::core, free(), NULL, PFMT64x, rz_core_cmd_str(), and rz_str_newf().
Referenced by rz_analyze_cycles_handler().
Definition at line 5432 of file cmd.c.
References cmd, tsr2cmd_state::core, rz_cons_flush(), and rz_core_cmd().
Definition at line 634 of file cmd.c.
References free(), k, NULL, out, rz_core_t::sdb, and sdb_querys().
Referenced by rz_cmd_kuery(), and rz_core_types_calling_conventions_print().
RZ_API bool rz_core_run_script | ( | RzCore * | core, |
RZ_NONNULL const char * | file | ||
) |
Definition at line 457 of file cmd.c.
References rz_core_t::analysis, cmd, cmdstr, rz_core_t::config, eprintf, ext, free(), rz_core_t::lang, lang_run_file(), langFromHashbang(), name, NULL, out, p, duplicate_flag_t::ret, rz_config_get(), rz_config_set(), rz_core_cmd_file(), rz_core_cmd_lines(), rz_core_cmd_strf(), rz_core_editor(), rz_equal_H_handler_old(), rz_file_abspath(), rz_file_is_c(), rz_file_path(), rz_lang_get_by_extension(), rz_lang_use(), rz_list_pop(), rz_list_push(), RZ_LOG_WARN, rz_return_val_if_fail, rz_str_endswith(), rz_str_lchr(), rz_str_newf(), rz_sys_getenv(), rz_type_parse_file(), rz_core_t::scriptstack, strdup(), and rz_analysis_t::typedb.
Referenced by load_scripts_for(), run_commands(), rz_core_init(), rz_core_loadlibs(), rz_interpret_editor_2_handler(), rz_interpret_pipe_handler(), rz_interpret_script_handler(), and rz_main_rizin().
RZ_IPI RzCmdStatus rz_last_output_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 929 of file cmd.c.
References RZ_CMD_STATUS_OK, and rz_cons_last().
Referenced by rzshell_cmddescs_init().
Definition at line 624 of file cmd.c.
References setup::line, and RZ_LINE_BUFSIZE.
Referenced by rz_cmd_kuery().
Definition at line 614 of file cmd.c.
References setup::line, and RZ_LINE_BUFSIZE.
Referenced by rz_cmd_kuery().
Definition at line 5321 of file panels.c.
References __get_panel(), __get_panels_config_file_from_dir(), __init_panel_param(), __panel_all_clear(), __set_curnode(), __set_geometry(), __set_read_only(), __set_refresh_all(), __show_status(), rz_json_t::children, cmd, config_path(), eprintf, free(), h, help_msg_panels, rz_json_t::key, rz_panels_t::n_panels, rz_json_t::next, NULL, rz_json_t::num, p, rz_core_t::panels, rz_core_visual_append_help(), rz_file_slurp(), RZ_JSON_ARRAY, rz_json_free(), RZ_JSON_INTEGER, RZ_JSON_OBJECT, rz_json_parse(), RZ_JSON_STRING, rz_str_dup(), rz_str_endswith(), rz_str_newf(), rz_strbuf_drain(), rz_strbuf_new(), rz_json_t::str_value, autogen_x86imm::tmp, rz_json_t::type, w, and x.
Referenced by __load_layout_saved_cb(), __panels_process(), rz_cmd_panels(), and rz_core_visual_panels_root().
RZ_IPI RzCmdStatus rz_pointer_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 911 of file cmd.c.
References argv, duplicate_flag_t::ret, RZ_CMD_STATUS_WRONG_ARGS, rz_core_cmdf(), and rz_str_startswith().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_push_escaped_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 903 of file cmd.c.
References argv, bool2status(), free(), input(), len, rz_cons_readpush(), rz_str_array_join(), and rz_str_unescape().
Referenced by rzshell_cmddescs_init().
Definition at line 5270 of file panels.c.
References __create_panels_config_path(), __get_panel(), __init_menu_saved_layout(), __show_status(), __show_status_input(), __update_menu(), rz_panel_model_t::cmd, config_path(), fd, benchmark::FILE, free(), rz_panel_pos_t::h, i, rz_panel_t::model, rz_panels_t::n_panels, rz_core_t::panels, pj_a(), pj_drain(), pj_end(), pj_kn(), pj_ks(), pj_new(), pj_o(), rz_panel_view_t::pos, RZ_STR_ISEMPTY, rz_sys_fopen(), rz_panel_model_t::title, rz_panel_t::view, rz_panel_pos_t::w, rz_panel_pos_t::x, and rz_panel_pos_t::y.
Referenced by __save_layout_cb(), and rz_cmd_panels().
Definition at line 1385 of file cmd.c.
References arch, rz_core_t::config, rz_core_t::fixedarch, rz_config_get(), rz_config_set(), rz_return_val_if_fail, and strdup().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and rz_core_cmd_subst_i().
Definition at line 1393 of file cmd.c.
References bits(), rz_core_t::config, rz_core_t::fixedbits, rz_config_get(), rz_config_get_i(), rz_config_set_i(), rz_return_val_if_fail, and strdup().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and rz_core_cmd_subst_i().
|
static |
Definition at line 3577 of file cmd.c.
References args, free_tsr2cmd_edit(), handle_substitution_args(), is_handled_args(), rz_list_free(), rz_list_newf(), and substitute_args_do().
Referenced by ts_node_handle_arg_prargs().
|
static |
Definition at line 3561 of file cmd.c.
References apply_edits(), root, ts_node_has_error(), ts_node_named_child(), ts_tree_delete(), and ts_tree_root_node().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and substitute_args().
|
static |
Definition at line 3538 of file cmd.c.
References free(), rz_pvector_pop(), and ts_tree_delete().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and ts_node_handle_arg_prargs().
|
static |
Definition at line 3552 of file cmd.c.
References command, RZ_LOG_DEBUG, rz_pvector_push(), and ts_node_sub_string().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), and ts_node_handle_arg_prargs().
|
static |
Definition at line 3228 of file cmd.c.
References argv, rz_subprocess_opt_t::file, input(), length, NULL, output, proc, RZ_LOG_ERROR, rz_subprocess_fini(), rz_subprocess_free(), rz_subprocess_init(), rz_subprocess_out(), RZ_SUBPROCESS_PIPE_CREATE, RZ_SUBPROCESS_PIPE_NONE, RZ_SUBPROCESS_PIPE_STDOUT, rz_subprocess_start_opt(), rz_subprocess_stdin_write(), rz_subprocess_wait(), stdin_pipe, stdout_pipe, and UT64_MAX.
Referenced by core_cmd_pipe().
|
static |
Definition at line 1380 of file cmd.c.
References free(), NULL, and rz_sys_setenv().
Referenced by rz_core_cmd_subst_i().
TSLanguage* tree_sitter_rzcmd | ( | ) |
Definition at line 28912 of file parser.c.
References ALIAS_COUNT, EXTERNAL_TOKEN_COUNT, FIELD_COUNT, LANGUAGE_VERSION, LARGE_STATE_COUNT, MAX_ALIAS_SEQUENCE_LENGTH, PRODUCTION_ID_COUNT, STATE_COUNT, SYMBOL_COUNT, TOKEN_COUNT, tree_sitter_rzcmd_external_scanner_create(), tree_sitter_rzcmd_external_scanner_deserialize(), tree_sitter_rzcmd_external_scanner_destroy(), tree_sitter_rzcmd_external_scanner_scan(), tree_sitter_rzcmd_external_scanner_serialize(), ts_alias_sequences, ts_external_scanner_states, ts_external_scanner_symbol_map, ts_field_map_entries, ts_field_map_slices, ts_field_names, ts_lex(), ts_lex_modes, ts_non_terminal_alias_map, ts_parse_actions, ts_parse_table, ts_small_parse_table, ts_small_parse_table_map, ts_symbol_map, ts_symbol_metadata, ts_symbol_names, and TSLanguage::version.
Referenced by rz_core_cmd_new().
|
static |
Definition at line 3610 of file cmd.c.
References a, command, rz_cmd_parsed_args_argstr(), rz_cmd_parsed_args_free(), cmd_descs_generate::str, and ts_node_handle_arg_prargs().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL().
|
static |
Definition at line 3589 of file cmd.c.
References command, err, NULL, ok, parse_args(), RZ_LOG_ERROR, substitute_args(), substitute_args_fini(), substitute_args_init(), and ts_node_named_child().
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), iter_offsets_common(), and ts_node_handle_arg().
Definition at line 3183 of file cmd.c.
References test_evm::end, rz_str_newf(), start, ts_node_start_byte(), and TS_START_END.
Referenced by create_cmd_edit(), and do_handle_substitution_cmd().
Definition at line 3177 of file cmd.c.
References test_evm::end, rz_str_newf(), start, and TS_START_END.
Referenced by DEFINE_HANDLE_TS_FCN(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_handle_ts_unescape_arg(), handle_ts_stmt(), and substitute_args_init().
|
static |
Definition at line 84 of file cmd.c.
Referenced by rz_cmd_alias().
|
static |
Definition at line 105 of file cmd.c.
Referenced by rz_cmd_kuery().
|
static |
Definition at line 154 of file cmd.c.
Referenced by rz_cmd_panels().
|
static |
Definition at line 144 of file cmd.c.
Referenced by rz_core_cmd_subst_i().
struct ts_data_symbol_map map_ts_stmt_handlers[] |
Definition at line 5138 of file cmd.c.
Referenced by rz_core_cmd_new().
struct ts_data_symbol_map map_ts_symbols[] |
Definition at line 5138 of file cmd.c.
Referenced by rz_core_cmd_new().