Rizin
unix-like reverse engineering framework and cli tools
|
#include "rz_types.h"
#include "rz_config.h"
#include "rz_cons.h"
#include "rz_core.h"
#include "rz_debug.h"
#include "rz_io.h"
Go to the source code of this file.
|
static |
Definition at line 153 of file cmd_seek.c.
References RZ_CMD_STATUS_ERROR, and RZ_CMD_STATUS_OK.
Referenced by rz_seek_asz_handler(), rz_seek_base_handler(), rz_seek_basicblock_handler(), rz_seek_begin_handler(), rz_seek_blocksize_backward_handler(), rz_seek_blocksize_forward_handler(), rz_seek_delta_handler(), rz_seek_end_handler(), rz_seek_function_current_handler(), rz_seek_function_handler(), rz_seek_handler(), rz_seek_next_handler(), rz_seek_prev_handler(), rz_seek_redo_handler(), rz_seek_register_handler(), and rz_seek_undo_handler().
Definition at line 94 of file cmd_seek.c.
References eprintf, input(), n, rz_core_t::num, rz_core_seek_opcode(), rz_num_math(), and test-lz4-list::silent.
Referenced by rz_seek_opcode_handler().
Definition at line 11 of file cmd_seek.c.
References free(), off, rz_core_t::offset, pad(), PFMT64x, rz_cons_printf(), and rz_str_newf().
Referenced by rz_seek_padded_handler().
Definition at line 86 of file cmd_seek.c.
References n, rz_core_t::num, rz_core_seek_opcode_backward(), rz_core_seek_opcode_forward(), test-lz4-list::silent, val, and rz_num_t::value.
Referenced by cmd_seek_opcode(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), graphNodeMove(), rz_core_cmd_lastcmd_repeat(), rz_core_cmd_subst_i(), and rz_core_visual_graph().
Definition at line 27 of file cmd_seek.c.
References addr, rz_core_t::analysis, rz_core_t::block, i, rz_core_t::offset, rz_core_t::rasm, rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_MIN_OP_SIZE, rz_asm_disassemble(), rz_core_asm_bwdis_len(), rz_core_prevop_addr(), rz_core_prevop_addr_force(), rz_core_seek(), rz_core_seek_opt(), test-lz4-list::silent, ut64(), UT64_MAX, and val.
Referenced by rz_core_seek_opcode().
Definition at line 65 of file cmd_seek.c.
References rz_core_t::analysis, rz_core_t::block, rz_core_t::blocksize, i, n, rz_core_t::offset, op, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, rz_core_seek_delta(), rz_core_seek_mark(), rz_core_seek_save(), test-lz4-list::silent, and val.
Referenced by rz_core_seek_opcode().
Definition at line 22 of file cmd_seek.c.
References off, regname(), rz_core_reg_getv_by_role_or_name(), rz_core_seek_opt(), and ut64().
Referenced by agraph_refresh(), rz_core_cmd_lastcmd_repeat(), rz_core_dbg_follow_seek_register(), rz_core_esil_step(), rz_core_file_reopen(), rz_core_file_reopen_debug(), rz_core_file_reopen_remote_debug(), rz_core_setup_debugger(), rz_core_visual_graph(), and rz_seek_register_handler().
RZ_IPI RzCmdStatus rz_seek_asz_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 287 of file cmd_seek.c.
References addr, argv, bool2cmdstatus(), NULL, rz_core_t::num, rz_core_t::offset, rz_core_seek(), rz_core_seek_align(), rz_core_seek_mark(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_base_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 194 of file cmd_seek.c.
References argv, bool2cmdstatus(), and rz_core_seek_base().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_basicblock_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 298 of file cmd_seek.c.
References bool2cmdstatus(), rz_core_t::offset, and rz_core_seek_analysis_bb().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_begin_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 329 of file cmd_seek.c.
References addr, bool2cmdstatus(), rz_core_t::io, map(), rz_core_t::offset, rz_core_seek_and_save(), rz_io_map_get(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_blocksize_backward_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 198 of file cmd_seek.c.
References argv, rz_core_t::blocksize, bool2cmdstatus(), delta, n, rz_core_t::num, rz_core_seek_delta(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_blocksize_forward_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 207 of file cmd_seek.c.
References argv, rz_core_t::blocksize, bool2cmdstatus(), delta, n, rz_core_t::num, rz_core_seek_delta(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_delta_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 183 of file cmd_seek.c.
References argv, bool2cmdstatus(), delta, NULL, rz_core_seek_delta(), and st64.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_end_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 335 of file cmd_seek.c.
References addr, bool2cmdstatus(), rz_core_file_t::fd, rz_core_t::file, rz_core_t::io, map(), rz_core_t::offset, rz_core_seek_and_save(), rz_io_fd_size(), rz_io_map_get(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_function_current_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 321 of file cmd_seek.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, bool2cmdstatus(), rz_core_t::offset, rz_analysis_get_fcn_in(), RZ_CMD_STATUS_ERROR, and rz_core_seek_and_save().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_function_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 302 of file cmd_seek.c.
References addr, rz_analysis_function_t::addr, rz_core_t::analysis, argv, bool2cmdstatus(), NULL, rz_core_t::offset, rz_analysis_function_max_addr(), rz_analysis_get_fcn_in(), rz_analysis_get_function_byname(), RZ_CMD_STATUS_ERROR, rz_core_seek_and_save(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 157 of file cmd_seek.c.
References addr, argv, bool2cmdstatus(), rz_num_calc_t::calc_buf, dup, rz_num_calc_t::errors, free(), rz_num_t::nc, NULL, rz_core_t::num, rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_seek_and_save(), rz_core_seek_mark(), RZ_LOG_ERROR, rz_num_math(), strdup(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_history_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 229 of file cmd_seek.c.
References rz_core_seek_undo_t::cursor, f, rz_core_t::flags, free(), rz_core_seek_undo_t::idx, rz_core_seek_undo_t::is_current, list(), NULL, rz_core_seek_undo_t::offset, PFMT64d, PFMT64x, pj_end(), pj_kb(), pj_kn(), pj_ks(), pj_o(), RZ_ABS, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_seek_list(), rz_flag_get_at(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_str_newf(), rz_warn_if_reached, and strdup().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_next_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 342 of file cmd_seek.c.
References argv, bool2cmdstatus(), rz_core_t::config, rz_config_get(), and rz_core_seek_next().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_opcode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 362 of file cmd_seek.c.
References argv, cmd_seek_opcode(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_padded_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 188 of file cmd_seek.c.
References argv, n, printPadded(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_prev_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 352 of file cmd_seek.c.
References argv, bool2cmdstatus(), rz_core_t::config, rz_config_get(), and rz_core_seek_prev().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_redo_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 216 of file cmd_seek.c.
References bool2cmdstatus(), and rz_core_seek_redo().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_register_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 367 of file cmd_seek.c.
References argv, bool2cmdstatus(), and rz_core_seek_to_register().
Referenced by rzshell_cmddescs_init().
Definition at line 109 of file cmd_seek.c.
References rz_core_t::config, eprintf, input(), rz_search_t::n_kws, rz_core_t::offset, rz_config_get(), rz_config_get_i(), rz_config_set_i(), rz_cons_printf(), rz_core_cmdf(), rz_core_t::search, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_undo_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 220 of file cmd_seek.c.
References bool2cmdstatus(), and rz_core_seek_undo().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_seek_undo_reset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 224 of file cmd_seek.c.
References RZ_CMD_STATUS_OK, and rz_core_seek_reset().
Referenced by rzshell_cmddescs_init().