Commit | Line | Data |
---|---|---|
d7e1be46 PB |
1 | #include <stdio.h> |
2 | #include "ansidecl.h" | |
3 | #include "bfd.h" | |
4 | ||
5 | typedef int (*fprintf_ftype) PARAMS((FILE*, const char*, ...)); | |
6 | ||
7 | typedef struct disassemble_info { | |
8 | fprintf_ftype fprintf_func; | |
9 | FILE *stream; | |
10 | int flags; | |
11 | } disassemble_info; | |
12 | ||
13 | typedef int (*disassembler_ftype) | |
14 | PARAMS((bfd_vma, bfd_byte *, disassemble_info *)); | |
15 | ||
16 | #define INIT_DISASSEMBLE_INFO(INFO, STREAM) \ | |
17 | INFO.fprintf_func = (fprintf_ftype)fprintf, \ | |
18 | INFO.stream = (STREAM) | |
19 | ||
20 | #define GDB_INIT_DISASSEMBLE_INFO(INFO, STREAM) \ | |
21 | INFO.fprintf_func = (fprintf_ftype)fprintf_filtered, \ | |
22 | INFO.stream = (STREAM) | |
23 | ||
24 | /* Standard dis-assemblers. */ | |
25 | ||
26 | extern int print_insn_big_mips PARAMS ((bfd_vma, bfd_byte*,disassemble_info*)); | |
27 | extern int print_insn_little_mips | |
28 | PARAMS ((bfd_vma,bfd_byte*,disassemble_info*)); | |
29 | extern int print_insn_i386 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*)); | |
30 | extern int print_insn_m68k PARAMS ((bfd_vma,bfd_byte*,disassemble_info*)); | |
31 | extern int print_insn_z8001 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*)); | |
32 | extern int print_insn_z8002 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*)); |