41 #define bfd_zalloc calloc
42 #define bfd_malloc malloc
43 #define xmalloc malloc
118 #define INSN_HAS_RELOC (1LL << 31)
120 #define DISASSEMBLE_DATA (1LL << 30)
123 #define USER_SPECIFIED_MACHINE_TYPE (1LL << 29)
375 char *opt = strchr(
options,
',');
382 #define FOR_EACH_DISASSEMBLER_OPTION(OPT, OPTIONS) \
383 for ((OPT) = (OPTIONS); \
385 (OPT) = next_disassembler_option(OPT))
417 #define INIT_DISASSEMBLE_INFO(INFO, STREAM, FPRINTF_FUNC) \
418 init_disassemble_info(&(INFO), (STREAM), (fprintf_ftype)(FPRINTF_FUNC))
419 #define INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) \
420 init_disassemble_info(&(INFO), (STREAM), (fprintf_ftype)(FPRINTF_FUNC))
422 #define DECLARE_GENERIC_FPRINTF_FUNC() \
423 static int generic_fprintf_func(void *stream, const char *format, ...) { \
426 if (!buf_global || !format) { \
429 va_start(ap, format); \
430 ret = rz_strbuf_vappendf(buf_global, format, ap); \
435 #define DECLARE_GENERIC_PRINT_ADDRESS_FUNC() \
436 static void generic_print_address_func(bfd_vma address, struct disassemble_info *info) { \
440 rz_strbuf_appendf(buf_global, "0x%08" PFMT64x, (ut64)address); \
RzBinInfo * info(RzBinFile *bf)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
int print_insn_i386_att(bfd_vma, disassemble_info *)
int print_insn_tic54x(bfd_vma, disassemble_info *)
int print_insn_d30v(bfd_vma, disassemble_info *)
int print_insn_metag(bfd_vma, disassemble_info *)
int print_insn_v850(bfd_vma, disassemble_info *)
int print_insn_z80(bfd_vma, disassemble_info *)
int print_insn_frv(bfd_vma, disassemble_info *)
void print_ppc_disassembler_options(FILE *)
int print_insn_ft32(bfd_vma, disassemble_info *)
int print_insn_rl78(bfd_vma, disassemble_info *)
int print_insn_alpha(bfd_vma, disassemble_info *)
int(* fprintf_ftype)(void *, const char *,...) ATTRIBUTE_FPTR_PRINTF_2
int disassembler_options_cmp(const char *, const char *)
int print_insn_m68hc12(bfd_vma, disassemble_info *)
int print_insn_z8002(bfd_vma, disassemble_info *)
int print_insn_little_powerpc(bfd_vma, disassemble_info *)
int generic_symbol_at_address(bfd_vma, struct disassemble_info *)
int print_insn_ia64(bfd_vma, disassemble_info *)
int print_insn_sh(bfd_vma, disassemble_info *)
int print_insn_i386_intel(bfd_vma, disassemble_info *)
int print_insn_big_powerpc(bfd_vma, disassemble_info *)
int print_insn_visium(bfd_vma, disassemble_info *)
int print_insn_m9s12xg(bfd_vma, disassemble_info *)
int print_insn_crx(bfd_vma, disassemble_info *)
int print_insn_h8300h(bfd_vma, disassemble_info *)
int print_insn_m88k(bfd_vma, disassemble_info *)
int print_insn_pj(bfd_vma, disassemble_info *)
int print_insn_i370(bfd_vma, disassemble_info *)
int print_insn_riscv(bfd_vma, disassemble_info *)
int print_insn_mmix(bfd_vma, disassemble_info *)
int print_insn_rs6000(bfd_vma, disassemble_info *)
void print_s390_disassembler_options(FILE *)
int print_insn_rl78_g14(bfd_vma, disassemble_info *)
int print_insn_microblaze(bfd_vma, disassemble_info *)
int print_insn_h8300s(bfd_vma, disassemble_info *)
void print_arm_disassembler_options(FILE *)
int print_insn_tic30(bfd_vma, disassemble_info *)
void print_arc_disassembler_options(FILE *)
int buffer_read_memory(bfd_vma, bfd_byte *, unsigned int, struct disassemble_info *)
void perror_memory(int, bfd_vma, struct disassemble_info *)
int print_insn_tilegx(bfd_vma, disassemble_info *)
int print_insn_little_score(bfd_vma, disassemble_info *)
bfd_boolean arm_symbol_is_valid(asymbol *, struct disassemble_info *)
int print_insn_lanai(bfd_vma, disassemble_info *)
int print_insn_pru(bfd_vma, disassemble_info *)
int print_insn_avr(bfd_vma, disassemble_info *)
void print_mips_disassembler_options(FILE *)
int print_insn_rl78_g10(bfd_vma, disassemble_info *)
void print_i386_disassembler_options(FILE *)
int print_insn_rx(bfd_vma, disassemble_info *)
struct disassemble_info disassemble_info
int print_insn_nds32(bfd_vma, disassemble_info *)
int print_insn_i386(bfd_vma, disassemble_info *)
static char * next_disassembler_option(char *options)
const disasm_options_t * disassembler_options_powerpc(void)
int print_insn_d10v(bfd_vma, disassemble_info *)
int print_insn_xtensa(bfd_vma, disassemble_info *)
int print_insn_big_arm(bfd_vma, disassemble_info *)
int print_insn_m68k(bfd_vma, disassemble_info *)
int print_insn_ns32k(bfd_vma, disassemble_info *)
void generic_print_address(bfd_vma, struct disassemble_info *)
int print_insn_z8001(bfd_vma, disassemble_info *)
int print_insn_little_mips(bfd_vma, disassemble_info *)
int print_insn_mn10200(bfd_vma, disassemble_info *)
int print_insn_i860(bfd_vma, disassemble_info *)
void disassemble_init_s390(struct disassemble_info *)
int print_insn_ip2k(bfd_vma, disassemble_info *)
int print_insn_tic4x(bfd_vma, disassemble_info *)
int print_insn_dlx(bfd_vma, disassemble_info *)
int(* disassembler_ftype)(bfd_vma, disassemble_info *)
void disassemble_init_for_target(struct disassemble_info *dinfo)
int print_insn_tic6x(bfd_vma, disassemble_info *)
disassembler_ftype arc_get_disassembler(bfd *)
disassembler_ftype rl78_get_disassembler(bfd *)
int print_insn_big_nios2(bfd_vma, disassemble_info *)
char * remove_whitespace_and_extra_commas(char *)
bfd_boolean aarch64_symbol_is_valid(asymbol *, struct disassemble_info *)
int print_insn_m32c(bfd_vma, disassemble_info *)
int print_insn_xc16x(bfd_vma, disassemble_info *)
void print_riscv_disassembler_options(FILE *)
int print_insn_mt(bfd_vma, disassemble_info *)
int print_insn_h8500(bfd_vma, disassemble_info *)
int print_insn_m32r(bfd_vma, disassemble_info *)
int print_insn_or1k(bfd_vma, disassemble_info *)
int print_insn_mep(bfd_vma, disassemble_info *)
void disassemble_init_powerpc(struct disassemble_info *)
int print_insn_little_nios2(bfd_vma, disassemble_info *)
int print_insn_big_mips(bfd_vma, disassemble_info *)
bfd_boolean generic_symbol_is_valid(asymbol *, struct disassemble_info *)
int print_insn_fr30(bfd_vma, disassemble_info *)
int print_insn_pdp11(bfd_vma, disassemble_info *)
int print_insn_little_arm(bfd_vma, disassemble_info *)
int print_insn_xstormy16(bfd_vma, disassemble_info *)
int print_insn_lm32(bfd_vma, disassemble_info *)
const disasm_options_t * disassembler_options_arm(void)
int print_insn_iq2000(bfd_vma, disassemble_info *)
int print_insn_aarch64(bfd_vma, disassemble_info *)
int print_insn_m68hc11(bfd_vma, disassemble_info *)
void init_disassemble_info(struct disassemble_info *dinfo, void *stream, fprintf_ftype fprintf_func)
int print_insn_bfin(bfd_vma, disassemble_info *)
int print_insn_hppa(bfd_vma, disassemble_info *)
const disasm_options_t * disassembler_options_s390(void)
int print_insn_spu(bfd_vma, disassemble_info *)
int print_insn_mn10300(bfd_vma, disassemble_info *)
disassembler_ftype cris_get_disassembler(bfd *)
int print_insn_h8300(bfd_vma, disassemble_info *)
void disassembler_usage(FILE *)
int print_insn_sh64(bfd_vma, disassemble_info *)
disassembler_ftype disassembler(bfd *)
int print_insn_big_score(bfd_vma, disassemble_info *)
int print_insn_sparc(bfd_vma, disassemble_info *)
int print_insn_m9s12x(bfd_vma, disassemble_info *)
int print_insn_moxie(bfd_vma, disassemble_info *)
int print_insn_tilepro(bfd_vma, disassemble_info *)
void print_aarch64_disassembler_options(FILE *)
int print_insn_mcore(bfd_vma, disassemble_info *)
int print_insn_i960(bfd_vma, disassemble_info *)
int print_insn_cr16(bfd_vma, disassemble_info *)
int print_insn_s390(bfd_vma, disassemble_info *)
int print_insn_epiphany(bfd_vma, disassemble_info *)
int print_insn_sh64x_media(bfd_vma, disassemble_info *)
int print_insn_rl78_g13(bfd_vma, disassemble_info *)
int print_insn_xgate(bfd_vma, disassemble_info *)
int print_insn_w65(bfd_vma, disassemble_info *)
int print_insn_vax(bfd_vma, disassemble_info *)
int print_insn_tricore(bfd_vma memaddr, struct disassemble_info *info)
int print_insn_tic80(bfd_vma, disassemble_info *)
int print_insn_msp430(bfd_vma, disassemble_info *)
#define ATTRIBUTE_FPTR_PRINTF_2
static const char struct stat static buf struct stat static buf static vhangup int options
static const char struct stat static buf struct stat static buf static vhangup int status
BFD_HOST_U_64_BIT bfd_vma
const char ** description
bfd_boolean disassembler_needs_relocs
fprintf_ftype fprintf_func
char * disassembler_options
bfd_boolean(* symbol_is_valid)(asymbol *, struct disassemble_info *dinfo)
unsigned int buffer_length
void(* memory_error_func)(int status, bfd_vma memaddr, struct disassemble_info *dinfo)
enum bfd_endian endian_code
void(* print_address_func)(bfd_vma addr, struct disassemble_info *dinfo)
enum bfd_architecture arch
unsigned int skip_zeroes_at_end
int(* symbol_at_address_func)(bfd_vma addr, struct disassemble_info *dinfo)
int(* read_memory_func)(bfd_vma memaddr, bfd_byte *myaddr, unsigned int length, struct disassemble_info *dinfo)
unsigned int octets_per_byte
enum dis_insn_type insn_type
enum bfd_endian display_endian