Rizin
unix-like reverse engineering framework and cli tools
|
#include <string.h>
#include <rz_core.h>
#include <rz_util.h>
#include "../core_private.h"
#include <rz_asm.h>
#include <rz_util/rz_print.h>
#include <rz_util/rz_strbuf.h>
Go to the source code of this file.
Macros | |
#define | MAX_FORMAT 3 |
#define | NEWTYPE(x, y) rz_mem_dup(&(y), sizeof(x)); |
#define | lastPrintMode 6 |
#define | CASE_RGB(x, X, y) |
Enumerations | |
enum | { RZ_BYTE_DATA = 1 , RZ_WORD_DATA = 2 , RZ_DWORD_DATA = 4 , RZ_QWORD_DATA = 8 } |
enum | { SORT_NONE , SORT_NAME , SORT_OFFSET } |
Variables | |
static int | level = 0 |
static st64 | delta = 0 |
static int | option = 0 |
static int | variable_option = 0 |
static int | printMode = 0 |
static bool | selectPanel = false |
static const char * | printCmds [lastPrintMode] |
static const char * | help_fun_visual [] |
static const char * | help_var_visual [] |
static const char * | help_vv_visual [] |
static const char * | help_vv_actions_visual [] |
#define NEWTYPE | ( | x, | |
y | |||
) | rz_mem_dup(&(y), sizeof(x)); |
|
static |
Definition at line 2713 of file vmenus.c.
References msg, NULL, rz_cons_fgets(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_line_set_prompt(), and strdup().
Referenced by addVar().
Definition at line 2725 of file vmenus.c.
References __prompt(), cmd, free(), msg, NULL, rz_core_cmd0(), rz_str_newf(), rz_str_trim(), src, and type.
Referenced by rz_core_visual_analysis().
|
static |
Definition at line 981 of file vmenus.c.
References PFMT64x, rz_analysis_class_base_get_all(), rz_analysis_class_method_get_all(), rz_analysis_class_vtable_get_all(), rz_cons_printf(), rz_vector_foreach, rz_vector_free(), and ut64().
Referenced by show_analysis_classes().
|
static |
Convert the string visual_inputing to RzPVector, with WHITESPACE as separators.
visual_inputing |
Definition at line 2214 of file vmenus.c.
References free(), i, IS_WHITESPACE, NULL, RZ_FREE, rz_pvector_new(), rz_pvector_push(), rz_return_val_if_fail, rz_str_appendch(), rz_str_new(), and rz_str_trim_dup().
Referenced by rz_core_visual_analysis(), and var_functions_show().
Definition at line 1931 of file vmenus.c.
References rz_core_t::config, free(), rz_config_node_t::i_value, NULL, rz_config_node_get(), rz_config_node_is_bool(), rz_config_set(), rz_config_set_i(), rz_cons_fgets(), rz_cons_flush(), rz_cons_printf(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_core_editor(), rz_line_set_prompt(), rz_str_dup(), and rz_config_node_t::value.
Referenced by rz_core_visual_config().
Definition at line 1921 of file vmenus.c.
References rz_core_t::config, delta, rz_config_get_i(), rz_config_node_get(), rz_config_node_is_int(), and rz_config_set_i().
Referenced by rz_core_visual_config().
Definition at line 3107 of file vmenus.c.
References rz_core_t::analysis, rz_core_t::blocksize, i, off, rz_meta_del(), rz_meta_set(), RZ_META_TYPE_ANY, RZ_META_TYPE_DATA, times, and type.
Referenced by rz_core_visual_define().
Filter the functions in visual analysis mode (helper of command f)
core | |
filter_fcn | store the filtered functions |
Definition at line 2250 of file vmenus.c.
References rz_core_t::analysis, rz_analysis_t::fcns, rz_analysis_function_t::name, num, rz_list_append(), rz_pvector_foreach, and rz_return_val_if_fail.
Referenced by rz_core_visual_analysis(), and var_functions_show().
Definition at line 1192 of file vmenus.c.
References a, b, and rz_flag_item_t::name.
Referenced by sort_flags().
Definition at line 1198 of file vmenus.c.
References a, b, and rz_flag_item_t::offset.
Referenced by sort_flags().
Definition at line 2156 of file vmenus.c.
References addr, rz_analysis_function_t::addr, rz_core_t::analysis, rz_analysis_t::fcns, rz_core_t::flags, free(), rz_analysis_function_t::name, rz_analysis_function_size_from_entry(), rz_flag_set(), rz_flag_unset_name(), and strdup().
Referenced by rz_core_visual_analysis().
|
static |
Definition at line 3122 of file vmenus.c.
References rz_core_t::analysis, bits(), i, lines(), NULL, rz_core_t::offset, rz_analysis_hint_set_bits(), rz_cons_fgets(), rz_cons_fill_line(), rz_cons_flush(), rz_cons_printf(), RZ_EMPTY, rz_line_set_prompt(), and rz_str_trim().
Referenced by rz_core_visual_define().
|
static |
Definition at line 530 of file vmenus.c.
References list(), rz_flag_item_t::name, rz_flag_item_t::offset, PFMT64x, rz_list_append(), rz_str_newf(), and s.
Referenced by rz_core_visual_hudstuff().
Definition at line 3118 of file vmenus.c.
Referenced by rz_core_visual_define().
|
static |
Definition at line 1226 of file vmenus.c.
References setup::line, and rz_str_newf().
Referenced by rz_core_visual_view_rop().
Definition at line 30 of file vmenus.c.
References cmd, rz_line_t::contents, free(), rz_cons_t::line, setup::line, NULL, rz_cons_fgets(), rz_cons_show_cursor(), rz_cons_singleton(), RZ_FREE, rz_line_set_prompt(), cmd_descs_generate::str, and strdup().
Referenced by __break_points_cb(), __handle_console(), __input_cb(), __insert_value(), __panel_prompt(), __rtr_shell(), __update_prompt_color(), add_comment(), rz_cons_hud(), rz_core_fgets(), rz_core_visual_classes(), rz_core_visual_config(), rz_lang_prompt(), rz_line_readline_cb(), rz_line_set_prompt(), set_prompt(), and visual_prompt().
Definition at line 2739 of file vmenus.c.
References addr, rz_analysis_function_t::addr, addVar(), rz_core_t::analysis, capture_filter_keywords(), rz_core_t::config, rz_core_t::cons, delta, eprintf, rz_cons_t::event_data, rz_cons_t::event_resize, rz_analysis_t::fcns, filter_function(), function_rename(), help_vv_actions_visual, help_vv_visual, i, input(), IS_PRINTABLE, lastPrintMode, level, n, NULL, rz_core_t::offset, option, printMode, rz_analysis_fcn_del(), rz_analysis_fcn_del_locs(), rz_config_get_i(), rz_config_set_i(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_flush(), rz_cons_get_size(), rz_cons_printf(), rz_cons_println(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_singleton(), rz_core_analysis_function_add(), rz_core_analysis_function_signature_editor(), rz_core_analysis_undefine(), rz_core_cmd0(), rz_core_seek(), rz_core_theme_nextpal(), rz_core_visual_analysis_refresh(), rz_core_visual_analysis_refresh_oneshot(), rz_core_visual_append_help(), rz_core_visual_define(), rz_core_visual_offset(), rz_core_visual_prompt(), rz_core_visual_showcursor(), rz_core_visual_xrefs(), RZ_FREE, RZ_FREE_CUSTOM, rz_line_set_prompt(), rz_list_length(), rz_pvector_free(), rz_str_appendch(), rz_str_new(), rz_strbuf_drain(), rz_strbuf_new(), SEEK_SET, selectPanel, rz_cons_t::show_vals, type, ut64(), variable_option, variable_rename(), variable_set_type(), rz_core_t::visual_inputing, and rz_core_t::visual_is_inputing.
Referenced by rz_core_visual_browse(), rz_core_visual_cmd(), and rz_core_visual_graph().
Definition at line 1077 of file vmenus.c.
References rz_core_t::analysis, cleanup(), command, rz_core_t::config, list(), ls_free(), NULL, rz_analysis_class_get_all(), rz_config_toggle(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_flush(), rz_cons_get_size(), rz_cons_message(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_visual_flush(), rz_core_cmd(), rz_line_set_prompt(), and show_analysis_classes().
Referenced by rz_core_visual_browse().
Definition at line 2516 of file vmenus.c.
References addr, color, Color_RESET, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, free(), h, help_fun_visual, help_var_visual, level, rz_core_t::offset, out, output, rz_cons_context_t::pal, PFMT64x, printCmds, printMode, rz_cons_printable_palette_t::prompt, rz_config_get_i(), rz_cons_clear00(), rz_cons_column(), rz_cons_flush(), rz_cons_get_size(), rz_cons_printf(), rz_cons_singleton(), rz_cons_strcat(), rz_core_cmd_str(), rz_core_visual_analysis_refresh_column(), rz_core_vmenu_append_help(), RZ_FREE, rz_str_ansi_crop(), rz_strbuf_drain(), rz_strbuf_new(), rz_warn_if_reached, selectPanel, sprintf, ut64(), var_functions_show(), var_variables_show(), variable_option, rz_core_t::visual_inputing, and rz_core_t::visual_is_inputing.
Referenced by rz_core_visual_analysis(), and rz_core_visual_analysis_refresh_oneshot().
Definition at line 2435 of file vmenus.c.
References addr, cmd, delta, free(), h, lastPrintMode, level, rz_core_t::offset, out, output, PFMT64x, printCmds, printMode, rz_cons_get_size(), rz_cons_printf(), rz_core_cmd_str(), RZ_FREE, rz_str_ansi_crop(), rz_str_newf(), ut64(), var_functions_show(), and w.
Referenced by rz_core_visual_analysis_refresh().
|
static |
Definition at line 2618 of file vmenus.c.
References rz_core_task_enqueue_oneshot(), rz_core_visual_analysis_refresh(), and rz_core_t::tasks.
Referenced by rz_core_visual_analysis().
Definition at line 234 of file vmenus.c.
References analop(), rz_core_t::analysis, rz_asm_op_t::asm_toks, bit, rz_core_t::block, rz_core_t::blocksize, rz_cons_printable_palette_t::btext, rz_asm_op_t::buf_asm, cmd, Color_RESET, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, rz_print_t::cur, rz_print_t::flags, free(), i, IS_PRINTABLE, setup::line, memcpy(), memset(), NULL, rz_core_t::num, num, rz_core_t::offset, rz_cons_context_t::pal, PFMT64x, pos, rz_core_t::print, rz_core_t::rasm, rz_analysis_t::reg, rotate_nibble(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, rz_asm_colorize_asm_str(), rz_asm_disassemble(), rz_asm_get_parse_param(), rz_asm_op_get_hex(), RZ_BIT_CHK, RZ_BIT_SET, RZ_BIT_UNSET, rz_config_get_b(), rz_config_get_i(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_flush(), rz_cons_newline(), rz_cons_pal_random(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_visual_flush(), rz_core_cmd(), rz_core_theme_nextpal(), rz_core_write_at(), rz_line_readline(), rz_line_set_prompt(), RZ_MAX, RZ_MIN, rz_num_math(), RZ_PRINT_FLAGS_COLOR, rz_print_hexpair(), rz_strbuf_free(), rz_strbuf_get(), rz_asm_op_t::size, ut64(), and x.
Referenced by rz_core_visual_browse(), and rz_core_visual_define().
Definition at line 786 of file vmenus.c.
References rz_core_t::bin, cmd, rz_core_t::config, free(), len, list(), NULL, num, rz_core_t::offset, prompt(), rz_bin_get_classes(), rz_config_toggle(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_flush(), rz_cons_get_size(), rz_cons_message(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_visual_flush(), rz_core_analysis_function_add(), rz_core_cmd(), rz_core_cmd0(), rz_core_seek(), rz_core_visual_hudclasses(), RZ_FREE, rz_line_set_prompt(), rz_list_length(), rz_str_appendf(), rz_str_newf(), show_class(), rz_bin_symbol_t::vaddr, and rz_bin_field_t::vaddr.
Referenced by rz_core_visual_browse().
Definition at line 3615 of file vmenus.c.
References rcolor_t::a, ALPHA_FG, ALPHA_FGBG, rcolor_t::b, rcolor_t::b2, calloc(), CASE_RGB, color, Color_BGBLUE, Color_BGGREEN, Color_BGRED, Color_BLUE, Color_GREEN, rz_cons_context_t::color_mode, COLOR_MODE_16M, Color_RED, Color_RESET, rz_cons_t::context, free(), rcolor_t::g, rcolor_t::g2, h, k, NULL, rcolor_t::r, rcolor_t::r2, rcolor, rz_cons_arrow_to_hjkl(), rz_cons_clear(), rz_cons_fgets(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_newline(), rz_cons_pal_get_i(), rz_cons_pal_get_name(), rz_cons_pal_len(), rz_cons_pal_random(), rz_cons_printf(), rz_cons_readchar(), rz_cons_rgb_str(), rz_cons_show_cursor(), rz_cons_singleton(), rz_core_cmd_str(), rz_core_cmdf(), rz_core_theme_get(), rz_core_theme_nextpal(), rz_line_set_prompt(), rz_num_rand(), rz_str_ansi_crop(), rz_str_appendf(), sprintf, and w.
Referenced by rz_core_visual_cmd().
Definition at line 1793 of file vmenus.c.
References addr, rz_core_t::analysis, cmd, free(), from, i, MAX_FORMAT, rz_analysis_t::meta, NULL, p, PFMT64x, rz_core_t::printidx, rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear00(), rz_cons_flush(), rz_cons_newline(), rz_cons_printf(), rz_cons_readchar(), rz_cons_strcat(), rz_cons_visual_flush(), rz_core_cmd(), rz_core_seek_and_save(), RZ_FREE, rz_interval_tree_foreach, rz_interval_tree_iter_get(), rz_meta_del(), RZ_META_TYPE_ANY, RZ_META_TYPE_COMMENT, sprintf, rz_interval_node_t::start, cmd_descs_generate::str, rz_analysis_meta_item_t::str, strdup(), rz_analysis_meta_item_t::type, and ut64().
Referenced by rz_core_visual_browse().
Definition at line 1984 of file vmenus.c.
References cmd, rz_core_t::config, config_visual_hit(), config_visual_hit_i(), delta, desc, rz_config_node_t::desc, free(), hit(), i, rz_config_node_t::name, rz_config_t::nodes, NULL, option, prompt(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear00(), rz_cons_flush(), rz_cons_get_size(), rz_cons_newline(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_visual_flush(), rz_core_cmd(), rz_core_help_vars_print(), rz_core_visual_config_hud(), rz_str_ccmp(), rz_str_ccpy(), show_config_options(), and rz_config_node_t::value.
Referenced by rz_core_visual_browse(), and rz_core_visual_cmd().
Definition at line 572 of file vmenus.c.
References cmd, rz_core_t::config, eprintf, free(), list(), rz_config_node_t::name, rz_config_t::nodes, NULL, p, rz_config_get(), rz_config_set(), rz_cons_fgets(), rz_cons_hud(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_line_set_prompt(), rz_list_append(), rz_list_free(), rz_list_new(), rz_str_newf(), and rz_config_node_t::value.
Referenced by rz_core_visual_config().
Definition at line 2634 of file vmenus.c.
References rz_core_t::config, delta, free(), i, input(), level, NULL, rz_core_t::offset, PFMT64x, rz_config_get_i(), rz_config_set_i(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_printf(), rz_cons_readchar(), rz_cons_visual_flush(), rz_core_cmd0(), rz_core_cmd_strf(), rz_core_cmdf(), rz_core_debug_ri(), rz_core_seek(), rz_core_visual(), rz_core_visual_debugtraces_help(), rz_core_visual_prompt(), rz_num_get(), ut64(), and rz_core_t::vmode.
Referenced by rz_core_visual_browse().
|
static |
Definition at line 2622 of file vmenus.c.
References NULL, rz_cons_any_key(), rz_cons_clear00(), rz_cons_flush(), and rz_cons_printf().
Referenced by rz_core_visual_debugtraces().
Definition at line 3149 of file vmenus.c.
References addr, rz_analysis_function_t::addr, rz_core_t::analysis, args, rz_core_t::block, rz_core_t::blocksize, cmd, rz_print_t::cur, rz_print_t::cur_enabled, define_data_ntimes(), delta, eprintf, f, rz_core_t::flags, free(), h, handleHints(), i, IS_DIGIT, isDisasmPrint(), lines(), malloc(), mask, msg, N, n, name, rz_analysis_function_t::name, rz_analysis_var_t::name, rz_flag_item_t::name, NULL, rz_core_t::num, rz_print_t::ocur, off, rz_core_t::offset, op, p, PFMT64d, PFMT64x, rz_core_t::print, rz_core_t::printidx, repeat(), RZ_ABS, rz_analysis_function_resize(), rz_analysis_get_fcn_in(), rz_analysis_get_function_at(), rz_analysis_get_used_function_var(), rz_analysis_hint_set_immbase(), rz_analysis_op(), rz_analysis_op_fini(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_ALL, RZ_ANALYSIS_OP_MASK_BASIC, rz_analysis_var_rename(), RZ_BYTE_DATA, rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_clear(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_fill_line(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_input(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_core_analysis_fcn_merge(), rz_core_analysis_function_add(), rz_core_analysis_function_rename(), rz_core_analysis_function_signature_editor(), rz_core_analysis_op(), rz_core_analysis_undefine(), rz_core_cmd0(), rz_core_cmdf(), rz_core_visual_asm(), rz_core_visual_bit_editor(), RZ_DWORD_DATA, rz_flag_get_i(), rz_flag_item_set_color(), rz_flag_rename(), rz_flag_set(), rz_line_set_prompt(), rz_meta_del(), rz_meta_set(), RZ_META_TYPE_ANY, RZ_META_TYPE_CODE, RZ_META_TYPE_DATA, RZ_META_TYPE_STRING, rz_name_filter(), rz_num_base_of_string(), rz_num_math(), RZ_QWORD_DATA, rz_str_lchr(), rz_str_newf(), rz_str_nlen_w(), rz_sys_cmdf(), RZ_WORD_DATA, sdb_fmt(), rz_flag_item_t::size, cmd_descs_generate::str, strdup(), ut64(), and UT64_MAX.
Referenced by __panels_process(), rz_core_visual_analysis(), rz_core_visual_cmd(), and rz_core_visual_graph().
Definition at line 89 of file vmenus.c.
References analop(), rz_analysis_esil_t::analysis, rz_core_t::analysis, rz_asm_op_t::asm_toks, rz_core_t::block, rz_core_t::blocksize, rz_asm_op_t::buf_asm, cmd, Color_RESET, rz_core_t::config, eprintf, expr(), free(), memcpy(), NULL, rz_core_t::offset, pad(), rz_core_t::print, r, rz_core_t::rasm, rz_analysis_t::reg, rz_analysis_esil_free(), rz_analysis_esil_new(), rz_analysis_esil_runword(), rz_analysis_esil_set_pc(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ESIL, rz_asm_colorize_asm_str(), rz_asm_disassemble(), rz_asm_get_parse_param(), rz_asm_op_get_hex(), rz_config_get_i(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_flush(), rz_cons_newline(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_visual_flush(), rz_core_cmd0(), rz_core_cmd_str(), rz_core_esil_dumpstack(), rz_line_set_prompt(), RZ_MIN, rz_print_hexpair(), rz_str_ndup(), rz_str_pad(), rz_strbuf_free(), rz_strbuf_get(), rz_sys_sleep(), rz_sys_usleep(), showreg(), strdup(), ut64(), wordpos(), and x.
Referenced by rz_core_visual_browse().
Definition at line 494 of file vmenus.c.
References addr, rz_core_t::bin, c, classes(), f, free(), list(), regress::m, NULL, p, PFMT64x, rz_bin_get_classes(), rz_cons_hud(), rz_core_seek(), rz_list_append(), rz_list_free(), rz_list_new(), rz_num_get(), rz_str_newf(), and ut64().
Referenced by rz_core_visual_classes().
Definition at line 539 of file vmenus.c.
References addr, rz_core_t::analysis, rz_core_t::flags, free(), hudstuff_append(), list(), rz_analysis_t::meta, mi, NULL, p, PFMT64x, rz_cons_hud(), rz_core_seek(), rz_flag_foreach(), rz_interval_tree_foreach, rz_interval_tree_iter_get(), rz_list_free(), rz_list_new(), rz_list_push(), RZ_META_TYPE_COMMENT, rz_num_get(), rz_str_newf(), s, start, and ut64().
Referenced by __hudstuff(), rz_core_visual_browse(), rz_core_visual_cmd(), rz_core_visual_graph(), rz_core_visual_trackflags(), and rz_core_visual_view_graph().
Definition at line 1485 of file vmenus.c.
References addr, rz_core_t::blocksize, cmd, Color_INVERT, Color_RESET, rz_core_t::config, delta, eprintf, rz_core_t::flags, hit(), i, len, setup::line, MAX_FORMAT, rz_flag_item_t::name, NULL, rz_core_t::num, rz_flag_item_t::offset, option, PFMT64d, PFMT64x, rz_core_t::printidx, rz_config_get_i(), rz_config_toggle(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_flush(), rz_cons_get_size(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_visual_flush(), rz_core_analysis_function_add(), rz_core_block_size(), rz_core_cmd(), rz_core_cmd0(), rz_core_cmdf(), rz_core_seek_and_save(), rz_core_visual_hudstuff(), rz_flag_all_list(), rz_flag_unset_name(), rz_line_set_prompt(), rz_list_free(), rz_num_math(), rz_sys_sleep(), s, rz_flag_item_t::size, snprintf, sort_flags(), SORT_NAME, SORT_NONE, SORT_OFFSET, and ut64().
Referenced by rz_core_visual_browse(), and rz_core_visual_graph().
Definition at line 1232 of file vmenus.c.
References addr, rz_core_t::analysis, rz_asm_t::bits, cmd, count, delta, eprintf, rz_print_t::flags, free(), setup::line, msg, n, NULL, rz_core_t::num, off, rz_core_t::offset, output, PFMT64x, rz_core_t::print, print_rop(), rz_core_t::rasm, rz_core_t::ropchain, rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_strcat(), rz_cons_strcat_at(), rz_core_cmd(), rz_core_cmd0(), rz_core_cmd_strf(), rz_core_seek(), rz_core_yank_hexpair(), RZ_FREE, rz_line_readline(), rz_line_set_prompt(), rz_list_free(), rz_list_pop(), rz_list_push(), rz_meta_get_string(), rz_meta_set_string(), RZ_META_TYPE_COMMENT, rz_num_get(), rz_num_math(), RZ_PRINT_FLAGS_COLOR, rz_read_be32(), rz_read_be64(), rz_str_dup(), rz_str_newf(), rz_str_replace_char(), rz_str_split_list(), rz_str_trim_head_ro(), rz_str_widget_list(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_new(), sb, sp, strdup(), ut64(), and UT64_MAX.
Referenced by rz_core_visual_browse().
Definition at line 2502 of file vmenus.c.
References rz_cons_printable_palette_t::args, rz_cons_context_t::color_mode, rz_cons_t::context, cmd_descs_generate::help, rz_cons_printable_palette_t::help, i, p, rz_cons_context_t::pal, rz_cons_printable_palette_t::reset, rz_cons_singleton(), and rz_strbuf_appendf().
Referenced by rz_core_visual_analysis_refresh().
|
static |
Definition at line 1028 of file vmenus.c.
References rz_core_t::analysis, analysis_class_print(), Color_GREEN, Color_RESET, Color_YELLOW, rz_core_t::config, i, setup::idx, list(), ls_foreach, NULL, rz_config_get_i(), rz_cons_printf(), sdbkv_key(), and skip().
Referenced by rz_core_visual_analysis_classes().
|
static |
Definition at line 613 of file vmenus.c.
References c, Color_BLUE, Color_GREEN, Color_RESET, Color_YELLOW, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, eprintf, f, rz_bin_class_t::fields, found, i, setup::idx, list(), regress::m, rz_bin_class_t::methods, rz_bin_class_t::name, NULL, rz_cons_printable_palette_t::offset, rz_cons_context_t::pal, PFMT64x, rz_config_get_i(), rz_cons_printf(), rz_core_bin_method_flags_str(), RZ_FREE, rz_str_casestr(), rz_str_startswith(), skip(), and strdup().
Referenced by rz_core_visual_classes().
Definition at line 1962 of file vmenus.c.
References rz_core_t::config, free(), h, rz_config_node_t::options, rz_config_node_get(), rz_cons_get_size(), rz_cons_println(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_length(), rz_strbuf_new(), s, sb, and w.
Referenced by rz_core_visual_config().
|
static |
Definition at line 83 of file vmenus.c.
References desc, PFMT64x, rz_cons_printf(), and ut64().
Referenced by rz_core_visual_esil().
Definition at line 1210 of file vmenus.c.
References flag_name_sort(), flag_offset_sort(), rz_list_sort(), SORT_NAME, SORT_NONE, and SORT_OFFSET.
Referenced by rz_core_visual_trackflags().
Definition at line 2275 of file vmenus.c.
References addr, rz_analysis_function_t::addr, rz_core_t::analysis, capture_filter_keywords(), color, Color_RESET, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, rz_analysis_t::fcns, filter_function(), rz_cons_printable_palette_t::fname, i, setup::idx, rz_analysis_function_t::name, NULL, rz_cons_printable_palette_t::offset, rz_core_t::offset, rz_cons_context_t::pal, PFMT64d, PFMT64x, rz_analysis_function_realsize(), rz_config_get_i(), rz_cons_get_size(), rz_cons_printf(), rz_cons_println(), rz_cons_singleton(), rz_free, RZ_FREE_CUSTOM, rz_list_free(), rz_list_newf(), rz_pvector_free(), rz_str_ansi_crop(), rz_str_ansi_len(), rz_str_newf(), seek(), autogen_x86imm::tmp, ut64(), and rz_core_t::visual_inputing.
Referenced by rz_core_visual_analysis_refresh(), rz_core_visual_analysis_refresh_column(), and var_variables_show().
Definition at line 2355 of file vmenus.c.
References addr, rz_core_t::analysis, rz_analysis_var_t::delta, eprintf, free(), i, setup::idx, rz_analysis_var_t::kind, list(), rz_analysis_var_t::name, rz_reg_t::name, r, rz_analysis_t::reg, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_get_fcn_in(), rz_analysis_var_all_list(), rz_cons_get_size(), rz_cons_newline(), rz_cons_printf(), rz_list_free(), rz_list_length(), rz_reg_index_get(), RZ_REG_NAME_BP, rz_type_as_string(), rz_analysis_var_t::type, rz_analysis_t::typedb, ut64(), and var_functions_show().
Referenced by rz_core_visual_analysis_refresh().
Definition at line 2171 of file vmenus.c.
References addr, rz_core_t::analysis, i, list(), rz_analysis_var_t::name, rz_core_t::offset, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_get_fcn_in(), rz_analysis_var_all_list(), rz_core_analysis_var_rename(), rz_core_seek(), rz_list_free(), and ut64().
Referenced by rz_core_visual_analysis().
Definition at line 2191 of file vmenus.c.
References addr, rz_core_t::analysis, list(), NULL, rz_type_db_t::parser, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_get_fcn_in(), rz_analysis_var_all_list(), rz_analysis_var_set_type(), rz_list_free(), rz_type_parse_string_single(), type, and rz_analysis_t::typedb.
Referenced by rz_core_visual_analysis().
|
static |
Definition at line 2425 of file vmenus.c.
Referenced by __core_analysis_fcn(), __cursor_up(), __print_stack_cb(), _pointer_table(), adapt_bias(), analop(), analysis_fill_reg_disp_mem(), analysis_function_vars_getsetref(), anop32(), arc_buffer_read_memory(), arm_opcode_cond(), backtrace_vars(), config_visual_hit_i(), core_analysis_var_list_show(), cris_buffer_read_memory(), cursor_nextrow(), cursor_prevrow(), dcpu16_disasm(), decode_bcond(), ds_print_fcn_name(), ds_print_lines_left(), ds_print_meta_infos(), ds_print_offset(), ds_show_functions_argvar(), encode_var_int(), extract_arg(), file_resize(), findPair(), fixup_tests(), gdbr_read_memory_page(), get_backtrace_info(), get_main(), get_main_offset_arm_glibc_thumb(), get_main_offset_mips(), get_ptr_at(), get_reg_at(), get_relocs(), get_stack_var(), graphNodeMove(), hit(), hppa_buffer_read_memory(), io_map_add(), io_map_new(), iterate_rebase_list(), lanai_buffer_read_memory(), LZ4_renormDictT(), LZ4HC_Insert(), main_print_var(), map_p2v(), mips_buffer_read_memory(), mk_reg_str(), mount_oldstr(), num_callback(), oploop(), parse_import_stub(), parseMetadata(), prevOpcode(), print_insn_args(), print_item(), rcc_context(), rebase_buffer(), rebase_bytes_v2(), rebase_bytes_v3(), replace_cmd_kv(), resize_helper(), rz_analysis_aefa(), rz_analysis_block_get_op_addr_in(), rz_analysis_extract_rarg(), rz_analysis_function_describe_offset_handler(), rz_analysis_function_get_var(), rz_analysis_function_get_var_reg_at(), rz_analysis_function_get_var_stackptr_at(), rz_analysis_function_relocate(), rz_analysis_function_set_var(), rz_analysis_function_vars_bp_getref_handler(), rz_analysis_function_vars_bp_handler(), rz_analysis_function_vars_bp_setref_handler(), rz_analysis_function_vars_regs_getref_handler(), rz_analysis_function_vars_regs_handler(), rz_analysis_function_vars_regs_setref_handler(), rz_analysis_function_vars_sp_getref_handler(), rz_analysis_function_vars_sp_handler(), rz_analysis_function_vars_sp_setref_handler(), rz_analysis_op_reg_delta(), rz_bin_mdmp_init_directory(), rz_bin_object_v2p(), rz_bin_te_get_main_paddr(), rz_bp_traptrace_at(), rz_bp_traptrace_next(), rz_cmd_analysis(), rz_cmd_debug_add_bp_module_handler(), rz_cmd_print(), rz_config_visual_hit_i(), rz_cons_lastline(), rz_core_analysis_function_delete_var(), rz_core_analysis_op(), rz_core_disasm_pdi_with_buf(), rz_core_file_resize_delta(), rz_core_magic_at(), rz_core_print_hexdump_byline_str(), rz_core_reg_print_diff(), rz_core_search_cb(), rz_core_search_rop(), rz_core_seek_delta(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_analysis_refresh_column(), rz_core_visual_cmd(), rz_core_visual_config(), rz_core_visual_debugtraces(), rz_core_visual_define(), rz_core_visual_jump(), rz_core_visual_title(), rz_core_visual_trackflags(), rz_core_visual_view_rop(), rz_debug_thread_list(), rz_egg_mkvar(), rz_io_map_add(), rz_io_map_add_batch(), rz_io_map_get_paddr(), rz_io_map_new(), rz_io_v2p(), rz_print_hexdump_str(), rz_print_json_human(), rz_print_json_indent(), rz_print_offset(), rz_print_offset_sg(), rz_punycode_encode(), rz_reg_get_at(), rz_resize_insert_handler(), rz_resize_remove_handler(), rz_seek_blocksize_backward_handler(), rz_seek_blocksize_forward_handler(), rz_seek_delta_handler(), rz_serialize_analysis_var_load(), rz_socket_write(), rz_str_replace_thunked(), selection_widget_select(), socket_http_answer(), sp_blocking_read(), sp_blocking_write(), sparc_buffer_read_memory(), spp_proc_eval(), subs_var_string(), subvar(), tricore_buffer_read_memory(), update(), uv__idna_toascii_label(), and vax_buffer_read_memory().
|
static |
Definition at line 2464 of file vmenus.c.
Referenced by rz_core_visual_analysis_refresh().
|
static |
Definition at line 2472 of file vmenus.c.
Referenced by rz_core_visual_analysis_refresh().
|
static |
Definition at line 2496 of file vmenus.c.
Referenced by rz_core_visual_analysis().
|
static |
Definition at line 2479 of file vmenus.c.
Referenced by rz_core_visual_analysis().
|
static |
Definition at line 2424 of file vmenus.c.
Referenced by add_spaces(), BMK_setNotificationLevel(), compress2(), def(), deflateInit2_(), deflateInit_(), deflateParams(), DotZLib.Deflater::Deflater(), do_rd_expr(), file_check_mem(), DotZLib.GZipStream::GZipStream(), gzscan(), gzsetparams(), LLVMFuzzerTestOneInput(), LZ4F_compressBlock(), LZ4F_compressBlock_continue(), LZ4F_compressBlockHC(), LZ4F_compressBlockHC_continue(), LZ4F_initStream(), LZ4F_makeBlock(), LZ4F_selectCompression(), LZ4IO_setNotificationLevel(), LZMA_API(), main(), ozstream::open(), ozstream::ozstream(), print_message(), rcc_mathop(), rd_expr(), rd_expr_and(), rd_expr_equal(), rd_expr_or(), rd_expr_shift(), rd_expr_unequal(), rd_expr_xor(), rd_factor(), rd_label(), rd_term(), rd_value(), rz_assert_log(), rz_core_debug_continue_until(), rz_core_visual_analysis(), rz_core_visual_analysis_refresh(), rz_core_visual_analysis_refresh_column(), rz_core_visual_debugtraces(), rz_log(), rz_log_set_level(), rz_log_set_traplevel(), rz_skiplist_node_new(), rz_vlog(), symbols_from_stubs(), unzOpenCurrentFile2(), unzOpenCurrentFile3(), xrefs_graph(), zipOpenNewFileInZip(), zipOpenNewFileInZip2(), zipOpenNewFileInZip2_64(), zipOpenNewFileInZip3(), zipOpenNewFileInZip3_64(), zipOpenNewFileInZip4(), zipOpenNewFileInZip4_64(), and zipOpenNewFileInZip64().
Definition at line 2426 of file vmenus.c.
Referenced by config_print_node(), find_e_opts(), print_node_options(), rz_core_visual_analysis(), rz_core_visual_config(), rz_core_visual_trackflags(), and vle_option().
|
static |
Definition at line 2431 of file vmenus.c.
Referenced by rz_core_visual_analysis_refresh(), and rz_core_visual_analysis_refresh_column().
|
static |
Definition at line 2428 of file vmenus.c.
Referenced by rz_core_visual_analysis(), rz_core_visual_analysis_refresh(), and rz_core_visual_analysis_refresh_column().
Definition at line 2429 of file vmenus.c.
Referenced by rz_core_visual_analysis(), and rz_core_visual_analysis_refresh().
|
static |
Definition at line 2427 of file vmenus.c.
Referenced by rz_core_visual_analysis(), and rz_core_visual_analysis_refresh().