Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <rz_types.h>
#include <rz_lib.h>
#include <rz_util.h>
#include <rz_asm.h>
#include "disas-asm.h"
#include <mybfd.h>
Go to the source code of this file.
Functions | |
int | decodeInstr (bfd_vma address, disassemble_info *info) |
int | ARCTangent_decodeInstr (bfd_vma address, disassemble_info *info) |
int | ARCompact_decodeInstr (bfd_vma address, disassemble_info *info) |
static int | arc_buffer_read_memory (bfd_vma memaddr, bfd_byte *myaddr, unsigned int length, struct disassemble_info *info) |
static int | symbol_at_address (bfd_vma addr, struct disassemble_info *info) |
static void | memory_error_func (int status, bfd_vma memaddr, struct disassemble_info *info) |
static int | disassemble (RzAsm *a, RzAsmOp *op, const ut8 *buf, int len) |
Variables | |
static ut32 | Offset = 0 |
static RzStrBuf * | buf_global = NULL |
static int | buf_len = 0 |
static ut8 | bytes [32] = { 0 } |
RzAsmPlugin | rz_asm_plugin_arc |
RZ_API RzLibStruct | rizin_plugin |
|
static |
Definition at line 25 of file asm_arc.c.
References buf_len, bytes, delta, length, memcpy(), Offset, and RZ_MIN.
Referenced by disassemble().
int ARCompact_decodeInstr | ( | bfd_vma | address, |
disassemble_info * | info | ||
) |
Definition at line 3722 of file arcompact-dis.c.
Referenced by disassemble().
int ARCTangent_decodeInstr | ( | bfd_vma | address, |
disassemble_info * | info | ||
) |
Definition at line 1025 of file arc-dis.c.
References __TRANSLATION_REQUIRED, _auxRegName(), _condCodeName(), _coreRegName(), _instName(), addr, BFD_ENDIAN_LITTLE, bfd_getb32(), bfd_getl32(), dsmOneArcInst(), info(), memset(), s, and status.
Referenced by disassemble().
int decodeInstr | ( | bfd_vma | address, |
disassemble_info * | info | ||
) |
Definition at line 48 of file asm_arc.c.
References a, arc_buffer_read_memory(), ARCompact_decodeInstr(), ARCTangent_decodeInstr(), buf_global, buf_len, disassemble_info::buffer, disassemble_info::buffer_length, bytes, disassemble_info::endian, disassemble_info::fprintf_func, len, disassemble_info::mach, memcpy(), memory_error_func(), disassemble_info::memory_error_func, memset(), Offset, disassemble_info::print_address_func, disassemble_info::read_memory_func, rz_strbuf_set(), disassemble_info::stream, symbol_at_address(), and disassemble_info::symbol_at_address_func.
|
static |
|
static |
Definition at line 21 of file asm_arc.c.
Referenced by disassemble().
|
static |
Definition at line 22 of file asm_arc.c.
Referenced by _server_handle_g(), _server_handle_qC(), _server_handle_qfThreadInfo(), arc_buffer_read_memory(), disassemble(), gbAsm(), gdbr_open_file(), iob_read(), iob_write(), kd_data_checksum(), kd_send_data_packet(), slurp(), wasm_dis(), and winkd_send_state_manipulate_req().
|
static |
Definition at line 23 of file asm_arc.c.
Referenced by __reg_read(), _cb_hit(), _cs_disasm(), annotated_hexdump(), arc_buffer_read_memory(), arcAnalyzeInstr(), bfd_get_bits(), cabd_checksum(), cabd_extract(), cabd_sys_read(), cabd_sys_write(), cabx_alloc(), cabx_copy(), cabx_read(), cabx_write(), carve_kexts(), check_buffer(), chmd_extract(), chmd_sys_write(), core_cmd_pipe(), decode_abs162r16(), decode_abs2r_short(), decode_add(), decode_adds(), decode_andc(), decode_arith(), decode_break(), decode_bsr(), decode_call(), decode_cmp(), decode_cmpeq(), decode_cmpgte(), decode_cmpi(), decode_cmplte(), decode_cmpugte(), decode_cmpulte(), decode_daa(), decode_disp162r16(), decode_div(), decode_divu(), decode_eepmov(), decode_imm162r16(), decode_imm2abs8(), decode_imm2ind16(), decode_imm2r8(), decode_imm2r_short(), decode_ind162r16(), decode_indinc162r16(), decode_jmp(), decode_jmp8(), decode_jmp_abs16(), decode_jmp_abs8(), decode_jmp_ind(), decode_ldc(), decode_loadsp(), decode_mov(), decode_mov_args(), decode_movi(), decode_movin(), decode_movn(), decode_movrel(), decode_movsn(), decode_movsn_args(), decode_mul(), decode_mulu(), decode_neg(), decode_nop(), decode_not(), decode_opcode(), decode_opcode_4bit(), decode_pop(), decode_push_pop(), decode_r162r16(), decode_r2r8(), decode_r82abs16(), decode_r82dispr16(), decode_r82ind16(), decode_r82r16(), decode_r82rdec16(), decode_rzabs8(), decode_rzimm_short(), decode_rzind16(), decode_storesp(), decode_sub(), decode_subs(), deserialize_checkpoints_cb(), disassemble(), disassembly_as_table(), esil_peek_n(), esil_poke_n(), extract_arg(), extract_binobj(), flirt_pat_parse_pattern_mask(), fs__create_junction(), fs__read(), fs__readlink_handle(), fs__write(), FUZ_test(), test-lz4-list::generate_files(), go_is_sign_match(), go_offset(), go_uintptr(), interact_fix_asm(), iterate_rebase_list(), iterator_compare(), load_buffer(), lzxd_set_reference_data(), m_alloc(), m_copy(), m_read(), m_write(), main(), md5_finish_ctx(), mem_alloc(), mem_copy(), mem_read(), mem_write(), msp_alloc(), msp_copy(), msp_free(), msp_read(), msp_write(), noned_decompress(), print_hex_from_base2(), TestM680x::print_ins_detail(), process_kmod_init_term(), rasm_asm(), replace_asm_test(), rz_bin_file_set_bytes(), rz_bin_file_xtr_load_buffer(), rz_bp_add_sw(), rz_buf_new_with_bytes(), rz_buf_new_with_pointers(), rz_bv_set_to_bytes_be(), rz_bv_set_to_bytes_le(), rz_cmd_debug(), rz_cmd_disassemble_ropchain_handler(), rz_cmd_disassembly_function_handler(), rz_core_analysis_resolve_golang_strings(), rz_debug_qnx_reg_write(), rz_file_slurp_hexpairs(), rz_main_rz_gg(), rz_mem_copybits(), RZ_PACKED(), rz_print_hexdump_str(), rz_rebase_info_new_from_mach0(), rz_reg_set_value(), rz_search_pattern(), rz_str_is_utf8(), rz_test_load_asm_test_file(), rz_test_run_asm_test(), rz_type_format_data_internal(), rz_type_format_num(), rz_type_format_num_specifier(), rz_write_extend_hexbytes_handler(), showanalysis(), stack__subtree_is_equivalent(), tar(), test(), ts_parser__can_reuse_first_leaf(), ts_parser__lex(), ts_subtree_get_changed_ranges(), tuklib_mbstr_width(), uv__count_bufs(), uv__pipe_write_data(), uv__poll_wine(), uv__send(), uv__signal_event(), uv__tcp_try_write(), uv__udp_try_send(), uv_get_extension_function(), uv_pipe_writefile_thread_proc(), uv_pipe_zero_readfile_thread_proc(), uv_poll_init_socket(), uv_process_tcp_read_req(), uv_process_tty_read_line_req(), uv_process_udp_recv_req(), uv_tcp_queue_accept(), uv_tcp_queue_read(), uv_tcp_try_cancel_io(), uv_tcp_try_connect(), uv_tcp_write(), uv_tty_line_read_thread(), uv_udp_queue_recv(), uv_wsarecv_workaround(), uv_wsarecvfrom_workaround(), wasm_dis(), and xap_op().
|
static |
Definition at line 20 of file asm_arc.c.
Referenced by arc_buffer_read_memory(), ARM_AM_getAM5Opc(), disassemble(), and getAM3Opc().
RZ_API RzLibStruct rizin_plugin |
RzAsmPlugin rz_asm_plugin_arc |