Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
#include <rz_socket.h>
#include <rz_util/rz_assert.h>
#include <rz_util/rz_print.h>
#include "core_private.h"
#include "rz_analysis.h"
#include <rz_util/rz_strbuf.h>
#include "disasm_stackptr.inc"
Go to the source code of this file.
Classes | |
struct | RzDisasmState |
Macros | |
#define | HASRETRY 1 |
#define | HAVE_LOCALS 1 |
#define | DEFAULT_NARGS 4 |
#define | FLAG_PREFIX ";-- " |
#define | COLOR(ds, field) ((ds)->show_color ? (ds)->field : "") |
#define | COLOR_ARG(ds, field) ((ds)->show_color && (ds)->show_color_args ? (ds)->field : "") |
#define | COLOR_CONST(ds, color) ((ds)->show_color ? Color_##color : "") |
#define | COLOR_RESET(ds) COLOR_CONST(ds, RESET) |
#define | DS_ANALYSIS_OP_MASK |
#define | DS_PRE_NONE 0 |
#define | DS_PRE_EMPTY 1 |
#define | DS_PRE_FCN_HEAD 2 |
#define | DS_PRE_FCN_MIDDLE 3 |
#define | DS_PRE_FCN_TAIL 4 |
#define | CMT_ALIGN _ds_comment_align_(ds, true, false) |
#define | DS_COMMENT_FUNC(name, align, nl) |
#define | P(x) (core->cons && core->cons->context->pal.x) ? core->cons->context->pal.x |
#define | printPre (outline || !*comma) |
#define | RZ_DISASM_MAX_STR 512 |
Variables | |
static ut64 | emustack_min = 0LL |
static ut64 | emustack_max = 0LL |
static const char * | rz_vline_a [] |
static const char * | rz_vline_u [] |
static const char * | rz_vline_uc [] |
static ut64 | lastaddr = UT64_MAX |
#define CMT_ALIGN _ds_comment_align_(ds, true, false) |
#define COLOR | ( | ds, | |
field | |||
) | ((ds)->show_color ? (ds)->field : "") |
#define COLOR_ARG | ( | ds, | |
field | |||
) | ((ds)->show_color && (ds)->show_color_args ? (ds)->field : "") |
#define COLOR_RESET | ( | ds | ) | COLOR_CONST(ds, RESET) |
#define DS_ANALYSIS_OP_MASK |
#define DS_COMMENT_FUNC | ( | name, | |
align, | |||
nl | |||
) |
|
static |
Definition at line 2303 of file disasm.c.
References color, rz_flag_item_t::color, RzDisasmState::color_flag, ds_begin_line(), ds_newline(), ds_pre_line(), free(), RzDisasmState::lastflag, NULL, rz_cons_pal_parse(), rz_cons_printf(), rz_cons_strcat(), RzDisasmState::show_color, and RzDisasmState::show_offset.
Referenced by ds_show_flags().
|
static |
Definition at line 960 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::core, RzDisasmState::fcn, rz_analysis_function_t::imports, rz_analysis_t::imports, RzDisasmState::opstr, and rz_str_replace().
Referenced by ds_build_op_str().
|
static |
Definition at line 485 of file disasm.c.
References RzDisasmState::at, COLOR, COLOR_RESET, RzDisasmState::core, ds_align_comment(), ds_print_pre(), ds_print_ref_lines(), RzDisasmState::line_col, RzDisasmState::pal_comment, RzDisasmState::refline, rz_cons_printf(), rz_core_get_section_name(), RzDisasmState::show_color, RzDisasmState::show_comment_right, and RzDisasmState::show_section.
|
static |
Definition at line 5153 of file disasm.c.
References IS_DIGIT, IS_SEPARATOR, NULL, op, and p.
Referenced by ds_sub_jumps().
Definition at line 1530 of file disasm.c.
References c, len, and SZT_ADD_OVFCHK.
Referenced by ds_atabs_option().
Definition at line 4758 of file disasm.c.
References rz_core_t::analysis, rz_core_t::config, metas, rz_config_get(), rz_meta_get_all_at(), rz_pvector_foreach, rz_pvector_free(), and rz_analysis_meta_item_t::type.
Referenced by ds_print_esil_analysis().
|
static |
Definition at line 4742 of file disasm.c.
References RzDisasmState::buf_line_begin, ds_begin_cont(), ds_newline(), rz_cons_get_buffer(), and RzDisasmState::show_comment_right_default.
Referenced by ds_print_esil_analysis().
|
static |
Definition at line 3043 of file disasm.c.
References RzDisasmState::adistrick, rz_core_t::analysis, RzDisasmState::analysis_op, RzDisasmState::at, RzDisasmState::core, RzDisasmState::middle, rz_analysis_t::reflines, rz_analysis_reflines_middle(), and rz_analysis_op_t::size.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3805 of file disasm.c.
References RzDisasmState::buf_line_begin, RzDisasmState::cmtcol, rz_cons_t::columns, rz_core_t::cons, RzDisasmState::core, RzDisasmState::interactive, len, rz_cons_get_buffer(), rz_cons_memset(), rz_str_len_utf8_ansi(), and RzDisasmState::show_comment_right_default.
Referenced by _ds_comment_align_(), ds_comment_(), ds_comment_esil(), ds_control_flow_comments(), ds_print_comments_right(), ds_print_dwarf(), ds_print_middle(), ds_print_shortcut(), ds_show_comments_describe(), and ds_show_flags().
|
static |
Definition at line 1551 of file disasm.c.
References RzDisasmState::asmop, RzDisasmState::atabs, RzDisasmState::atabsonce, b, rz_asm_op_t::buf_asm, calc_tab_buf_size(), comma, free(), i, malloc(), memset(), n, opstr(), RzDisasmState::opstr, rz_str_ncpy(), rz_strbuf_get(), rz_strbuf_length(), and strdup().
Referenced by rz_core_print_disasm().
|
static |
Definition at line 1325 of file disasm.c.
References CMT_ALIGN, ds_begin_line(), ds_pre_xrefs(), and RzDisasmState::show_comment_right.
Referenced by ds_print_calls_hints(), ds_print_cmt_esil(), ds_print_cmt_il(), ds_print_fcn_name(), ds_print_ptr(), ds_print_str(), ds_show_comments_describe(), and ds_show_refs().
|
static |
Definition at line 1314 of file disasm.c.
References RzDisasmState::at, rz_analysis_ref_char::cols, RzDisasmState::core, ds_begin_line(), ds_print_ref_lines(), ds_setup_print_pre(), RzDisasmState::line, RzDisasmState::linesopts, RzDisasmState::linesright, RZ_ANALYSIS_REFLINE_TYPE_MIDDLE_AFTER, rz_analysis_reflines_str(), rz_analysis_reflines_str_free(), RzDisasmState::show_lines_bb, and rz_analysis_ref_char::str.
Referenced by delete_last_comment(), and ds_begin_nl_comment().
|
static |
Definition at line 1257 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::asm_hint_pos, RzDisasmState::buf_line_begin, RzDisasmState::core, ds_print_core_vmode(), rz_analysis_refline_t::from, RzDisasmState::pj, pj_k(), pj_kn(), pj_o(), rz_analysis_t::reflines, rz_cons_get_buffer_len(), rz_cons_printf(), rz_analysis_refline_t::to, RzDisasmState::vat, and RzDisasmState::vec.
Referenced by __preline_flag(), ds_begin_comment(), ds_begin_cont(), ds_begin_nl_comment(), ds_print_bbline(), ds_print_comments_right(), ds_show_comments_right(), ds_show_flags(), ds_show_functions(), ds_show_xrefs(), printVarSummary(), and rz_core_print_disasm().
|
static |
Definition at line 3791 of file disasm.c.
References RzDisasmState::cmtcount, ds_begin_cont(), ds_begin_line(), ds_newline(), ds_pre_xrefs(), RzDisasmState::pal_comment, RzDisasmState::show_color, and RzDisasmState::show_comment_right.
Referenced by ds_print_demangled(), and ds_print_ptr().
|
static |
Definition at line 985 of file disasm.c.
References __replaceImports(), addr, rz_core_t::analysis, RzDisasmState::analysis_op, rz_analysis_t::arch_target, rz_asm_op_t::asm_toks, RzDisasmState::asmop, RzDisasmState::at, rz_asm_t::big_endian, rz_print_t::big_endian, rz_core_t::bin, rz_print_t::colorize_opts, RzDisasmState::colorop, rz_core_t::config, RzDisasmState::core, rz_bin_t::cur, RzDisasmState::decode, ds_highlight_word(), ds_sub_jumps(), e, rz_bin_plugin_t::enrich_asm, rz_analysis_op_t::esil, f, fcnIn(), rz_core_t::flags, rz_parse_t::flagspace, RzDisasmState::flagspace_ports, free(), get_ptr_at(), rz_parse_t::get_ptr_at, get_reg_at(), rz_parse_t::get_reg_at, RzDisasmState::hint, i, RzDisasmState::immtrim, rz_core_t::io, line_highlighted(), list(), RzDisasmState::min_ref_addr, rz_analysis_op_t::mmio_address, rz_flag_item_t::name, rz_parse_t::notin_flagspace, NULL, rz_analysis_hint_t::opcode, RzDisasmState::opstr, rz_core_t::parser, PFMT64x, rz_core_t::print, rz_platform_target_t::profile, RzDisasmState::pseudo, rz_analysis_op_t::ptr, rz_core_t::rasm, rz_analysis_op_t::refptr, rz_analysis_t::reg, RzPrintAsmColorOpts::reset_bg, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_op_to_string(), RZ_ANALYSIS_OP_TYPE_CMP, RZ_ANALYSIS_OP_TYPE_IO, RZ_ANALYSIS_OP_TYPE_LEA, RZ_ANALYSIS_OP_TYPE_MOV, RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_STRING, rz_analysis_xrefs_get_from(), rz_asm_colorize_asm_str(), rz_asm_get_parse_param(), rz_asm_op_get_asm(), rz_bin_file_cur_plugin(), rz_config_get_b(), rz_flag_get_i(), rz_io_read_i(), rz_list_free(), rz_meta_get_string(), RZ_META_TYPE_HIGHLIGHT, rz_num_get(), rz_parse_filter(), rz_parse_immtrim(), rz_parse_pseudocode(), rz_parse_subvar(), rz_platform_profile_resolve_extended_register(), rz_platform_profile_resolve_mmio(), rz_return_if_fail, rz_str_argv(), rz_str_cat, rz_str_cpy, rz_str_newlen(), rz_str_replace(), rz_str_trim_char(), rz_strbuf_drain(), rz_strbuf_free(), rz_strbuf_new(), RZ_STRBUF_SAFEGET, rz_strf, RzDisasmState::show_color, snprintf, source, RzDisasmState::str, strdup(), RzDisasmState::strsub, RzDisasmState::subnames, rz_parse_t::subreg, rz_parse_t::subrel, rz_parse_t::subrel_addr, RzDisasmState::subvar, autogen_x86imm::tmp, rz_analysis_ref_t::to, rz_analysis_op_t::type, rz_analysis_ref_t::type, RzDisasmState::use_esil, ut64(), UT64_MAX, and RzDisasmState::vat.
Referenced by rz_core_print_disasm(), and rz_core_print_disasm_instructions_with_buf().
|
static |
Definition at line 3314 of file disasm.c.
References RzDisasmState::analysis_op, RzDisasmState::asm_hint_cdiv, RzDisasmState::asm_hints, comma, test_evm::end, rz_analysis_op_t::esil, imm, revert_cdiv_magic(), RZ_ANALYSIS_OP_TYPE_MOV, RZ_ANALYSIS_OP_TYPE_MUL, rz_cons_printf(), RZ_STRBUF_SAFEGET, st64, and rz_analysis_op_t::type.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 522 of file disasm.c.
References RzDisasmState::cmtcount, and ds_comment_().
Referenced by ds_print_as_string(), ds_print_calls_hints(), ds_print_cmt_esil(), ds_print_cmt_il(), ds_print_demangled(), ds_print_fcn_name(), ds_print_ptr(), ds_print_str(), ds_print_sysregs(), ds_show_comments_right(), ds_show_refs(), ds_show_xrefs(), and rz_core_print_disasm().
|
static |
Definition at line 507 of file disasm.c.
References COLOR, ds_align_comment(), ds_newline(), rz_cons_printf(), rz_cons_printf_list(), RzDisasmState::show_comment_right, and RzDisasmState::show_comments.
Referenced by ds_comment().
|
static |
Definition at line 542 of file disasm.c.
References ds_align_comment(), ds_comment_lineup(), ds_newline(), test_evm::end, and rz_cons_printf_list().
Referenced by ds_print_esil_analysis(), myregread(), and myregwrite().
|
static |
|
static |
Definition at line 2737 of file disasm.c.
References RzDisasmState::analysis_op, RzDisasmState::asm_analysis, rz_flag_item_t::comment, RzDisasmState::core, ds_align_comment(), ds_print_color_reset(), rz_core_t::flags, rz_analysis_op_t::jump, rz_flag_item_t::name, NULL, RzDisasmState::pal_comment, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_JMP, rz_cons_printf(), rz_cons_strcat(), rz_core_analysis_function_add(), rz_flag_get_i(), RzDisasmState::show_cmtflgrefs, RzDisasmState::show_color, RzDisasmState::show_comments, and rz_analysis_op_t::type.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 1237 of file disasm.c.
References rz_core_t::analysis, rz_analysis_disasm_text_t::arrow, RzDisasmState::core, rz_analysis_refline_t::from, NULL, rz_analysis_disasm_text_t::offset, rz_analysis_t::reflines, rz_analysis_disasm_text_t::text, create_tags_rz::text, rz_analysis_refline_t::to, UT64_MAX, and RzDisasmState::vat.
Referenced by ds_newline().
|
static |
Definition at line 2579 of file disasm.c.
References RzDisasmState::acase, RzDisasmState::addr, rz_core_t::analysis, RzDisasmState::asm_meta, RzDisasmState::asmop, RzDisasmState::at, rz_analysis_hint_t::bits, RzDisasmState::capitalize, RzDisasmState::cbytes, rz_core_t::config, RzDisasmState::core, rz_interval_node_t::data, rz_interval_node_t::end, free(), RzDisasmState::hint, i, RzDisasmState::idx, rz_analysis_options_t::ignbithints, RzDisasmState::lastfail, len, metas, mi, NULL, rz_analysis_hint_t::opcode, RzDisasmState::oplen, opstr(), RzDisasmState::opstr, rz_analysis_t::opt, rz_core_t::parser, rz_asm_t::pc, RzDisasmState::prev_ins, RzDisasmState::prev_ins_count, RzDisasmState::prev_ins_eq, RzDisasmState::pseudo, rz_core_t::rasm, RzDisasmState::retry, rz_asm_disassemble(), rz_asm_op_fini(), rz_asm_op_get_asm(), rz_asm_op_get_hex(), rz_asm_op_get_size(), rz_asm_op_set_asm(), rz_asm_op_set_hexbuf(), rz_config_set_i(), rz_cons_printf(), RZ_FREE, rz_meta_get_all_at(), RZ_META_TYPE_DATA, RZ_META_TYPE_FORMAT, RZ_META_TYPE_HIDE, RZ_META_TYPE_MAGIC, RZ_META_TYPE_STRING, RZ_MIN, rz_parse_pseudocode(), rz_pvector_foreach, rz_pvector_free(), rz_str_case(), sdb_fmt(), RzDisasmState::show_nodup, rz_analysis_hint_t::size, rz_asm_op_t::size, snprintf, rz_interval_node_t::start, RzDisasmState::str, rz_analysis_meta_item_t::str, strdup(), autogen_x86imm::tmp, toupper, RzDisasmState::tries, rz_analysis_meta_item_t::type, ut64(), and UT64_MAX.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 5308 of file disasm.c.
References Color_RESET, line_highlighted(), rz_cons_strcat(), and RzDisasmState::show_color.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3903 of file disasm.c.
References RzDisasmState::core, test_evm::end, rz_print_t::esc_bslash, RzStrEscOptions::esc_bslash, RzStrEscOptions::esc_double_quotes, is_comment(), len, NULL, prefix, rz_core_t::print, rz_mem_mem_aligned(), rz_str_escape_8bit(), rz_str_escape_utf16be(), rz_str_escape_utf16le(), rz_str_escape_utf32be(), rz_str_escape_utf32le(), rz_str_escape_utf8(), RZ_STRING_ENC_8BIT, RZ_STRING_ENC_GUESS, RZ_STRING_ENC_UTF16BE, RZ_STRING_ENC_UTF16LE, RZ_STRING_ENC_UTF32BE, RZ_STRING_ENC_UTF32LE, RZ_STRING_ENC_UTF8, rz_utf32le_decode(), rz_utf8_decode(), rz_utf_bom_encoding(), RzDisasmState::show_asciidot, RzStrEscOptions::show_asciidot, cmd_descs_generate::str, and RzDisasmState::strenc.
Referenced by ds_print_str(), and myregwrite().
|
static |
Definition at line 912 of file disasm.c.
References RzDisasmState::_tabsbuf, RzDisasmState::analysis_op, RzDisasmState::asmop, RzDisasmState::comment, RzDisasmState::core, ds_print_esil_analysis_fini(), ds_reflines_fini(), eprintf, free(), RzDisasmState::hint, rz_core_t::io, RzDisasmState::line, RzDisasmState::line_col, RzDisasmState::opstr, RzDisasmState::osl, RzDisasmState::prev_line_col, RzDisasmState::refline, RzDisasmState::refline2, rz_analysis_hint_free(), rz_analysis_op_fini(), rz_asm_op_fini(), RZ_FREE, rz_io_fd_close(), sdb_free(), RzDisasmState::show_emu_stack, RzDisasmState::sl, RzDisasmState::ssa, and RzDisasmState::stackFd.
Referenced by rz_core_print_disasm(), rz_core_print_disasm_all(), and rz_core_print_disasm_instructions_with_buf().
|
static |
Definition at line 953 of file disasm.c.
References RzDisasmState::asmop, color, RzDisasmState::color_linehl, Color_RESET_BG, line_highlighted(), RzDisasmState::opstr, rz_asm_op_get_asm(), rz_str_highlight(), and source.
Referenced by ds_build_op_str().
|
static |
Definition at line 583 of file disasm.c.
References RzDisasmState::acase, addr, RzDisasmState::adistrick, rz_core_t::analysis, RzDisasmState::asm_analysis, RzDisasmState::asm_demangle, RzDisasmState::asm_describe, RzDisasmState::asm_highlight, RzDisasmState::asm_hint_call, RzDisasmState::asm_hint_call_indirect, RzDisasmState::asm_hint_cdiv, RzDisasmState::asm_hint_emu, RzDisasmState::asm_hint_jmp, RzDisasmState::asm_hint_lea, RzDisasmState::asm_hint_pos, RzDisasmState::asm_hints, RzDisasmState::asm_instr, RzDisasmState::asm_meta, RzDisasmState::asm_types, RzDisasmState::asm_xrefs_code, RzDisasmState::atabs, RzDisasmState::atabsoff, RzDisasmState::atabsonce, rz_print_t::bytespace, call(), RzDisasmState::capitalize, cjmp, cmp(), RzDisasmState::cmtcol, Color_BGBLUE, Color_BGGRAY, Color_BGREEN, RzDisasmState::color_bin, Color_BLACK, Color_BLUE, Color_BRED, RzDisasmState::color_btext, Color_BYELLOW, RzDisasmState::color_call, RzDisasmState::color_cjmp, RzDisasmState::color_cmp, RzDisasmState::color_comment, Color_CYAN, RzDisasmState::color_flag, RzDisasmState::color_fline, RzDisasmState::color_floc, RzDisasmState::color_flow, RzDisasmState::color_flow2, RzDisasmState::color_fname, RzDisasmState::color_func_var, RzDisasmState::color_func_var_addr, RzDisasmState::color_func_var_type, Color_GRAY, Color_GREEN, RzDisasmState::color_gui_alt_background, RzDisasmState::color_gui_background, RzDisasmState::color_gui_border, RzDisasmState::color_gui_cflow, RzDisasmState::color_gui_dataoffset, RzDisasmState::color_invalid, RzDisasmState::color_jmp, RzDisasmState::color_label, RzDisasmState::color_linehl, Color_MAGENTA, RzDisasmState::color_math, RzDisasmState::color_mov, RzDisasmState::color_nop, RzDisasmState::color_num, RzDisasmState::color_offset, RzDisasmState::color_other, RzDisasmState::color_pop, RzDisasmState::color_push, Color_RED, RzDisasmState::color_reg, RzDisasmState::color_ret, RzDisasmState::color_swi, RzDisasmState::color_trap, RzDisasmState::color_usrcmt, Color_WHITE, Color_YELLOW, RzDisasmState::colorop, rz_cons_printable_palette_t::comment, rz_core_t::config, rz_core_t::cons, rz_cons_t::context, RzDisasmState::core, rz_print_t::cur, rz_print_t::cur_enabled, RzDisasmState::cursor, RzDisasmState::cyclespace, RzDisasmState::decode, DS_PRE_NONE, RzDisasmState::dwarfAbspath, RzDisasmState::dwarfFile, emustack_max, emustack_min, eprintf, RzDisasmState::esil_likely, RzDisasmState::esil_old_pc, RzDisasmState::esil_regstate, rz_core_t::flags, RzDisasmState::flags_inline, RzDisasmState::flagspace_ports, create_tags_rz::fname, RzDisasmState::foldxrefs, RzDisasmState::immstr, RzDisasmState::immtrim, RzDisasmState::indent_space, RzDisasmState::interactive, rz_core_t::io, jmp, RzDisasmState::lastfail, RzDisasmState::lbytes, RzDisasmState::lcols, RzDisasmState::linesopts, RzDisasmState::linesout, RzDisasmState::linesright, rz_parse_t::localvar_only, map(), RzDisasmState::maxflags, RzDisasmState::maxrefs, RzDisasmState::midbb, RzDisasmState::midcursor, RzDisasmState::midflags, RzDisasmState::min_ref_addr, mov(), RzDisasmState::nb, RzDisasmState::nbytes, NULL, rz_core_t::num, num, RzDisasmState::ocols, RzDisasmState::ocomment, P, rz_cons_context_t::pal, RzDisasmState::pal_comment, rz_core_t::parser, RzDisasmState::pre, RzDisasmState::pre_emu, rz_core_t::print, RzDisasmState::printed_flag_addr, RzDisasmState::printed_str_addr, RzDisasmState::pseudo, rz_parse_t::pseudo, reg, rz_analysis_t::reg, rz_parse_t::retleave_asm, RZ_ANALYSIS_REFLINE_TYPE_UTF8, RZ_ANALYSIS_REFLINE_TYPE_WIDE, rz_config_get(), rz_config_get_b(), rz_config_get_i(), rz_cons_is_interactive(), rz_io_fd_close(), rz_io_fd_open(), rz_io_map_add(), rz_io_map_set_name(), RZ_NEW0, rz_num_get(), rz_num_math(), RZ_PERM_RW, rz_reg_getv(), rz_str_enc_string_as_type(), RzDisasmState::show_asciidot, RzDisasmState::show_bbline, RzDisasmState::show_bytes, RzDisasmState::show_bytes_right, RzDisasmState::show_calls, RzDisasmState::show_cmt_esil, RzDisasmState::show_cmt_il, RzDisasmState::show_cmtflgrefs, RzDisasmState::show_cmtoff, RzDisasmState::show_cmtrefs, RzDisasmState::show_color, RzDisasmState::show_color_args, RzDisasmState::show_color_bytes, RzDisasmState::show_comment_right, RzDisasmState::show_comment_right_default, RzDisasmState::show_comments, RzDisasmState::show_cycles, RzDisasmState::show_dwarf, RzDisasmState::show_emu, RzDisasmState::show_emu_ssa, RzDisasmState::show_emu_stack, RzDisasmState::show_emu_str, RzDisasmState::show_emu_strflag, RzDisasmState::show_emu_strinv, RzDisasmState::show_emu_strlea, RzDisasmState::show_emu_stroff, RzDisasmState::show_emu_write, RzDisasmState::show_family, RzDisasmState::show_fcnsig, RzDisasmState::show_fcnsize, RzDisasmState::show_flag_in_bytes, RzDisasmState::show_flags, RzDisasmState::show_flgoff, RzDisasmState::show_functions, RzDisasmState::show_indent, RzDisasmState::show_lines, RzDisasmState::show_lines_bb, RzDisasmState::show_lines_call, RzDisasmState::show_lines_fcn, RzDisasmState::show_lines_ret, RzDisasmState::show_marks, RzDisasmState::show_nodup, RzDisasmState::show_noisy_comments, RzDisasmState::show_offdec, RzDisasmState::show_offset, RzDisasmState::show_optype, RzDisasmState::show_refptr, RzDisasmState::show_reloff, RzDisasmState::show_reloff_flags, RzDisasmState::show_section, RzDisasmState::show_section_col, RzDisasmState::show_section_name, RzDisasmState::show_section_perm, RzDisasmState::show_size, RzDisasmState::show_slow, RzDisasmState::show_stackptr, RzDisasmState::show_symbols, RzDisasmState::show_symbols_col, RzDisasmState::show_trace, RzDisasmState::show_usercomments, RzDisasmState::show_utf8, RzDisasmState::show_varaccess, RzDisasmState::show_vars, RzDisasmState::show_varsum, RzDisasmState::show_xrefs, RzDisasmState::showpayloads, RzDisasmState::showrelocs, RzDisasmState::stackFd, RzDisasmState::stackptr, rz_analysis_t::stackptr, rz_print_t::strconv_mode, RzDisasmState::strenc, RzDisasmState::strip, RzDisasmState::subjmp, RzDisasmState::subnames, rz_parse_t::subreg, rz_parse_t::subrel, RzDisasmState::subvar, RzDisasmState::tracespace, RzDisasmState::tries, RzDisasmState::use_esil, ut64(), UT64_MAX, and rz_cons_t::vline.
Referenced by rz_core_print_disasm(), rz_core_print_disasm_all(), and rz_core_print_disasm_instructions_with_buf().
|
static |
Definition at line 943 of file disasm.c.
References RzDisasmState::analysis_op, rz_analysis_optype_to_string(), RzDisasmState::strip, and rz_analysis_op_t::type.
Referenced by rz_core_print_disasm(), and rz_core_print_disasm_instructions_with_buf().
|
static |
Definition at line 1286 of file disasm.c.
References rz_core_t::config, RzDisasmState::core, ds_disasm_text(), free(), NULL, RzDisasmState::pj, pj_end(), pj_s(), rz_config_get_b(), rz_cons_get_buffer(), rz_cons_get_buffer_dup(), rz_cons_html_filter(), rz_cons_newline(), rz_cons_reset(), RZ_NEW0, rz_pvector_push(), s, and RzDisasmState::vec.
Referenced by __preline_flag(), delete_last_comment(), ds_begin_nl_comment(), ds_comment_(), ds_comment_esil(), ds_print_bbline(), ds_print_comments_right(), ds_print_ptr(), ds_show_comments_describe(), ds_show_comments_right(), ds_show_flags(), ds_show_functions(), ds_show_xrefs(), myregwrite(), printVarSummary(), and rz_core_print_disasm().
|
static |
Definition at line 4606 of file disasm.c.
References addr, rz_core_t::analysis, rz_analysis_esil_t::cb, RzDisasmState::core, test_evm::end, rz_analysis_t::esil, f, rz_core_t::flags, rz_analysis_esil_callbacks_t::hook_reg_write, i, NULL, rz_core_t::offset, RzDisasmState::pre_emu, rz_analysis_esil_parse(), rz_analysis_esil_set_pc(), rz_analysis_op_free(), RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, rz_core_analysis_op(), rz_flag_get_at(), RZ_STRBUF_SAFEGET, RzDisasmState::show_emu, RzDisasmState::stackptr, rz_analysis_t::stackptr, and ut64().
Referenced by ds_print_esil_analysis_init().
|
static |
Definition at line 1225 of file disasm.c.
References ds_print_lines_left(), ds_print_pre(), ds_setup_pre(), RzDisasmState::line, RzDisasmState::line_col, RzDisasmState::prev_line_col, RzDisasmState::refline2, and autogen_x86imm::tmp.
Referenced by __preline_flag(), ds_print_labels(), and ds_show_flags().
|
static |
Definition at line 1756 of file disasm.c.
References DS_PRE_EMPTY, DS_PRE_FCN_MIDDLE, DS_PRE_NONE, ds_print_lines_left(), ds_print_pre(), ds_print_show_cursor(), ds_setup_pre(), RzDisasmState::line, RzDisasmState::line_col, RzDisasmState::pre, RzDisasmState::prev_line_col, RzDisasmState::refline2, RzDisasmState::show_marks, RzDisasmState::show_offset, and autogen_x86imm::tmp.
Referenced by ds_begin_comment(), ds_begin_nl_comment(), ds_show_comments_right(), ds_show_flags(), ds_show_functions(), and ds_show_xrefs().
|
static |
Definition at line 5144 of file disasm.c.
References RzDisasmState::analysis_op, COLOR, COLOR_RESET, ds_comment(), free(), NULL, rz_analysis_op_t::ptr, rz_num_as_string(), and cmd_descs_generate::str.
Referenced by ds_print_ptr().
|
static |
Definition at line 3863 of file disasm.c.
References RzDisasmState::analysis_op, RzDisasmState::asmop, RzDisasmState::core, rz_asm_t::dataalign, mod(), RzDisasmState::oplen, rz_asm_op_t::payload, rz_analysis_op_t::ptr, rz_core_t::rasm, RZ_ANALYSIS_STACK_GET, RZ_ANALYSIS_STACK_SET, rz_cons_printf(), RzDisasmState::show_varaccess, RzDisasmState::showpayloads, rz_analysis_op_t::stackop, v, and x.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 4684 of file disasm.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, RzDisasmState::at, RzDisasmState::cmtcount, RzDisasmState::core, ds_begin_line(), ds_newline(), DS_PRE_EMPTY, DS_PRE_FCN_MIDDLE, DS_PRE_NONE, ds_print_pre(), ds_print_ref_lines(), ds_update_ref_lines(), RzDisasmState::fcn, fcnIn(), RzDisasmState::line, RzDisasmState::linesright, NULL, RzDisasmState::pre, RzDisasmState::prev_line_col, RzDisasmState::refline2, rz_analysis_fcn_bbget_at(), RZ_ANALYSIS_FCN_TYPE_NULL, rz_cons_printf(), RzDisasmState::show_bbline, RzDisasmState::show_functions, RzDisasmState::show_lines_bb, and RzDisasmState::show_lines_fcn.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 4998 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::analysis_op, rz_core_t::config, RzDisasmState::core, ds_begin_comment(), ds_comment(), ds_print_color_reset(), fcnIn(), rz_core_t::flags, free(), i, rz_analysis_op_t::jump, rz_type_t::kind, name, rz_analysis_function_t::name, rz_space_t::name, NULL, rz_analysis_op_t::ptr, rz_flag_item_t::realname, rz_analysis_function_name_guess(), RZ_ANALYSIS_OP_TYPE_CALL, rz_config_get_b(), rz_flag_get_i(), RZ_FLAGS_FS_IMPORTS, rz_str_append(), rz_str_appendf(), rz_str_newf(), rz_type_as_string(), rz_type_func_args_count(), rz_type_func_args_name(), rz_type_func_args_type(), rz_type_func_exist(), rz_type_func_ret(), RZ_TYPE_KIND_POINTER, sp, rz_flag_item_t::space, strdup(), rz_analysis_op_t::type, rz_analysis_t::typedb, and UT64_MAX.
Referenced by ds_print_comments_right(), and rz_core_print_disasm().
|
static |
Definition at line 4319 of file disasm.c.
References RzDisasmState::analysis_op, ds_begin_comment(), ds_comment(), rz_analysis_op_t::esil, RZ_STRBUF_SAFEGET, and RzDisasmState::show_cmt_esil.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 4328 of file disasm.c.
References RzDisasmState::analysis_op, ds_begin_comment(), ds_comment(), rz_analysis_op_t::il_op, rz_il_op_effect_stringify(), rz_strbuf_fini(), rz_strbuf_get(), rz_strbuf_init(), sb, and RzDisasmState::show_cmt_il.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3467 of file disasm.c.
References Color_RESET, rz_cons_strcat(), and RzDisasmState::show_color.
Referenced by ds_control_flow_comments(), ds_print_calls_hints(), ds_print_comments_right(), ds_print_esil_analysis(), ds_print_labels(), ds_print_opstr(), ds_print_optype(), ds_show_comments_describe(), ds_show_comments_right(), ds_show_refs(), ds_show_xrefs(), and rz_core_print_disasm().
|
static |
Definition at line 5062 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::analysis_op, RzDisasmState::asm_describe, RzDisasmState::asmop, RzDisasmState::at, c, RzDisasmState::color_comment, RzDisasmState::color_usrcmt, RzDisasmState::comment, RzDisasmState::core, desc, ds_align_comment(), ds_begin_line(), ds_newline(), ds_print_calls_hints(), ds_print_color_reset(), ds_print_pre(), ds_print_relocs(), free(), RzDisasmState::has_description, RzDisasmState::hint, i, mi, NULL, op, rz_core_t::rasm, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_UCALL, rz_asm_describe(), rz_asm_op_get_asm(), rz_cons_printf(), rz_cons_strcat(), RZ_FREE, rz_meta_get_at(), RZ_META_TYPE_ANY, rz_str_case(), rz_str_split_lines(), rz_str_trim(), RzDisasmState::show_calls, RzDisasmState::show_color, RzDisasmState::show_comment_right, RzDisasmState::show_comments, RzDisasmState::show_usercomments, strdup(), rz_analysis_hint_t::type, and rz_analysis_op_t::type.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3676 of file disasm.c.
References addr, rz_core_t::analysis, RzDisasmState::analysis_op, RzDisasmState::asm_hint_call, RzDisasmState::asm_hint_call_indirect, RzDisasmState::asm_hint_emu, RzDisasmState::asm_hint_jmp, RzDisasmState::asm_hint_lea, RzDisasmState::asm_hint_pos, RzDisasmState::asm_hints, RzDisasmState::at, rz_asm_t::bits, RzDisasmState::core, ds_print_core_vmode_jump_hit(), ds_print_shortcut(), RzDisasmState::emuptr, get_ptr(), get_ptr_ble(), RzDisasmState::hinted_line, i, rz_core_t::io, rz_analysis_op_t::jump, mi, pos, rz_analysis_op_t::ptr, rz_core_t::rasm, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_COND, RZ_ANALYSIS_OP_TYPE_IND, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_LEA, RZ_ANALYSIS_OP_TYPE_LOAD, RZ_ANALYSIS_OP_TYPE_MOV, RZ_ANALYSIS_OP_TYPE_RCALL, RZ_ANALYSIS_OP_TYPE_REG, RZ_ANALYSIS_OP_TYPE_RJMP, RZ_ANALYSIS_OP_TYPE_UCALL, RZ_ANALYSIS_OP_TYPE_UJMP, rz_cons_strcat(), rz_io_is_valid_offset(), rz_meta_get_at(), RZ_META_TYPE_ANY, rz_analysis_op_t::type, UT32_MAX, ut64(), UT64_MAX, and rz_core_t::vmode.
Referenced by ds_begin_line(), and rz_core_print_disasm().
|
static |
Definition at line 3636 of file disasm.c.
References a, rz_core_t::analysis, RzDisasmState::at, RzDisasmState::core, ds_print_shortcut(), rz_analysis_hint_t::jump, pos, rz_analysis_hint_free(), rz_analysis_hint_get(), and UT64_MAX.
Referenced by ds_print_core_vmode().
|
static |
Definition at line 2867 of file disasm.c.
References RzDisasmState::analysis_op, rz_analysis_op_t::cycles, RzDisasmState::cyclespace, rz_analysis_op_t::failcycles, memset(), rz_cons_printf(), rz_cons_strcat(), RZ_MIN, RzDisasmState::show_cycles, spaces(), and times.
Referenced by rz_core_print_disasm().
Definition at line 3051 of file disasm.c.
References rz_print_t::big_endian, bits(), RzDisasmState::color_mov, rz_core_t::config, RzDisasmState::core, rz_print_t::cur_enabled, RzDisasmState::cursor, rz_core_t::flags, flags, RzDisasmState::index, RzDisasmState::min_ref_addr, msg, n, rz_flag_item_t::name, ntohs, NULL, PFMT64d, PFMT64o, PFMT64x, rz_core_t::print, rz_config_get(), rz_config_get_b(), rz_config_get_i(), rz_cons_printf(), rz_cons_strcat(), rz_flag_get_list(), rz_read_ble(), rz_str_bits(), rz_str_startswith(), type, and ut64().
Referenced by ds_print_meta_infos(), and rz_core_disasm_pdi_with_buf().
|
static |
Definition at line 4340 of file disasm.c.
References RzDisasmState::analysis_op, RzDisasmState::asm_demangle, RzDisasmState::core, ds_begin_nl_comment(), ds_comment(), f, rz_core_t::flags, rz_analysis_op_t::jump, NULL, RzDisasmState::opstr, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_UJMP, rz_flag_get_by_spaces(), RZ_FLAGS_FS_SYMBOLS, RzDisasmState::show_comments, and rz_analysis_op_t::type.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3826 of file disasm.c.
References RzDisasmState::at, rz_core_t::bin, Color_RESET, RzDisasmState::core, ds_align_comment(), RzDisasmState::dwarfAbspath, RzDisasmState::dwarfFile, free(), int, setup::line, NULL, RzDisasmState::osl, RzDisasmState::pal_comment, rz_bin_addr2text(), rz_cons_printf(), rz_str_replace_char(), rz_str_trim(), RzDisasmState::show_color, RzDisasmState::show_dwarf, RzDisasmState::sl, and strdup().
Referenced by rz_core_print_disasm().
|
static |
Definition at line 4787 of file disasm.c.
References addr, rz_core_t::analysis, RzDisasmState::analysis_op, arg(), RzDisasmState::asm_types, RzDisasmState::at, rz_analysis_t::bits, can_emulate_metadata(), rz_analysis_esil_t::cb, rz_core_t::config, RzDisasmState::core, DEFAULT_NARGS, delete_last_comment(), ds_comment_esil(), ds_print_color_reset(), ds_print_esil_analysis_init(), rz_analysis_t::esil, rz_analysis_op_t::esil, RzDisasmState::esil_likely, rz_core_t::flags, free(), hook_mem_write(), rz_analysis_esil_callbacks_t::hook_mem_write, rz_analysis_esil_callbacks_t::hook_reg_read, rz_analysis_esil_callbacks_t::hook_reg_write, i, int, rz_analysis_op_t::jump, key, rz_type_t::kind, len, list(), mipsTweak(), mymemwrite0(), mymemwrite1(), mymemwrite2(), myregread(), myregwrite(), arg::name, rz_analysis_function_t::name, rz_flag_item_t::name, cmd_descs_generate::nargs, NULL, RzDisasmState::pal_comment, pc, PFMT64x, print_fcn_arg(), rz_analysis_op_t::ptr, rz_analysis_t::reg, resolve_fcn_name(), rz_analysis_esil_parse(), rz_analysis_esil_reg_read(), rz_analysis_esil_set_pc(), rz_analysis_esil_stack_free(), rz_analysis_get_function_at(), RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_ICALL, RZ_ANALYSIS_OP_TYPE_IRCALL, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_RCALL, RZ_ANALYSIS_OP_TYPE_SWI, RZ_ANALYSIS_OP_TYPE_UCALL, rz_analysis_syscc_default(), rz_analysis_var_count(), rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set(), rz_cons_strcat(), rz_core_arg_get(), rz_core_get_func_args(), rz_core_pava(), rz_core_syscall_as_string(), rz_flag_get_at(), rz_flag_get_i(), rz_list_free(), rz_list_iter_get_next(), rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_PC, RZ_REG_NAME_SP, rz_reg_setv(), rz_str_get_null(), RZ_STR_ISEMPTY, RZ_STR_ISNOTEMPTY, rz_str_startswith(), RZ_STRBUF_SAFEGET, rz_type_as_string(), rz_type_func_args_count(), rz_type_func_ret(), RZ_TYPE_KIND_POINTER, rz_warn_if_fail, s, RzDisasmState::show_color, RzDisasmState::show_comments, RzDisasmState::show_emu, RzDisasmState::show_emu_stack, RzDisasmState::show_emu_write, rz_analysis_op_t::size, sp, rz_analysis_op_t::type, rz_analysis_t::typedb, rz_analysis_esil_callbacks_t::user, ut64(), UT64_MAX, v, and rz_analysis_op_t::val.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 559 of file disasm.c.
References rz_core_t::analysis, rz_reg_set_t::arena, RzDisasmState::core, eprintf, rz_analysis_t::esil, RzDisasmState::esil_old_pc, RzDisasmState::esil_regstate, RzDisasmState::esil_regstate_size, rz_analysis_t::last_disasm_reg, NULL, pc, rz_analysis_t::reg, RZ_FREE, rz_reg_arena_peek(), rz_reg_arena_poke(), rz_reg_get_name(), RZ_REG_NAME_PC, rz_reg_regset_get(), rz_reg_setv(), RZ_REG_TYPE_GPR, RzDisasmState::show_emu, rz_reg_arena_t::size, and rz_analysis_esil_t::user.
Referenced by ds_free(), and rz_core_print_disasm().
|
static |
Definition at line 4643 of file disasm.c.
References rz_core_t::analysis, rz_reg_set_t::arena, rz_core_t::config, RzDisasmState::core, ds_pre_emulation(), rz_analysis_t::esil, RzDisasmState::esil_old_pc, RzDisasmState::esil_regstate, RzDisasmState::esil_regstate_size, free(), rz_analysis_t::gp, rz_analysis_t::last_disasm_reg, rz_core_t::offset, pc, rz_analysis_t::reg, rz_analysis_esil_new(), rz_analysis_esil_setup(), rz_config_get_i(), RZ_FREE, rz_reg_arena_peek(), rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_PC, rz_reg_regset_get(), rz_reg_setv(), RZ_REG_TYPE_GPR, RzDisasmState::show_emu, rz_reg_arena_t::size, rz_analysis_esil_t::user, and UT64_MAX.
Referenced by ds_print_esil_analysis(), and rz_core_print_disasm().
|
static |
Definition at line 2860 of file disasm.c.
References RzDisasmState::analysis_op, rz_analysis_op_t::family, rz_analysis_op_family_to_string(), rz_cons_printf(), and RzDisasmState::show_family.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3544 of file disasm.c.
References RzDisasmState::analysis_op, arch, RzDisasmState::asm_demangle, RzDisasmState::at, rz_core_t::config, RzDisasmState::core, delta, rz_flag_item_t::demangled, ds_begin_comment(), ds_comment(), f, autogen_x86imm::f2, fcnIn(), rz_core_t::flags, rz_analysis_op_t::jump, rz_flag_item_t::name, NULL, RzDisasmState::opstr, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_function_get_label_at(), RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_JMP, rz_config_get(), rz_flag_get_by_spaces(), RZ_FLAGS_FS_CLASSES, RZ_FLAGS_FS_SYMBOLS, rz_str_startswith(), RzDisasmState::show_comments, st64, RzDisasmState::subjmp, RzDisasmState::subnames, rz_analysis_op_t::type, and rz_core_t::vmode.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3434 of file disasm.c.
References RzDisasmState::indent_level, RzDisasmState::indent_space, memset(), num, rz_cons_strcat(), and RzDisasmState::show_indent.
Referenced by ds_print_opstr().
|
static |
Definition at line 3488 of file disasm.c.
References RzDisasmState::at, RzDisasmState::color_label, ds_pre_line(), ds_print_color_reset(), f, fcnIn(), rz_analysis_function_get_label_at(), rz_cons_printf(), rz_cons_strcat(), and RzDisasmState::show_color.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 2803 of file disasm.c.
References rz_analysis_function_t::addr, RzDisasmState::at, rz_core_t::bin, RzDisasmState::color_num, RzDisasmState::color_reg, rz_core_t::config, RzDisasmState::core, rz_bin_t::cur, delta, ds_print_ref_lines(), RzDisasmState::fcn, rz_core_t::flags, free(), RzDisasmState::lastflag, RzDisasmState::line, RzDisasmState::line_col, RzDisasmState::linesright, rz_analysis_function_t::name, rz_bin_section_t::name, rz_flag_item_t::name, NULL, rz_bin_file_t::o, rz_flag_item_t::offset, rz_bin_section_t::perm, printCol(), rz_bin_get_section_at(), rz_config_get_i(), RZ_EMPTY, rz_flag_get_at(), rz_str_append(), rz_str_appendf(), rz_str_newf(), rz_str_rwx_i(), RzDisasmState::show_section, RzDisasmState::show_section_col, RzDisasmState::show_section_name, RzDisasmState::show_section_perm, RzDisasmState::show_symbols, RzDisasmState::show_symbols_col, cmd_descs_generate::str, and strdup().
Referenced by ds_pre_line(), ds_pre_xrefs(), ds_show_functions(), and rz_core_print_disasm().
|
static |
Definition at line 2765 of file disasm.c.
References ds_print_ref_lines(), RzDisasmState::line, RzDisasmState::line_col, RzDisasmState::linesright, and RzDisasmState::show_lines_bb.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3141 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::asm_hint_lea, RzDisasmState::asm_hint_pos, RzDisasmState::asm_meta, RzDisasmState::asmop, RzDisasmState::at, COLOR, COLOR_RESET, RzDisasmState::core, rz_interval_node_t::data, delta, ds_print_data_type(), ds_print_shortcut(), rz_print_t::esc_bslash, RzStrEscOptions::esc_bslash, RzStrEscOptions::esc_double_quotes, rz_print_t::flags, free(), RzDisasmState::hint, setup::idx, rz_analysis_hint_t::immbase, int, len, RzDisasmState::line, RzDisasmState::line_col, metas, mi, NULL, once, RzDisasmState::oplen, out, PFMT64d, RzDisasmState::prev_line_col, rz_core_t::print, RzDisasmState::refline, RzDisasmState::refline2, rz_cons_drop(), rz_cons_get_buffer(), rz_cons_get_buffer_len(), rz_cons_printf(), rz_cons_strcat(), rz_core_print_hexdump(), RZ_FREE, rz_meta_get_all_in(), RZ_META_TYPE_ANY, RZ_META_TYPE_DATA, RZ_META_TYPE_FORMAT, RZ_META_TYPE_HIDE, RZ_META_TYPE_STRING, RZ_MIN, RZ_PRINT_FLAGS_HEADER, rz_pvector_foreach, rz_pvector_free(), rz_str_escape_8bit(), rz_str_escape_utf8(), RZ_STRING_ENC_UTF8, rz_type_format_data(), RzStrEscOptions::show_asciidot, rz_asm_op_t::size, rz_interval_node_t::start, rz_analysis_t::typedb, and ut64().
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3473 of file disasm.c.
References Color_RESET, ds_align_comment(), RzDisasmState::middle, RzDisasmState::pal_comment, rz_cons_printf(), rz_cons_strcat(), and RzDisasmState::show_color.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 2886 of file disasm.c.
References RzDisasmState::_tabsbuf, RzDisasmState::_tabsoff, rz_core_t::analysis, RzDisasmState::at, RzDisasmState::atabsoff, b, color, Color_RESET, rz_core_t::config, RzDisasmState::core, rz_debug_tracepoint_t::count, rz_core_t::dbg, delta, RzDisasmState::dest, f, fcnIn(), rz_core_t::flags, rz_print_t::flags, free(), rz_analysis_hint_t::high, RzDisasmState::hint, k, RzDisasmState::lastflag, malloc(), memset(), rz_flag_item_t::name, NULL, rz_core_t::offset, rz_flag_item_t::offset, rz_core_t::print, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_get_function_at(), rz_config_get_b(), rz_config_get_i(), rz_cons_pal_parse(), rz_cons_printf(), rz_cons_strcat(), rz_debug_trace_get(), RZ_EMPTY, rz_flag_get_at(), rz_flag_get_i(), rz_print_offset_sg(), rz_print_set_screenbounds(), RzDisasmState::show_color, RzDisasmState::show_offdec, RzDisasmState::show_offset, RzDisasmState::show_reloff, RzDisasmState::show_reloff_flags, RzDisasmState::show_trace, ut64(), and RzDisasmState::vat.
Referenced by ds_show_flags(), ds_show_functions(), and rz_core_print_disasm().
|
static |
Definition at line 3015 of file disasm.c.
References RzDisasmState::oplen, requires_op_size(), rz_cons_printf(), and RzDisasmState::show_size.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3459 of file disasm.c.
References RzDisasmState::asm_instr, ds_print_color_reset(), ds_print_indent(), RzDisasmState::opstr, and rz_cons_strcat().
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3450 of file disasm.c.
References RzDisasmState::analysis_op, ds_print_color_reset(), pad(), rz_analysis_optype_to_string(), rz_cons_printf(), rz_str_pad(), RzDisasmState::show_optype, and rz_analysis_op_t::type.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 2159 of file disasm.c.
References c, COLOR, COLOR_RESET, rz_core_t::cons, RzDisasmState::core, CORNER_BL, CORNER_TL, DS_PRE_EMPTY, DS_PRE_FCN_HEAD, DS_PRE_FCN_MIDDLE, DS_PRE_FCN_TAIL, DS_PRE_NONE, LINE_VERT, NULL, RzDisasmState::pre, rz_cons_printf(), and rz_cons_t::vline.
Referenced by _ds_comment_align_(), ds_pre_line(), ds_pre_xrefs(), ds_print_bbline(), ds_print_comments_right(), ds_setup_print_pre(), ds_show_functions(), printVarSummary(), and rz_core_print_disasm().
|
static |
Definition at line 4022 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::analysis_op, arch, RzDisasmState::at, rz_print_t::big_endian, rz_core_t::bin, calloc(), RzDisasmState::chref, RzDisasmState::cmtcount, Color_RESET, rz_core_t::config, RzDisasmState::core, ds_begin_comment(), ds_begin_nl_comment(), ds_comment(), ds_newline(), ds_print_as_string(), ds_print_str(), f, autogen_x86imm::f2, rz_core_t::flags, rz_print_t::flags, free(), RzDisasmState::immstr, rz_core_t::io, is_filtered_flag(), IS_PRINTABLE, IS_WHITECHAR, len, list(), msg, n, rz_flag_item_t::name, NULL, num, RzDisasmState::opstr, p, rz_core_t::parser, PFMT64d, PFMT64u, PFMT64x, rz_core_t::print, RzDisasmState::printed_flag_addr, rz_analysis_op_t::ptr, rz_analysis_op_t::refptr, RZ_ANALYSIS_ADDR_TYPE_ASCII, rz_analysis_data_kind(), rz_analysis_function_get_var(), rz_analysis_get_function_at(), RZ_ANALYSIS_OP_TYPE_LEA, RZ_ANALYSIS_OP_TYPE_MASK, RZ_ANALYSIS_OP_TYPE_MOV, RZ_ANALYSIS_OP_TYPE_PUSH, RZ_ANALYSIS_OP_TYPE_REG, RZ_ANALYSIS_STACK_SET, RZ_ANALYSIS_XREF_TYPE_DATA, RZ_ANALYSIS_XREF_TYPE_STRING, rz_analysis_xrefs_get_from(), rz_bin_cur_object(), rz_bin_get_section_at(), rz_config_get(), rz_cons_get_buffer(), rz_cons_strcat(), rz_core_analysis_address(), rz_core_flag_get_by_spaces(), rz_flag_get_i(), rz_io_read_at(), rz_list_free(), RZ_PRINT_FLAGS_SECSUB, rz_read_ble(), rz_read_ble64(), rz_str_filter(), rz_str_from_ut64(), rz_str_is_printable_incl_newlines(), rz_str_new(), rz_str_newf(), RZ_STRING_ENC_GUESS, rz_utf_bom_encoding(), s, RzDisasmState::show_cmtoff, RzDisasmState::show_color, RzDisasmState::show_comment_right, RzDisasmState::show_comments, RzDisasmState::show_refptr, RzDisasmState::show_slow, snprintf, st32, st64, rz_analysis_op_t::stackop, cmd_descs_generate::str, RzDisasmState::strenc, rz_parse_t::subrel_addr, rz_analysis_ref_t::to, rz_analysis_op_t::type, rz_analysis_ref_t::type, UT32_MAX, ut64(), UT64_MAX, v, rz_io_t::va, and rz_analysis_op_t::val.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 397 of file disasm.c.
References COLOR, COLOR_RESET, rz_core_t::cons, RzDisasmState::core, get_utf8_char(), i, len, setup::line, RzDisasmState::linesopts, RZ_ANALYSIS_REFLINE_TYPE_UTF8, rz_cons_printf(), RzDisasmState::show_color, and rz_cons_t::use_utf8.
Referenced by _ds_comment_align_(), ds_begin_cont(), ds_print_bbline(), ds_print_lines_left(), ds_print_lines_right(), and rz_core_print_disasm().
|
static |
Definition at line 4359 of file disasm.c.
References rz_bin_reloc_t::addend, RzDisasmState::analysis_op, RzDisasmState::at, rz_core_t::bin, RzDisasmState::cmtcol, rz_core_t::config, RzDisasmState::core, rz_bin_t::cur, free(), rz_bin_reloc_t::import, len, rz_bin_symbol_t::name, rz_bin_import_t::name, NULL, PFMT64x, rz_bin_demangle(), rz_config_get(), rz_config_get_b(), rz_cons_lastline(), rz_cons_memset(), rz_cons_printf(), rz_core_get_reloc_to(), rz_core_getreloc(), rz_str_ansi_len(), rz_utf8_strlen(), RzDisasmState::show_slow, RzDisasmState::showrelocs, rz_analysis_op_t::size, rz_bin_reloc_t::symbol, rz_bin_reloc_t::type, rz_bin_symbol_t::vaddr, and rz_bin_reloc_t::vaddr.
Referenced by ds_print_comments_right().
|
static |
Definition at line 3596 of file disasm.c.
References addr, RzDisasmState::asm_hint_pos, Color_RESET, Color_RESET_NOBG, RzDisasmState::core, ds_align_comment(), free(), rz_core_t::is_asmqjmps_letter, RzDisasmState::pal_comment, pos, rz_core_t::print, rz_print_t::resetbg, rz_cons_printf(), rz_cons_strcat(), rz_core_add_asmqjmp(), and RzDisasmState::show_color.
Referenced by ds_print_core_vmode(), ds_print_core_vmode_jump_hit(), and ds_print_meta_infos().
|
static |
Definition at line 3345 of file disasm.c.
References RzDisasmState::asmop, RzDisasmState::at, rz_print_t::bytespace, RzDisasmState::core, rz_print_t::cur_enabled, RzDisasmState::cursor, rz_core_t::flags, rz_print_t::flags, free(), RzDisasmState::index, k, RzDisasmState::lbytes, RzDisasmState::nb, NULL, p, pad(), RzDisasmState::print, rz_core_t::print, rz_asm_op_get_hex(), rz_cons_printf(), rz_flag_get_liststr(), RZ_FREE, RZ_PRINT_FLAGS_COLOR, rz_print_hexpair(), rz_str_ansi_chrn(), rz_str_ansi_len(), rz_str_newf(), RzDisasmState::show_bytes, RzDisasmState::show_color_bytes, RzDisasmState::show_flag_in_bytes, cmd_descs_generate::str, and strdup().
Referenced by rz_core_print_disasm().
|
static |
Definition at line 1722 of file disasm.c.
References RzDisasmState::asmop, RzDisasmState::at, rz_debug_t::bp, RzDisasmState::core, rz_print_t::cur_enabled, RzDisasmState::cursor, rz_core_t::dbg, handleMidBB(), handleMidFlags(), RzDisasmState::hasMidbb, RzDisasmState::hasMidflag, i, RzDisasmState::index, RzDisasmState::midbb, p, rz_core_t::print, rz_bp_get_at(), rz_cons_strcat(), RzDisasmState::show_marks, and rz_asm_op_t::size.
Referenced by ds_pre_xrefs(), and rz_core_print_disasm().
|
static |
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3981 of file disasm.c.
References RzDisasmState::analysis_op, rz_core_t::bin, rz_asm_t::bits, Color_INVERT, Color_INVERT_RESET, rz_core_t::config, RzDisasmState::core, ds_begin_comment(), ds_comment(), ds_esc_str(), rz_core_t::flags, free(), len, prefix, RzDisasmState::printed_str_addr, rz_core_t::rasm, rz_flag_t::realnames, RZ_ANALYSIS_OP_TYPE_LEA, rz_bin_string_filter(), rz_config_get(), rz_str_startswith(), RzDisasmState::show_color, RzDisasmState::show_emu_strinv, cmd_descs_generate::str, and rz_analysis_op_t::type.
Referenced by ds_print_ptr().
|
static |
Definition at line 3512 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::analysis_op, CMT_ALIGN, RzDisasmState::core, ds_comment(), RzDisasmState::has_description, imm, int, rz_analysis_op_t::ptr, RZ_ANALYSIS_OP_TYPE_IO, RZ_ANALYSIS_OP_TYPE_LEA, RZ_ANALYSIS_OP_TYPE_LOAD, RZ_ANALYSIS_OP_TYPE_MOV, RZ_ANALYSIS_OP_TYPE_STORE, rz_sysreg_get(), RzDisasmState::show_comments, rz_analysis_t::syscall, rz_analysis_op_t::type, and rz_analysis_op_t::val.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 3022 of file disasm.c.
References RzDisasmState::at, RzDisasmState::core, rz_debug_tracepoint_t::count, rz_core_t::dbg, memset(), NULL, rz_cons_printf(), rz_cons_strcat(), rz_debug_trace_get(), RZ_MIN, RzDisasmState::show_trace, spaces(), rz_debug_tracepoint_t::times, times, and RzDisasmState::tracespace.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 887 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::core, NULL, RzDisasmState::prev_line_col, RzDisasmState::refline, RzDisasmState::refline2, rz_analysis_t::reflines, RZ_FREE, and rz_list_free().
Referenced by ds_free(), ds_reflines_init(), and rz_core_print_disasm().
|
static |
Definition at line 896 of file disasm.c.
References RzDisasmState::addr, rz_core_t::analysis, RzDisasmState::buf, RzDisasmState::core, ds_reflines_fini(), RzDisasmState::l, lastaddr, RzDisasmState::len, RzDisasmState::linesout, NULL, RzDisasmState::pj, rz_analysis_t::reflines, rz_analysis_reflines_get(), rz_list_free(), RzDisasmState::show_lines_bb, RzDisasmState::show_lines_call, and UT64_MAX.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 2128 of file disasm.c.
References RzDisasmState::analysis_op, RzDisasmState::at, RzDisasmState::cmtcount, DS_PRE_EMPTY, DS_PRE_FCN_MIDDLE, DS_PRE_FCN_TAIL, DS_PRE_NONE, f, fcnIn(), RzDisasmState::pre, RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_function_contains(), rz_analysis_function_linear_size(), rz_analysis_function_max_addr(), rz_analysis_function_min_addr(), RzDisasmState::show_functions, RzDisasmState::show_lines_fcn, and rz_analysis_op_t::size.
Referenced by ds_pre_line(), ds_pre_xrefs(), and ds_setup_print_pre().
|
static |
Definition at line 2123 of file disasm.c.
References ds_print_pre(), and ds_setup_pre().
Referenced by ds_begin_cont(), and rz_core_print_disasm().
|
static |
Definition at line 2189 of file disasm.c.
References RzDisasmState::asm_describe, RzDisasmState::asmop, RzDisasmState::color_comment, RzDisasmState::core, desc, ds_align_comment(), ds_begin_comment(), ds_newline(), ds_print_color_reset(), free(), RzDisasmState::has_description, NULL, op, rz_core_t::rasm, rz_asm_describe(), rz_asm_op_get_asm(), rz_cons_strcat(), rz_str_case(), RzDisasmState::show_color, and strdup().
Referenced by rz_core_print_disasm().
|
static |
Definition at line 2220 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::at, COLOR, COLOR_ARG, Color_RESET, RzDisasmState::color_usrcmt, rz_cons_t::columns, RzDisasmState::comment, rz_flag_item_t::comment, rz_core_t::cons, RzDisasmState::core, ds_begin_line(), ds_comment(), ds_newline(), ds_pre_xrefs(), ds_print_color_reset(), rz_core_t::flags, RzDisasmState::lcols, RzDisasmState::ocols, RzDisasmState::ocomment, RzDisasmState::pal_comment, rz_cons_strcat(), rz_cons_strcat_justify(), rz_flag_get_i(), RZ_FREE, rz_meta_get_string(), RZ_META_TYPE_COMMENT, RZ_META_TYPE_VARTYPE, rz_str_newf(), RzDisasmState::show_color, RzDisasmState::show_comment_right, RzDisasmState::show_comment_right_default, RzDisasmState::show_comments, RzDisasmState::show_usercomments, and strdup().
Referenced by rz_core_print_disasm().
|
static |
Definition at line 2328 of file disasm.c.
References __preline_flag(), addr, rz_analysis_switch_obj_t::addr, rz_core_t::analysis, RzDisasmState::asm_demangle, RzDisasmState::at, rz_core_t::bin, blocks, color, rz_flag_item_t::color, RzDisasmState::color_flag, RzDisasmState::color_offset, Color_RESET, comma, rz_core_t::config, RzDisasmState::core, count, rz_bin_t::cur, ds_align_comment(), ds_begin_line(), ds_newline(), ds_pre_line(), ds_pre_xrefs(), ds_print_offset(), rz_analysis_switch_obj_t::enum_type, f, FLAG_PREFIX, flagCmp(), rz_core_t::flags, RzDisasmState::flags_inline, free(), rz_list_t::head, RzDisasmState::lastflag, RzDisasmState::maxflags, n, rz_flag_item_t::name, NULL, rz_core_t::num, rz_flag_item_t::offset, RzDisasmState::pal_comment, PFMT64x, printPre, rz_flag_item_t::realname, rz_analysis_get_blocks_in(), rz_analysis_get_function_at(), rz_bin_demangle(), rz_config_get(), rz_config_get_b(), rz_cons_pal_parse(), rz_cons_printf(), rz_cons_strcat(), rz_flag_get_list(), RZ_FREE, rz_list_free(), rz_list_uniq(), rz_num_math(), rz_str_ansi_filter(), rz_str_ncpy(), rz_type_db_enum_member_by_val(), rz_type_identifier(), RzDisasmState::show_color, RzDisasmState::show_flags, RzDisasmState::show_flgoff, RzDisasmState::show_marks, RzDisasmState::show_offset, strdup(), rz_analysis_bb_t::switch_op, rz_list_t::tail, rz_analysis_t::typedb, ut64(), and UT64_MAX.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 1904 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::at, rz_core_t::bin, COLOR, COLOR_ARG, COLOR_RESET, rz_analysis_var_t::comment, rz_core_t::config, rz_core_t::cons, RzDisasmState::core, rz_bin_t::cur, rz_analysis_var_t::delta, ds_begin_line(), ds_newline(), DS_PRE_FCN_HEAD, DS_PRE_FCN_MIDDLE, ds_pre_xrefs(), ds_print_lines_left(), ds_print_offset(), ds_print_pre(), ds_show_functions_argvar(), empty_signature(), eprintf, f, RzDisasmState::fcn, rz_core_t::flags, free(), get_bits_comment(), i, setup::idx, rz_analysis_function_t::imports, rz_analysis_t::imports, RzDisasmState::interactive, is_var(), rz_analysis_var_t::isarg, rz_analysis_var_t::kind, RzDisasmState::l, LINE_CROSS, memset(), rz_analysis_var_t::name, rz_reg_t::name, NULL, PFMT64d, RzDisasmState::pre, printVarSummary(), rz_flag_item_t::realname, rz_flag_t::realnames, rz_analysis_t::reg, rz_analysis_fcn_format_sig(), RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_IMP, RZ_ANALYSIS_FCN_TYPE_LOC, RZ_ANALYSIS_FCN_TYPE_SYM, rz_analysis_fcn_vars_cache_fini(), rz_analysis_fcn_vars_cache_init(), rz_analysis_function_get_signature(), rz_analysis_function_realsize(), rz_analysis_get_function_at(), RZ_ANALYSIS_VAR_KIND_BPV, RZ_ANALYSIS_VAR_KIND_REG, RZ_ANALYSIS_VAR_KIND_SPV, rz_bin_demangle(), rz_config_get(), rz_config_get_b(), rz_cons_printf(), rz_core_analysis_var_display(), rz_flag_get(), RZ_FREE, rz_list_join(), rz_reg_index_get(), RZ_REG_NAME_BP, RZ_REG_NAME_SP, rz_str_endswith(), rz_str_replace_char(), rz_type_as_string(), RzDisasmState::show_fcnsig, RzDisasmState::show_fcnsize, RzDisasmState::show_flgoff, RzDisasmState::show_functions, RzDisasmState::show_lines_fcn, RzDisasmState::show_vars, RzDisasmState::show_varsum, spaces(), RzDisasmState::stackptr, rz_analysis_t::stackptr, rz_analysis_var_t::type, rz_analysis_t::typedb, val, and rz_cons_t::vline.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 1774 of file disasm.c.
References rz_core_t::analysis, rz_analysis_function_t::bp_off, COLOR_ARG, RzDisasmState::core, delta, rz_analysis_var_t::delta, free(), is_var(), rz_analysis_var_t::kind, rz_analysis_var_t::name, RZ_ABS, rz_analysis_var_get_constraints_readable(), rz_cons_printf(), rz_core_analysis_var_display(), rz_str_endswith(), rz_str_replace_char(), rz_type_as_string(), RzDisasmState::show_varsum, rz_analysis_var_t::type, rz_analysis_t::typedb, and val.
Referenced by ds_show_functions().
|
static |
Definition at line 1334 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::at, RzDisasmState::color_comment, RzDisasmState::core, ds_begin_comment(), ds_comment(), ds_print_color_reset(), rz_core_t::flags, rz_analysis_ref_t::from, rz_core_t::io, list(), rz_analysis_function_t::name, rz_flag_item_t::name, PFMT64x, rz_analysis_get_function_at(), rz_analysis_op(), RZ_ANALYSIS_OP_MASK_BASIC, RZ_ANALYSIS_OP_TYPE_MASK, RZ_ANALYSIS_OP_TYPE_UCALL, RZ_ANALYSIS_XREF_TYPE_CALL, rz_analysis_xrefs_get_from(), rz_cons_strcat(), rz_flag_get_list(), rz_io_read_at(), rz_list_free(), rz_meta_get_string(), RZ_META_TYPE_COMMENT, RzDisasmState::show_cmtrefs, RzDisasmState::show_color, rz_analysis_ref_t::to, rz_analysis_op_t::type, and rz_analysis_ref_t::type.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 1381 of file disasm.c.
References rz_analysis_function_t::addr, rz_core_t::analysis, RzDisasmState::asm_demangle, RzDisasmState::asm_xrefs_code, RzDisasmState::at, COLOR, COLOR_RESET, RzDisasmState::core, count, rz_flag_item_t::demangled, ds_begin_line(), ds_comment(), ds_newline(), ds_pre_xrefs(), ds_print_color_reset(), eprintf, f, RzDisasmState::fcn, fcnIn(), rz_core_t::flags, RzDisasmState::foldxrefs, free(), rz_analysis_ref_t::from, from, rz_list_t::head, RzDisasmState::maxrefs, name, rz_analysis_function_t::name, rz_flag_item_t::name, NULL, rz_flag_item_t::offset, pad(), RzDisasmState::pal_comment, PFMT64x, rz_flag_item_t::realname, rz_analysis_get_fcn_in(), rz_analysis_get_function_at(), RZ_ANALYSIS_XREF_TYPE_CODE, rz_analysis_xrefs_get_to(), rz_analysis_xrefs_type_tostring(), rz_cons_get_size(), rz_flag_get_at(), rz_flag_get_by_spaces(), RZ_FLAGS_FS_SYMBOLS, RZ_FREE, rz_list_append(), rz_list_free(), rz_list_length(), rz_list_newf(), rz_list_purge(), rz_num_dup(), rz_str_startswith(), RzDisasmState::show_color, RzDisasmState::show_comment_right, RzDisasmState::show_comments, RzDisasmState::show_xrefs, strdup(), rz_list_t::tail, rz_analysis_ref_t::to, rz_analysis_ref_t::type, and ut64().
Referenced by rz_core_print_disasm().
|
static |
Definition at line 5302 of file disasm.c.
References RzDisasmState::color_linehl, line_highlighted(), rz_cons_strcat(), and RzDisasmState::show_color.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 5217 of file disasm.c.
References _find_next_number(), addr, rz_analysis_op_t::addr, rz_core_t::analysis, RzDisasmState::analysis_op, rz_core_t::bin, RzDisasmState::core, f, rz_core_t::flags, free(), rz_bin_reloc_t::import, rz_bin_t::is_reloc_patched, IS_SEPARATOR, rz_analysis_op_t::jump, rz_analysis_function_t::name, rz_bin_symbol_t::name, rz_bin_import_t::name, rz_flag_item_t::name, NULL, rz_flag_item_t::realname, rz_analysis_get_function_at(), RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_UJMP, rz_core_flag_get_by_spaces(), rz_core_get_reloc_to(), rz_core_getreloc(), rz_num_get(), rz_str_ndup(), rz_str_newf(), rz_str_replace(), set_jump_realname(), rz_analysis_op_t::size, cmd_descs_generate::str, RzDisasmState::subjmp, rz_bin_reloc_t::symbol, rz_analysis_op_t::type, and ut64().
Referenced by ds_build_op_str().
|
static |
Definition at line 2537 of file disasm.c.
References RzDisasmState::at, RzDisasmState::core, free(), RzDisasmState::indent_level, RzDisasmState::line, setup::line, RzDisasmState::line_col, RzDisasmState::linesopts, NULL, RzDisasmState::prev_line_col, RzDisasmState::refline, RzDisasmState::refline2, RZ_ANALYSIS_REFLINE_TYPE_MIDDLE_BEFORE, rz_analysis_reflines_str(), RZ_FREE, RzDisasmState::show_lines_bb, and strdup().
Referenced by ds_print_bbline(), and rz_core_print_disasm().
|
static |
Definition at line 374 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::core, RzDisasmState::fcn, rz_analysis_function_contains(), rz_analysis_get_fcn_in(), and type.
Referenced by ds_build_op_str(), ds_print_bbline(), ds_print_calls_hints(), ds_print_fcn_name(), ds_print_labels(), ds_print_offset(), ds_setup_pre(), ds_show_xrefs(), and rz_core_print_disasm().
Definition at line 2294 of file disasm.c.
References a, b, rz_flag_item_t::name, and rz_flag_item_t::realname.
Referenced by ds_show_flags().
|
static |
Definition at line 438 of file disasm.c.
References rz_asm_t::bits, rz_core_t::config, f, rz_core_t::rasm, rz_config_get(), and snprintf.
Referenced by ds_show_functions().
|
static |
Definition at line 3651 of file disasm.c.
References addr, rz_asm_t::bits, RzDisasmState::core, rz_core_t::io, rz_core_t::rasm, rz_io_read_at(), rz_read_ble32(), rz_read_ble64(), and ut64().
Referenced by ds_print_core_vmode().
|
static |
Definition at line 977 of file disasm.c.
References addr, delta, and rz_analysis_function_get_var_stackptr_at().
Referenced by ds_build_op_str().
|
static |
Definition at line 3663 of file disasm.c.
References addr, rz_asm_t::big_endian, rz_asm_t::bits, RzDisasmState::core, rz_core_t::io, rz_core_t::rasm, rz_io_read_at(), rz_read_ble32(), rz_read_ble64(), and ut64().
Referenced by ds_print_core_vmode().
|
static |
Definition at line 981 of file disasm.c.
References addr, delta, and rz_analysis_function_get_var_reg_at().
Referenced by ds_build_op_str().
|
static |
Definition at line 381 of file disasm.c.
References ARROW_LEFT, ARROW_RIGHT, rz_core_t::cons, RzDisasmState::core, CORNER_BL, CORNER_TL, CORNER_TR, setup::line, LINE_HORIZ, LINE_UP, LINE_VERT, SELF_LOOP, and rz_cons_t::vline.
Referenced by ds_print_ref_lines().
|
static |
Definition at line 1657 of file disasm.c.
References rz_analysis_bb_t::addr, rz_core_t::analysis, RzDisasmState::at, RzDisasmState::hasMidbb, i, RzDisasmState::oplen, rz_analysis_fcn_bbget_in(), rz_analysis_get_fcn_in(), and rz_return_val_if_fail.
Referenced by ds_print_show_cursor(), rz_core_asm_bb_middle(), rz_core_bb_starts_in_middle(), rz_core_disasm_pdi_with_buf(), rz_core_print_disasm(), and rz_core_print_disasm_instructions_with_buf().
|
static |
Definition at line 1616 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::at, rz_core_t::config, rz_print_t::cur, rz_core_t::flags, from, RzDisasmState::hasMidflag, i, RzDisasmState::midcursor, RzDisasmState::midflags, rz_flag_item_t::name, rz_space_t::name, rz_core_t::offset, RzDisasmState::oplen, rz_core_t::print, rz_flag_item_t::realname, rz_analysis_find_most_relevant_block_in(), rz_config_get_i(), rz_flag_get_i(), RZ_FLAGS_FS_RELOCS, rz_flag_item_t::space, to, and ut64().
Referenced by ds_print_show_cursor(), rz_core_asm_bb_middle(), rz_core_disasm_pdi_with_buf(), rz_core_flag_in_middle(), rz_core_print_disasm(), and rz_core_print_disasm_instructions_with_buf().
|
inlinestatic |
Definition at line 4003 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::analysis_op, RzDisasmState::core, rz_analysis_op_t::ptr, rz_meta_get_string(), RZ_META_TYPE_STRING, rz_name_filter(), RzDisasmState::show_noisy_comments, strdup(), and ut64().
Referenced by ds_print_ptr().
|
static |
Definition at line 5298 of file disasm.c.
References RzDisasmState::asm_highlight, UT64_MAX, and RzDisasmState::vat.
Referenced by ds_build_op_str(), ds_end_line_highlight(), ds_highlight_word(), and ds_start_line_highlight().
|
static |
Definition at line 4775 of file disasm.c.
References rz_core_t::analysis, rz_core_t::config, RzDisasmState::core, rz_analysis_t::reg, rz_config_get(), rz_config_get_b(), rz_config_get_i(), rz_reg_setv(), and ut64().
Referenced by ds_print_esil_analysis().
Definition at line 4412 of file disasm.c.
Referenced by ds_print_esil_analysis().
Definition at line 4416 of file disasm.c.
Referenced by ds_print_esil_analysis().
Definition at line 4420 of file disasm.c.
References addr, emustack_max, and emustack_min.
Referenced by ds_print_esil_analysis().
|
static |
Definition at line 4442 of file disasm.c.
References ds_comment_esil(), free(), isdigit, r, RzDisasmState::show_emu_ssa, ssa_get(), and rz_analysis_esil_t::user.
Referenced by ds_print_esil_analysis().
|
static |
Definition at line 4454 of file disasm.c.
References addr, rz_analysis_esil_t::analysis, RzDisasmState::analysis_op, rz_core_t::bin, rz_asm_t::bits, blocksize, rz_core_t::blocksize, Color_INVERT, Color_INVERT_RESET, rz_core_t::config, RzDisasmState::core, ds_comment_esil(), ds_esc_str(), ds_newline(), RzDisasmState::emuptr, RzDisasmState::esil_likely, rz_flag_bind_t::f, rz_analysis_t::flb, free(), rz_io_bind_t::io, rz_analysis_t::iob, len, regress::m, memset(), msg, rz_flag_item_t::name, NULL, RzDisasmState::opstr, PFMT64x, prefix, RzDisasmState::printed_flag_addr, RzDisasmState::printed_str_addr, r, rz_core_t::rasm, RZ_ANALYSIS_OP_TYPE_CJMP, RZ_ANALYSIS_OP_TYPE_IJMP, RZ_ANALYSIS_OP_TYPE_IRJMP, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_LEA, RZ_ANALYSIS_OP_TYPE_MJMP, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_RJMP, RZ_ANALYSIS_OP_TYPE_TRAP, RZ_ANALYSIS_OP_TYPE_UCJMP, RZ_ANALYSIS_OP_TYPE_UJMP, rz_bin_strpurge(), rz_config_get(), RZ_DISASM_MAX_STR, rz_flag_get_i(), RZ_FREE, rz_io_is_valid_offset(), rz_io_read_at(), rz_str_append_owned(), rz_str_appendf(), rz_str_is_printable_incl_newlines(), rz_str_newf(), rz_str_startswith(), RzDisasmState::show_color, RzDisasmState::show_comment_right, RzDisasmState::show_comments, RzDisasmState::show_emu_ssa, RzDisasmState::show_emu_str, RzDisasmState::show_emu_strflag, RzDisasmState::show_emu_strinv, RzDisasmState::show_emu_strlea, RzDisasmState::show_emu_stroff, RzDisasmState::show_slow, ssa_get(), ssa_set(), cmd_descs_generate::str, type, rz_analysis_op_t::type, rz_analysis_esil_t::user, UT32_MAX, ut64(), UT64_MAX, and val.
Referenced by ds_print_esil_analysis().
|
static |
Definition at line 4722 of file disasm.c.
References addr, rz_core_t::analysis, free(), PFMT64x, rz_cons_chop(), rz_cons_printf(), rz_core_cmd_strf(), rz_str_trim(), rz_type_as_string(), type, rz_analysis_t::typedb, UT32_MAX, and UT64_MAX.
Referenced by ds_print_esil_analysis().
|
static |
Definition at line 2771 of file disasm.c.
References color, Color_RESET, free(), malloc(), memset(), out, rz_cons_strcat(), rz_str_ncpy(), RzDisasmState::show_color, and snprintf.
Referenced by ds_print_lines_left().
|
static |
Definition at line 1799 of file disasm.c.
References COLOR_RESET, rz_core_t::cons, rz_cons_t::context, RzDisasmState::core, ds_begin_line(), ds_newline(), ds_print_pre(), rz_analysis_var_t::isarg, rz_analysis_var_t::kind, list(), rz_cons_printable_palette_t::num, rz_cons_context_t::pal, rz_cons_printf(), and RzDisasmState::show_varsum.
Referenced by ds_show_functions().
|
static |
Definition at line 6568 of file disasm.c.
References realloc(), rz_io_read_at_mapped(), and autogen_x86imm::tmp.
Referenced by rz_core_disasm_pde().
|
static |
Definition at line 2987 of file disasm.c.
References rz_core_t::analysis, RzDisasmState::at, RzDisasmState::core, rz_interval_node_t::data, metas, mi, rz_meta_get_all_in(), RZ_META_TYPE_ANY, RZ_META_TYPE_DATA, RZ_META_TYPE_FORMAT, RZ_META_TYPE_HIDE, RZ_META_TYPE_MAGIC, RZ_META_TYPE_STRING, rz_pvector_foreach, and rz_pvector_free().
Referenced by ds_print_op_size().
RZ_API void rz_analysis_disasm_text_free | ( | RzAnalysisDisasmText * | t | ) |
RZ_IPI void rz_core_asm_bb_middle | ( | RZ_NONNULL RzCore * | core, |
ut64 | at, | ||
RZ_INOUT RZ_NONNULL int * | oplen, | ||
RZ_NONNULL int * | ret | ||
) |
Update oplen
by "asm.bb.middle" and "asm.flags.middle".
core | RzCore reference | |
at | Address | |
[in,out] | oplen | Opcode length |
ret | Value by call rz_asm_disassemble |
Definition at line 1684 of file disasm.c.
References RzDisasmState::at, handleMidBB(), handleMidFlags(), RzDisasmState::midflags, rz_config_get_b(), and rz_return_if_fail.
Referenced by rz_core_analysis_bytes().
Definition at line 1714 of file disasm.c.
References RzDisasmState::at, and handleMidBB().
Referenced by rz_core_visual_disasm_down().
RZ_API RZ_OWN char* rz_core_disasm_instruction | ( | RzCore * | core, |
ut64 | addr, | ||
ut64 | reladdr, | ||
RZ_NULLABLE RzAnalysisFunction * | fcn, | ||
bool | color | ||
) |
Returns a disassembly of one instruction.
It returns disassembly on one instruction with additional output changes: function local variables subsitution, PC-relative addressing subsitution, analysis hints affecting the disassembly output, optional colors.
core | RzCore instance |
addr | An address of the instruction |
reladdr | An address to substitute PC-relative expressions in disasm (asm.sub.rel config) |
fcn | A function where the instruction located for local variables substitution (optional) |
color | To toggle color escape sequences in the output |
Definition at line 6770 of file disasm.c.
References addr, rz_core_t::analysis, rz_asm_op_t::asm_toks, rz_print_t::big_endian, rz_asm_op_t::buf_asm, color, rz_core_t::config, rz_core_t::flags, rz_print_t::flags, free(), rz_parse_t::get_ptr_at, rz_parse_t::get_reg_at, rz_core_t::io, rz_parse_t::localvar_only, malloc(), NULL, op, rz_core_t::parser, rz_core_t::print, rz_parse_t::pseudo, rz_core_t::rasm, rz_analysis_t::reg, rz_analysis_function_get_var_reg_at(), rz_analysis_function_get_var_stackptr_at(), rz_analysis_hint_free(), rz_analysis_hint_get(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_BASIC, rz_asm_colorize_asm_str(), rz_asm_disassemble(), rz_asm_get_parse_param(), rz_asm_op_set_asm(), rz_asm_set_pc(), rz_config_get_i(), rz_io_read_at(), rz_parse_filter(), rz_parse_subvar(), RZ_PRINT_FLAGS_COLOR, rz_return_val_if_fail, rz_str_new(), rz_strbuf_drain(), rz_strbuf_get(), rz_strbuf_length(), rz_strbuf_new(), cmd_descs_generate::str, rz_parse_t::subrel, and rz_parse_t::subrel_addr.
Referenced by rz_analysis_xrefs_to_list_handler().
RZ_API int rz_core_disasm_pde | ( | RzCore * | core, |
int | nb_opcodes, | ||
RzCmdStateOutput * | state | ||
) |
Definition at line 6581 of file disasm.c.
References rz_vector_t::a, rz_core_t::analysis, c, rz_io_t::cache, rz_io_t::cache_skyline, rz_io_t::cached, rz_core_t::config, e, rz_analysis_t::esil, rz_vector_t::free, free(), i, invalid_instr, rz_core_t::io, len, malloc(), NULL, op, pc, read_ahead(), reg, rz_analysis_t::reg, rz_analysis_archinfo(), RZ_ANALYSIS_ARCHINFO_MAX_OP_SIZE, RZ_ANALYSIS_ARCHINFO_MIN_OP_SIZE, rz_analysis_esil_parse(), rz_analysis_esil_set_pc(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_HINT_MASK, RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_ILL, RZ_ANALYSIS_OP_TYPE_JMP, RZ_ANALYSIS_OP_TYPE_MASK, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_UCALL, RZ_ANALYSIS_OP_TYPE_UJMP, rz_analysis_optype_to_string(), rz_cmd_state_output_array_end(), rz_cmd_state_output_array_start(), rz_config_get(), rz_config_get_b(), rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_set_i(), rz_core_analysis_esil_init_mem(), rz_core_analysis_esil_reinit(), rz_core_disasm_pdi_with_buf(), rz_core_print_disasm(), rz_core_print_disasm_instructions_with_buf(), rz_core_print_disasm_json(), rz_core_seek_arch_bits(), rz_io_cache_fini(), rz_io_cache_init(), RZ_MIN, RZ_OUTPUT_MODE_JSON, RZ_OUTPUT_MODE_QUIET, RZ_OUTPUT_MODE_QUIETEST, rz_pvector_foreach, rz_pvector_len(), rz_pvector_pop_front(), rz_reg_arena_pop(), rz_reg_arena_push(), rz_reg_get(), rz_reg_get_value(), rz_reg_set_value(), RZ_REG_TYPE_ANY, rz_skyline_add(), rz_skyline_clear(), RZ_STR_ISNOTEMPTY, rz_strbuf_get(), rz_vector_clone(), cmd_descs_generate::strip(), UT32_MAX, ut64(), UT64_MAX, and rz_pvector_t::v.
Referenced by rz_cmd_disassembly_n_instructions_with_flow_handler().
Definition at line 6558 of file disasm.c.
References NULL, rz_core_t::offset, rz_core_disasm_pdi_with_buf(), rz_core_handle_backwards_disasm(), rz_core_seek(), and ut64().
Referenced by core_disassembly(), rz_cmd_comments_in_n_instructions_handler(), and rz_cmd_print().
RZ_API int rz_core_disasm_pdi_with_buf | ( | RzCore * | core, |
ut64 | address, | ||
ut8 * | buf, | ||
ut32 | nb_opcodes, | ||
ut32 | nb_bytes, | ||
int | fmt | ||
) |
Definition at line 6324 of file disasm.c.
References rz_io_t::addrbytes, rz_core_t::analysis, analysis_op(), rz_asm_op_t::asm_toks, rz_print_t::big_endian, rz_core_t::block, Color_RESET, rz_core_t::config, RzDisasmState::core, delta, ds_print_data_type(), err, rz_core_t::flags, rz_print_t::flags, flags, free(), handleMidBB(), handleMidFlags(), i, setup::idx, rz_core_t::io, rz_flag_item_t::name, NULL, rz_core_t::offset, RzDisasmState::oplen, opstr(), rz_core_t::parser, PFMT64x, rz_core_t::print, rz_core_t::rasm, rz_analysis_t::reg, rz_analysis_hint_free(), rz_analysis_hint_get(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ALL, RZ_ANALYSIS_OP_MASK_BASIC, rz_analysis_op_to_string(), rz_asm_colorize_asm_str(), rz_asm_disassemble(), rz_asm_get_parse_param(), rz_asm_op_get_asm(), rz_asm_op_get_hex(), rz_asm_set_pc(), rz_config_get_b(), rz_config_get_i(), rz_config_set_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_newline(), rz_cons_printf(), rz_cons_println(), rz_core_print_hexdump(), rz_core_seek(), rz_disasm_check_end(), rz_flag_get_i(), rz_meta_get_at(), rz_meta_get_string(), RZ_META_TYPE_ANY, RZ_META_TYPE_COMMENT, RZ_META_TYPE_DATA, RZ_META_TYPE_FORMAT, RZ_META_TYPE_MAGIC, RZ_META_TYPE_STRING, RZ_MIN, rz_parse_filter(), rz_parse_immtrim(), RZ_PRINT_FLAGS_ADDRDEC, RZ_PRINT_FLAGS_HEADER, RZ_PRINT_FLAGS_SEGOFF, rz_print_offset_sg(), rz_str_case(), rz_strbuf_free(), rz_strbuf_get(), rz_strbuf_new(), RZ_STRBUF_SAFEGET, rz_asm_op_t::size, rz_analysis_meta_item_t::type, rz_analysis_op_t::type, and ut64().
Referenced by rz_core_disasm_pde(), and rz_core_disasm_pdi().
Definition at line 1702 of file disasm.c.
References RzDisasmState::at, handleMidFlags(), RzDisasmState::midflags, and rz_return_val_if_fail.
Referenced by prevop_addr(), and rz_core_visual_disasm_down().
Definition at line 457 of file disasm.c.
References addr, rz_core_t::bin, rz_core_t::dbg, rz_core_t::io, map(), rz_debug_t::maps, NULL, rz_bin_cur_object(), rz_bin_get_section_at(), rz_str_lchr(), rz_str_ncpy(), s, snprintf, ut64(), UT64_MAX, and rz_io_t::va.
Referenced by _ds_comment_align_(), annotated_hexdump(), cmd_prc(), and get_section_name().
RZ_IPI bool rz_core_handle_backwards_disasm | ( | RZ_NONNULL RzCore * | core, |
RZ_NONNULL RZ_INOUT int * | pn_opcodes, | ||
RZ_NONNULL RZ_INOUT int * | pn_bytes | ||
) |
Converting negative numbers n_opcodes and n_opcodes to positive numbers n_opcodes and n_opcodes and seek the appropriate offset.
core | RzCore reference |
pn_opcodes | Pointer to n_opcodes |
pn_bytes | Pointer to n_bytes |
Definition at line 5984 of file disasm.c.
References if(), int, RZ_ABS, rz_core_block_read(), rz_core_block_size(), rz_core_prevop_addr(), rz_core_prevop_addr_force(), rz_core_seek(), RZ_LOG_ERROR, RZ_MIN, rz_return_val_if_fail, ST16_MAX, ST16_MIN, and ut64().
Referenced by core_disassembly(), rz_core_disasm_pdi(), rz_core_print_disasm_instructions(), and rz_core_print_disasm_json().
RZ_API RzAnalysisHint* rz_core_hint_begin | ( | RzCore * | core, |
RzAnalysisHint * | hint, | ||
ut64 | at | ||
) |
Definition at line 1192 of file disasm.c.
References rz_core_t::analysis, rz_analysis_function_t::bits, rz_analysis_hint_t::bits, rz_core_t::config, rz_analysis_hint_t::high, rz_analysis_hint_t::new_bits, NULL, rz_analysis_get_fcn_in(), rz_analysis_hint_free(), rz_analysis_hint_get(), rz_config_get(), rz_config_set(), RZ_NEW0, strdup(), and rz_analysis_hint_t::syntax.
Referenced by rz_core_print_disasm(), and rz_core_print_disasm_instructions_with_buf().
Definition at line 364 of file disasm.c.
References addr, rz_core_t::io, map(), rz_print_t::pava, rz_core_t::print, and rz_io_map_get_paddr().
Referenced by ds_print_esil_analysis(), rz_core_print_disasm(), rz_core_print_disasm_all(), rz_core_print_disasm_instructions_with_buf(), and rz_core_print_hexdump_or_hexdiff_str().
RZ_API int rz_core_print_disasm | ( | RZ_NONNULL RzCore * | core, |
ut64 | addr, | ||
RZ_NONNULL ut8 * | buf, | ||
int | len, | ||
int | nlines, | ||
RZ_NULLABLE RzCmdStateOutput * | state, | ||
RZ_NULLABLE RzCoreDisasmOptions * | options | ||
) |
Disassemble len
bytes and nlines
opcodes restricted by len
and nlines
at the same time.
core | RzCore reference |
addr | Address |
buf | Buffer |
len | Bytes number |
nlines | Opcode number |
options | Disassemble Options |
Definition at line 5336 of file disasm.c.
References addr, RzDisasmState::addr, rz_analysis_op_t::addr, RzDisasmState::analysis_op, RzDisasmState::asm_highlight, RzDisasmState::asm_hint_pos, RzDisasmState::asmop, RzDisasmState::at, RzDisasmState::buf, RzDisasmState::buf_line_begin, RzDisasmState::cbytes, RzDisasmState::core, rz_asm_t::dataalign, RzDisasmState::dest, ds_adistrick_comments(), DS_ANALYSIS_OP_MASK, ds_atabs_option(), ds_begin_line(), ds_build_op_str(), ds_cdiv_optimization(), ds_comment(), ds_control_flow_comments(), ds_disassemble(), ds_end_line_highlight(), ds_free(), ds_init(), ds_must_strip(), ds_newline(), ds_print_asmop_payload(), ds_print_bbline(), ds_print_calls_hints(), ds_print_cmt_esil(), ds_print_cmt_il(), ds_print_color_reset(), ds_print_comments_right(), ds_print_core_vmode(), ds_print_cycles(), ds_print_demangled(), ds_print_dwarf(), ds_print_esil_analysis(), ds_print_esil_analysis_fini(), ds_print_esil_analysis_init(), ds_print_family(), ds_print_fcn_name(), ds_print_labels(), ds_print_lines_left(), ds_print_lines_right(), ds_print_meta_infos(), ds_print_middle(), ds_print_offset(), ds_print_op_size(), ds_print_opstr(), ds_print_optype(), ds_print_pre(), ds_print_ptr(), ds_print_ref_lines(), ds_print_show_bytes(), ds_print_show_cursor(), ds_print_stackptr(), ds_print_sysregs(), ds_print_trace(), ds_reflines_fini(), ds_reflines_init(), ds_setup_print_pre(), ds_show_comments_describe(), ds_show_comments_right(), ds_show_flags(), ds_show_functions(), ds_show_refs(), ds_show_xrefs(), ds_start_line_highlight(), ds_update_ref_lines(), rz_analysis_op_t::esil, f, RzDisasmState::fcn, fcnIn(), free(), handleMidBB(), handleMidFlags(), RzDisasmState::has_description, RzDisasmState::hint, i, setup::idx, RzDisasmState::index, rz_analysis_op_t::jump, RzDisasmState::l, len, RzDisasmState::len, RzDisasmState::line, RzDisasmState::line_col, RzDisasmState::lines, malloc(), memset(), RzDisasmState::midbb, RzDisasmState::midflags, NULL, RzDisasmState::oplen, RzDisasmState::opstr, options, p, rz_asm_op_t::payload, pc, RzDisasmState::pdf, PFMT64x, RzDisasmState::pj, pj_a(), pj_end(), pj_free(), pj_new(), pj_string(), RzDisasmState::prev_line_col, RzDisasmState::print, RzDisasmState::printed_flag_addr, RzDisasmState::printed_str_addr, RzDisasmState::pseudo, rz_analysis_hint_t::ptr, rz_analysis_op_t::ptr, rz_core_t::rasm, realloc(), RzDisasmState::refline, RzDisasmState::refline2, reg, RzDisasmState::retry, rz_analysis_fcn_bbget_in(), RZ_ANALYSIS_FCN_TYPE_NULL, rz_analysis_get_function_at(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_TYPE_CALL, RZ_ANALYSIS_OP_TYPE_ILL, RZ_ANALYSIS_OP_TYPE_RET, RZ_ANALYSIS_OP_TYPE_UCALL, rz_analysis_type_link_at(), rz_asm_disassemble(), rz_asm_set_pc(), rz_asm_set_syntax(), RZ_ASM_SYNTAX_INTEL, rz_config_get_b(), rz_config_hold_free(), rz_config_hold_i(), rz_config_hold_new(), rz_config_hold_restore(), rz_config_hold_s(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_pop(), rz_cons_printf(), rz_cons_push(), RZ_CORE_ASMQJMPS_NUM, rz_core_cmdf(), rz_core_hint_begin(), rz_core_pava(), rz_core_reg_default(), rz_core_seek_arch_bits(), RZ_FREE, rz_io_read_at(), RZ_META_TYPE_FORMAT, RZ_OUTPUT_MODE_JSON, RZ_PRINT_FLAGS_UNALLOC, rz_print_set_rowoff(), rz_reg_arena_pop(), rz_reg_arena_push(), rz_reg_get_name(), rz_reg_getv(), RZ_REG_NAME_PC, rz_return_val_if_fail, rz_str_len_utf8(), rz_strbuf_fini(), rz_strbuf_init(), rz_type_as_format_pair(), rz_type_db_get_bitsize(), rz_type_identifier(), rz_vline_a, rz_vline_u, rz_vline_uc, RzDisasmState::show_bytes, RzDisasmState::show_bytes_right, RzDisasmState::show_calls, RzDisasmState::show_comment_right, RzDisasmState::show_comments, RzDisasmState::show_emu, RzDisasmState::show_lines_ret, RzDisasmState::show_usercomments, rz_analysis_hint_t::size, rz_analysis_op_t::size, RzDisasmState::tries, rz_analysis_op_t::type, UT32_MAX, ut64(), UT64_MAX, RzDisasmState::vat, and RzDisasmState::vec.
Referenced by core_analysis_graph_construct_nodes(), core_disassembly(), rz_cmd_disassembly_basic_block_as_text_json_handler(), rz_cmd_disassembly_basic_block_handler(), rz_cmd_disassembly_function_handler(), rz_cmd_disassembly_n_instrs_as_text_json_handler(), and rz_core_disasm_pde().
Definition at line 6205 of file disasm.c.
References addr, rz_core_t::analysis, rz_asm_op_t::asm_toks, RzDisasmState::at, rz_print_t::big_endian, rz_core_t::block, rz_core_t::blocksize, rz_asm_op_t::buf_asm, rz_core_t::config, count, ds_free(), ds_init(), dst, test_evm::end, rz_core_t::flags, free(), RzDisasmState::hint, i, rz_core_t::io, len, malloc(), memcpy(), NULL, rz_core_t::offset, rz_core_t::parser, PFMT64x, pj_a(), pj_end(), pj_free(), pj_kn(), pj_ks(), pj_new(), pj_o(), pj_string(), 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_op_get_hex(), rz_asm_set_pc(), rz_config_get_i(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_cons_println(), rz_cons_strcat(), rz_core_pava(), rz_io_read_at(), rz_parse_filter(), rz_str_newf(), rz_strbuf_free(), rz_strbuf_get(), sp, src, cmd_descs_generate::str, rz_analysis_op_t::type, and RzDisasmState::vat.
Referenced by rz_cmd_print().
Definition at line 6030 of file disasm.c.
References NULL, rz_core_t::offset, rz_core_handle_backwards_disasm(), rz_core_print_disasm_instructions_with_buf(), rz_core_seek(), and ut64().
Referenced by __disasm(), list_vars(), rz_analysis_function_vars_dis_refs_handler(), rz_analysis_function_xrefs_handler(), rz_cmd_print(), and rz_core_debug_print_status().
RZ_API int rz_core_print_disasm_instructions_with_buf | ( | RzCore * | core, |
ut64 | address, | ||
ut8 * | buf, | ||
int | nb_bytes, | ||
int | nb_opcodes | ||
) |
Definition at line 5814 of file disasm.c.
References rz_io_t::addrbytes, rz_core_t::analysis, RzDisasmState::analysis_op, RzDisasmState::asm_instr, RzDisasmState::asmop, RzDisasmState::at, rz_core_t::block, RzDisasmState::colorop, RzDisasmState::decode, ds_build_op_str(), ds_free(), ds_init(), ds_must_strip(), rz_analysis_op_t::esil, rz_parse_t::flagspace, RzDisasmState::flagspace_ports, free(), handleMidBB(), handleMidFlags(), RzDisasmState::has_description, RzDisasmState::hint, i, RzDisasmState::immtrim, rz_core_t::io, RzDisasmState::l, len, RzDisasmState::len, RzDisasmState::midbb, RzDisasmState::midflags, rz_parse_t::notin_flagspace, NULL, rz_core_t::offset, rz_analysis_hint_t::opcode, RzDisasmState::oplen, RzDisasmState::opstr, rz_core_t::parser, rz_core_t::rasm, rz_analysis_t::reg, rz_analysis_hint_free(), rz_analysis_op(), rz_analysis_op_fini(), RZ_ANALYSIS_OP_MASK_ALL, RZ_ANALYSIS_OP_MASK_ESIL, RZ_ANALYSIS_OP_MASK_HINT, rz_analysis_op_to_string(), RZ_ANALYSIS_OP_TYPE_IO, rz_asm_disassemble(), rz_asm_op_get_asm(), rz_asm_set_pc(), rz_cons_break_pop(), rz_cons_break_push(), rz_cons_is_breaked(), rz_cons_printf(), rz_cons_println(), rz_core_hint_begin(), rz_core_pava(), rz_core_seek(), rz_core_seek_arch_bits(), rz_disasm_check_end(), RZ_FREE, RZ_MAX, rz_parse_immtrim(), rz_reg_arena_pop(), rz_reg_arena_push(), RZ_STRBUF_SAFEGET, RzDisasmState::show_color, rz_analysis_hint_t::size, rz_analysis_op_t::size, rz_asm_op_t::size, RzDisasmState::str, strdup(), RzDisasmState::subnames, rz_analysis_op_t::type, RzDisasmState::use_esil, ut64(), and RzDisasmState::vat.
Referenced by rz_core_disasm_pde(), and rz_core_print_disasm_instructions().
RZ_API int rz_core_print_disasm_json | ( | RzCore * | core, |
ut64 | addr, | ||
ut8 * | buf, | ||
int | nb_bytes, | ||
int | nb_opcodes, | ||
PJ * | pj | ||
) |
Definition at line 6040 of file disasm.c.
References addr, rz_analysis_case_obj_t::addr, rz_core_t::analysis, rz_core_t::blocksize, rz_core_t::config, rz_analysis_hint_t::esil, f, rz_core_t::flags, flags, free(), rz_analysis_ref_t::from, rz_analysis_case_obj_t::jump, rz_flag_item_t::name, NULL, rz_core_t::offset, p, pj_a(), pj_end(), pj_k(), pj_kb(), pj_ki(), pj_kN(), pj_kn(), pj_ks(), pj_o(), pj_s(), RZ_ANALYSIS_FCN_TYPE_FCN, RZ_ANALYSIS_FCN_TYPE_LOC, RZ_ANALYSIS_FCN_TYPE_SYM, rz_analysis_function_max_addr(), rz_analysis_get_fcn_in(), rz_analysis_op_family_to_string(), RZ_ANALYSIS_OP_TYPE_ILL, rz_analysis_optype_to_string(), rz_analysis_xrefs_get_from(), rz_analysis_xrefs_get_to(), rz_analysis_xrefs_type_tostring(), rz_config_get_i(), rz_core_analysis_bytes(), rz_core_block_size(), rz_core_getreloc(), rz_core_handle_backwards_disasm(), rz_core_seek(), rz_flag_get_list(), rz_list_free(), rz_list_length(), rz_meta_get_string(), RZ_META_TYPE_COMMENT, rz_pvector_foreach, rz_pvector_free(), RZ_STRBUF_SAFEGET, sdb_encode(), st64, rz_analysis_ref_t::to, rz_analysis_ref_t::type, ut64(), UT64_MAX, and rz_analysis_case_obj_t::value.
Referenced by core_analysis_graph_construct_nodes(), core_disassembly(), core_walk_function_blocks(), func_walk_blocks(), graph_construct_nodes(), rz_cmd_disassembly_basic_block_handler(), rz_core_disasm_pde(), and rz_core_print_function_disasm_json().
RZ_API bool rz_core_print_function_disasm_json | ( | RzCore * | core, |
RzAnalysisFunction * | fcn, | ||
PJ * | pj | ||
) |
Definition at line 6726 of file disasm.c.
References rz_analysis_function_t::addr, b, bb_cmpaddr(), rz_analysis_function_t::bbs, rz_core_t::config, eprintf, free(), rz_core_t::io, malloc(), rz_analysis_function_t::name, NULL, PFMT64u, pj_a(), pj_end(), pj_k(), pj_kn(), pj_ks(), pj_o(), rz_analysis_function_realsize(), rz_config_get(), rz_config_set(), rz_config_set_i(), rz_core_print_disasm_json(), rz_io_read_at(), and rz_list_sort().
Referenced by rz_cmd_disassembly_function_handler().
Is i_opcodes
< nb_opcodes
and i_bytes
< nb_bytes
?
Definition at line 5804 of file disasm.c.
Referenced by disassembly_as_table(), rz_core_analysis_bytes(), rz_core_disasm_pdi_with_buf(), and rz_core_print_disasm_instructions_with_buf().
|
static |
Definition at line 5185 of file disasm.c.
References addr, RzDisasmState::asm_demangle, RzDisasmState::core, rz_flag_item_t::demangled, f, rz_core_t::flags, rz_flag_item_t::name, NULL, rz_flag_item_t::realname, rz_flag_get_by_spaces(), RZ_FLAGS_FS_CLASSES, RZ_FLAGS_FS_FUNCTIONS, RZ_FLAGS_FS_SYMBOLS, and rz_str_startswith().
Referenced by ds_sub_jumps().
|
static |
Definition at line 4424 of file disasm.c.
References isdigit, n, NULL, reg, rz_str_newf(), sdb_new0(), sdb_num_get(), RzDisasmState::ssa, strdup(), and rz_analysis_esil_t::user.
Referenced by myregread(), and myregwrite().
|
static |
Definition at line 4436 of file disasm.c.
References reg, sdb_num_inc(), RzDisasmState::ssa, and rz_analysis_esil_t::user.
Referenced by myregwrite().
|
static |
Definition at line 29 of file disasm.c.
Referenced by ds_init(), and mymemwrite2().
|
static |
Definition at line 28 of file disasm.c.
Referenced by ds_init(), and mymemwrite2().
Definition at line 885 of file disasm.c.
Referenced by ds_reflines_init().
|
static |
Definition at line 31 of file disasm.c.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 45 of file disasm.c.
Referenced by rz_core_print_disasm().
|
static |
Definition at line 61 of file disasm.c.
Referenced by rz_core_print_disasm().