Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
|
static |
Definition at line 72 of file cmd_cmp.c.
References b1, cmp(), color, Color_RESET, rz_core_t::config, rz_cons_t::context, free(), rz_cons_printable_palette_t::graph_false, rz_cons_printable_palette_t::graph_true, i, n, rz_cons_printable_palette_t::offset, rz_cons_context_t::pal, PFMT64x, rz_config_get_i(), rz_cons_newline(), rz_cons_printf(), rz_cons_singleton(), rz_str_newf(), and rz_str_pad().
Referenced by rz_cmd_cmp_bits_handler().
|
static |
Definition at line 48 of file cmd_cmp.c.
References B_IS_SET, B_SET, B_UNSET, cmp(), rz_print_t::flags, i, min, rz_core_t::print, rz_cons_printf(), rz_core_print_hexdiff(), RZ_MIN, and RZ_PRINT_FLAGS_HEADER.
Referenced by rz_cmd_cmp_unified_handler().
Definition at line 7 of file cmd_cmp.c.
References color, Color_RESET, rz_core_t::config, rz_cons_t::context, rz_cons_printable_palette_t::graph_false, i, rz_core_t::io, len, memset(), rz_cons_printable_palette_t::offset, rz_cons_context_t::pal, PFMT32x, PFMT64x, rz_config_get_i(), rz_cons_printf(), rz_cons_singleton(), rz_io_nread_at(), v0, and v1.
Referenced by rz_cmd_cmp_unified1_handler(), rz_cmd_cmp_unified2_handler(), rz_cmd_cmp_unified4_handler(), and rz_cmd_cmp_unified8_handler().
RZ_IPI RzCmdStatus rz_cmd_cmp_add_memory_watcher_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 289 of file cmd_cmp.c.
References argv, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_cmpwatch_add().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_addr_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 144 of file cmd_cmp.c.
References argv, cmp(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_free(), rz_core_cmp_mem_mem(), rz_core_cmp_print(), rz_num_math(), and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_bits_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 133 of file cmd_cmp.c.
References argv, cmp(), core_cmp_bits(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_free(), rz_core_cmp_mem_mem(), rz_num_math(), and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_bytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 155 of file cmd_cmp.c.
References argv, cmp(), test_evm::end, mask, rz_core_t::num, num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_free(), rz_core_cmp_mem_data(), rz_core_cmp_print(), RZ_LOG_ERROR, rz_num_math(), ut64(), and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_disasm_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 211 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, cmp(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_disasm(), rz_core_cmp_disasm_print(), rz_list_free(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_file_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 219 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, cmp(), fd, benchmark::FILE, free(), malloc(), rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_free(), rz_core_cmp_mem_data(), rz_core_cmp_print(), RZ_LOG_ERROR, rz_sys_fopen(), stat, and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_hex_block_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 180 of file cmd_cmp.c.
References addr, argv, b, rz_core_t::block, rz_core_t::blocksize, rz_cons_t::columns, rz_core_t::cons, free(), rz_core_t::io, malloc(), memset(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_OK, rz_core_print_hexdiff(), rz_io_nread_at(), rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_hex_block_hexdiff_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 351 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, cmp(), free(), rz_core_t::io, malloc(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_free(), rz_core_cmp_mem_data(), rz_core_cmp_print(), rz_io_nread_at(), RZ_LOG_ERROR, rz_num_math(), and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_hex_diff_lines_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 194 of file cmd_cmp.c.
References addr, argv, b, rz_core_t::block, rz_core_t::blocksize, rz_cons_t::columns, rz_core_t::cons, rz_print_t::flags, free(), rz_core_t::io, malloc(), memset(), rz_core_t::num, rz_core_t::offset, rz_core_t::print, RZ_CMD_STATUS_OK, rz_core_print_hexdiff(), rz_io_nread_at(), rz_num_math(), RZ_PRINT_FLAGS_DIFFOUT, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_hexpair_string_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 315 of file cmd_cmp.c.
References argv, rz_core_t::block, cmp(), free(), i, input(), malloc(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_free(), rz_core_cmp_mem_data(), rz_core_cmp_print(), rz_hex_bin2str(), rz_hex_str2bin(), RZ_LOG_ERROR, rz_str_remove_char(), strdup(), val, and rz_num_t::value.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_list_compare_watchers_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 294 of file cmd_cmp.c.
References RZ_CMD_STATUS_OK, rz_core_cmpwatch_show(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_remove_watcher_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 310 of file cmd_cmp.c.
References rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_cmpwatch_del().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_reset_watcher_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 300 of file cmd_cmp.c.
References rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_cmpwatch_revert().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_string_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 115 of file cmd_cmp.c.
References argv, cmp(), test_evm::end, free(), len, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_free(), rz_core_cmp_mem_data(), rz_core_cmp_print(), rz_str_unescape(), strdup(), and val.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_unified1_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 257 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, rz_core_t::num, rz_core_t::offset, rizin_compare_words(), RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_unified2_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 263 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, rz_core_t::num, rz_core_t::offset, rizin_compare_words(), RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_unified4_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 269 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, rz_core_t::num, rz_core_t::offset, rizin_compare_words(), RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_unified8_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 275 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, rz_core_t::num, rz_core_t::offset, rizin_compare_words(), RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_unified_disasm_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 281 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, cmp(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_disasm(), rz_core_cmp_disasm_print(), rz_list_free(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_unified_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 249 of file cmd_cmp.c.
References argv, rz_core_t::blocksize, cmp(), rz_core_t::num, rz_core_t::offset, rizin_compare_unified(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_cmp_free(), rz_core_cmp_mem_mem(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_cmp_update_watcher_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 305 of file cmd_cmp.c.
References rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_cmpwatch_update().
Referenced by rzshell_cmddescs_init().