binutils-gdb/include/dis-asm.h
Per Bothner d7e1be4659 * ieee-float.h: Moved from ../gdb.
* dis-asm.h:  New file.  Interface to dis-assembler.
1993-03-18 22:00:09 +00:00

33 lines
1.1 KiB
C

#include <stdio.h>
#include "ansidecl.h"
#include "bfd.h"
typedef int (*fprintf_ftype) PARAMS((FILE*, const char*, ...));
typedef struct disassemble_info {
fprintf_ftype fprintf_func;
FILE *stream;
int flags;
} disassemble_info;
typedef int (*disassembler_ftype)
PARAMS((bfd_vma, bfd_byte *, disassemble_info *));
#define INIT_DISASSEMBLE_INFO(INFO, STREAM) \
INFO.fprintf_func = (fprintf_ftype)fprintf, \
INFO.stream = (STREAM)
#define GDB_INIT_DISASSEMBLE_INFO(INFO, STREAM) \
INFO.fprintf_func = (fprintf_ftype)fprintf_filtered, \
INFO.stream = (STREAM)
/* Standard dis-assemblers. */
extern int print_insn_big_mips PARAMS ((bfd_vma, bfd_byte*,disassemble_info*));
extern int print_insn_little_mips
PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));
extern int print_insn_i386 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));
extern int print_insn_m68k PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));
extern int print_insn_z8001 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));
extern int print_insn_z8002 PARAMS ((bfd_vma,bfd_byte*,disassemble_info*));