Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_debug.h>
#include <sdb.h>
#include "rz_heap_glibc.h"
#include "../core_private.h"
#include "cmd_regs_meta.inc"
Go to the source code of this file.
Classes | |
struct | dot_trace_ght |
struct | trace_node |
Macros | |
#define | TN_KEY_LEN 32 |
#define | TN_KEY_FMT "%" PFMT64u |
#define | CMD_CHECK_DEBUG_DEAD(core) |
#define | MAX_MAP_SIZE (1024 * 1024 * 512) |
#define | P rz_cons_printf |
#define | PS(X, Y) |
#define | CMD_REGS_PREFIX debug |
#define | CMD_REGS_REG_PATH dbg->reg |
#define | CMD_REGS_SYNC cmd_regs_sync |
Variables | |
static const char * | help_msg_d [] |
static const char * | help_msg_dcs [] |
static const char * | help_msg_dcu [] |
static const char * | help_msg_dd [] |
static const char * | help_msg_de [] |
static const char * | help_msg_des [] |
static const char * | help_msg_di [] |
static const char * | help_msg_dk [] |
static const char * | help_msg_dko [] |
static const char * | help_msg_dmi [] |
static const char * | help_msg_dp [] |
static const char * | help_msg_dx [] |
static RzCore * | _core = NULL |
#define CMD_CHECK_DEBUG_DEAD | ( | core | ) |
Definition at line 19 of file cmd_debug.c.
#define CMD_REGS_PREFIX debug |
Definition at line 3605 of file cmd_debug.c.
Definition at line 3606 of file cmd_debug.c.
#define CMD_REGS_SYNC cmd_regs_sync |
Definition at line 3610 of file cmd_debug.c.
#define MAX_MAP_SIZE (1024 * 1024 * 512) |
Definition at line 809 of file cmd_debug.c.
#define P rz_cons_printf |
#define PS | ( | X, | |
Y | |||
) |
#define TN_KEY_FMT "%" PFMT64u |
Definition at line 8 of file cmd_debug.c.
#define TN_KEY_LEN 32 |
Definition at line 7 of file cmd_debug.c.
Definition at line 1607 of file cmd_debug.c.
References addr, trace_node::addr, NULL, trace_node::refs, RZ_NEW0, and rz_tree_add_node().
Referenced by do_debug_trace_calls().
Definition at line 923 of file cmd_debug.c.
References rz_core_t::dbg, list(), map(), rz_debug_t::maps, rz_debug_map_sync(), rz_debug_modules_list(), rz_file_basename(), and UT64_MAX.
Referenced by rz_cmd_debug_dmi().
Definition at line 1514 of file cmd_debug.c.
References rz_core_t::analysis, b, rz_core_t::dbg, f, free(), map(), n, PFMT64x, PFMTDPTR, rz_analysis_t::reg, rz_cons_printf(), rz_debug_map_free(), rz_debug_map_get(), RZ_NEW0, rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_BP, RZ_REG_NAME_SP, rz_str_newf(), s, sp, cmd_descs_generate::str, ut64(), and UT64_MAX.
Referenced by rz_cmd_debug_display_bt_ascii_handler().
Definition at line 1453 of file cmd_debug.c.
References rz_core_t::analysis, b, delta, f, rz_core_t::flags, free(), int, n, rz_analysis_function_t::name, rz_flag_item_t::name, rz_flag_item_t::offset, PFMT64x, r, rz_analysis_t::reg, rz_analysis_get_fcn_in(), rz_cons_pop(), rz_cons_printf(), rz_cons_push(), rz_core_analysis_all_vars_display(), rz_flag_get_at(), rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_BP, RZ_REG_NAME_SP, rz_reg_setv(), s, snprintf, sp, and ut64().
Referenced by rz_cmd_debug_display_bt_local_vars_handler().
Definition at line 1947 of file cmd_debug.c.
References rz_num_calc_t::calc_buf, rz_core_t::dbg, eprintf, rz_num_calc_t::errors, from, help_msg_dcu, input(), rz_num_t::nc, NULL, rz_core_t::num, rz_core_t::offset, pc, PFMT64x, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_is_interactive(), rz_core_cmd_help(), rz_core_debug_continue_until(), rz_debug_reg_get(), rz_debug_reg_sync(), rz_debug_step(), rz_num_math(), rz_num_tail(), RZ_REG_TYPE_GPR, to, ut64(), and UT64_MAX.
Referenced by rz_cmd_debug_continue_until().
Definition at line 774 of file cmd_debug.c.
References addr, analop(), rz_core_t::analysis, rz_debug_t::bp, rz_core_t::dbg, eprintf, rz_core_t::io, len, rz_core_t::offset, PFMT64x, rz_debug_t::reg, rz_analysis_op(), RZ_ANALYSIS_OP_MASK_BASIC, rz_bp_traptrace_add(), rz_bp_traptrace_at(), rz_bp_traptrace_enable(), rz_bp_traptrace_list(), rz_bp_traptrace_reset(), rz_debug_continue(), rz_debug_reg_get(), rz_io_read_at(), rz_reg_arena_swap(), and ut64().
Referenced by rz_cmd_debug_continue_traptrace_handler().
Definition at line 204 of file cmd_debug.c.
References rz_core_t::analysis, calloc(), count, rz_core_t::dbg, eprintf, free(), i, int, NULL, rz_core_t::num, rz_debug_t::reg, rz_debug_continue_syscalls(), rz_num_math(), rz_reg_arena_swap(), rz_str_word_get0(), rz_str_word_set0(), rz_syscall_get_num(), cmd_descs_generate::str, strdup(), and rz_analysis_t::syscall.
Referenced by rz_cmd_debug_continue_fork_handler(), and rz_cmd_debug_continue_syscall().
|
static |
Definition at line 861 of file cmd_debug.c.
References addr, rz_core_t::dbg, free(), list(), map(), rz_core_t::offset, PFMT64x, rz_cons_printf(), rz_debug_modules_list(), rz_list_free(), rz_name_filter(), RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_str_escape(), strdup(), and ut64().
Referenced by rz_cmd_debug_current_modules_handler().
|
static |
Definition at line 888 of file cmd_debug.c.
References rz_core_t::dbg, free(), list(), map(), PFMT64x, pj_end(), pj_kn(), pj_ks(), pj_o(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_cons_printf(), rz_debug_modules_list(), rz_list_free(), rz_name_filter(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_str_escape(), and strdup().
Referenced by rz_cmd_debug_dmi(), and rz_cmd_debug_modules_handler().
Definition at line 640 of file cmd_debug.c.
References rz_core_t::dbg, eprintf, rz_core_file_t::fd, rz_core_t::file, rz_debug_t::forked_pid, free(), help_msg_dp, input(), rz_core_t::io, rz_debug_t::main_pid, rz_debug_t::n_threads, rz_core_t::num, rz_debug_t::pid, pid, rz_cons_println(), rz_core_cmd_help(), rz_core_debug_attach(), rz_debug_child_clone(), rz_debug_child_fork(), rz_debug_detach(), rz_debug_kill(), rz_debug_pid_list(), rz_debug_select(), rz_debug_thread_list(), rz_io_fd_get_pid(), rz_io_fd_get_tid(), RZ_MAX, rz_num_math(), rz_str_trim_head_ro(), rz_sys_pid_to_path(), and rz_debug_t::tid.
Referenced by rz_cmd_debug().
|
static |
Definition at line 3607 of file cmd_debug.c.
References rz_core_t::dbg, rz_debug_reg_sync(), type, and write.
Referenced by rz_core_debug_ri().
Definition at line 2267 of file cmd_debug.c.
References cmd, i, rz_buf_read8(), rz_buf_seek(), RZ_BUF_SET, rz_buf_size(), rz_cons_printf(), and autogen_x86imm::tmp.
Referenced by rz_cmd_debug().
Definition at line 1753 of file cmd_debug.c.
References _core, rz_debug_t::bp, rz_core_t::config, rz_core_t::dbg, do_debug_trace_calls(), rz_debug_trace_t::enabled, eprintf, from, NULL, PFMT64x, rz_debug_t::reg, rz_bp_del(), rz_config_get_b(), rz_cons_break_pop(), rz_cons_break_push(), rz_core_static_debug_stop(), rz_debug_bp_add(), rz_debug_is_dead(), rz_reg_arena_swap(), to, rz_debug_t::trace, trace_traverse(), rz_debug_t::tree, and UT64_MAX.
Referenced by rz_cmd_debug_trace_calls_handler().
Definition at line 1652 of file cmd_debug.c.
References add_trace_tree_child(), addr, rz_analysis_op_t::addr, rz_core_t::analysis, rz_core_t::config, dbg, rz_core_t::dbg, eprintf, from, rz_core_t::io, rz_analysis_op_t::jump, n, NULL, rz_tree_node_t::parent, PFMT64x, rz_analysis_op(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_ICALL, RZ_ANALYSIS_OP_TYPE_IRCALL, RZ_ANALYSIS_OP_TYPE_RCALL, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_UCALL, rz_config_get_i(), rz_cons_is_breaked(), rz_core_get_boundaries_prot(), rz_debug_continue_until(), rz_debug_is_dead(), rz_debug_reg_get(), rz_debug_reg_sync(), rz_debug_step(), rz_io_read_at(), rz_list_free(), RZ_REG_TYPE_GPR, rz_tree_add_node(), rz_analysis_op_t::size, to, tr, rz_debug_t::tracenodes, rz_debug_t::tree, rz_analysis_op_t::type, ut64(), and UT64_MAX.
Referenced by debug_trace_calls().
|
static |
Definition at line 255 of file cmd_debug.c.
References rz_tree_visitor_t::data, get_graphtrace_node(), dot_trace_ght::graph, dot_trace_ght::graphnodes, if(), and n.
Referenced by dot_trace_traverse().
|
static |
Definition at line 262 of file cmd_debug.c.
References rz_tree_visitor_t::data, g, get_graphtrace_node(), dot_trace_ght::graph, dot_trace_ght::graphnodes, if(), n, rz_graph_add_edge(), and rz_graph_adjacent().
Referenced by dot_trace_traverse().
Definition at line 279 of file cmd_debug.c.
References trace_node::addr, rz_core_t::config, dot_trace_create_node(), dot_trace_discover_child(), dot_trace_ght::graph, dot_trace_ght::graphnodes, if(), n, PFMT64x, trace_node::refs, rz_config_get(), rz_cons_printf(), rz_core_agraph_print_interactive(), rz_core_agraph_reset(), rz_core_cmd0(), rz_graph_free(), rz_graph_get_neighbours(), rz_graph_get_nodes(), rz_graph_new(), rz_tree_bfs(), sdb_free(), sdb_new0(), tv, and w.
Referenced by rz_cmd_debug_trace_graph_handler(), and rz_cmd_debug_trace_interactive_handler().
XXX: TODO: read by blocks!!1
Definition at line 810 of file cmd_debug.c.
References addr, rz_core_t::dbg, eprintf, free(), rz_core_t::io, malloc(), map(), rz_debug_t::maps, MAX_MAP_SIZE, rz_core_t::offset, PFMT64x, rz_debug_map_sync(), rz_file_dump(), rz_io_read_at(), rz_str_newf(), rz_str_rwx_i(), strdup(), and ut64().
Referenced by rz_cmd_debug_dump_maps_all_handler(), rz_cmd_debug_dump_maps_handler(), and rz_cmd_debug_dump_maps_writable_handler().
Definition at line 1428 of file cmd_debug.c.
References rz_core_t::flags, rz_reg_item_t::name, reg, regs, rz_core_reg_default(), rz_flag_set(), rz_flag_unset_name(), rz_reg_get_list(), rz_reg_get_value(), RZ_REG_TYPE_GPR, rz_reg_item_t::size, ut64(), and value.
Referenced by rz_core_debug_clear_register_flags(), and rz_core_debug_set_register_flags().
|
static |
Definition at line 980 of file cmd_debug.c.
References test-lz4-speed::action, baseaddr, rz_core_t::bin, rz_bin_t::cur, fd, rz_core_t::io, NULL, rad2mode(), rz_bin_cur(), rz_bin_file_delete(), rz_bin_file_set_cur_binfile(), rz_bin_open_io(), rz_cmd_state_output_fini(), rz_cmd_state_output_init(), rz_cmd_state_output_print(), rz_core_bin_apply_info(), rz_core_bin_print(), rz_io_fd_close(), rz_io_fd_open(), rz_io_fd_size(), RZ_MODE_RIZINCMD, RZ_MODE_SET, and RZ_PERM_R.
Referenced by rz_cmd_debug_dmi().
|
static |
Definition at line 945 of file cmd_debug.c.
References addr, rz_core_t::dbg, list(), map(), rz_debug_t::maps, NULL, rz_debug_map_sync(), rz_debug_modules_list(), and UT64_MAX.
Referenced by rz_cmd_debug_dmi().
Definition at line 2256 of file cmd_debug.c.
References pid, rz_str_newf(), and rz_str_trim_dup().
Referenced by rz_cmd_debug().
|
static |
Definition at line 242 of file cmd_debug.c.
References trace_node::addr, g, NULL, rz_graph_add_node(), sdb_num_get(), sdb_num_set(), snprintf, TN_KEY_FMT, TN_KEY_LEN, and ut64().
Referenced by dot_trace_create_node(), and dot_trace_discover_child().
Definition at line 2260 of file cmd_debug.c.
References NULL, rz_core_t::rcmd, rz_cmd_alias_get(), and rz_file_slurp().
Referenced by rz_cmd_debug().
Definition at line 408 of file cmd_debug.c.
References addr, rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_ALL, RZ_ANALYSIS_OP_PREFIX_REP, RZ_ANALYSIS_OP_PREFIX_REPNE, and rz_core_op_analysis().
Referenced by step_until_inst().
|
static |
Definition at line 964 of file cmd_debug.c.
References RZ_MODE_JSON, RZ_MODE_PRINT, RZ_MODE_RIZINCMD, RZ_MODE_SIMPLE, RZ_MODE_SIMPLEST, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_QUIETEST, RZ_OUTPUT_MODE_RIZIN, and RZ_OUTPUT_MODE_STANDARD.
Referenced by get_bin_info(), and rz_cmd_debug_dmi().
Definition at line 2289 of file cmd_debug.c.
References a, rz_debug_reason_t::addr, b, rz_debug_reason_t::bp_addr, bytes, rz_asm_code_t::bytes, cmd_debug_pid(), rz_core_t::config, consumeBuffer(), rz_debug_t::cur, rz_core_t::dbg, dst, rz_core_t::egg, eprintf, fd, free(), rz_debug_plugin_t::gcore, get_corefile_name(), getFileData(), help_msg_d, help_msg_dd, help_msg_di, help_msg_dx, input(), len, rz_asm_code_t::len, NULL, rz_core_t::num, O_CREAT, O_RDWR, off, rz_core_t::offset, P, PFMT64d, PFMT64x, rz_debug_t::pid, pid, PS, r, rz_core_t::rasm, rdi, rz_debug_t::reason, rz_debug_t::reg, rz_asm_code_free(), rz_asm_massemble(), rz_asm_set_pc(), rz_buf_data(), rz_buf_free(), rz_buf_new_file(), rz_config_get(), rz_config_get_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_core_cmd_help(), rz_core_cmd_str(), rz_core_cmdf(), rz_core_dbg_follow_seek_register(), rz_core_debug_esil(), rz_core_debug_kill(), rz_core_static_debug_stop(), rz_core_syscall(), rz_core_syscallf(), rz_debug_desc_dup(), rz_debug_desc_list(), rz_debug_desc_read(), rz_debug_desc_seek(), rz_debug_desc_write(), rz_debug_execute(), rz_debug_get_baddr(), rz_debug_info(), rz_debug_info_free(), rz_debug_kill(), rz_debug_reason_to_string(), rz_debug_stop_reason(), rz_diff_free(), rz_diff_lines_new(), rz_diff_unified_text(), rz_egg_compile(), rz_egg_get_bin(), rz_egg_load(), rz_egg_reset(), rz_egg_setup(), rz_file_rm(), rz_hex_str2bin(), rz_num_math(), rz_reg_arena_pop(), rz_reg_arena_push(), rz_signal_to_string(), rz_str_bool(), rz_str_trim_head_ro(), rz_sys_usleep(), rz_time_date_now_to_string(), rz_w32_identify_window(), rz_w32_print_windows(), s, sdb_fmt(), rz_debug_reason_t::signum, rz_debug_t::stopaddr, cmd_descs_generate::str, strdup(), rz_debug_reason_t::tid, autogen_x86imm::tmp, rz_debug_reason_t::type, ut64(), and UT64_MAX.
Referenced by rz_core_cmd_init(), and rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_add_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2690 of file cmd_debug.c.
References rz_core_t::config, NULL, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_config_get_b(), and rz_core_debug_bp_add().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_add_bp_module_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2854 of file cmd_debug.c.
References argv, rz_core_t::config, rz_core_t::dbg, delta, rz_core_t::num, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_debug_bp_add(), RZ_LOG_ERROR, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_add_bp_noreturn_func_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2848 of file cmd_debug.c.
References RZ_CMD_STATUS_OK, and rz_core_debug_bp_add_noreturn_func().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_add_cond_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2812 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_get_at(), rz_bp_item_set_cond(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_add_hw_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2764 of file cmd_debug.c.
References NULL, rz_core_t::offset, RZ_CMD_STATUS_OK, and rz_core_debug_bp_add().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_add_watchpoint_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3208 of file cmd_debug.c.
References argv, rz_core_t::config, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_config_get_b(), and rz_core_debug_bp_add().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_allocate_maps_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1029 of file cmd_debug.c.
References addr, argv, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, int, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_debug_map_alloc(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_bp_plugin_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3014 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_bp_plugin_list(), rz_bp_use(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_bp_set_expr_cur_offset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3186 of file cmd_debug.c.
References rz_bp_item_t::addr, argv, rz_debug_t::bp, rz_bp_t::bps, rz_core_t::dbg, rz_bp_item_t::expr, rz_core_t::offset, PFMT64x, rz_bp_get_at(), rz_bp_item_set_expr(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_LOG_ERROR, and rz_str_get().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_bt_disable_bp_trace_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3167 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_set_trace(), RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_bt_enable_bp_trace_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3159 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_set_trace(), RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_bt_toggle_bp_trace_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3175 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_get_in(), RZ_CMD_STATUS_OK, RZ_LOG_ERROR, and rz_bp_item_t::trace.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_command_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2798 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_get_at(), rz_bp_item_set_data(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_back_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3257 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, eprintf, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_static_debug_stop(), and rz_debug_continue_back().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_call_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3272 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, rz_debug_t::reg, RZ_ANALYSIS_OP_TYPE_CALL, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_static_debug_stop(), rz_debug_continue_until_optype(), and rz_reg_arena_swap().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_exception_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3297 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, rz_debug_t::reg, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_static_debug_stop(), rz_debug_continue_pass_exception(), and rz_reg_arena_swap().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_execution_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3236 of file cmd_debug.c.
References argv, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, rz_core_t::num, rz_debug_t::pid, pid, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_debug_continue(), rz_core_static_debug_stop(), rz_debug_select(), rz_num_math(), and rz_debug_t::tid.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_fork_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3308 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, cmd_debug_cont_syscall(), rz_core_t::dbg, eprintf, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), and rz_core_static_debug_stop().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_mapped_io_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3347 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, rz_debug_trace_t::enabled, eprintf, rz_core_t::io, n, pc, PFMT64x, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_static_debug_stop(), rz_debug_reg_get(), rz_debug_reg_sync(), rz_debug_step(), rz_io_map_get(), RZ_REG_TYPE_GPR, s, rz_debug_t::trace, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_ret_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3373 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, rz_debug_t::reg, RZ_ANALYSIS_OP_TYPE_RET, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_static_debug_stop(), rz_debug_continue_until_optype(), and rz_reg_arena_swap().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_send_signal_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3322 of file cmd_debug.c.
References argv, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, rz_core_t::num, rz_debug_t::pid, pid, rz_debug_t::reg, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_static_debug_stop(), rz_debug_continue_kill(), rz_debug_select(), rz_num_math(), rz_reg_arena_swap(), signum, and rz_debug_t::tid.
Referenced by rzshell_cmddescs_init().
Definition at line 3400 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, cmd_debug_cont_syscall(), rz_core_t::dbg, help_msg_dcs, input(), NULL, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_cmd_help(), rz_core_dbg_follow_seek_register(), and rz_core_static_debug_stop().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_traptrace_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3386 of file cmd_debug.c.
References argv, CMD_CHECK_DEBUG_DEAD, cmd_debug_backtrace(), rz_core_t::dbg, rz_core_t::num, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_static_debug_stop(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_continue_unknown_call_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3285 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, RZ_ANALYSIS_OP_TYPE_UCALL, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_dbg_follow_seek_register(), rz_core_static_debug_stop(), and rz_debug_continue_until_optype().
Referenced by rzshell_cmddescs_init().
Definition at line 3425 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, cmd_dcu(), rz_core_t::dbg, free(), help_msg_dcu, input(), RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_core_cmd_help(), rz_core_dbg_follow_seek_register(), rz_core_static_debug_stop(), and rz_str_newf().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_current_modules_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 1045 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, cmd_debug_current_modules(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_deallocate_map_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1052 of file cmd_debug.c.
References addr, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, eprintf, map(), rz_debug_t::maps, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_map_dealloc(), rz_debug_map_sync(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_disable_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2826 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_enable(), RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_disable_bp_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2949 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_bp_item_t::enabled, rz_core_t::num, rz_bp_get_index(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_disable_bp_trace_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2988 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_core_t::num, rz_bp_get_index(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, rz_num_math(), and rz_bp_item_t::trace.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_display_bt_ascii_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3147 of file cmd_debug.c.
References asciiart_backtrace(), rz_core_t::dbg, list(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_frames(), rz_list_free(), RZ_LOG_ERROR, and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_display_bt_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 3037 of file cmd_debug.c.
References rz_debug_frame_t::addr, rz_backtrace_t::desc, rz_backtrace_t::fcn, rz_backtrace_t::flagdesc, rz_backtrace_t::flagdesc2, rz_backtrace_t::frame, i, list(), rz_analysis_function_t::name, rz_backtrace_t::pcstr, PFMT64x, pj_end(), pj_ki(), pj_kn(), pj_ks(), pj_o(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_core_debug_backtraces(), rz_list_free(), rz_list_reverse(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, rz_str_get(), rz_warn_if_reached, rz_debug_frame_t::size, rz_debug_frame_t::sp, and rz_backtrace_t::spstr.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_display_bt_local_vars_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3135 of file cmd_debug.c.
References backtrace_vars(), rz_core_t::dbg, list(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_frames(), rz_list_free(), RZ_LOG_ERROR, and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_display_bt_oneline_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3095 of file cmd_debug.c.
References rz_debug_frame_t::addr, argv, rz_debug_frame_t::bp, rz_core_t::dbg, i, list(), PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_newline(), rz_cons_printf(), rz_debug_frames(), rz_list_free(), rz_list_reverse(), RZ_LOG_ERROR, rz_debug_frame_t::sp, and UT64_MAX.
Referenced by rzshell_cmddescs_init().
Definition at line 1117 of file cmd_debug.c.
References a0, addr, addroflib(), baddr(), rz_core_t::bin, CMD_CHECK_DEBUG_DEAD, cmd_debug_modules(), eprintf, filter(), free(), get_bin_info(), get_closest_map(), help_msg_dmi, i, input(), map(), rz_bin_symbol_t::name, NULL, rz_core_t::num, rz_core_t::offset, pj_free(), pj_new(), pj_string(), rad2mode(), rz_bin_cur(), rz_bin_get_symbols(), rz_bin_set_baddr(), rz_cmd_state_output_fini(), rz_cmd_state_output_init(), rz_cmd_state_output_print(), RZ_CMD_STATUS_OK, rz_cons_flush(), rz_cons_println(), rz_core_bin_print(), rz_core_cmd(), rz_core_cmd_help(), rz_core_dump(), rz_file_basename(), rz_file_exists(), rz_file_rm(), rz_file_temp(), RZ_MODE_JSON, RZ_MODE_PRINT, RZ_MODE_RIZINCMD, RZ_MODE_SET, RZ_MODE_SIMPLE, RZ_MODE_SIMPLEST, rz_num_get(), RZ_OUTPUT_MODE_STANDARD, rz_str_trim_head_ro(), rz_str_word_get0(), rz_str_word_set0(), strdup(), symbols(), ut64(), UT64_MAX, and rz_bin_symbol_t::vaddr.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_dml_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1374 of file cmd_debug.c.
References addr, argv, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, eprintf, free(), rz_core_t::io, map(), rz_debug_t::maps, rz_core_t::offset, PFMT64d, PFMT64u, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_map_sync(), rz_file_slurp(), rz_io_write_at(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_dmL_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1404 of file cmd_debug.c.
References addr, argv, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, int, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_debug_map_alloc(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_dmS_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | m | ||
) |
Definition at line 1318 of file cmd_debug.c.
References a0, addr, argv, baddr(), CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, free(), IS_DIGIT, list(), regress::m, map(), NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_OK, rz_cons_println(), rz_debug_map_sync(), rz_debug_modules_list(), rz_file_basename(), rz_num_math(), RZ_OUTPUT_MODE_RIZIN, rz_str_escape(), rz_sys_cmd_strf(), ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_dump_maps_all_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1103 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, dump_maps(), NULL, and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_dump_maps_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1092 of file cmd_debug.c.
References argv, CMD_CHECK_DEBUG_DEAD, dump_maps(), NULL, and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_dump_maps_writable_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1110 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, dump_maps(), NULL, RZ_CMD_STATUS_OK, and RZ_PERM_RW.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_enable_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2834 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_enable(), RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_enable_bp_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2936 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_bp_item_t::enabled, rz_core_t::num, rz_bp_get_index(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_enable_bp_trace_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2975 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_core_t::num, rz_bp_get_index(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, rz_num_math(), and rz_bp_item_t::trace.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_handler_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 3443 of file cmd_debug.c.
References rz_core_debug_plugins_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_handler_set_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3447 of file cmd_debug.c.
References argv, bool2status(), rz_core_t::config, and rz_config_set().
Referenced by rzshell_cmddescs_init().
Definition at line 1415 of file cmd_debug.c.
References rz_asm_t::bits, CMD_CHECK_DEBUG_DEAD, input(), rz_core_t::rasm, and RZ_CMD_STATUS_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_list_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 2697 of file cmd_debug.c.
References b, rz_debug_t::bp, rz_bp_t::bps, rz_core_t::dbg, PFMT64d, PFMT64x, pj_end(), pj_kb(), pj_ki(), pj_kN(), pj_ks(), pj_o(), rz_bp_is_valid(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_cmd_state_output_set_columnsf(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, rz_return_val_if_fail, rz_str_get(), rz_str_rwx_i(), rz_table_add_rowf(), and rz_warn_if_reached.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_list_bp_indexes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2892 of file cmd_debug.c.
References rz_bp_item_t::addr, rz_debug_t::bp, rz_bp_t::bps, rz_core_t::dbg, rz_bp_item_t::enabled, PFMT64x, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_LOG_ERROR, and rz_bp_item_t::trace.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_list_maps_ascii_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1069 of file cmd_debug.c.
References argv, CMD_CHECK_DEBUG_DEAD, rz_core_t::config, rz_core_t::dbg, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_config_get_i(), rz_debug_map_list_visual(), and rz_debug_map_sync().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_list_maps_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 1021 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_core_debug_map_print(), and rz_debug_map_sync().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_list_trace_session_mmap_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2242 of file cmd_debug.c.
References rz_core_t::dbg, RZ_CMD_STATUS_OK, rz_debug_session_list_memory(), and rz_debug_t::session.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_load_trace_session_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2231 of file cmd_debug.c.
References argv, rz_core_t::dbg, NULL, RZ_CMD_STATUS_OK, rz_debug_session_free(), rz_debug_session_load(), rz_debug_session_new(), and rz_debug_t::session.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_map_current_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1078 of file cmd_debug.c.
References addr, CMD_CHECK_DEBUG_DEAD, rz_core_t::offset, rz_cmd_state_output_fini(), rz_cmd_state_output_init(), rz_cmd_state_output_print(), RZ_CMD_STATUS_OK, rz_cons_flush(), rz_core_debug_map_print(), RZ_OUTPUT_MODE_LONG, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_modules_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 1038 of file cmd_debug.c.
References CMD_CHECK_DEBUG_DEAD, cmd_debug_modules(), and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_name_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2865 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_bp_item_t::name, rz_core_t::offset, PFMT64x, rz_bp_get_at(), rz_bp_item_set_name(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_process_close_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3497 of file cmd_debug.c.
References bool2status(), CMD_CHECK_DEBUG_DEAD, and rz_core_debug_process_close().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_process_profile_edit_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3485 of file cmd_debug.c.
References rz_io_t::envprofile, free(), rz_core_t::io, NULL, out, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), and rz_core_editor().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_process_profile_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3452 of file cmd_debug.c.
References argv, free(), i, key, list(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_list_append(), rz_list_free(), rz_list_get_n(), rz_list_length(), rz_list_new(), rz_list_to_str(), RZ_LOG_ERROR, RZ_STR_ISEMPTY, rz_str_split_duplist_n(), set_profile_string(), cmd_descs_generate::str, and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_remove_all_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2778 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_bp_del_all(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_remove_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2770 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_del(), RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_remove_bp_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2908 of file cmd_debug.c.
References addr, argv, rz_debug_t::bp, rz_core_t::dbg, i, rz_core_t::num, PFMT64x, rz_bp_del_index(), RZ_CMD_STATUS_OK, RZ_LOG_ERROR, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_remove_bp_plugin_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3027 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, i, rz_bp_plugin_del(), RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_run_command_bp_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2928 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_core_t::num, rz_bp_get_index(), rz_bp_item_set_data(), RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_save_trace_session_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2221 of file cmd_debug.c.
References argv, rz_core_t::dbg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_session_save(), RZ_LOG_ERROR, and rz_debug_t::session.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_set_cond_bp_win_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3215 of file cmd_debug.c.
References argv, rz_core_t::dbg, NULL, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, and rz_w32_add_winmsg_breakpoint().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_set_expr_bp_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2920 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_core_t::num, rz_bp_get_index(), rz_bp_item_set_expr(), RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_show_bp_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2881 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_core_t::offset, PFMT64x, rz_bp_get_index_at(), RZ_CMD_STATUS_OK, rz_cons_printf(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_show_cur_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2787 of file cmd_debug.c.
References rz_debug_t::bp, rz_core_t::dbg, rz_bp_item_t::enabled, rz_bp_item_t::name, rz_core_t::offset, rz_bp_item_t::perm, PFMT64x, rz_bp_get_at(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), and rz_str_rwx_i().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_start_trace_session_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2195 of file cmd_debug.c.
References rz_core_t::dbg, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_add_checkpoint(), rz_debug_is_dead(), rz_debug_session_new(), RZ_LOG_ERROR, and rz_debug_t::session.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_back_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3511 of file cmd_debug.c.
References argv, bool2status(), CMD_CHECK_DEBUG_DEAD, int, rz_core_t::num, rz_core_dbg_follow_seek_register(), rz_core_debug_step_back(), rz_num_math(), and times.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_cond_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3528 of file cmd_debug.c.
References argv, rz_core_t::break_loop, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, n, rz_core_t::num, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_dbg_follow_seek_register(), rz_core_reg_update_flags(), rz_core_static_debug_stop(), rz_debug_is_dead(), rz_debug_step(), RZ_LOG_INFO, and rz_num_conditional().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_frame_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3520 of file cmd_debug.c.
References bool2status(), CMD_CHECK_DEBUG_DEAD, rz_core_dbg_follow_seek_register(), and rz_core_debug_step_until_frame().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3503 of file cmd_debug.c.
References argv, bool2status(), int, rz_core_t::num, rz_core_dbg_follow_seek_register(), rz_core_debug_step_one(), rz_num_math(), and times.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_line_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3551 of file cmd_debug.c.
References argv, bool2status(), CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, int, rz_core_t::num, rz_debug_t::reg, rz_core_dbg_follow_seek_register(), rz_num_math(), rz_reg_arena_swap(), step_line(), and times.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_over_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3561 of file cmd_debug.c.
References argv, bool2status(), CMD_CHECK_DEBUG_DEAD, int, rz_core_t::num, rz_core_dbg_follow_seek_register(), rz_core_debug_step_over(), rz_num_math(), and times.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_prog_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3570 of file cmd_debug.c.
References addr, rz_core_t::analysis, argv, rz_core_t::bin, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, i, int, rz_core_t::io, rz_analysis_op_t::jump, rz_core_t::num, rz_debug_t::reg, rz_analysis_op(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_CALL, rz_bin_cur_object(), rz_bin_get_section_at(), RZ_CMD_STATUS_OK, rz_core_dbg_follow_seek_register(), rz_core_reg_update_flags(), rz_debug_reg_get(), rz_debug_reg_sync(), rz_debug_step(), rz_debug_step_over(), rz_io_read_at(), rz_num_math(), rz_reg_arena_swap(), RZ_REG_TYPE_GPR, s, times, rz_analysis_op_t::type, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_skip_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3597 of file cmd_debug.c.
References argv, bool2status(), CMD_CHECK_DEBUG_DEAD, int, rz_core_t::num, rz_core_dbg_follow_seek_register(), rz_core_debug_step_skip(), rz_num_math(), and times.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_until_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2046 of file cmd_debug.c.
References argv, RZ_CMD_STATUS_OK, rz_core_dbg_follow_seek_register(), and step_until_esil().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_until_flag_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2053 of file cmd_debug.c.
References argv, RZ_CMD_STATUS_OK, rz_core_dbg_follow_seek_register(), and step_until_flag().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_until_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2011 of file cmd_debug.c.
References argv, rz_core_t::dbg, rz_core_t::num, rz_debug_t::reg, RZ_CMD_STATUS_OK, rz_core_dbg_follow_seek_register(), rz_num_math(), rz_reg_arena_swap(), and step_until().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_until_instr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2019 of file cmd_debug.c.
References argv, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_dbg_follow_seek_register(), and step_until_inst().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_until_instr_regex_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2028 of file cmd_debug.c.
References argv, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_dbg_follow_seek_register(), and step_until_inst().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_step_until_optype_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2037 of file cmd_debug.c.
References argv, RZ_CMD_STATUS_OK, rz_core_dbg_follow_seek_register(), rz_list_free(), rz_list_new_from_array(), and step_until_optype().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_stop_trace_session_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2210 of file cmd_debug.c.
References rz_core_t::dbg, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_session_free(), RZ_LOG_ERROR, and rz_debug_t::session.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_toggle_bp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2842 of file cmd_debug.c.
References rz_core_t::offset, RZ_CMD_STATUS_OK, and rz_core_debug_breakpoint_toggle().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_toggle_bp_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2962 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_bp_item_t::enabled, rz_core_t::num, rz_bp_get_index(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_toggle_bp_trace_index_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3001 of file cmd_debug.c.
References argv, rz_debug_t::bp, rz_core_t::dbg, rz_bp_item_t::enabled, rz_core_t::num, rz_bp_get_index(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, rz_num_math(), and rz_bp_item_t::trace.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_add_addrs_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2106 of file cmd_debug.c.
References addr, argv, rz_core_t::dbg, i, NULL, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_trace_add(), RZ_LOG_ERROR, rz_num_get(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2087 of file cmd_debug.c.
References argv, rz_debug_tracepoint_t::count, count, rz_core_t::dbg, rz_core_t::num, rz_core_t::offset, PFMT64x, rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_HINT, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_op_analysis(), rz_debug_trace_add(), RZ_LOG_ERROR, and rz_num_math().
Referenced by rzshell_cmddescs_init().
Definition at line 2128 of file cmd_debug.c.
References rz_core_t::dbg, input(), and rz_debug_trace_at().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_calls_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2135 of file cmd_debug.c.
References addr, argv, debug_trace_calls(), from, rz_core_t::num, RZ_CMD_STATUS_OK, rz_num_math(), to, ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_esil_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2145 of file cmd_debug.c.
References rz_core_t::analysis, argv, rz_analysis_t::esil, setup::idx, rz_core_t::num, rz_analysis_esil_trace_show(), RZ_CMD_STATUS_OK, rz_core_analysis_esil_init(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_esils_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2153 of file cmd_debug.c.
References rz_core_t::analysis, rz_analysis_t::esil, rz_analysis_esil_trace_list(), RZ_CMD_STATUS_OK, and rz_core_analysis_esil_init().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_graph_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 2183 of file cmd_debug.c.
References rz_core_t::dbg, dot_trace_traverse(), RZ_CMD_STATUS_OK, rz_output_mode_to_char(), and rz_debug_t::tree.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2060 of file cmd_debug.c.
References rz_debug_tracepoint_t::addr, rz_debug_tracepoint_t::count, rz_core_t::dbg, rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_debug_trace_get(), RZ_LOG_ERROR, rz_debug_tracepoint_t::size, and rz_debug_tracepoint_t::times.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_interactive_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2189 of file cmd_debug.c.
References rz_core_t::dbg, dot_trace_traverse(), RZ_CMD_STATUS_OK, and rz_debug_t::tree.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_trace_tag_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2250 of file cmd_debug.c.
References argv, rz_core_t::dbg, rz_core_t::num, RZ_CMD_STATUS_OK, rz_debug_trace_tag(), rz_num_math(), and test-lz4-versions::tag.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_traces_ascii_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2081 of file cmd_debug.c.
References rz_core_t::dbg, rz_core_t::offset, RZ_CMD_STATUS_OK, and rz_debug_traces_ascii().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_traces_esil_delete_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2160 of file cmd_debug.c.
References rz_core_t::analysis, rz_analysis_t::esil, rz_analysis_esil_trace_t::instructions, rz_analysis_il_trace_instruction_free(), RZ_CMD_STATUS_OK, rz_core_analysis_esil_init(), rz_pvector_free(), rz_pvector_new(), and rz_analysis_esil_t::trace.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_traces_esil_i_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2170 of file cmd_debug.c.
References rz_core_t::analysis, rz_analysis_t::esil, rz_core_t::offset, PFMT64x, rz_analysis_esil_trace_op(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_ESIL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_analysis_esil_init(), rz_core_analysis_op(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_traces_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 2075 of file cmd_debug.c.
References rz_core_t::dbg, rz_core_t::offset, RZ_CMD_STATUS_OK, and rz_debug_trace_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_debug_traces_reset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2119 of file cmd_debug.c.
References rz_core_t::dbg, RZ_CMD_STATUS_OK, rz_debug_trace_free(), rz_debug_trace_new(), rz_debug_tracenodes_reset(), rz_tree_reset(), rz_debug_t::trace, and rz_debug_t::tree.
Referenced by rzshell_cmddescs_init().
Seek to PC
if needed.
core | The RzCore instance |
Definition at line 474 of file cmd_debug.c.
References rz_core_t::config, rz_core_t::dbg, rz_core_t::offset, pc, rz_config_get_i(), rz_core_debug_sync_bits(), rz_core_seek_to_register(), rz_debug_reg_get(), and ut64().
Referenced by rz_cmd_debug(), rz_cmd_debug_continue_back_handler(), rz_cmd_debug_continue_call_handler(), rz_cmd_debug_continue_exception_handler(), rz_cmd_debug_continue_execution_handler(), rz_cmd_debug_continue_fork_handler(), rz_cmd_debug_continue_ret_handler(), rz_cmd_debug_continue_send_signal_handler(), rz_cmd_debug_continue_syscall(), rz_cmd_debug_continue_traptrace_handler(), rz_cmd_debug_continue_unknown_call_handler(), rz_cmd_debug_continue_until(), rz_cmd_debug_step_back_handler(), rz_cmd_debug_step_cond_handler(), rz_cmd_debug_step_frame_handler(), rz_cmd_debug_step_handler(), rz_cmd_debug_step_line_handler(), rz_cmd_debug_step_over_handler(), rz_cmd_debug_step_prog_handler(), rz_cmd_debug_step_skip_handler(), rz_cmd_debug_step_until_esil_handler(), rz_cmd_debug_step_until_flag_handler(), rz_cmd_debug_step_until_handler(), rz_cmd_debug_step_until_instr_handler(), rz_cmd_debug_step_until_instr_regex_handler(), rz_cmd_debug_step_until_optype_handler(), rz_core_debug_continue(), and rz_core_debug_single_step_over().
RZ_IPI void rz_core_debug_bp_add | ( | RzCore * | core, |
ut64 | addr, | ||
const char * | arg_perm, | ||
bool | hwbp, | ||
bool | watch | ||
) |
Definition at line 1574 of file cmd_debug.c.
References addr, rz_core_t::dbg, f, rz_core_t::flags, free(), rz_bp_item_t::name, NULL, PFMT64x, rz_bp_item_set_name(), rz_core_flag_get_by_spaces(), rz_debug_bp_add(), RZ_LOG_ERROR, RZ_LOG_WARN, RZ_PERM_RW, RZ_PERM_RWX, rz_str_newf(), rz_str_rwx(), and strdup().
Referenced by __watch_points_cb(), rz_cmd_debug_add_bp_handler(), rz_cmd_debug_add_hw_bp_handler(), and rz_cmd_debug_add_watchpoint_handler().
Definition at line 1449 of file cmd_debug.c.
References foreach_reg_set_or_clear().
Referenced by rz_core_analysis_types_propagation(), and rz_core_debug_process_close().
Definition at line 1781 of file cmd_debug.c.
References addr, rz_core_t::config, rz_core_t::dbg, dev, done, eprintf, free(), help_msg_de, help_msg_des, input(), setup::line, NULL, rz_core_t::num, p, rz_config_get_i(), rz_cons_printf(), rz_core_analysis_esil_reinit(), rz_core_cmd_help(), rz_debug_esil_continue(), rz_debug_esil_prestep(), rz_debug_esil_step(), rz_debug_esil_watch(), rz_debug_esil_watch_empty(), rz_debug_esil_watch_list(), rz_debug_esil_watch_reset(), rz_debug_reg_get(), rz_num_math(), RZ_PERM_R, RZ_PERM_W, RZ_PERM_X, strdup(), and ut64().
Referenced by rz_cmd_debug().
Definition at line 1870 of file cmd_debug.c.
References rz_core_t::dbg, eprintf, free(), help_msg_dk, help_msg_dko, input(), rz_core_t::num, p, rz_debug_t::pid, rz_cons_printf(), rz_cons_println(), rz_core_cmd_help(), RZ_DBG_SIGNAL_CONT, RZ_DBG_SIGNAL_SKIP, rz_debug_kill(), rz_debug_kill_setup(), rz_debug_signal_list(), rz_debug_signal_setup(), rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_signal_from_string(), rz_signal_to_string(), signum, strdup(), and rz_debug_t::tid.
Referenced by rz_cmd_debug().
Definition at line 3616 of file cmd_debug.c.
References cmd_regs_sync(), rz_core_t::dbg, list(), rz_debug_t::reg, rz_reg_get_list(), RZ_REG_TYPE_GPR, and rz_regs_show_valgroup().
Referenced by rz_core_visual_debugtraces().
Definition at line 1443 of file cmd_debug.c.
References rz_core_t::flags, foreach_reg_set_or_clear(), and RZ_FLAGS_FS_REGISTERS.
RZ_IPI void rz_core_static_debug_stop | ( | void * | u | ) |
Definition at line 1565 of file cmd_debug.c.
References dbg, and rz_debug_stop().
Referenced by debug_trace_calls(), rz_cmd_debug(), rz_cmd_debug_continue_back_handler(), rz_cmd_debug_continue_call_handler(), rz_cmd_debug_continue_exception_handler(), rz_cmd_debug_continue_execution_handler(), rz_cmd_debug_continue_fork_handler(), rz_cmd_debug_continue_mapped_io_handler(), rz_cmd_debug_continue_ret_handler(), rz_cmd_debug_continue_send_signal_handler(), rz_cmd_debug_continue_syscall(), rz_cmd_debug_continue_traptrace_handler(), rz_cmd_debug_continue_unknown_call_handler(), rz_cmd_debug_continue_until(), rz_cmd_debug_step_cond_handler(), rz_core_debug_continue(), and rz_core_debug_single_step_over().
RZ_IPI RzCmdStatus rz_debug_drx_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3621 of file cmd_debug.c.
References argv, rz_core_t::dbg, int, len, n, rz_core_t::num, off, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_debug_drx_list(), rz_debug_drx_set(), rz_debug_reg_sync(), rz_num_math(), RZ_REG_TYPE_DRX, rz_str_rwx(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_debug_drx_unset_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 3646 of file cmd_debug.c.
References argv, rz_core_t::dbg, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, rz_debug_drx_unset(), rz_debug_reg_sync(), RZ_REG_TYPE_DRX, and rz_return_val_if_fail.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_debug_memory_permission_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1288 of file cmd_debug.c.
References addr, argv, CMD_CHECK_DEBUG_DEAD, rz_core_t::dbg, map(), rz_debug_t::maps, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_debug_map_protect(), rz_num_math(), rz_str_rwx(), ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
Definition at line 192 of file cmd_debug.c.
References rz_core_t::config, free(), rz_config_get(), rz_config_set(), rz_file_dump(), rz_file_temp(), RZ_STR_ISEMPTY, cmd_descs_generate::str, and strdup().
Referenced by rz_cmd_debug_process_profile_handler().
Definition at line 598 of file cmd_debug.c.
References rz_core_t::bin, rz_core_t::dbg, free(), setup::line, NULL, off, PFMT64x, rz_bin_addr2line(), rz_core_reg_update_flags(), rz_debug_reg_get(), rz_debug_step(), rz_file_slurp_line(), RZ_LOG_ERROR, RZ_LOG_INFO, and ut64().
Referenced by rz_cmd_debug_step_line_handler().
Definition at line 352 of file cmd_debug.c.
References addr, rz_core_t::break_loop, rz_core_t::dbg, eprintf, NULL, off, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_reg_update_flags(), rz_debug_is_dead(), rz_debug_reg_get(), rz_debug_step(), and ut64().
Referenced by rz_cmd_debug_step_until_handler().
Definition at line 381 of file cmd_debug.c.
References rz_core_t::analysis, rz_debug_t::analysis, rz_core_t::break_loop, rz_core_t::dbg, eprintf, rz_analysis_t::esil, NULL, rz_analysis_esil_condition(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_reg_update_flags(), rz_debug_is_dead(), rz_debug_reg_sync(), rz_debug_step(), and RZ_REG_TYPE_ANY.
Referenced by rz_cmd_debug_step_until_esil_handler().
Definition at line 562 of file cmd_debug.c.
References rz_core_t::dbg, rz_core_t::flags, list(), NULL, rz_flag_item_t::offset, pc, PFMT64x, rz_flag_item_t::realname, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_core_reg_update_flags(), rz_debug_is_dead(), rz_debug_reg_get(), rz_debug_reg_sync(), rz_debug_step(), rz_flag_get_list(), RZ_LOG_ERROR, RZ_REG_TYPE_ANY, and ut64().
Referenced by rz_cmd_debug_step_until_flag_handler().
Definition at line 416 of file cmd_debug.c.
References rz_core_t::config, rz_core_t::dbg, eprintf, rz_core_t::io, is_repeatable_inst(), NULL, pc, PFMT64x, rz_core_t::rasm, rz_asm_disassemble(), rz_asm_op_get_asm(), rz_asm_set_pc(), rz_config_get(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_reg_update_flags(), rz_debug_is_dead(), rz_debug_reg_get(), rz_debug_reg_sync(), rz_debug_step(), rz_debug_step_over(), rz_io_read_at(), RZ_LOG_ERROR, RZ_REG_TYPE_ANY, rz_regex_match(), rz_return_val_if_fail, rz_str_startswith(), rz_str_trim_head_ro(), and ut64().
Referenced by rz_cmd_debug_step_until_instr_handler(), and rz_cmd_debug_step_until_instr_regex_handler().
Definition at line 486 of file cmd_debug.c.
References rz_core_t::analysis, rz_debug_t::analysis, rz_core_t::break_loop, rz_core_t::config, rz_core_t::dbg, test_evm::end, rz_core_t::io, rz_io_bind_t::io, rz_debug_t::iob, rz_reg_t::name, NULL, op, optype, pc, rz_io_bind_t::read_at, rz_analysis_t::reg, rz_debug_t::reg, rz_analysis_op(), RZ_ANALYSIS_OP_MASK_BASIC, rz_analysis_optype_to_string(), rz_config_get_b(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_core_esil_step(), rz_core_reg_update_flags(), rz_debug_is_dead(), rz_debug_reg_get(), rz_debug_step(), rz_io_read_at(), RZ_LOG_ERROR, rz_reg_getv(), RZ_REG_NAME_PC, ut64(), and UT64_MAX.
Referenced by rz_cmd_debug_step_until_optype_handler(), and rz_il_step_until_opt_handler().
|
static |
Definition at line 1642 of file cmd_debug.c.
References rz_tree_visitor_t::pre_visit, rz_tree_dfs(), and trace_traverse_pre().
Referenced by debug_trace_calls().
|
static |
Definition at line 1624 of file cmd_debug.c.
References _core, trace_node::addr, f, rz_core_t::flags, i, n, PFMT64x, trace_node::refs, rz_cons_printf(), and rz_flag_get_at().
Referenced by trace_traverse().
Definition at line 1622 of file cmd_debug.c.
Referenced by __disasm(), __init_menu_color_settings_layout(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_saved_layout(), __init_menu_screen_settings_layout(), cb_diff_sort(), debug_trace_calls(), rz_analysis_reflines_str(), and trace_traverse_pre().
|
static |
Definition at line 27 of file cmd_debug.c.
Referenced by rz_cmd_debug().
|
static |
Definition at line 55 of file cmd_debug.c.
Referenced by rz_cmd_debug_continue_syscall().
|
static |
Definition at line 63 of file cmd_debug.c.
Referenced by cmd_dcu(), and rz_cmd_debug_continue_until().
|
static |
Definition at line 72 of file cmd_debug.c.
Referenced by rz_cmd_debug().
|
static |
Definition at line 85 of file cmd_debug.c.
Referenced by rz_core_debug_esil().
|
static |
Definition at line 96 of file cmd_debug.c.
Referenced by rz_core_debug_esil().
|
static |
Definition at line 103 of file cmd_debug.c.
Referenced by rz_cmd_debug().
|
static |
Definition at line 113 of file cmd_debug.c.
Referenced by rz_core_debug_kill().
|
static |
Definition at line 125 of file cmd_debug.c.
Referenced by rz_core_debug_kill().
|
static |
Definition at line 133 of file cmd_debug.c.
Referenced by rz_cmd_debug_dmi().
|
static |
Definition at line 143 of file cmd_debug.c.
Referenced by cmd_debug_pid().
|
static |
Definition at line 168 of file cmd_debug.c.
Referenced by rz_cmd_debug().