Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_cons.h>
#include <rz_windows.h>
#include "../core_private.h"
#include "visual_tabs.inc"
Go to the source code of this file.
Classes | |
struct | Snow |
Macros | |
#define | NPF 5 |
#define | PIDX (RZ_ABS(core->printidx % NPF)) |
#define | KEY_ALTQ 0xc5 |
#define | CMD_REGISTERS "?== true `e cfg.debug`; ?! dr=; ?? ar=" |
#define | CMD_REGISTERS_REFS "?== true `e cfg.debug`; ?! drr; ?? arr" |
#define | PRINT_HEX_FORMATS 10 |
#define | PRINT_3_FORMATS 2 |
#define | PRINT_4_FORMATS 7 |
#define | PRINT_5_FORMATS 8 |
#define | USE_THREADS 1 |
#define | OPDELTA 32 |
#define | I core->cons |
#define | I core->cons |
Variables | |
static int | obs = 0 |
static int | blocksize = 0 |
static bool | autoblocksize = true |
static int | disMode = 0 |
static int | hexMode = 0 |
static int | printMode = 0 |
static int | color = 1 |
static int | debug = 1 |
static int | zoom = 0 |
static const char * | printfmtSingle [NPF] |
static const char * | printfmtColumns [NPF] |
static int | currentFormat = 0 |
static int | current0format = 0 |
static const char * | printHexFormats [PRINT_HEX_FORMATS] |
static int | current3format = 0 |
static const char * | print3Formats [PRINT_3_FORMATS] |
static int | current4format = 0 |
static const char * | print4Formats [PRINT_4_FORMATS] |
static int | current5format = 0 |
static const char * | print5Formats [PRINT_5_FORMATS] |
static const char * | help_visual [] |
static const char * | help_msg_visual [] |
static const char * | help_msg_visual_fn [] |
static bool | splitView = false |
static ut64 | splitPtr = UT64_MAX |
static bool | __ime = false |
static int | __nib = -1 |
static char | numbuf [32] = { 0 } |
static int | numbuf_i = 0 |
#define I core->cons |
#define I core->cons |
Definition at line 261 of file visual.c.
References rz_core_t::config, rz_core_t::io, map(), maps(), rz_core_t::offset, p, rz_core_t::print, rz_config_get_i(), rz_core_seek_and_save(), rz_io_map_get(), rz_io_maps(), rz_itv_begin(), rz_itv_end(), rz_pvector_at(), rz_pvector_empty(), rz_pvector_len(), ut64(), and rz_io_t::va.
Referenced by rz_core_visual_cmd(), and rz_core_visual_offset().
Definition at line 246 of file visual.c.
References rz_core_t::config, free(), PIDX, printfmtColumns, printfmtSingle, rz_config_get_i(), rz_list_get_n(), rz_str_new(), stackPrintCommand(), rz_core_t::stkcmd, rz_core_visual_t::tab, rz_core_visual_t::tabs, and rz_core_t::visual.
Referenced by rz_core_visual_cmd(), rz_core_visual_title(), and visual_refresh().
Definition at line 678 of file visual.c.
References regress::m, rz_cons_t::mouse, rz_cons_enable_mouse(), and rz_cons_singleton().
Referenced by rz_core_visual_cmd(), rz_core_visual_prompt_input(), and visual_comma().
Definition at line 1277 of file visual.c.
References addr, rz_core_t::analysis, NULL, prompt(), rz_cons_enable_mouse(), rz_cons_fgets(), rz_cons_flush(), rz_cons_set_raw(), rz_core_meta_append(), rz_core_meta_editor(), rz_core_visual_showcursor(), rz_line_set_prompt(), rz_meta_del(), and RZ_META_TYPE_COMMENT.
Referenced by rz_core_visual_cmd(), and rz_core_visual_xrefs().
|
static |
Definition at line 684 of file visual.c.
References addr, rz_core_t::blocksize, rz_print_t::cur, rz_print_t::cur_enabled, rz_print_t::ocur, rz_core_t::offset, rz_core_t::print, rz_core_block_size(), and rz_core_seek().
Referenced by rz_core_visual_prompt_input().
Definition at line 2224 of file visual.c.
References addr, rz_core_t::config, rz_core_t::io, map(), rz_config_get_b(), rz_io_map_get(), and RZ_PERM_W.
Referenced by rz_core_visual_cmd().
Definition at line 1875 of file visual.c.
References rz_print_t::cur, cursor_ocur(), PIDX, rz_core_t::print, and rz_core_t::seltab.
Referenced by rz_core_visual_cmd().
Definition at line 1704 of file visual.c.
References rz_core_t::block, rz_core_t::blocksize, rz_core_t::config, cursor_ocur(), rz_core_t::dbg, delta, nextOpcode(), rz_core_t::offset, op, p, PIDX, rz_core_t::print, rz_core_t::rasm, rz_debug_t::regcols, rz_asm_disassemble(), rz_config_get(), rz_config_get_i(), rz_config_set_i(), RZ_CORE_VISUAL_MODE_DB, RZ_MAX, RZ_MIN, rz_print_row_at_off(), rz_print_rowoff(), rz_core_t::seltab, splitPtr, splitView, UT32_MAX, and w.
Referenced by insert_mode_enabled(), and rz_core_visual_cmd().
Definition at line 1673 of file visual.c.
References p, and rz_core_t::print.
Referenced by cursor_left(), cursor_nextrow(), cursor_prevrow(), and cursor_right().
Definition at line 1784 of file visual.c.
References rz_core_t::block, rz_core_t::config, cursor_ocur(), rz_core_t::dbg, delta, rz_core_t::offset, op, p, PIDX, prevop_addr(), prevOpcode(), rz_core_t::print, rz_core_t::rasm, rz_debug_t::regcols, rz_asm_disassemble(), rz_config_get(), rz_config_get_i(), rz_config_set_i(), rz_core_seek(), RZ_CORE_VISUAL_MODE_DB, RZ_MAX, RZ_MIN, rz_print_row_at_off(), rz_print_rowoff(), rz_core_t::seltab, splitPtr, splitView, UT32_MAX, ut64(), and w.
Referenced by insert_mode_enabled(), and rz_core_visual_cmd().
Definition at line 1886 of file visual.c.
References rz_print_t::cur, cursor_ocur(), PIDX, rz_core_t::print, and rz_core_t::seltab.
Referenced by rz_core_visual_cmd().
|
static |
Definition at line 1203 of file visual.c.
References command, f, rz_core_t::flags, free(), setup::line, NULL, off, rz_core_seek_undo_t::offset, PFMT64x, rz_flag_get_at(), RZ_LINE_BUFSIZE, rz_str_newf(), and ut64().
Referenced by rz_line_hist_offset_down(), and rz_line_hist_offset_up().
|
static |
Definition at line 946 of file visual.c.
References rz_core_t::block, rz_core_t::blocksize, rz_print_t::cur, rz_print_t::cur_enabled, d, i, rz_print_t::ocur, rz_core_t::offset, rz_core_t::print, rz_core_seek_and_save(), and rz_core_visual_showcursor().
Referenced by rz_core_visual_cmd().
|
static |
Definition at line 904 of file visual.c.
References rz_core_t::block, rz_core_t::blocksize, rz_print_t::cur, d, delta, i, int, keys, len, NULL, rz_print_t::ocur, p, rz_core_t::print, rz_core_visual_showcursor(), rz_mem_mem(), and RZ_MIN.
Referenced by rz_core_visual_cmd().
|
static |
Definition at line 978 of file visual.c.
References rz_core_t::block, rz_print_t::cur, rz_print_t::cur_enabled, i, isSpace(), rz_print_t::ocur, rz_core_t::print, and rz_core_visual_showcursor().
Referenced by rz_core_visual_cmd().
Definition at line 1897 of file visual.c.
References rz_core_t::block, rz_core_t::cons, rz_print_t::cur, rz_print_t::cur_enabled, if(), isDisasmPrint(), rz_core_t::offset, op, p, rz_core_t::print, rz_core_t::printidx, rz_core_t::rasm, reset_print_cur(), rz_cons_t::rows, rz_asm_disassemble(), rz_core_seek(), rz_core_seek_delta(), rz_core_visual_prevopsz(), RZ_MAX, and rz_print_t::screen_bounds.
Referenced by rz_core_visual().
|
static |
Definition at line 3850 of file visual.c.
References STDIN_FILENO, and TCIFLUSH.
Referenced by rz_core_visual().
Definition at line 1299 of file visual.c.
References addr, rz_print_t::cur, rz_print_t::cur_enabled, rz_analysis_ref_t::from, rz_core_t::print, rz_core_seek_and_save(), rz_list_get_n(), rz_analysis_ref_t::to, and ut64().
Referenced by rz_core_visual_xrefs().
char* getcommapath | ( | RzCore * | core | ) |
Definition at line 1607 of file visual.c.
References rz_core_t::config, test-lz4-speed::cwd, free(), rz_config_get(), rz_file_abspath(), rz_str_newf(), RZ_SYS_DIR, and rz_sys_getdir().
Referenced by rz_comment_filelink_handler(), and visual_comma().
Definition at line 1957 of file visual.c.
References __ime, __nib, rz_print_t::col, rz_print_t::cur, cursor_nextrow(), cursor_prevrow(), IS_PRINTABLE, KEY_ALTQ, rz_core_t::offset, rz_core_t::print, rz_cons_arrow_to_hjkl(), rz_cons_less_str(), rz_cons_readchar(), rz_core_file_resize_delta(), rz_core_write_at(), rz_core_write_hexpair(), RZ_MAX, and ut8.
Referenced by rz_core_visual().
Definition at line 3846 of file visual.c.
Referenced by rz_core_visual().
Definition at line 1669 of file visual.c.
References RZ_CORE_VISUAL_MODE_DB, and RZ_CORE_VISUAL_MODE_PD.
Referenced by fix_cursor(), and rz_core_visual_cmd().
Definition at line 2190 of file visual.c.
References rz_print_t::cur_enabled, and rz_core_t::print.
Referenced by rz_core_visual_cmd().
|
static |
|
static |
Definition at line 1682 of file visual.c.
References rz_print_t::cur, rz_core_t::offset, p, rz_core_t::print, rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, rz_core_analysis_op(), and rz_analysis_op_t::size.
Referenced by cursor_nextrow().
|
static |
Definition at line 215 of file visual.c.
References current0format, currentFormat, and PRINT_HEX_FORMATS.
Referenced by rz_core_visual_cmd().
|
inlinestatic |
Definition at line 463 of file visual.c.
References printFormat().
Referenced by rz_core_visual_cmd().
|
static |
Definition at line 2203 of file visual.c.
References numbuf, and numbuf_i.
Referenced by rz_core_visual_cmd().
|
static |
Definition at line 2211 of file visual.c.
References numbuf, and numbuf_i.
Referenced by rz_core_visual_cmd().
Definition at line 1111 of file visual.c.
References addr, rz_core_t::analysis, rz_core_t::config, i, rz_core_t::io, len, op, OPDELTA, rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_MAX_OP_SIZE, RZ_ANALYSIS_ARCHINFO_MIN_OP_SIZE, rz_analysis_block_get_op_addr_in(), rz_analysis_find_most_relevant_block_in(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, rz_config_get_i(), rz_core_flag_in_middle(), rz_io_read_at(), ut64(), and UT64_MAX.
Referenced by cursor_prevrow(), rz_core_prevop_addr(), rz_core_prevop_addr_force(), and rz_core_visual_prevopsz().
|
static |
Definition at line 1693 of file visual.c.
References addr, rz_print_t::cur, delta, rz_core_t::offset, p, rz_core_t::print, rz_core_prevop_addr(), and ut64().
Referenced by cursor_prevrow().
|
static |
Definition at line 221 of file visual.c.
References current0format, and currentFormat.
Referenced by rz_core_visual_cmd().
|
inlinestatic |
Definition at line 467 of file visual.c.
References printFormat().
Referenced by rz_core_visual_cmd().
Definition at line 430 of file visual.c.
References current3format, current4format, current5format, currentFormat, disMode, hexMode, print3Formats, print4Formats, print5Formats, PRINT_3_FORMATS, PRINT_4_FORMATS, PRINT_5_FORMATS, PRINT_HEX_FORMATS, printfmtSingle, printHexFormats, rz_core_t::printidx, rotateAsmemu(), RZ_ABS, rz_core_visual_applyDisMode(), rz_core_visual_applyHexMode(), RZ_CORE_VISUAL_MODE_CD, RZ_CORE_VISUAL_MODE_DB, RZ_CORE_VISUAL_MODE_OV, RZ_CORE_VISUAL_MODE_PD, and RZ_CORE_VISUAL_MODE_PX.
Referenced by nextPrintFormat(), and prevPrintFormat().
Definition at line 662 of file visual.c.
References buflen, NULL, p, rz_cons_fgets(), rz_core_visual_showcursor(), and rz_line_set_prompt().
Referenced by rz_core_visual_cmd(), and setdiff().
|
static |
Definition at line 673 of file visual.c.
References p.
Referenced by fix_cursor(), restore_current_addr(), rz_core_visual_cmd(), and rz_core_visual_offset().
|
static |
Definition at line 701 of file visual.c.
References addr, rz_print_t::cur, rz_print_t::cur_enabled, rz_print_t::ocur, rz_core_t::offset, rz_core_t::print, reset_print_cur(), rz_core_block_size(), rz_core_seek(), and rz_print_t::screen_bounds.
Referenced by rz_core_visual_prompt_input().
|
static |
Definition at line 386 of file visual.c.
References rz_core_t::analysis, rz_analysis_hint_t::bits, bits(), rz_core_t::config, rz_asm_t::cur, rz_core_t::offset, rz_core_t::rasm, rz_analysis_hint_free(), rz_analysis_hint_get(), rz_analysis_hint_set_bits(), and rz_config_get_i().
Referenced by rz_core_visual_cmd().
Definition at line 405 of file visual.c.
References rz_core_t::config, rz_config_get_b(), and rz_config_set().
Referenced by printFormat(), and rz_core_visual_cmd().
Definition at line 1173 of file visual.c.
References rz_core_t::analysis, i, prevop_addr(), rz_analysis_block_get_op_addr_in(), rz_analysis_find_most_relevant_block_in(), and UT64_MAX.
Referenced by __cursor_up(), prevOpcode(), rz_cmd_disassembly_n_instrs_as_text_json_handler(), rz_cmd_search(), rz_cmd_sizes_of_n_instructions_handler(), rz_core_handle_backwards_disasm(), and rz_core_seek_opcode_backward().
Definition at line 1195 of file visual.c.
References i, and prevop_addr().
Referenced by rz_cmd_disassembly_n_instrs_as_text_json_handler(), rz_cmd_search(), rz_cmd_sizes_of_n_instructions_handler(), rz_core_handle_backwards_disasm(), and rz_core_seek_opcode_backward().
Definition at line 3541 of file visual.c.
References Color_INVERT, Color_RESET, rz_core_t::config, rz_core_t::flags, free(), from, h, i, rz_core_t::num, rz_core_t::offset, PFMT64x, RZ_BETWEEN, rz_config_get_b(), rz_config_get_i(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_printf(), rz_cons_strcat(), rz_core_print_scrollbar_bottom(), rz_flag_zone_barlist(), rz_list_free(), rz_list_pop_head(), rz_num_math(), rz_str_newf(), s, to, ut64(), UT64_MAX, and w.
Referenced by agraph_refresh(), and visual_refresh().
Definition at line 3608 of file visual.c.
References Color_INVERT, Color_RESET, rz_core_t::config, rz_core_t::flags, free(), from, h, i, rz_core_t::num, rz_core_t::offset, PFMT64x, RZ_BETWEEN, rz_config_get_b(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_printf(), rz_cons_strcat(), rz_flag_zone_barlist(), rz_list_free(), rz_list_pop_head(), rz_num_math(), rz_str_newf(), s, to, ut64(), UT64_MAX, and w.
Referenced by rz_core_print_scrollbar().
Definition at line 3856 of file visual.c.
References autoblocksize, rz_core_t::blocksize, cmd, CMD_REGISTERS, CMD_REGISTERS_REFS, color, Color_RESET, rz_core_t::config, rz_core_t::cons, rz_print_t::cur_enabled, debug, delta, eprintf, rz_cons_t::event_data, rz_cons_t::event_resize, fix_cursor(), rz_print_t::flags, flags, flush_stdin(), free(), I, input(), insert_mode_enabled(), is_mintty(), IS_PRINTABLE, len, NULL, rz_core_t::num, obs, rz_core_t::print, printfmtSingle, rz_core_t::printidx, reg, RZ_ABS, rz_config_get(), rz_config_get_b(), rz_config_get_i(), rz_config_set_i(), rz_cons_clear00(), rz_cons_enable_mouse(), rz_cons_get_size(), rz_cons_is_breaked(), rz_cons_readchar(), rz_cons_readpush(), rz_cons_set_cup(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_cons_singleton(), rz_cons_strcat(), rz_core_block_size(), rz_core_cmd0(), rz_core_reg_update_flags(), rz_core_seek(), rz_core_visual_cmd(), RZ_CORE_VISUAL_MODE_DB, rz_core_visual_show_char(), rz_num_math(), RZ_PRINT_FLAGS_ADDRMOD, RZ_PRINT_FLAGS_COLOR, RZ_PRINT_FLAGS_HEADER, rz_print_set_flags(), rz_str_newf(), rz_strf, RZ_VIRT_TERM_MODE_COMPLETE, skip(), splitPtr, stackPrintCommand(), rz_cons_t::teefile, ut64(), UT64_MAX, rz_print_t::vflush, visual_refresh(), visual_refresh_oneshot(), and rz_core_t::vmode.
Referenced by rz_cmd_visual(), rz_core_visual_debugtraces(), and rz_core_visual_panels_root().
Definition at line 532 of file visual.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(), RZ_MAX, and rz_strbuf_appendf().
Referenced by __update_help(), rz_core_visual_analysis(), rz_load_panels_layout(), and visual_help().
Definition at line 174 of file visual.c.
References rz_core_t::config, currentFormat, disMode, RZ_ABS, and rz_config_set().
Referenced by __rotate_disasm_cb(), and printFormat().
Definition at line 84 of file visual.c.
References rz_core_t::config, currentFormat, hexMode, PRINT_HEX_FORMATS, RZ_ABS, and rz_config_set().
Referenced by __rotate_hexdump_cb(), and printFormat().
Definition at line 2067 of file visual.c.
References input(), NULL, rz_cons_arrow_to_hjkl(), rz_cons_clear00(), rz_cons_flush(), rz_cons_printf(), rz_cons_readchar(), rz_core_cmd0(), rz_core_cmdf(), rz_core_visual_analysis(), rz_core_visual_analysis_classes(), rz_core_visual_bit_editor(), rz_core_visual_classes(), rz_core_visual_comments(), rz_core_visual_config(), rz_core_visual_debugtraces(), rz_core_visual_esil(), rz_core_visual_hudstuff(), rz_core_visual_prompt_input(), rz_core_visual_trackflags(), rz_core_visual_view_graph(), rz_core_visual_view_rop(), and rz_core_visual_xrefs().
Referenced by __panels_process(), rz_core_visual_cmd(), and rz_core_visual_graph().
Definition at line 2232 of file visual.c.
References __core_visual_gogo(), __core_visual_print_command(), __holdMouseState(), __ime, add_comment(), addr, rz_analysis_function_t::addr, rz_core_t::analysis, autoblocksize, rz_analysis_function_t::bbs, rz_core_t::bin, rz_core_t::block, rz_core_t::blocksize, canWrite(), cmd, rz_print_t::col, color, rz_print_t::cols, rz_core_t::config, rz_print_t::cur, rz_print_t::cur_enabled, cursor_left(), cursor_nextrow(), cursor_prevrow(), cursor_right(), rz_core_t::curtab, rz_core_t::dbg, delta, eprintf, f, findNextWord(), findPair(), findPrevWord(), rz_core_t::flags, free(), from, h, I, i, if(), rz_core_t::io, isdigit, isDisasmPrint(), isNumber(), KEY_ALTQ, map(), maps(), max, min, n, name, nextPrintCommand(), nextPrintFormat(), NULL, rz_core_t::num, numbuf_append(), numbuf_i, numbuf_pull(), obs, rz_print_t::ocur, off, rz_core_t::offset, op, p, rz_core_t::panels_root, PFMT64x, PIDX, prevPrintCommand(), prevPrintFormat(), rz_core_t::print, printfmtSingle, rz_core_t::printidx, prompt_read(), capstone::range, rz_core_t::rasm, reset_print_cur(), rotateAsmBits(), rotateAsmemu(), RZ_ABS, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_function_delete_label(), rz_analysis_function_set_label(), rz_analysis_get_fcn_in(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CCALL, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_JMP, rz_asm_disassemble(), rz_bin_cur_object(), rz_bin_get_section_at(), rz_config_get(), rz_config_get_b(), rz_config_get_i(), rz_config_set(), rz_config_set_i(), rz_config_toggle(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear(), rz_cons_clear00(), RZ_CONS_CLEAR_LINE, rz_cons_enable_mouse(), rz_cons_fgets(), rz_cons_flush(), rz_cons_get_click(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_message(), rz_cons_pal_random(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_singleton(), rz_cons_strcat(), rz_core_analysis_op(), rz_core_analysis_set_reg(), rz_core_block_read(), rz_core_block_size(), rz_core_cmd(), rz_core_cmd0(), rz_core_debug_breakpoint_toggle(), rz_core_debug_single_step_in(), rz_core_debug_single_step_over(), rz_core_dump(), rz_core_reg_set_by_role_or_name(), rz_core_seek(), rz_core_seek_and_save(), rz_core_seek_delta(), rz_core_seek_next(), rz_core_seek_prev(), rz_core_theme_nextpal(), rz_core_visual_analysis(), rz_core_visual_asm(), rz_core_visual_browse(), rz_core_visual_colors(), rz_core_visual_config(), rz_core_visual_define(), rz_core_visual_disasm_down(), rz_core_visual_disasm_up(), rz_core_visual_graph(), rz_core_visual_hud(), rz_core_visual_hudstuff(), rz_core_visual_jump(), rz_core_visual_mark(), rz_core_visual_mark_del(), rz_core_visual_mark_dump(), rz_core_visual_mark_seek(), RZ_CORE_VISUAL_MODE_DB, RZ_CORE_VISUAL_MODE_PD, rz_core_visual_offset(), rz_core_visual_panels_root(), rz_core_visual_prompt_input(), rz_core_visual_seek_animation(), rz_core_visual_seek_animation_redo(), rz_core_visual_seek_animation_undo(), rz_core_visual_showcursor(), rz_core_visual_toggle_decompiler_disasm(), rz_core_visual_toggle_hints(), rz_core_visual_xrefs(), rz_core_yank(), rz_core_yank_paste(), rz_debug_reg_get(), rz_file_slurp(), rz_flag_set(), rz_flag_unset_name(), rz_flag_unset_off(), RZ_FREE, rz_io_maps(), rz_io_write_at(), rz_line_readline(), rz_line_set_prompt(), RZ_MAX, rz_meta_get_at(), RZ_META_TYPE_DATA, RZ_META_TYPE_STRING, RZ_MIN, rz_num_get(), rz_num_math(), rz_pvector_pop(), rz_pvector_push_front(), rz_str_trim(), s, rz_print_t::screen_bounds, rz_core_t::seltab, setcursor(), setdiff(), setprintmode(), snprintf, splitPtr, splitView, sprintf, st64, strdup(), rz_core_visual_t::tabs, times, ut64(), UT64_MAX, rz_io_t::va, rz_core_t::visual, visual_comma(), visual_help(), visual_nkey(), visual_refresh(), visual_search(), w, x, and rz_core_t::yank_buf.
Referenced by rz_core_visual().
Definition at line 3806 of file visual.c.
References rz_core_t::block, rz_core_t::config, rz_core_t::offset, rz_core_t::rasm, rz_asm_disassemble(), rz_asm_set_pc(), rz_config_get_b(), rz_config_get_i(), rz_core_bb_starts_in_middle(), and rz_core_flag_in_middle().
Referenced by __direction_disassembly_cb(), and rz_core_visual_cmd().
Definition at line 3802 of file visual.c.
References rz_core_t::offset, and rz_core_visual_prevopsz().
Referenced by __direction_disassembly_cb(), and rz_core_visual_cmd().
Definition at line 471 of file visual.c.
References c, rz_cons_context_t::color_mode, rz_core_t::config, rz_cons_t::context, f, rz_print_t::flags, free(), NULL, p, rz_core_t::print, rz_config_get(), rz_cons_clear(), rz_cons_flush(), rz_cons_hud_file(), rz_cons_message(), rz_cons_println(), rz_cons_singleton(), rz_core_cmd0(), rz_core_visual_showcursor(), rz_file_exists(), rz_file_path_join(), RZ_HUD, rz_path_home_prefix(), rz_path_system(), and RZ_PRINT_FLAGS_COLOR.
Referenced by __panels_process(), and rz_core_visual_cmd().
Definition at line 514 of file visual.c.
References rz_print_t::cur, rz_print_t::cur_enabled, delta, off, rz_core_t::offset, rz_core_t::print, RZ_ABS, rz_core_block_read(), rz_core_get_asmqjmps(), rz_core_visual_seek_animation(), st64, ut64(), and UT64_MAX.
Referenced by __panels_process(), and rz_core_visual_cmd().
Definition at line 1247 of file visual.c.
References __core_visual_gogo(), addr, rz_core_t::cons, rz_cons_t::line, NULL, rz_core_t::num, rz_core_t::print, rz_line_t::prompt_type, reset_print_cur(), rz_cons_fgets(), rz_core_seek_and_save(), rz_core_seek_base(), rz_line_hist_cmd_down(), rz_line_hist_cmd_up(), rz_line_hist_offset_down(), rz_line_hist_offset_up(), RZ_LINE_PROMPT_DEFAULT, RZ_LINE_PROMPT_OFFSET, rz_line_set_hist_callback(), rz_line_set_prompt(), rz_num_math(), and ut64().
Referenced by __panels_process(), rz_core_visual_analysis(), and rz_core_visual_cmd().
Definition at line 1272 of file visual.c.
References addr, prevop_addr(), and ut64().
Referenced by __fix_cursor_up(), fix_cursor(), and rz_core_visual_disasm_up().
Definition at line 756 of file visual.c.
References Color_RESET, rz_core_t::config, NULL, PIDX, rz_config_get_b(), rz_cons_clear00(), rz_cons_echo(), rz_cons_fgets(), rz_cons_flush(), rz_core_cmd(), rz_core_reg_update_flags(), rz_core_visual_showcursor(), rz_line_hist_add(), rz_line_set_prompt(), and rz_core_t::seltab.
Referenced by rz_core_visual_analysis(), rz_core_visual_debugtraces(), and rz_core_visual_prompt_input().
Definition at line 733 of file visual.c.
References __holdMouseState(), addr, backup_current_addr(), rz_core_t::config, h, restore_current_addr(), rz_config_get_b(), rz_cons_enable_mouse(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_reset_colors(), rz_cons_show_cursor(), rz_core_visual_prompt(), ut64(), and rz_core_t::vmode.
Referenced by __handlePrompt(), __panels_process(), __rz_shell_cb(), rz_core_visual_browse(), rz_core_visual_cmd(), rz_core_visual_graph(), and rz_core_visual_xrefs().
Definition at line 1077 of file visual.c.
References addr, rz_core_seek_and_save(), and visual_seek_animation().
Referenced by rz_core_visual_cmd(), and rz_core_visual_jump().
Definition at line 1082 of file visual.c.
References rz_core_t::offset, rz_core_seek_redo(), and visual_seek_animation().
Referenced by __redo_seek(), and rz_core_visual_cmd().
Definition at line 1088 of file visual.c.
References rz_core_t::offset, rz_core_seek_undo(), and visual_seek_animation().
Referenced by __undo_seek(), and rz_core_visual_cmd().
Definition at line 1041 of file visual.c.
References rz_core_t::config, IS_PRINTABLE, rz_config_get_i(), rz_cons_flush(), rz_cons_gotoxy(), rz_cons_printf(), and rz_sys_sleep().
Referenced by rz_core_visual().
Definition at line 420 of file visual.c.
References rz_core_t::config, rz_config_get_b(), rz_cons_enable_mouse(), rz_cons_flush(), rz_cons_show_cursor(), rz_core_t::vmode, and x.
Referenced by __panels_process(), add_comment(), findNextWord(), findPair(), findPrevWord(), prompt_read(), rz_core_visual_analysis(), rz_core_visual_cmd(), rz_core_visual_hud(), rz_core_visual_prompt(), and visual_search().
Definition at line 3287 of file visual.c.
References __core_visual_print_command(), __ime, addr, rz_analysis_function_t::addr, rz_core_t::analysis, autoblocksize, rz_debug_t::bits, rz_core_t::blocksize, cmd, color, Color_RESET, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, rz_print_t::cur, rz_print_t::cur_enabled, currentFormat, rz_core_t::dbg, delta, desc, f, rz_core_file_t::fd, rz_core_t::file, rz_core_t::flags, free(), hexMode, i, int, rz_core_t::io, map(), rz_analysis_function_t::name, NULL, rz_print_t::ocur, rz_core_t::offset, rz_cons_context_t::pal, pc, PFMT64x, pos, rz_core_t::print, rz_core_t::printidx, rz_cons_printable_palette_t::prompt, rz_cons_t::rows, RZ_ABS, rz_analysis_get_fcn_in(), rz_config_get(), rz_config_get_b(), rz_config_get_i(), rz_cons_printf(), rz_cons_strcat(), rz_core_block_size(), rz_core_debug_sync_bits(), rz_core_seek(), RZ_CORE_VISUAL_MODE_CD, RZ_CORE_VISUAL_MODE_DB, RZ_CORE_VISUAL_MODE_OV, RZ_CORE_VISUAL_MODE_PD, RZ_CORE_VISUAL_MODE_PX, rz_debug_reg_get(), rz_flag_get_at(), RZ_FLAGS_FS_SYMBOLS, rz_io_desc_get(), rz_io_map_get(), rz_io_size(), RZ_MIN, rz_str_append(), rz_str_ncpy(), rz_str_newf(), RZ_SYS_BITS_64, rz_print_t::screen_bounds, snprintf, sprintf, st64, rz_core_visual_t::tab, tolower, toupper, ut64(), UT64_MAX, rz_core_t::visual, visual_flagzone(), and rz_print_t::wide_offsets.
Referenced by visual_refresh().
Definition at line 127 of file visual.c.
References rz_core_t::config, NULL, rz_config_hold_free(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_hold_s(), and rz_config_set().
Referenced by get_body(), rz_core_visual_cmd(), and rz_core_visual_xrefs().
Definition at line 109 of file visual.c.
References rz_core_t::config, rz_config_get_b(), rz_config_set_b(), and rz_config_toggle().
Referenced by __panels_process(), rz_core_visual_cmd(), and rz_core_visual_graph().
Definition at line 1312 of file visual.c.
References add_comment(), addr, rz_core_t::analysis, rz_debug_t::bits, cmd, rz_core_t::config, count, rz_print_t::cur, rz_print_t::cur_enabled, d, rz_core_t::dbg, dis(), f, rz_core_t::flags, follow_ref(), free(), rz_analysis_ref_t::from, h, i, setup::idx, IS_DIGIT, lastPrintMode, name, rz_analysis_function_t::name, NULL, rz_core_t::offset, PFMT64d, PFMT64x, rz_core_t::print, printMode, repeat(), RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_function_get_xrefs_from(), rz_analysis_get_fcn_in(), rz_analysis_xrefs_get_from(), rz_analysis_xrefs_get_to(), rz_analysis_xrefs_type_tostring(), rz_cmd_state_output_fini(), rz_cmd_state_output_init(), RZ_CMD_STATUS_INVALID, rz_config_get(), rz_config_get_b(), rz_config_set(), rz_config_set_b(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear00(), rz_cons_enable_mouse(), rz_cons_flush(), rz_cons_get_size(), rz_cons_gotoxy(), rz_cons_newline(), rz_cons_printf(), rz_cons_readchar(), rz_core_cmd0(), rz_core_cmd_strf(), rz_core_flag_describe(), rz_core_visual_prompt_input(), rz_core_visual_toggle_decompiler_disasm(), rz_flag_get_at(), rz_list_free(), rz_meta_get_string(), RZ_META_TYPE_COMMENT, RZ_OUTPUT_MODE_STANDARD, rz_str_ansi_crop(), rz_str_append(), rz_str_appendf(), rz_str_newf(), rz_str_trim_head_ro(), RZ_SYS_BITS_64, skip(), snprintf, strdup(), rz_analysis_ref_t::to, rz_analysis_ref_t::type, ut64(), UT64_MAX, and w.
Referenced by __handle_refs(), __panels_process(), rz_core_visual_analysis(), rz_core_visual_browse(), rz_core_visual_cmd(), and rz_core_visual_graph().
Definition at line 1235 of file visual.c.
References fill_hist_offset(), setup::line, rz_core_seek_item_free(), and rz_core_seek_peek().
Referenced by __break_points_cb(), rz_core_visual_offset(), and visual_offset().
Definition at line 1222 of file visual.c.
References fill_hist_offset(), setup::line, rz_core_seek_item_free(), and rz_core_seek_peek().
Referenced by __break_points_cb(), rz_core_visual_offset(), and visual_offset().
RZ_API void rz_listinfo_free | ( | RzListInfo * | info | ) |
Definition at line 4032 of file visual.c.
References free(), and info().
Referenced by 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_API RzListInfo* rz_listinfo_new | ( | const char * | name, |
RzInterval | pitv, | ||
RzInterval | vitv, | ||
int | perm, | ||
const char * | extra | ||
) |
Definition at line 4020 of file visual.c.
References info(), NULL, RZ_NEW, and strdup().
Referenced by 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().
Definition at line 159 of file visual.c.
References rz_print_t::col, rz_print_t::cur, rz_print_t::cur_enabled, rz_print_t::flags, flags, rz_core_t::print, RZ_PRINT_FLAGS_CURSOR, and rz_print_set_flags().
Referenced by rz_core_visual_cmd(), and visual_help().
|
static |
Definition at line 896 of file visual.c.
References rz_core_t::config, from, prompt_read(), rz_config_set(), and to.
Referenced by rz_core_visual_cmd().
Definition at line 1094 of file visual.c.
References rz_core_t::block, rz_core_t::blocksize, rz_core_t::config, n, op, rz_core_t::printidx, rz_core_t::rasm, rz_asm_disassemble(), rz_asm_op_fini(), rz_asm_op_init(), rz_config_set_i(), RZ_CORE_VISUAL_MODE_DB, RZ_CORE_VISUAL_MODE_PD, and RZ_MIN.
Referenced by rz_core_visual_cmd().
Definition at line 229 of file visual.c.
References rz_asm_t::bits, rz_core_t::config, current0format, PRINT_HEX_FORMATS, printHexFormats, rz_core_t::rasm, and rz_config_get_b().
Referenced by __core_visual_print_command(), rz_core_visual(), and visual_refresh().
|
static |
Definition at line 789 of file visual.c.
References rz_core_t::offset, and rz_core_debug_breakpoint_toggle().
Referenced by visual_nkey().
|
static |
Definition at line 1623 of file visual.c.
References __holdMouseState(), addr, rz_core_t::analysis, rz_core_t::config, rz_print_t::cur, rz_print_t::cur_enabled, test-lz4-speed::cwd, eprintf, fn, free(), getcommapath(), NULL, rz_core_t::offset, rz_core_t::print, rz_config_get_b(), rz_cons_enable_mouse(), rz_cons_input(), rz_core_editor(), rz_file_dump(), rz_file_slurp(), rz_meta_get_string(), rz_meta_set_string(), RZ_META_TYPE_COMMENT, rz_str_between(), rz_str_newf(), RZ_SYS_DIR, strdup(), and ut64().
Referenced by rz_core_visual_cmd().
|
static |
Definition at line 3258 of file visual.c.
References a, b, rz_core_t::flags, free(), NULL, rz_core_t::offset, PFMT64x, rz_cons_get_size(), rz_cons_newline(), rz_cons_printf(), rz_flag_zone_around(), rz_str_newf(), rz_str_pad(), and w.
Referenced by rz_core_visual_title().
Definition at line 552 of file visual.c.
References rz_print_t::cur_enabled, help_msg_visual, help_msg_visual_fn, help_visual, NULL, p, rz_core_t::panels_root, rz_core_t::print, repeat(), rz_cons_clear00(), rz_cons_flush(), rz_cons_less_str(), rz_cons_printf(), rz_cons_readchar(), rz_core_visual_append_help(), rz_core_visual_panels_root(), rz_strbuf_appendf(), rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), and setcursor().
Referenced by rz_core_visual_cmd(), and visual_nkey().
Definition at line 793 of file visual.c.
References cmd, rz_core_t::config, rz_print_t::cur, rz_print_t::cur_enabled, rz_print_t::ocur, rz_core_t::offset, rz_core_t::print, rz_config_get(), RZ_CONS_KEY_F1, RZ_CONS_KEY_F10, RZ_CONS_KEY_F11, RZ_CONS_KEY_F12, RZ_CONS_KEY_F2, RZ_CONS_KEY_F3, RZ_CONS_KEY_F4, RZ_CONS_KEY_F5, RZ_CONS_KEY_F6, RZ_CONS_KEY_F7, RZ_CONS_KEY_F8, RZ_CONS_KEY_F9, rz_core_cmd0(), rz_core_debug_continue(), rz_core_debug_continue_until(), rz_core_debug_single_step_in(), rz_core_debug_single_step_over(), rz_core_seek(), ut64(), UT64_MAX, visual_breakpoint(), and visual_help().
Referenced by rz_core_visual_cmd().
|
static |
Definition at line 3675 of file visual.c.
References __core_visual_print_command(), autoblocksize, rz_cons_t::blankline, blocksize, rz_core_t::blocksize, color, rz_core_t::config, rz_core_t::cons, rz_print_t::cur, rz_print_t::cur_enabled, rz_core_t::curtab, h, NULL, rz_core_t::num, rz_print_t::ocur, rz_core_t::offset, PFMT64d, PFMT64x, rz_core_t::print, rz_core_t::printidx, rz_config_get(), rz_config_get_i(), rz_cons_clear(), rz_cons_column(), rz_cons_flush(), rz_cons_goto_origin_reset(), rz_cons_gotoxy(), rz_cons_printf(), rz_cons_reset(), rz_cons_strcat(), rz_cons_visual_flush(), rz_core_cmd0(), rz_core_cmd_str(), rz_core_gadget_print(), rz_core_print_scrollbar(), rz_core_seek(), rz_core_visual_title(), rz_num_get(), rz_print_set_cursor(), rz_str_ansi_crop(), rz_core_t::scr_gadgets, rz_print_t::screen_bounds, snprintf, splitPtr, splitView, stackPrintCommand(), ut64(), UT64_MAX, rz_num_t::value, rz_print_t::vflush, visual_responsive(), w, and zoom.
Referenced by rz_core_visual(), rz_core_visual_cmd(), and visual_refresh_oneshot().
|
static |
Definition at line 3798 of file visual.c.
References rz_core_task_enqueue_oneshot(), rz_core_t::tasks, and visual_refresh().
Referenced by rz_core_visual().
Definition at line 3504 of file visual.c.
References rz_core_t::config, h, rz_config_get_b(), rz_config_set_b(), rz_config_set_i(), rz_cons_get_size(), and w.
Referenced by visual_refresh().
|
static |
Definition at line 1002 of file visual.c.
References rz_core_t::block, rz_core_t::blocksize, rz_print_t::cur, d, e, eprintf, int, len, NULL, rz_print_t::ocur, rz_core_t::offset, p, PFMT64x, rz_core_t::print, rz_cons_any_key(), rz_cons_clear00(), rz_cons_fgets(), rz_core_visual_showcursor(), rz_hex_str2bin(), rz_line_set_prompt(), rz_mem_mem(), rz_str_ncpy(), and cmd_descs_generate::str.
Referenced by rz_core_visual_cmd().
Definition at line 1056 of file visual.c.
References addr, rz_core_t::config, rz_core_t::offset, rz_config_get_i(), rz_cons_flush(), rz_cons_gotoxy(), rz_cons_printf(), and rz_sys_usleep().
Referenced by rz_core_visual_seek_animation(), rz_core_visual_seek_animation_redo(), and rz_core_visual_seek_animation_undo().
Definition at line 1954 of file visual.c.
Referenced by insert_mode_enabled(), rz_core_visual_cmd(), and rz_core_visual_title().
|
static |
Definition at line 1955 of file visual.c.
Referenced by insert_mode_enabled().
Definition at line 16 of file visual.c.
Referenced by rz_core_visual(), rz_core_visual_cmd(), rz_core_visual_title(), and visual_refresh().
|
static |
Definition at line 15 of file visual.c.
Referenced by analBars(), cmd_print_bars(), cmd_print_pv(), myregwrite(), rz_cmd_print(), rz_core_analysis_op(), rz_core_analysis_search(), slurp(), and visual_refresh().
|
static |
Definition at line 20 of file visual.c.
Referenced by __cons_pal_update_event(), __init_menu_color_settings_layout(), __lookup_rgb(), __panel_print(), __panels_process(), __panels_refresh(), __preline_flag(), __unrgb(), cmd_agraph_node(), cmd_p_minus_e(), cmd_prc(), cmd_print_pxA(), core_analysis_bytes_esil(), core_analysis_bytes_standard(), core_analysis_graph_construct_nodes(), core_cmp_bits(), core_print_2bpp_row(), dfs_node(), diff_hexdump_partial(), diff_unified_append_data(), diff_unified_append_ranges(), diffrow(), ds_highlight_word(), ds_print_offset(), ds_show_flags(), get_node_color(), normal_RzANode_print(), print_arg_str(), print_format_values(), printCol(), references_handler(), rizin_compare_words(), rotateColor(), rz_agraph_add_node_with_color(), rz_analysis_function_blocks_color_handler(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_eval_color_list_handler(), rz_cons_canvas_box(), rz_cons_fgets(), rz_cons_invert(), rz_cons_newline(), rz_cons_pal_free(), rz_cons_pal_list(), rz_core_agraph_add_node(), rz_core_annotated_code_print(), rz_core_diff_show(), rz_core_disasm_instruction(), rz_core_print_func_args(), rz_core_visual(), rz_core_visual_analysis_refresh(), rz_core_visual_cmd(), rz_core_visual_colors(), rz_core_visual_title(), rz_diff_unified_text(), rz_flag_item_set_color(), rz_graph_dfs(), rz_graph_dfs_node(), rz_graph_dfs_node_reverse(), rz_print_colorize_asm_str(), rz_print_hexdiff_str(), rz_print_hexdump_str(), rz_regs_columns_handler(), rz_str_highlight(), show_regs_handler(), var_functions_show(), and visual_refresh().
|
static |
Definition at line 57 of file visual.c.
Referenced by nextPrintCommand(), prevPrintCommand(), and stackPrintCommand().
|
static |
Definition at line 70 of file visual.c.
Referenced by printFormat().
|
static |
Definition at line 75 of file visual.c.
Referenced by printFormat().
|
static |
Definition at line 79 of file visual.c.
Referenced by printFormat().
|
static |
Definition at line 56 of file visual.c.
Referenced by nextPrintCommand(), prevPrintCommand(), printFormat(), rz_core_visual_applyDisMode(), rz_core_visual_applyHexMode(), and rz_core_visual_title().
|
static |
Definition at line 21 of file visual.c.
Referenced by decode_buffer(), rz_bin_pe_get_entrypoint(), rz_core_loadlibs_init(), rz_core_visual(), rz_main_rizin(), and rz_protobuf_decode().
|
static |
Definition at line 17 of file visual.c.
Referenced by printFormat(), and rz_core_visual_applyDisMode().
|
static |
Definition at line 314 of file visual.c.
Referenced by visual_help().
|
static |
Definition at line 371 of file visual.c.
Referenced by visual_help().
|
static |
Definition at line 300 of file visual.c.
Referenced by visual_help().
|
static |
Definition at line 18 of file visual.c.
Referenced by printFormat(), rz_core_visual_applyHexMode(), and rz_core_visual_title().
|
static |
Definition at line 2200 of file visual.c.
Referenced by numbuf_append(), and numbuf_pull().
|
static |
Definition at line 2201 of file visual.c.
Referenced by numbuf_append(), numbuf_pull(), and rz_core_visual_cmd().
|
static |
Definition at line 14 of file visual.c.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), rz_analyze_n_ins_esil_handler(), rz_analyze_n_ins_handler(), rz_analyze_n_ins_size_handler(), rz_core_cmd_foreach3(), rz_core_visual(), and rz_core_visual_cmd().
|
static |
Definition at line 71 of file visual.c.
Referenced by printFormat().
|
static |
Definition at line 76 of file visual.c.
Referenced by printFormat().
|
static |
Definition at line 80 of file visual.c.
Referenced by printFormat().
Definition at line 42 of file visual.c.
Referenced by __core_visual_print_command().
Definition at line 34 of file visual.c.
Referenced by __core_visual_print_command(), printFormat(), rz_core_visual(), and rz_core_visual_cmd().
|
static |
Definition at line 58 of file visual.c.
Referenced by printFormat(), and stackPrintCommand().
|
static |
Definition at line 19 of file visual.c.
Referenced by rz_core_visual_xrefs().
Definition at line 381 of file visual.c.
Referenced by cursor_nextrow(), cursor_prevrow(), rz_core_visual(), rz_core_visual_cmd(), and visual_refresh().
Definition at line 380 of file visual.c.
Referenced by cursor_nextrow(), cursor_prevrow(), rz_core_visual_cmd(), and visual_refresh().
|
static |
Definition at line 22 of file visual.c.
Referenced by normal_RzANode_print(), update_node_dimension(), and visual_refresh().