Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_asm.h>
#include <rz_core.h>
#include <rz_config.h>
#include <rz_util.h>
#include <rz_type.h>
#include <rz_types.h>
#include <limits.h>
#include "../core_private.h"
#include "rz_util/rz_strbuf.h"
Go to the source code of this file.
Macros | |
#define | PF_USAGE_STR "pf[.k[.f[=v]]|[v]]|[n]|[0|cnt][fmt] [a0 a1 ...]" |
#define | append(x, y) |
#define | USE_PREFIXES 1 |
#define | CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL(name, type) |
#define | CMD_PRINT_BYTE_ARRAY_HANDLER_ENDIAN(name, type) |
Variables | |
static const char * | help_msg_pp [] |
static const char * | help_msg_pc [] |
static const char * | help_msg_pF [] |
static const char * | help_msg_pr [] |
static const char * | help_msg_prg [] |
static const char * | help_msg_amper [] |
static const char * | help_msg_at [] |
static const char * | help_msg_at_at [] |
static const char * | help_msg_at_at_at [] |
static const char * | help_msg_p [] |
static const char * | help_msg_p_equal [] |
static const char * | help_msg_pj [] |
static const char * | help_msg_p_minus [] |
static const char * | help_msg_pf [] |
static const char * | help_detail_pf [] |
static const char * | help_detail2_pf [] |
static const char * | help_msg_pi [] |
static const char * | help_msg_pif [] |
static const char * | help_msg_po [] |
static const char * | help_msg_ps [] |
static const char * | help_msg_pv [] |
static const char * | help_msg_px [] |
const char * | help_msg_pxA [] |
static const ut32 | colormap [256] |
static const char * | help_msg_pg [] |
#define append | ( | x, | |
y | |||
) |
Definition at line 1740 of file cmd_print.c.
Definition at line 6223 of file cmd_print.c.
Definition at line 6212 of file cmd_print.c.
Definition at line 15 of file cmd_print.c.
#define USE_PREFIXES 1 |
|
static |
Definition at line 4430 of file cmd_print.c.
References rz_core_t::analysis, rz_core_t::io, list(), n, PFMT64x, rz_analysis_xrefs_get_to(), rz_io_is_valid_offset(), rz_str_trim(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_new(), sb, rz_analysis_ref_t::to, and UT64_MAX.
Referenced by disassembly_as_table().
Definition at line 4043 of file cmd_print.c.
References rz_core_t::blocksize, calloc(), eprintf, free(), help_msg_pp, i, incAlphaBuffer(), incDigitBuffer(), input(), len, min, NULL, rz_core_t::num, rz_core_t::offset, PFMT64x, rz_cons_newline(), rz_cons_printf(), rz_core_cmd_help(), rz_debruijn_pattern(), rz_num_math(), rz_str_nextword(), st64, strdup(), UT32_MAX, and ut64().
Referenced by rz_cmd_print().
Definition at line 4458 of file cmd_print.c.
References rz_print_t::hasrefs, NULL, rz_core_t::print, RZ_FREE, RZ_STR_ISNOTEMPTY, rz_str_trim(), rz_print_t::user, and x.
Referenced by cmd_pxr().
|
static |
Definition at line 2571 of file cmd_print.c.
References rz_asm_t::cur, setup::line, NULL, rz_core_t::rasm, rz_return_if_fail, and cmd_descs_generate::str.
Referenced by disasm_strings().
|
static |
Definition at line 4003 of file cmd_print.c.
References addr, delta, i, rz_core_t::io, len, n, PFMT64x, rz_cons_printf(), rz_io_is_valid_offset(), RZ_OUTPUT_MODE_RIZIN, st32, step(), and ut64().
Referenced by rz_print_delta_pointer_table_handler().
|
static |
Definition at line 3427 of file cmd_print.c.
References rz_core_t::analysis, rz_analysis_function_t::bbs, blocksize, calloc(), checkAnalType(), eprintf, free(), from, i, matchBar(), NULL, off, rz_analysis_get_fcn_in(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, rz_cons_is_breaked(), rz_core_analysis_get_stats(), rz_core_analysis_op(), rz_core_analysis_stats_free(), rz_list_length(), RZ_MIN, rz_vector_index_ptr(), rz_vector_len(), to, type, ut64(), and value.
Referenced by cmd_print_bars().
Definition at line 1745 of file cmd_print.c.
References addr, rz_core_t::analysis, append, rz_core_t::block, rz_core_t::blocksize, bytes, calloc(), rz_print_t::col, rz_flag_item_t::color, Color_GREEN, Color_INVERT, Color_INVERT_RESET, Color_RESET, colors, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, rz_print_t::cur, rz_print_t::cur_enabled, rz_interval_node_t::data, rz_core_t::flags, rz_print_t::flags, free(), rz_print_t::get_comments, make_dist_html::html, i, rz_core_t::io, IS_PRINTABLE, len, max, memcpy(), memset(), rz_flag_item_t::name, NULL, rz_print_t::ocur, off, rz_cons_printable_palette_t::offset, rz_core_t::offset, rz_flag_item_t::offset, out, rz_cons_context_t::pal, rz_print_t::pava, PFMT64x, rz_core_t::print, RZ_ARRAY_SIZE, rz_config_get_i(), rz_cons_newline(), rz_cons_pal_parse(), rz_cons_printf(), rz_cons_rainbow_get(), rz_cons_strcat(), rz_core_cmdf(), rz_core_get_section_name(), rz_flag_get_i(), RZ_FREE, rz_io_p2v(), RZ_MAX, rz_meta_get_in(), rz_meta_get_string(), RZ_META_TYPE_COMMENT, RZ_META_TYPE_FORMAT, RZ_MIN, rz_print_byte_color(), RZ_PRINT_FLAGS_COMPACT, rz_str_newf(), rz_str_prepend(), s, sdb_fmt(), rz_flag_item_t::size, sprintf, rz_interval_node_t::start, step(), rz_analysis_meta_item_t::str, strdup(), rz_analysis_meta_item_t::type, rz_print_t::use_comments, rz_print_t::user, ut64(), and UT64_MAX.
Referenced by rz_print_hexdump_annotated_handler().
|
static |
Definition at line 3998 of file cmd_print.c.
Referenced by core_walk_function_blocks(), and func_walk_blocks().
|
static |
Definition at line 3385 of file cmd_print.c.
References RZ_ANALYSIS_OP_FAMILY_PRIV, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_ILL, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_RCALL, RZ_ANALYSIS_OP_TYPE_SWI, RZ_ANALYSIS_OP_TYPE_TRAP, and RZ_ANALYSIS_OP_TYPE_UCALL.
Referenced by analBars().
Definition at line 1065 of file cmd_print.c.
References color, Color_BGBLUE, Color_BGGREEN, Color_BGRED, Color_RESET, rz_core_t::config, free(), rz_core_t::hash, rz_core_t::io, malloc(), rz_config_get_i(), rz_cons_printf(), rz_hash_entropy_fraction(), rz_io_read_at(), and ut8.
Referenced by cmd_print_blocks().
Definition at line 850 of file cmd_print.c.
References rz_core_t::blocksize, c, cmd, rz_core_t::config, dis(), free(), h, i, input(), rz_core_t::num, rz_core_t::offset, rz_config_get(), rz_config_get_i(), rz_config_set(), rz_cons_canvas_free(), rz_cons_canvas_gotoxy(), rz_cons_canvas_new(), rz_cons_canvas_print(), rz_cons_canvas_write(), rz_cons_get_size(), rz_core_block_size(), rz_core_cmd_str(), rz_core_seek(), rz_num_math(), rz_str_newf(), strdup(), ut64(), and w.
Referenced by rz_cmd_print().
Definition at line 935 of file cmd_print.c.
References rz_core_t::blocksize, c, cmd, rz_core_t::config, dis(), free(), h, i, input(), NULL, rz_core_t::num, rz_core_t::offset, PFMT64x, rz_config_get(), rz_config_get_i(), rz_config_set(), rz_cons_canvas_free(), rz_cons_canvas_gotoxy(), rz_cons_canvas_new(), rz_cons_canvas_print(), rz_cons_canvas_write(), rz_cons_get_size(), rz_core_block_size(), rz_core_cmd_str(), rz_core_seek(), rz_num_math(), rz_str_newf(), rz_core_t::stkcmd, strdup(), ut64(), and w.
Referenced by rz_cmd_print().
Definition at line 989 of file cmd_print.c.
References c, cmd, rz_core_t::config, dis(), eprintf, err, free(), h, i, input(), rz_core_t::num, rz_core_t::offset, PFMT64u, rz_config_get_i(), rz_config_set_i(), rz_cons_canvas_free(), rz_cons_canvas_gotoxy(), rz_cons_canvas_new(), rz_cons_canvas_print(), rz_cons_canvas_write(), rz_cons_get_size(), rz_core_cmd_str(), rz_num_math(), rz_str_newf(), ut64(), and w.
Referenced by rz_cmd_print().
Definition at line 755 of file cmd_print.c.
References color, Color_RESET, colormap, rz_core_t::config, rz_print_t::cur, rz_print_t::cur_enabled, rz_core_t::flags, rz_print_t::flags, test-lz4-speed::float, free(), i, setup::idx, rz_io_bind_t::io, rz_print_t::io_unalloc_ch, rz_print_t::iob, rz_io_bind_t::is_valid_offset, len, rz_flag_item_t::name, NULL, rz_core_t::offset, rz_core_t::print, rz_config_get_i(), rz_cons_newline(), rz_cons_pal_parse(), rz_cons_printf(), rz_core_get_section_name(), rz_flag_get_i(), rz_print_addr(), RZ_PRINT_FLAGS_UNALLOC, rz_str_newf(), cmd_descs_generate::str, and strdup().
Referenced by rz_cmd_print().
Definition at line 3554 of file cmd_print.c.
References rz_interval_t::addr, analBars(), rz_core_t::analysis, rz_analysis_function_t::bbs, rz_core_t::block, blocksize, rz_core_t::blocksize, calloc(), cmd_print_eq_dict(), rz_core_t::config, core_print_columns(), rz_print_t::cur, rz_print_t::cur_enabled, rz_core_t::dbg, eprintf, rz_core_file_t::fd, rz_core_t::file, rz_core_t::flags, rz_print_t::flags, free(), from, rz_core_t::hash, help_msg_p_equal, i, input(), rz_core_t::io, IS_PRINTABLE, rz_io_map_t::itv, k, len, list(), malloc(), map(), matchBar(), NULL, rz_core_t::num, rz_print_t::num, off, rz_core_t::offset, p, PFMT64d, PFMT64x, pj_a(), pj_end(), pj_free(), pj_k(), pj_ki(), pj_kn(), pj_new(), pj_o(), pj_string(), rz_core_t::print, rz_analysis_get_fcn_in(), rz_config_get_b(), rz_config_get_i(), rz_cons_newline(), rz_cons_printf(), rz_cons_println(), rz_core_analysis_get_stats(), rz_core_analysis_stats_free(), rz_core_block_read(), rz_core_block_size(), rz_core_cmd_help(), rz_core_get_boundaries_prot(), rz_debug_map_get(), rz_flag_get_at(), RZ_FREE, rz_hash_entropy_fraction(), rz_io_fd_size(), rz_io_read_at(), rz_itv_end(), rz_list_first(), rz_list_free(), rz_list_length(), RZ_MAX, RZ_MIN, rz_num_math(), rz_print_fill(), RZ_PRINT_FLAGS_OFFSET, rz_print_progressbar(), rz_vector_index_ptr(), rz_vector_len(), ST16_MAX, st64, step(), to, UT16_MAX, ut64(), UT64_MAX, ut8, value, and rz_num_t::value.
Referenced by rz_cmd_print().
Definition at line 3185 of file cmd_print.c.
References cleanup(), cmd_p_minus_e(), Color_RESET, rz_print_t::cols, rz_core_t::config, f, free(), from, help_msg_p_minus, i, input(), int, rz_core_t::io, len, list(), map(), NULL, rz_core_t::num, off, rz_core_t::offset, PFMT64x, pj_a(), pj_end(), pj_free(), pj_k(), pj_ki(), pj_kn(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_core_t::print, rz_config_get_i(), rz_cons_memcat(), rz_cons_printf(), rz_cons_println(), rz_cons_singleton(), rz_core_analysis_get_stats(), rz_core_analysis_stats_free(), rz_core_analysis_stats_get_block_from(), rz_core_analysis_stats_get_block_to(), rz_core_cmd_help(), rz_core_get_boundaries_prot(), rz_core_table(), rz_io_map_get(), rz_itv_begin(), rz_itv_end(), rz_list_free(), RZ_LOG_ERROR, RZ_MAX, rz_num_math(), RZ_PERM_X, rz_str_rwx_i(), rz_table_add_rowf(), rz_table_free(), rz_table_set_columnsf(), rz_table_tofancystring(), rz_vector_index_ptr(), rz_vector_len(), s, sdb_fmt(), RzTable::showSum, to, ut64(), UT64_MAX, and w.
Referenced by rz_cmd_print().
CMD_PRINT_BYTE_ARRAY_HANDLER_ENDIAN | ( | rz_cmd_print_byte_array_c_cpp_double_word_handler | , |
RZ_LANG_BYTE_ARRAY_C_CPP_DOUBLEWORDS | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_ENDIAN | ( | rz_cmd_print_byte_array_c_cpp_half_word_handler | , |
RZ_LANG_BYTE_ARRAY_C_CPP_HALFWORDS | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_ENDIAN | ( | rz_cmd_print_byte_array_c_cpp_word_handler | , |
RZ_LANG_BYTE_ARRAY_C_CPP_WORDS | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_asm_handler | , |
RZ_LANG_BYTE_ARRAY_ASM | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_bash_handler | , |
RZ_LANG_BYTE_ARRAY_BASH | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_c_cpp_bytes_handler | , |
RZ_LANG_BYTE_ARRAY_C_CPP_BYTES | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_golang_handler | , |
RZ_LANG_BYTE_ARRAY_GOLANG | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_java_handler | , |
RZ_LANG_BYTE_ARRAY_JAVA | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_json_handler | , |
RZ_LANG_BYTE_ARRAY_JSON | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_kotlin_handler | , |
RZ_LANG_BYTE_ARRAY_KOTLIN | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_nodejs_handler | , |
RZ_LANG_BYTE_ARRAY_NODEJS | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_objc_handler | , |
RZ_LANG_BYTE_ARRAY_OBJECTIVE_C | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_python_handler | , |
RZ_LANG_BYTE_ARRAY_PYTHON | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_rizin_handler | , |
RZ_LANG_BYTE_ARRAY_RIZIN | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_rust_handler | , |
RZ_LANG_BYTE_ARRAY_RUST | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_swift_handler | , |
RZ_LANG_BYTE_ARRAY_SWIFT | |||
) |
CMD_PRINT_BYTE_ARRAY_HANDLER_NORMAL | ( | rz_cmd_print_byte_array_yara_handler | , |
RZ_LANG_BYTE_ARRAY_YARA | |||
) |
Definition at line 1030 of file cmd_print.c.
References i, max, min, capstone::range, and rz_cons_printf().
Referenced by cmd_print_bars().
|
static |
Definition at line 1422 of file cmd_print.c.
References rz_core_t::analysis, args, rz_core_t::block, rz_core_t::blocksize, calloc(), rz_core_t::config, eprintf, eq, files, fn, create_tags_rz::fname, free(), rz_print_t::get_register, rz_print_t::get_register_value, help_detail2_pf, help_detail_pf, help_msg_pf, input(), len, memcpy(), name, NULL, rz_core_t::num, rz_print_t::num, rz_core_t::offset, path, prefix, rz_core_t::print, print_format_help_help_help_help(), rz_print_t::reg, rz_config_get(), rz_cons_printf(), rz_cons_println(), rz_core_block_size(), rz_core_cmd0(), rz_core_cmd_file(), rz_core_cmd_help(), rz_core_reg_default(), rz_file_path_join(), RZ_JOIN_3_PATHS, rz_list_free(), RZ_MAX, rz_path_home_prefix(), rz_path_prefix(), rz_path_system(), rz_reg_get(), rz_reg_get_value(), RZ_SDB_FORMAT, rz_str_endswith(), rz_str_isnumber(), rz_str_trim_head_ro(), rz_sys_dir(), rz_type_db_format_all(), rz_type_db_format_delete(), rz_type_db_format_get(), rz_type_db_format_purge(), rz_type_db_format_set(), rz_type_format_data(), rz_type_format_struct_size(), rz_type_parse_file(), strdup(), rz_analysis_t::typedb, and val.
Referenced by rz_cmd_print().
|
static |
Definition at line 1098 of file cmd_print.c.
References asn1_setformat(), eprintf, free(), help_msg_pF, input(), NULL, rz_asn1_create_object(), rz_asn1_free_object(), rz_asn1_to_string(), rz_axml_decode(), rz_cons_printf(), rz_core_cmd_help(), rz_pkcs7_cms_to_string(), rz_pkcs7_free_cms(), rz_pkcs7_parse_cms(), rz_protobuf_decode(), rz_strbuf_drain(), rz_strbuf_new(), rz_x509_certificate_dump(), rz_x509_free_certificate(), rz_x509_parse_certificate(), s, and sb.
Referenced by rz_cmd_print().
Definition at line 1260 of file cmd_print.c.
References args, cmd, eprintf, free(), g, rz_core_t::gadgets, h, H, help_msg_pg, input(), rz_core_t::num, rz_cons_printf(), rz_core_cmd_help(), rz_core_gadget_free(), rz_core_gadget_print(), rz_list_append(), rz_list_free(), rz_list_get_n(), rz_list_newf(), rz_list_pop_head(), RZ_NEW0, rz_num_math(), rz_str_list_join(), rz_str_split_list(), strdup(), W, w, X, and x.
Referenced by rz_cmd_print().
Definition at line 2514 of file cmd_print.c.
References buflen, free(), help_msg_po, input(), NULL, rz_core_t::offset, old_transform_op(), rz_core_cmd_help(), and rz_core_print_hexdump().
Referenced by rz_cmd_print().
Definition at line 2986 of file cmd_print.c.
References b, rz_print_t::big_endian, rz_asm_t::bits, rz_core_t::block, blocksize, rz_core_t::blocksize, eprintf, free(), help_msg_pv, i, input(), n, NULL, rz_core_t::num, rz_core_t::offset, p, PFMT64d, PFMT64x, pj_a(), pj_end(), pj_free(), pj_i(), pj_k(), pj_ks(), pj_n(), pj_new(), pj_o(), pj_string(), rz_core_t::print, rz_core_t::rasm, repeat(), rz_cons_printf(), rz_cons_println(), rz_core_cmd_help(), rz_core_cmd_str(), rz_core_cmdf(), rz_core_seek(), rz_num_math(), rz_read_ble16(), rz_read_ble32(), rz_read_ble64(), rz_read_ble8(), rz_str_trim(), rz_str_trim_head_ro(), st64, cmd_descs_generate::str, type, UT16_MAX, UT32_MAX, ut64(), UT64_MAX, UT8_MAX, and v.
Referenced by rz_cmd_print().
|
static |
Definition at line 2175 of file cmd_print.c.
References rz_core_t::analysis, rz_cons_printable_palette_t::bin, rz_core_t::block, rz_core_t::blocksize, c, rz_cons_printable_palette_t::call, rz_cons_printable_palette_t::cjmp, rz_cons_printable_palette_t::cmp, color, Color_BGBLACK, Color_BGCYAN, Color_BGRED, Color_BLACK, Color_WHITE, Color_YELLOW, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, rz_print_t::cur, rz_print_t::cur_enabled, eprintf, free(), i, rz_cons_printable_palette_t::invalid, rz_core_t::io, rz_cons_printable_palette_t::jmp, len, malloc(), rz_cons_printable_palette_t::math, rz_cons_printable_palette_t::mov, rz_cons_printable_palette_t::nop, NULL, rz_core_t::offset, op, rz_cons_context_t::pal, PFMT64d, PFMT64u, PFMT64x, rz_cons_printable_palette_t::pop, rz_core_t::print, rz_cons_printable_palette_t::push, rz_cons_printable_palette_t::ret, rz_cons_t::rows, rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_ACMP, RZ_ANALYSIS_OP_TYPE_ADD, RZ_ANALYSIS_OP_TYPE_AND, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CAST, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_CMOV, RZ_ANALYSIS_OP_TYPE_CMP, RZ_ANALYSIS_OP_TYPE_DIV, RZ_ANALYSIS_OP_TYPE_ICALL, RZ_ANALYSIS_OP_TYPE_IJMP, RZ_ANALYSIS_OP_TYPE_ILL, RZ_ANALYSIS_OP_TYPE_IO, RZ_ANALYSIS_OP_TYPE_IRCALL, RZ_ANALYSIS_OP_TYPE_IRJMP, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_LEA, RZ_ANALYSIS_OP_TYPE_LENGTH, RZ_ANALYSIS_OP_TYPE_MJMP, RZ_ANALYSIS_OP_TYPE_MOV, RZ_ANALYSIS_OP_TYPE_MUL, RZ_ANALYSIS_OP_TYPE_NEW, RZ_ANALYSIS_OP_TYPE_NOP, RZ_ANALYSIS_OP_TYPE_OR, RZ_ANALYSIS_OP_TYPE_POP, RZ_ANALYSIS_OP_TYPE_PUSH, RZ_ANALYSIS_OP_TYPE_RCALL, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_RJMP, RZ_ANALYSIS_OP_TYPE_RPUSH, RZ_ANALYSIS_OP_TYPE_SHL, RZ_ANALYSIS_OP_TYPE_SHR, RZ_ANALYSIS_OP_TYPE_SUB, RZ_ANALYSIS_OP_TYPE_SWI, RZ_ANALYSIS_OP_TYPE_TRAP, RZ_ANALYSIS_OP_TYPE_UCALL, RZ_ANALYSIS_OP_TYPE_UCCALL, RZ_ANALYSIS_OP_TYPE_UCJMP, RZ_ANALYSIS_OP_TYPE_UJMP, RZ_ANALYSIS_OP_TYPE_UNK, RZ_ANALYSIS_OP_TYPE_UPUSH, RZ_ANALYSIS_OP_TYPE_XOR, rz_config_get_i(), rz_cons_invert(), rz_cons_printf(), rz_cons_swap_ground(), rz_io_read_at(), RZ_MAX, RZ_OUTPUT_MODE_LONG, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, snprintf, rz_cons_printable_palette_t::swi, create_tags_rz::text, rz_cons_printable_palette_t::trap, and ut64().
Referenced by rz_print_op_analysis_color_map_handler().
Definition at line 4369 of file cmd_print.c.
References x.
Referenced by rz_print_hexdump_bits_handler().
|
inlinestatic |
Definition at line 4365 of file cmd_print.c.
References input(), and IS_PRINTABLE.
Referenced by rz_print_hexdump_bits_handler().
|
static |
Definition at line 4472 of file cmd_print.c.
References __refs(), addr, rz_core_t::analysis, rz_analysis_t::big_endian, rz_asm_t::bits, rz_core_t::block, rz_core_t::blocksize, rz_print_t::cols, rz_core_t::config, test_evm::end, rz_print_t::flags, free(), i, int, len, n, NULL, rz_core_t::offset, PFMT64x, pj_a(), pj_end(), pj_k(), pj_kn(), pj_ks(), pj_o(), rz_core_t::print, rz_core_t::rasm, rz_config_get_i(), rz_core_analysis_hasrefs_to_depth(), RZ_FREE, RZ_MIN, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_RIZIN, RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, RZ_PRINT_FLAGS_REFS, rz_print_hexdump_str(), rz_read_ble(), rz_str_escape(), rz_str_trim_head_ro(), rz_strbuf_append(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_free(), rz_strbuf_new(), rz_table_add_column(), rz_table_add_rowf(), rz_table_query(), rz_table_type(), rz_warn_if_reached, s, sb, ut64(), and val.
Referenced by rz_print_hexword_references_common_handler().
|
static |
Definition at line 6289 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, disassembly_as_table(), rz_core_t::offset, PFMT32d, PFMT64x, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_core_block_size(), rz_core_disasm_pdi(), rz_core_handle_backwards_disasm(), rz_core_print_disasm(), rz_core_print_disasm_json(), rz_core_seek(), RZ_LOG_VERBOSE, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, RZ_OUTPUT_MODE_TABLE, rz_warn_if_reached, and ut64().
Referenced by rz_cmd_disassemble_recursively_no_function_handler(), rz_cmd_disassembly_n_bytes_handler(), and rz_cmd_disassembly_n_instructions_handler().
Definition at line 4563 of file cmd_print.c.
References c, color, Color_BGBLACK, Color_BGBLUE, Color_BGRED, Color_BGWHITE, i, rz_cons_printf(), and symbols().
Referenced by core_print_2bpp_tiles().
Definition at line 4597 of file cmd_print.c.
References rz_core_t::block, Color_RESET, rz_core_t::config, core_print_2bpp_row(), i, r, rz_config_get_i(), and rz_cons_printf().
Referenced by rz_cmd_print().
Definition at line 3498 of file cmd_print.c.
References rz_cons_printable_palette_t::call, rz_cons_printable_palette_t::cjmp, Color_BGGRAY, Color_RESET, colors, rz_core_t::config, rz_cons_t::context, height, rz_print_t::histblock, i, rz_cons_printable_palette_t::jmp, len, rz_cons_printable_palette_t::mov, rz_cons_printable_palette_t::nop, rz_cons_context_t::pal, rz_core_t::print, RUNE_LINE_VERT, rz_config_get_i(), rz_cons_printf(), rz_cons_singleton(), rz_cons_t::use_utf8, and UTF_BLOCK.
Referenced by cmd_print_bars().
|
static |
Definition at line 4612 of file cmd_print.c.
References free(), NULL, rz_cons_strcat(), rz_str_stringify_raw_buffer(), and cmd_descs_generate::str.
Referenced by rz_cmd_print(), rz_print_utf16be_handler(), rz_print_utf16le_handler(), rz_print_utf32be_handler(), and rz_print_utf32le_handler().
|
static |
Definition at line 6851 of file cmd_print.c.
References rz_core_t::analysis, b, bbcmp(), rz_core_t::config, f, free(), rz_analysis_t::gp, rz_core_t::io, malloc(), NULL, PFMT64u, pr_bb(), rz_analysis_t::reg, rz_analysis_function_realsize(), rz_config_get(), rz_config_get_i(), rz_config_set(), rz_config_set_i(), rz_core_print_disasm_json(), RZ_FREE, rz_io_read_at(), rz_list_get_top(), rz_list_length(), rz_list_sort(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, rz_reg_arena_peek(), rz_reg_arena_poke(), rz_analysis_t::stackptr, and ut64().
Referenced by rz_cmd_disassemble_recursively_from_current_block_handler(), and rz_cmd_disassemble_recursively_handler().
|
static |
Definition at line 2596 of file cmd_print.c.
References _handle_call(), addr, rz_analysis_bb_t::addr, rz_core_t::analysis, rz_analysis_function_t::bbs, call(), Color_GREEN, COLOR_MODE_DISABLED, Color_RESET, Color_YELLOW, rz_cons_printable_palette_t::comment, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, count, eprintf, rz_analysis_bb_t::fail, rz_core_t::flags, free(), i, input(), rz_analysis_bb_t::jump, len, setup::line, rz_flag_item_t::name, NULL, rz_cons_printable_palette_t::offset, rz_core_t::offset, op, rz_cons_context_t::pal, PFMT64u, PFMT64x, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_find_most_relevant_block_in(), rz_analysis_get_fcn_in(), rz_config_get_i(), rz_config_set_i(), RZ_CONS_COLOR, rz_cons_printf(), rz_core_analysis_get_comments(), rz_core_cmd_str(), rz_core_cmd_strf(), rz_core_flag_get_by_spaces(), RZ_FREE, rz_num_get(), rz_num_math(), rz_str_ndup(), rz_str_rchr(), rz_str_split(), rz_str_startswith(), rz_str_trim(), s, rz_analysis_bb_t::size, cmd_descs_generate::str, strdup(), UT32_MAX, ut64(), and UT64_MAX.
Referenced by rz_cmd_disassemble_summarize_block_handler(), rz_cmd_disassemble_summarize_function_handler(), rz_cmd_disassemble_summarize_n_bytes_handler(), and rz_cmd_disassembly_function_summary_handler().
Definition at line 4246 of file cmd_print.c.
References addr, Color_RESET, rz_cons_t::context, eprintf, rz_print_t::flags, i, limit, regress::m, malloc(), mnem, rz_core_t::num, rz_cons_printable_palette_t::offset, p, rz_cons_context_t::pal, PFMT64x, rz_core_t::print, rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_MASK_DISASM, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_UJMP, rz_cons_printf(), rz_cons_singleton(), rz_core_analysis_op(), rz_num_math(), and RZ_PRINT_FLAGS_COLOR.
Referenced by rz_cmd_print().
|
static |
Definition at line 6742 of file cmd_print.c.
References rz_cons_printable_palette_t::b0x00, Color_RESET, rz_core_t::config, rz_cons_t::context, i, rz_cons_printable_palette_t::jmp, limit, rz_core_t::offset, rz_cons_context_t::pal, PFMT64x, pj_end(), pj_kn(), pj_ks(), pj_o(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_MASK_DISASM, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_UJMP, rz_config_get_i(), rz_cons_printf(), rz_cons_singleton(), rz_core_analysis_op(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, and ut64().
Referenced by rz_cmd_disassemble_ropchain_handler().
Definition at line 6254 of file cmd_print.c.
References __op_refs(), rz_io_t::addrbytes, rz_core_t::analysis, bytes, rz_core_t::flags, free(), i, rz_core_t::io, rz_flag_item_t::name, rz_core_t::offset, options, rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_MASK_DISASM, RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, rz_core_analysis_op(), rz_disasm_check_end(), rz_flag_get_i(), rz_hex_bin2strdup(), rz_io_read_at(), rz_meta_get_string(), RZ_META_TYPE_COMMENT, RZ_MIN, RZ_STRBUF_SAFEGET, rz_table_add_rowf(), rz_table_set_columnsf(), and ut64().
Referenced by core_disassembly().
Definition at line 917 of file cmd_print.c.
References rz_core_t::bin, c, test_evm::cs, findMethodBounds(), len, max, min, rz_bin_get_classes(), and ut64().
Referenced by rz_cmd_disassembly_all_methods_class_handler().
Definition at line 897 of file cmd_print.c.
References max, min, rz_bin_symbol_t::size, ut64(), UT64_MAX, and rz_bin_symbol_t::vaddr.
Referenced by findClassBounds().
|
static |
Definition at line 4294 of file cmd_print.c.
References rz_core_t::analysis, b, bbcmp(), rz_core_t::config, rz_core_t::cons, eprintf, f, free(), rz_analysis_t::gp, input(), rz_core_t::io, malloc(), NULL, rz_cons_t::null, rz_core_t::offset, PFMT64u, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), pr_bb(), rz_analysis_t::reg, rz_analysis_function_realsize(), rz_config_get(), rz_config_get_i(), rz_config_set(), rz_config_set_i(), rz_cons_printf(), rz_core_print_disasm_json(), RZ_FREE, rz_io_read_at(), rz_list_get_top(), rz_list_length(), rz_list_sort(), rz_reg_arena_peek(), rz_reg_arena_poke(), rz_analysis_t::stackptr, and ut64().
Referenced by rz_cmd_print().
|
inlinestatic |
Definition at line 4373 of file cmd_print.c.
References free(), rz_core_t::offset, rz_core_get_section_name(), RZ_STR_ISEMPTY, rz_str_trim_head_ro(), rz_str_trim_tail(), and strdup().
Referenced by print_json_string().
Definition at line 2923 of file cmd_print.c.
References free(), rz_core_t::hash, len, rz_cons_printf(), rz_hash_cfg_calculate_small_block(), and rz_read_be_double().
Referenced by rz_cmd_print_hash_cfg_handler().
Definition at line 2944 of file cmd_print.c.
References free(), rz_core_t::hash, hexprint(), len, and rz_hash_cfg_calculate_small_block().
Referenced by rz_cmd_print_hash_cfg_handler().
|
static |
Definition at line 1085 of file cmd_print.c.
References help_msg_amper, and rz_core_cmd_help().
Referenced by rz_cmd_help().
Definition at line 2934 of file cmd_print.c.
References i, len, rz_cons_newline(), and rz_cons_printf().
Referenced by handle_hash_cfg().
Definition at line 5674 of file cmd_print.c.
References off, PFMT64x, and snprintf.
Referenced by rz_print_offset_sg().
Definition at line 3421 of file cmd_print.c.
References i.
Referenced by analBars(), and cmd_print_bars().
Definition at line 2453 of file cmd_print.c.
References buflen, free(), hex, NULL, rz_core_t::offset, rz_core_transform_op(), RZ_CORE_WRITE_OP_ADD, RZ_CORE_WRITE_OP_AND, RZ_CORE_WRITE_OP_BYTESWAP2, RZ_CORE_WRITE_OP_BYTESWAP4, RZ_CORE_WRITE_OP_BYTESWAP8, RZ_CORE_WRITE_OP_DIV, RZ_CORE_WRITE_OP_MUL, RZ_CORE_WRITE_OP_OR, RZ_CORE_WRITE_OP_SHIFT_LEFT, RZ_CORE_WRITE_OP_SHIFT_RIGHT, RZ_CORE_WRITE_OP_SUB, RZ_CORE_WRITE_OP_XOR, rz_hex_str2bin(), RZ_NEWS, rz_str_trim_head_ro(), rz_warn_if_reached, and val.
Referenced by cmd_print_op().
|
static |
Definition at line 4168 of file cmd_print.c.
References rz_core_t::analysis, b, rz_core_t::config, rz_core_t::cons, rz_analysis_bb_t::fcns, rz_analysis_t::gp, INT_MAX, rz_analysis_t::last_disasm_reg, rz_cons_t::null, rz_core_t::offset, rz_analysis_bb_t::parent_reg_arena, rz_analysis_bb_t::parent_stackptr, PFMT64u, PFMT64x, rz_analysis_t::reg, rz_analysis_get_block_at(), rz_config_get(), rz_config_get_i(), rz_config_set(), rz_config_set_i(), rz_cons_newline(), rz_cons_printf(), rz_core_cmdf(), RZ_FREE, rz_list_contains(), rz_reg_arena_dup(), rz_reg_arena_poke(), rz_reg_getv(), rz_analysis_t::stackptr, ut64(), and UT64_MAX.
Referenced by core_walk_function_blocks(), and func_walk_blocks().
|
static |
Definition at line 1090 of file cmd_print.c.
References NULL, and rz_core_cmd_help().
Referenced by cmd_print_format().
|
static |
Definition at line 4388 of file cmd_print.c.
References rz_str_stringify_opt_t::buffer, cmd_descs_generate::encoding, rz_str_stringify_opt_t::encoding, free(), get_section_name(), rz_str_stringify_opt_t::json, len, rz_str_stringify_opt_t::length, rz_core_t::offset, pj_end(), pj_free(), pj_k(), pj_kn(), pj_ks(), pj_new(), pj_o(), pj_raw(), pj_string(), rz_cons_println(), rz_str_enc_as_string(), rz_str_stringify_raw_buffer(), and rz_str_stringify_opt_t::stop_at_nil.
Referenced by rz_cmd_print(), rz_print_utf16be_handler(), rz_print_utf16le_handler(), rz_print_utf32be_handler(), and rz_print_utf32le_handler().
Definition at line 2554 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, rz_core_t::cmd_in_backticks, rz_core_t::cons, false, len, rz_cons_t::newline, rz_core_t::offset, rz_core_t::print, rz_core_block_size(), and rz_print_raw().
Referenced by rz_cmd_print().
RZ_IPI RzCmdStatus rz_assembly_of_hex_alias_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4672 of file cmd_print.c.
References argv, and rz_assembly_of_hex_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_assembly_of_hex_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4650 of file cmd_print.c.
References argv, calloc(), free(), hex, len, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_assembly_of_hex(), rz_hex_str2bin(), and RZ_LOG_ERROR.
Referenced by rz_assembly_of_hex_alias_handler(), and rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_base64_decode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 7022 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, free(), rz_base64_decode_dyn(), 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_base64_encode_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 7011 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, free(), rz_base64_encode_dyn(), 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_comments_in_n_instructions_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6521 of file cmd_print.c.
References argv, rz_core_t::blocksize, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_disasm_pdi(), RZ_LOG_ERROR, rz_num_math(), ST16_MAX, ST16_MIN, and st64.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassemble_recursively_from_current_block_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6919 of file cmd_print.c.
References rz_core_t::analysis, core_walk_function_blocks(), rz_core_t::offset, PFMT64x, rz_analysis_get_fcn_in(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassemble_recursively_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6905 of file cmd_print.c.
References rz_core_t::analysis, core_walk_function_blocks(), rz_core_t::offset, PFMT64x, rz_analysis_get_fcn_in(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassemble_recursively_no_function_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6933 of file cmd_print.c.
References rz_core_t::analysis, rz_core_t::block, rz_core_t::blocksize, core_disassembly(), count, rz_analysis_op_t::jump, rz_core_t::offset, rz_analysis_op(), rz_analysis_op_fini(), rz_analysis_op_init(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_UCJMP, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_OK, rz_core_seek(), rz_analysis_op_t::size, rz_analysis_op_t::type, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassemble_ropchain_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6787 of file cmd_print.c.
References argv, rz_asm_t::bits, rz_core_t::blocksize, bytes, Color_RESET, rz_core_t::config, rz_cons_t::context, disassemble_till_return_is_found(), i, rz_core_t::io, limit, rz_cons_printable_palette_t::num, rz_core_t::num, rz_cons_printable_palette_t::offset, rz_core_t::offset, rz_cons_context_t::pal, PFMT64x, pj_end(), pj_ka(), pj_kn(), pj_o(), rz_core_t::rasm, rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_config_get_i(), rz_cons_printf(), rz_cons_singleton(), rz_io_read_at(), RZ_LOG_ERROR, RZ_NEWS0, rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_read_ble(), rz_warn_if_reached, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassemble_summarize_block_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6996 of file cmd_print.c.
References argv, disasm_strings(), NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, RZ_LOG_ERROR, rz_num_math(), rz_strf, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassemble_summarize_function_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6991 of file cmd_print.c.
References disasm_strings(), NULL, and RZ_CMD_STATUS_OK.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassemble_summarize_n_bytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6980 of file cmd_print.c.
References argv, disasm_strings(), NULL, rz_core_t::num, PFMT64x, RZ_CMD_STATUS_OK, rz_num_math(), rz_strf, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_all_methods_class_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6659 of file cmd_print.c.
References rz_core_t::blocksize, findClassBounds(), len, rz_core_t::offset, PFMT64x, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_size(), rz_core_cmdf(), rz_core_seek(), RZ_LOG_ERROR, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_all_possible_opcodes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6342 of file cmd_print.c.
References rz_core_t::analysis, argv, rz_asm_op_t::asm_toks, rz_core_t::block, rz_core_t::blocksize, color, rz_core_t::config, free(), length, NULL, rz_core_t::num, rz_core_t::offset, PFMT64x, pj_end(), pj_kn(), pj_ks(), pj_o(), rz_core_t::print, rz_core_t::rasm, rz_analysis_t::reg, rz_analysis_op(), RZ_ANALYSIS_OP_MASK_ALL, rz_asm_colorize_asm_str(), rz_asm_disassemble(), rz_asm_get_parse_param(), rz_asm_op_get_asm(), rz_asm_set_pc(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_OK, rz_config_get_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_core_block_read(), rz_core_block_size(), rz_hex_bin2strdup(), RZ_MAX, rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_STANDARD, rz_strbuf_drain(), rz_strbuf_new(), rz_warn_if_reached, strdup(), rz_analysis_op_t::type, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_all_possible_opcodes_treeview_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6405 of file cmd_print.c.
References rz_core_t::analysis, rz_asm_op_t::asm_toks, rz_core_t::block, rz_core_t::blocksize, color, rz_core_t::config, free(), length, NULL, rz_core_t::offset, PFMT64x, rz_core_t::print, rz_core_t::rasm, rz_analysis_t::reg, rz_analysis_op(), RZ_ANALYSIS_OP_MASK_ALL, rz_asm_colorize_asm_str(), rz_asm_disassemble(), rz_asm_get_parse_param(), rz_asm_op_get_asm(), rz_asm_set_pc(), RZ_CMD_STATUS_OK, rz_config_get_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_core_block_read(), rz_core_block_size(), rz_hex_bin2strdup(), RZ_MAX, rz_strbuf_drain(), rz_strbuf_new(), strdup(), rz_analysis_op_t::type, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_basic_block_as_text_json_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6498 of file cmd_print.c.
References rz_core_t::analysis, b, free(), rz_core_t::io, malloc(), rz_core_t::num, rz_core_t::offset, PFMT64x, rz_analysis_find_most_relevant_block_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_print_disasm(), rz_io_read_at(), RZ_LOG_ERROR, and rz_num_t::value.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_basic_block_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6462 of file cmd_print.c.
References rz_core_t::analysis, b, free(), rz_core_t::io, malloc(), rz_core_t::num, rz_core_t::offset, PFMT64x, rz_analysis_find_most_relevant_block_in(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_print_disasm(), rz_core_print_disasm_json(), rz_io_read_at(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, and rz_num_t::value.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_function_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6546 of file cmd_print.c.
References rz_core_t::analysis, rz_core_t::blocksize, bytes, test_evm::end, free(), rz_core_t::io, malloc(), rz_core_t::num, rz_core_t::offset, PFMT64x, RZ_ANALYSIS_FCN_TYPE_ROOT, rz_analysis_function_linear_size(), rz_analysis_function_max_addr(), rz_analysis_function_realsize(), rz_analysis_get_fcn_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_size(), rz_core_print_disasm(), rz_core_print_function_disasm_json(), rz_io_read_at(), RZ_LOG_ERROR, RZ_OUTPUT_MODE_JSON, start, ut64(), and rz_num_t::value.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_function_summary_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6597 of file cmd_print.c.
References rz_core_t::analysis, rz_core_t::blocksize, disasm_strings(), rz_core_t::offset, PFMT64x, rs, RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_SYM, rz_analysis_function_linear_size(), rz_analysis_function_realsize(), rz_analysis_get_fcn_in(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_block_size(), rz_core_seek(), RZ_LOG_ERROR, RZ_MAX, SEEK_SET, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_n_bytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6332 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), core_disassembly(), int, rz_core_t::num, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_n_instrs_as_text_json_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6616 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, rz_cons_t::is_html, rz_core_t::num, rz_core_t::offset, RZ_ABS, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_singleton(), rz_core_block_read(), rz_core_block_size(), rz_core_prevop_addr(), rz_core_prevop_addr_force(), rz_core_print_disasm(), rz_core_seek(), RZ_LOG_ERROR, rz_num_math(), RZ_OUTPUT_MODE_JSON, ST16_MAX, ST16_MIN, st64, ut64(), rz_num_t::value, and rz_cons_t::was_html.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_n_instructions_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6337 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), core_disassembly(), int, rz_core_t::num, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_disassembly_n_instructions_with_flow_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6534 of file cmd_print.c.
References argv, rz_core_t::blocksize, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_disasm_pde(), RZ_LOG_ERROR, rz_num_math(), ST16_MAX, ST16_MIN, and st64.
Referenced by rzshell_cmddescs_init().
Definition at line 5669 of file cmd_print.c.
References input(), and rz_core_cmdf().
Referenced by rz_core_cmd_init(), and rzshell_cmddescs_init().
Definition at line 4700 of file cmd_print.c.
References __printPattern(), a, rz_core_t::analysis, b, rz_core_t::block, blocksize, rz_core_t::blocksize, rz_core_t::blocksize_max, rz_asm_op_t::buf_asm, rz_str_stringify_opt_t::buffer, c, calloc(), cmd_pCd(), cmd_pCD(), cmd_pCx(), cmd_prc(), cmd_print_bars(), cmd_print_blocks(), cmd_print_format(), cmd_print_fromage(), cmd_print_gadget(), cmd_print_op(), cmd_print_pv(), rz_core_t::config, core_print_2bpp_tiles(), core_print_raw_buffer(), rz_debug_t::cur, rz_core_t::dbg, delta, disasm_until_ret(), dst, e, rz_str_stringify_opt_t::encoding, eprintf, rz_str_stringify_opt_t::escape_nl, f, rz_print_t::flags, free(), rz_analysis_ref_t::from, func_walk_blocks(), h, help_msg_p, help_msg_pc, help_msg_pi, help_msg_pif, help_msg_pj, help_msg_pr, help_msg_prg, help_msg_ps, help_msg_px, i, setup::idx, if(), rz_bin_reloc_t::import, input(), int, rz_core_t::io, IS_PRINTABLE, len, rz_str_stringify_opt_t::length, malloc(), n, rz_bin_symbol_t::name, rz_bin_import_t::name, NULL, rz_core_t::num, off, rz_core_t::offset, out, p, PFMT32x, PFMT64u, PFMT64x, pid, rz_debug_plugin_t::pids, pj_a(), pj_end(), pj_free(), pj_kn(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_core_t::print, print_json_string(), printraw(), rz_core_t::rasm, RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_SYM, rz_analysis_find_most_relevant_block_in(), rz_analysis_function_linear_size(), rz_analysis_get_fcn_in(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_BASIC, rz_asm_disassemble(), rz_config_get_b(), rz_config_get_i(), rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_canvas_free(), rz_cons_canvas_gotoxy(), rz_cons_canvas_new(), rz_cons_canvas_print(), rz_cons_canvas_write(), rz_cons_get_size(), rz_cons_memcat(), rz_cons_newline(), rz_cons_printf(), rz_cons_println(), rz_cons_strcat(), rz_core_analysis_fcn_get_calls(), rz_core_analysis_op(), rz_core_block_read(), rz_core_block_size(), rz_core_cmd0(), rz_core_cmd_help(), rz_core_cmd_strf(), rz_core_cmdf(), rz_core_disasm_pdi(), rz_core_getreloc(), rz_core_magic(), rz_core_print_disasm_all(), rz_core_print_disasm_instructions(), rz_core_print_examine(), rz_core_seek(), rz_hash_cfg_randomart(), rz_inflate(), rz_io_read_at(), RZ_JOIN_2_PATHS, rz_lang_byte_array(), RZ_LANG_BYTE_ARRAY_ASM, RZ_LANG_BYTE_ARRAY_BASH, RZ_LANG_BYTE_ARRAY_C_CPP_BYTES, RZ_LANG_BYTE_ARRAY_C_CPP_DOUBLEWORDS_BE, RZ_LANG_BYTE_ARRAY_C_CPP_DOUBLEWORDS_LE, RZ_LANG_BYTE_ARRAY_C_CPP_HALFWORDS_BE, RZ_LANG_BYTE_ARRAY_C_CPP_HALFWORDS_LE, RZ_LANG_BYTE_ARRAY_C_CPP_WORDS_BE, RZ_LANG_BYTE_ARRAY_C_CPP_WORDS_LE, RZ_LANG_BYTE_ARRAY_GOLANG, RZ_LANG_BYTE_ARRAY_JAVA, RZ_LANG_BYTE_ARRAY_JSON, RZ_LANG_BYTE_ARRAY_KOTLIN, RZ_LANG_BYTE_ARRAY_NODEJS, RZ_LANG_BYTE_ARRAY_OBJECTIVE_C, RZ_LANG_BYTE_ARRAY_PYTHON, RZ_LANG_BYTE_ARRAY_RIZIN, RZ_LANG_BYTE_ARRAY_RUST, RZ_LANG_BYTE_ARRAY_SWIFT, RZ_LANG_BYTE_ARRAY_YARA, rz_list_free(), RZ_MIN, rz_num_math(), rz_print_bytes(), RZ_PRINT_FLAGS_HEADER, RZ_PRINT_FLAGS_OFFSET, rz_print_init_rowoffsets(), rz_print_json_indent(), rz_print_json_path(), rz_print_offset(), RZ_SDB_MAGIC, rz_str_guess_encoding_from_buffer(), rz_str_newf(), rz_str_trim_head_ro(), rz_str_utf16_encode(), rz_strbuf_get(), RZ_STRING_ENC_8BIT, RZ_STRING_ENC_UTF16LE, RZ_STRING_ENC_UTF32LE, s, SEEK_SET, rz_asm_op_t::size, st64, rz_str_stringify_opt_t::stop_at_nil, cmd_descs_generate::str, rz_bin_reloc_t::symbol, rz_analysis_ref_t::to, rz_str_stringify_opt_t::urlencode, rz_print_t::use_comments, ut64(), UT64_MAX, rz_num_t::value, w, width, and rz_str_stringify_opt_t::wrap_at.
Referenced by rz_core_cmd_init(), and rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_gadget_add_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1235 of file cmd_print.c.
References argv, cmd, g, rz_core_t::gadgets, h, NULL, rz_core_t::num, RZ_CMD_STATUS_OK, rz_core_gadget_print(), rz_list_append(), RZ_NEW0, rz_num_math(), rz_str_dup(), w, and x.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_gadget_move_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1219 of file cmd_print.c.
References argv, g, rz_core_t::gadgets, h, n, rz_core_t::num, RZ_CMD_STATUS_OK, rz_list_get_n(), rz_num_math(), w, and x.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_gadget_print_as_rizin_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1206 of file cmd_print.c.
References g, rz_core_t::gadgets, RZ_CMD_STATUS_OK, and rz_cons_printf().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_gadget_remove_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1214 of file cmd_print.c.
References rz_core_t::gadgets, RZ_CMD_STATUS_OK, rz_core_gadget_free(), rz_list_free(), and rz_list_newf().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_hash_cfg_algo_list_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 2968 of file cmd_print.c.
References rz_core_t::hash, and rz_core_hash_plugins_print().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_hash_cfg_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 2951 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, handle_entropy(), handle_hash_cfg(), rz_core_t::hash, rz_hash_plugin_t::name, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_hash_plugin_by_name(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_magic_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 2972 of file cmd_print.c.
References argv, NULL, pj_free(), pj_new(), pj_string(), RZ_CMD_STATUS_OK, rz_cons_println(), rz_core_magic(), and RZ_OUTPUT_MODE_JSON.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_timestamp_current_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1357 of file cmd_print.c.
References free(), RZ_CMD_STATUS_OK, rz_cons_printf(), and rz_time_date_now_to_string().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_timestamp_dos_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1364 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, free(), i, len, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_printf(), RZ_LOG_ERROR, rz_read_le32(), rz_time_date_dos_to_string(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_timestamp_hfs_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1381 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, rz_core_t::config, free(), i, int, len, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_config_get_i(), rz_cons_printf(), RZ_LOG_ERROR, rz_read_ble32(), rz_time_date_hfs_to_string(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_timestamp_ntfs_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1403 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, rz_core_t::config, free(), i, len, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_cons_printf(), RZ_LOG_ERROR, rz_read_ble64(), rz_time_date_w32_to_string(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_print_timestamp_unix_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 1335 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, rz_core_t::config, free(), i, int, len, NULL, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_config_get_b(), rz_config_get_i(), rz_cons_printf(), RZ_LOG_ERROR, rz_read_ble32(), rz_time_date_unix_to_string, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_cmd_sizes_of_n_instructions_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6681 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, i, NULL, rz_core_t::num, rz_core_t::offset, pj_N(), rz_core_t::rasm, RZ_ABS, rz_asm_disassemble(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_core_block_read(), rz_core_block_size(), rz_core_prevop_addr(), rz_core_prevop_addr_force(), rz_core_seek(), RZ_LOG_ERROR, rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_STANDARD, rz_warn_if_reached, ST16_MAX, ST16_MIN, st64, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_API void rz_core_gadget_free | ( | RzCoreGadget * | g | ) |
Frees a visual print gadget.
g | reference to RzCoreGadget |
Definition at line 1174 of file cmd_print.c.
Referenced by cmd_print_gadget(), rz_cmd_print_gadget_remove_handler(), and rz_core_init().
Prints or displays the print gadgets while in visual mode.
core | reference to RzCore |
Definition at line 1185 of file cmd_print.c.
References free(), g, rz_core_t::gadgets, rz_cons_strcat_at(), and rz_core_cmd_str().
Referenced by __panels_refresh(), agraph_print(), cmd_print_gadget(), rz_cmd_print_gadget_add_handler(), rz_core_prompt(), and visual_refresh().
Definition at line 2089 of file cmd_print.c.
References addr, rz_core_t::analysis, rz_analysis_t::bits, cmd, count, eprintf, i, n, rz_core_t::num, rz_core_t::offset, p, PFMT64x, rz_core_cmd0(), rz_core_cmdf(), rz_num_math(), snprintf, cmd_descs_generate::str, and ut64().
Referenced by rz_cmd_print().
Definition at line 1057 of file cmd_print.c.
References arch, bits(), rz_core_t::config, rz_config_set(), and rz_config_set_i().
RZ_IPI RzCmdStatus rz_esil_of_assembly_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4640 of file cmd_print.c.
References argv, free(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, and rz_core_esil_of_assembly().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_esil_of_hex_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4676 of file cmd_print.c.
References argv, calloc(), free(), hex, len, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_esil_of_hex(), rz_hex_str2bin(), and RZ_LOG_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_hex_of_assembly_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4630 of file cmd_print.c.
References argv, free(), RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), and rz_core_hex_of_assembly().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_bitstream_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 7033 of file cmd_print.c.
References argv, rz_core_t::block, free(), int, len, NULL, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), RZ_LOG_ERROR, RZ_NEWS0, rz_num_math(), rz_str_bits(), and skip().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_byte_bitstream_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 7052 of file cmd_print.c.
References argv, free(), int, rz_core_t::io, len, NULL, rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), rz_io_read_at(), RZ_LOG_ERROR, RZ_NEWS0, rz_num_math(), rz_str_bits(), start, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_delta_pointer_table_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6111 of file cmd_print.c.
References _pointer_table(), argv, rz_core_t::block, rz_core_t::blocksize, calloc(), free(), if(), int, len, memcpy(), rz_core_t::num, rz_core_t::offset, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_annotated_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5874 of file cmd_print.c.
References annotated_hexdump(), argv, rz_core_t::blocksize, if(), int, len, rz_core_t::num, RZ_CMD_STATUS_OK, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_bits_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5888 of file cmd_print.c.
References argv, b, rz_core_t::block, rz_core_t::blocksize, c, cmd_pxb_k(), cmd_pxb_p(), free(), i, if(), int, rz_core_t::io, k, len, n, NULL, rz_core_t::num, rz_core_t::offset, p, rz_print_t::pava, rz_core_t::print, RZ_CMD_STATUS_OK, rz_cons_printf(), rz_io_p2v(), rz_num_math(), rz_print_cursor(), rz_print_offset(), rz_print_section_str(), rz_str_bits(), ut64(), and UT64_MAX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_comments_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5932 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), int, len, rz_core_t::num, rz_core_t::offset, rz_core_print_hexdump_or_hexdiff(), rz_num_math(), and RZ_OUTPUT_MODE_STANDARD.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_emoji_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 5956 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, rz_print_t::cols, i, if(), int, len, rz_core_t::num, rz_core_t::offset, p, rz_core_t::print, RZ_CMD_STATUS_OK, rz_cons_newline(), rz_cons_printf(), rz_num_math(), rz_print_addr(), and rz_print_byte().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_function_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6051 of file cmd_print.c.
References RZ_CMD_STATUS_ERROR.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6165 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), int, len, rz_core_t::num, rz_core_t::offset, rz_core_print_hexdump_or_hexdiff(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hex2_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6180 of file cmd_print.c.
References argv, and rz_print_hexdump_hex_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hex2l_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6197 of file cmd_print.c.
References argv, and rz_print_hexdump_hexl_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hex4_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6183 of file cmd_print.c.
References argv, and rz_print_hexdump_hex_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hex4l_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6200 of file cmd_print.c.
References argv, and rz_print_hexdump_hexl_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hex8_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6186 of file cmd_print.c.
References argv, and rz_print_hexdump_hex_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hex8l_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6203 of file cmd_print.c.
References argv, and rz_print_hexdump_hexl_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hex_common_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state, | ||
ut8 | n | ||
) |
Definition at line 6175 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), int, len, n, rz_core_t::num, rz_core_t::offset, rz_core_print_dump(), and rz_num_math().
Referenced by rz_print_hexdump_hex2_handler(), rz_print_hexdump_hex4_handler(), and rz_print_hexdump_hex8_handler().
RZ_IPI RzCmdStatus rz_print_hexdump_hexii_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6055 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, rz_core_t::config, rz_core_t::offset, rz_core_t::print, RZ_CMD_STATUS_OK, rz_config_get_i(), rz_print_hexii(), and rz_print_t::show_offset.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hexl_common_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state, | ||
ut8 | n | ||
) |
Definition at line 6190 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), rz_core_t::config, int, len, n, rz_core_t::num, rz_core_t::offset, rz_config_get_b(), rz_core_print_hexdump_byline(), rz_num_math(), RZ_OUTPUT_MODE_QUIET, and RZ_OUTPUT_MODE_QUIETEST.
Referenced by rz_print_hexdump_hex2l_handler(), rz_print_hexdump_hex4l_handler(), and rz_print_hexdump_hex8l_handler().
RZ_IPI RzCmdStatus rz_print_hexdump_hexless_bytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6130 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, rz_print_t::flags, int, len, rz_core_t::num, rz_core_t::offset, rz_core_t::print, RZ_CMD_STATUS_OK, rz_core_print_hexdump(), rz_num_math(), and RZ_PRINT_FLAGS_NONHEX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hexless_words_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6139 of file cmd_print.c.
References argv, rz_core_t::blocksize, calloc(), rz_print_t::flags, free(), if(), int, rz_core_t::io, len, rz_core_t::num, rz_core_t::offset, rz_core_t::print, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_core_print_hexdump(), rz_io_read_at(), rz_num_math(), and RZ_PRINT_FLAGS_NONHEX.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_hexpair_bytes_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6156 of file cmd_print.c.
References rz_core_t::block, rz_core_t::blocksize, int, len, rz_core_t::print, RZ_CMD_STATUS_OK, rz_print_bytes(), and rz_str_nlen().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_n_lines_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6170 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), rz_print_t::cols, int, len, rz_core_t::num, rz_core_t::offset, rz_core_t::print, rz_core_print_hexdump_or_hexdiff(), and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_oct_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6207 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), int, len, rz_core_t::num, rz_core_t::offset, rz_core_print_dump(), rz_num_math(), and RZ_OUTPUT_MODE_STANDARD.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_signed_integer2_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5946 of file cmd_print.c.
References argv, and rz_print_hexdump_signed_integer_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_signed_integer4_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5949 of file cmd_print.c.
References argv, and rz_print_hexdump_signed_integer_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_signed_integer8_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5952 of file cmd_print.c.
References argv, and rz_print_hexdump_signed_integer_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_signed_integer_common_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state, | ||
ut8 | n | ||
) |
Definition at line 5937 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), int, len, n, rz_core_t::num, rz_core_t::offset, rz_core_print_dump(), and rz_num_math().
Referenced by rz_print_hexdump_signed_integer2_handler(), rz_print_hexdump_signed_integer4_handler(), rz_print_hexdump_signed_integer8_handler(), and rz_print_hexdump_signed_integer_handler().
RZ_IPI RzCmdStatus rz_print_hexdump_signed_integer_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5943 of file cmd_print.c.
References argv, and rz_print_hexdump_signed_integer_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexdump_sparse_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 6100 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, rz_print_t::flags, if(), int, len, rz_core_t::num, rz_core_t::offset, rz_core_t::print, RZ_CMD_STATUS_OK, rz_core_print_hexdump(), rz_num_math(), and RZ_PRINT_FLAGS_SPARSE.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexword_references_1_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6084 of file cmd_print.c.
References argv, and rz_print_hexword_references_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexword_references_2_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6088 of file cmd_print.c.
References argv, and rz_print_hexword_references_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexword_references_4_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6092 of file cmd_print.c.
References argv, and rz_print_hexword_references_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexword_references_8_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6096 of file cmd_print.c.
References argv, and rz_print_hexword_references_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_hexword_references_common_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state, | ||
int | wordsize | ||
) |
Definition at line 6062 of file cmd_print.c.
References argv, rz_core_t::blocksize, cmd_pxr(), int, len, NULL, rz_core_t::num, RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_num_math(), and rz_warn_if_reached.
Referenced by rz_print_hexword_references_1_handler(), rz_print_hexword_references_2_handler(), rz_print_hexword_references_4_handler(), rz_print_hexword_references_8_handler(), and rz_print_hexword_references_handler().
RZ_IPI RzCmdStatus rz_print_hexword_references_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6079 of file cmd_print.c.
References rz_core_t::analysis, argv, rz_analysis_get_address_bits(), and rz_print_hexword_references_common_handler().
Referenced by rzshell_cmddescs_init().
RZ_API void rz_print_offset | ( | RzPrint * | p, |
ut64 | off, | ||
int | invert, | ||
int | offseg, | ||
int | offdec, | ||
int | delta, | ||
const char * | label | ||
) |
Definition at line 5782 of file cmd_print.c.
References delta, invert(), off, p, and rz_print_offset_sg().
Referenced by rz_cmd_print(), and rz_print_hexdump_bits_handler().
RZ_API void rz_print_offset_sg | ( | RzPrint * | p, |
ut64 | off, | ||
int | invert, | ||
int | offseg, | ||
int | seggrn, | ||
int | offdec, | ||
int | delta, | ||
const char * | label | ||
) |
Definition at line 5685 of file cmd_print.c.
References a, Color_RESET, Color_RESET_NOBG, rz_cons_t::context, delta, invert(), k, lenof(), off, rz_cons_printable_palette_t::offset, p, pad(), rz_cons_context_t::pal, PFMT64u, PFMT64x, rz_cons_printf(), rz_cons_rgb_str_off(), rz_cons_singleton(), RZ_PRINT_FLAGS_COLOR, RZ_PRINT_FLAGS_RAINBOW, rz_str_pad(), s, and snprintf.
Referenced by ds_print_offset(), rz_core_disasm_pdi_with_buf(), and rz_print_offset().
RZ_IPI RzCmdStatus rz_print_op_analysis_color_map_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 5883 of file cmd_print.c.
References argv, rz_core_t::blocksize, bool2status(), cmd_print_pxA(), int, len, rz_core_t::num, and rz_num_math().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_string_c_cpp_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 4620 of file cmd_print.c.
References RZ_CMD_STATUS_ERROR, RZ_CMD_STATUS_OK, rz_cons_println(), rz_core_print_string_c_cpp(), rz_free, and cmd_descs_generate::str.
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_utf16be_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 5830 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, rz_str_stringify_opt_t::buffer, core_print_raw_buffer(), rz_str_stringify_opt_t::encoding, len, rz_str_stringify_opt_t::length, rz_core_t::num, print_json_string(), RZ_CMD_STATUS_OK, rz_core_block_size(), rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_STRING_ENC_UTF16BE, rz_str_stringify_opt_t::stop_at_nil, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_utf16le_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 5786 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, rz_str_stringify_opt_t::buffer, core_print_raw_buffer(), rz_str_stringify_opt_t::encoding, len, rz_str_stringify_opt_t::length, rz_core_t::num, print_json_string(), RZ_CMD_STATUS_OK, rz_core_block_size(), rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_STRING_ENC_UTF16LE, rz_str_stringify_opt_t::stop_at_nil, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_utf32be_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 5852 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, rz_str_stringify_opt_t::buffer, core_print_raw_buffer(), rz_str_stringify_opt_t::encoding, len, rz_str_stringify_opt_t::length, rz_core_t::num, print_json_string(), RZ_CMD_STATUS_OK, rz_core_block_size(), rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_STRING_ENC_UTF32BE, rz_str_stringify_opt_t::stop_at_nil, and ut64().
Referenced by rzshell_cmddescs_init().
RZ_IPI RzCmdStatus rz_print_utf32le_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv, | ||
RzOutputMode | mode | ||
) |
Definition at line 5808 of file cmd_print.c.
References argv, rz_core_t::block, rz_core_t::blocksize, rz_str_stringify_opt_t::buffer, core_print_raw_buffer(), rz_str_stringify_opt_t::encoding, len, rz_str_stringify_opt_t::length, rz_core_t::num, print_json_string(), RZ_CMD_STATUS_OK, rz_core_block_size(), rz_num_math(), RZ_OUTPUT_MODE_JSON, RZ_STRING_ENC_UTF32LE, rz_str_stringify_opt_t::stop_at_nil, and ut64().
Referenced by rzshell_cmddescs_init().
Definition at line 495 of file cmd_print.c.
Referenced by cmd_prc().
|
static |
Definition at line 342 of file cmd_print.c.
Referenced by cmd_print_format().
|
static |
Definition at line 301 of file cmd_print.c.
Referenced by cmd_print_format().
|
static |
Definition at line 86 of file cmd_print.c.
Referenced by helpCmdTasks().
|
static |
Definition at line 102 of file cmd_print.c.
Referenced by rz_cmd_help(), and rz_core_cmd_subst_i().
|
static |
Definition at line 154 of file cmd_print.c.
Referenced by rz_cmd_help(), and rz_core_cmd_foreach().
|
static |
Definition at line 175 of file cmd_print.c.
Referenced by rz_cmd_help(), and rz_core_cmd_foreach3().
|
static |
Definition at line 198 of file cmd_print.c.
Referenced by rz_cmd_print().
|
static |
Definition at line 235 of file cmd_print.c.
Referenced by cmd_print_bars().
|
static |
Definition at line 266 of file cmd_print.c.
Referenced by cmd_print_blocks().
|
static |
Definition at line 31 of file cmd_print.c.
Referenced by rz_cmd_print().
|
static |
Definition at line 56 of file cmd_print.c.
Referenced by cmd_print_fromage().
|
static |
Definition at line 275 of file cmd_print.c.
Referenced by cmd_print_format().
|
static |
Definition at line 1197 of file cmd_print.c.
Referenced by cmd_print_gadget().
|
static |
Definition at line 371 of file cmd_print.c.
Referenced by rz_cmd_print().
|
static |
Definition at line 383 of file cmd_print.c.
Referenced by rz_cmd_print().
|
static |
Definition at line 258 of file cmd_print.c.
Referenced by rz_cmd_print().
|
static |
Definition at line 401 of file cmd_print.c.
Referenced by cmd_print_op().
|
static |
Definition at line 17 of file cmd_print.c.
Referenced by __printPattern().
|
static |
Definition at line 69 of file cmd_print.c.
Referenced by rz_cmd_print().
|
static |
Definition at line 78 of file cmd_print.c.
Referenced by rz_cmd_print().
|
static |
Definition at line 418 of file cmd_print.c.
Referenced by rz_cmd_print().
|
static |
Definition at line 435 of file cmd_print.c.
Referenced by cmd_print_pv().
|
static |
Definition at line 446 of file cmd_print.c.
Referenced by rz_cmd_print().
const char* help_msg_pxA[] |
Definition at line 475 of file cmd_print.c.