Diff for /qemu/dis-asm.h between versions 1.1.1.8 and 1.1.1.9

version 1.1.1.8, 2018/04/24 18:23:45 version 1.1.1.9, 2018/04/24 18:33:43
Line 9 Line 9
 #ifndef DIS_ASM_H  #ifndef DIS_ASM_H
 #define DIS_ASM_H  #define DIS_ASM_H
   
 #include <stdlib.h>  #include "qemu-common.h"
 #include <stdbool.h>  
 #include <stdio.h>  
 #include <string.h>  
 #include <inttypes.h>  
   
 typedef void *PTR;  typedef void *PTR;
 typedef uint64_t bfd_vma;  typedef uint64_t bfd_vma;
Line 237  typedef struct symbol_cache_entry Line 233  typedef struct symbol_cache_entry
     } udata;      } udata;
 } asymbol;  } asymbol;
   
 typedef int (*fprintf_ftype) (FILE*, const char*, ...);  
   
 enum dis_insn_type {  enum dis_insn_type {
   dis_noninsn,                  /* Not a valid instruction */    dis_noninsn,                  /* Not a valid instruction */
   dis_nonbranch,                /* Not a branch instruction */    dis_nonbranch,                /* Not a branch instruction */
Line 261  enum dis_insn_type { Line 255  enum dis_insn_type {
    by hand, or using one of the initialization macros below.  */     by hand, or using one of the initialization macros below.  */
   
 typedef struct disassemble_info {  typedef struct disassemble_info {
   fprintf_ftype fprintf_func;    fprintf_function fprintf_func;
   FILE *stream;    FILE *stream;
   PTR application_data;    PTR application_data;
   
Line 368  typedef struct disassemble_info { Line 362  typedef struct disassemble_info {
    target address.  Return number of bytes processed.  */     target address.  Return number of bytes processed.  */
 typedef int (*disassembler_ftype) (bfd_vma, disassemble_info *);  typedef int (*disassembler_ftype) (bfd_vma, disassemble_info *);
   
 extern int print_insn_big_mips          (bfd_vma, disassemble_info*);  int print_insn_big_mips         (bfd_vma, disassemble_info*);
 extern int print_insn_little_mips       (bfd_vma, disassemble_info*);  int print_insn_little_mips      (bfd_vma, disassemble_info*);
 extern int print_insn_i386              (bfd_vma, disassemble_info*);  int print_insn_i386             (bfd_vma, disassemble_info*);
 extern int print_insn_m68k              (bfd_vma, disassemble_info*);  int print_insn_m68k             (bfd_vma, disassemble_info*);
 extern int print_insn_z8001             (bfd_vma, disassemble_info*);  int print_insn_z8001            (bfd_vma, disassemble_info*);
 extern int print_insn_z8002             (bfd_vma, disassemble_info*);  int print_insn_z8002            (bfd_vma, disassemble_info*);
 extern int print_insn_h8300             (bfd_vma, disassemble_info*);  int print_insn_h8300            (bfd_vma, disassemble_info*);
 extern int print_insn_h8300h            (bfd_vma, disassemble_info*);  int print_insn_h8300h           (bfd_vma, disassemble_info*);
 extern int print_insn_h8300s            (bfd_vma, disassemble_info*);  int print_insn_h8300s           (bfd_vma, disassemble_info*);
 extern int print_insn_h8500             (bfd_vma, disassemble_info*);  int print_insn_h8500            (bfd_vma, disassemble_info*);
 extern int print_insn_alpha             (bfd_vma, disassemble_info*);  int print_insn_alpha            (bfd_vma, disassemble_info*);
 extern disassembler_ftype arc_get_disassembler (int, int);  disassembler_ftype arc_get_disassembler (int, int);
 extern int print_insn_arm               (bfd_vma, disassemble_info*);  int print_insn_arm              (bfd_vma, disassemble_info*);
 extern int print_insn_sparc             (bfd_vma, disassemble_info*);  int print_insn_sparc            (bfd_vma, disassemble_info*);
 extern int print_insn_big_a29k          (bfd_vma, disassemble_info*);  int print_insn_big_a29k         (bfd_vma, disassemble_info*);
 extern int print_insn_little_a29k       (bfd_vma, disassemble_info*);  int print_insn_little_a29k      (bfd_vma, disassemble_info*);
 extern int print_insn_i960              (bfd_vma, disassemble_info*);  int print_insn_i960             (bfd_vma, disassemble_info*);
 extern int print_insn_sh                (bfd_vma, disassemble_info*);  int print_insn_sh               (bfd_vma, disassemble_info*);
 extern int print_insn_shl               (bfd_vma, disassemble_info*);  int print_insn_shl              (bfd_vma, disassemble_info*);
 extern int print_insn_hppa              (bfd_vma, disassemble_info*);  int print_insn_hppa             (bfd_vma, disassemble_info*);
 extern int print_insn_m32r              (bfd_vma, disassemble_info*);  int print_insn_m32r             (bfd_vma, disassemble_info*);
 extern int print_insn_m88k              (bfd_vma, disassemble_info*);  int print_insn_m88k             (bfd_vma, disassemble_info*);
 extern int print_insn_mn10200           (bfd_vma, disassemble_info*);  int print_insn_mn10200          (bfd_vma, disassemble_info*);
 extern int print_insn_mn10300           (bfd_vma, disassemble_info*);  int print_insn_mn10300          (bfd_vma, disassemble_info*);
 extern int print_insn_ns32k             (bfd_vma, disassemble_info*);  int print_insn_ns32k            (bfd_vma, disassemble_info*);
 extern int print_insn_big_powerpc       (bfd_vma, disassemble_info*);  int print_insn_big_powerpc      (bfd_vma, disassemble_info*);
 extern int print_insn_little_powerpc    (bfd_vma, disassemble_info*);  int print_insn_little_powerpc   (bfd_vma, disassemble_info*);
 extern int print_insn_rs6000            (bfd_vma, disassemble_info*);  int print_insn_rs6000           (bfd_vma, disassemble_info*);
 extern int print_insn_w65               (bfd_vma, disassemble_info*);  int print_insn_w65              (bfd_vma, disassemble_info*);
 extern int print_insn_d10v              (bfd_vma, disassemble_info*);  int print_insn_d10v             (bfd_vma, disassemble_info*);
 extern int print_insn_v850              (bfd_vma, disassemble_info*);  int print_insn_v850             (bfd_vma, disassemble_info*);
 extern int print_insn_tic30             (bfd_vma, disassemble_info*);  int print_insn_tic30            (bfd_vma, disassemble_info*);
 extern int print_insn_ppc               (bfd_vma, disassemble_info*);  int print_insn_ppc              (bfd_vma, disassemble_info*);
 extern int print_insn_s390              (bfd_vma, disassemble_info*);  int print_insn_s390             (bfd_vma, disassemble_info*);
 extern int print_insn_crisv32           (bfd_vma, disassemble_info*);  int print_insn_crisv32          (bfd_vma, disassemble_info*);
 extern int print_insn_microblaze        (bfd_vma, disassemble_info*);  int print_insn_crisv10          (bfd_vma, disassemble_info*);
 extern int print_insn_ia64              (bfd_vma, disassemble_info*);  int print_insn_microblaze       (bfd_vma, disassemble_info*);
   int print_insn_ia64             (bfd_vma, disassemble_info*);
   
 #if 0  #if 0
 /* Fetch the disassembler for a given BFD, if that support is available.  */  /* Fetch the disassembler for a given BFD, if that support is available.  */
 extern disassembler_ftype disassembler  (bfd *);  disassembler_ftype disassembler(bfd *);
 #endif  #endif
   
   
Line 417  extern disassembler_ftype disassembler ( Line 412  extern disassembler_ftype disassembler (
   
 /* Here is a function which callers may wish to use for read_memory_func.  /* Here is a function which callers may wish to use for read_memory_func.
    It gets bytes from a buffer.  */     It gets bytes from a buffer.  */
 extern int buffer_read_memory  int buffer_read_memory(bfd_vma, bfd_byte *, int, struct disassemble_info *);
   (bfd_vma, bfd_byte *, int, struct disassemble_info *);  
   
 /* This function goes with buffer_read_memory.  /* This function goes with buffer_read_memory.
    It prints a message using info->fprintf_func and info->stream.  */     It prints a message using info->fprintf_func and info->stream.  */
 extern void perror_memory (int, bfd_vma, struct disassemble_info *);  void perror_memory(int, bfd_vma, struct disassemble_info *);
   
   
 /* Just print the address in hex.  This is included for completeness even  /* Just print the address in hex.  This is included for completeness even
    though both GDB and objdump provide their own (to print symbolic     though both GDB and objdump provide their own (to print symbolic
    addresses).  */     addresses).  */
 extern void generic_print_address (bfd_vma, struct disassemble_info *);  void generic_print_address(bfd_vma, struct disassemble_info *);
   
 /* Always true.  */  /* Always true.  */
 extern int generic_symbol_at_address (bfd_vma, struct disassemble_info *);  int generic_symbol_at_address(bfd_vma, struct disassemble_info *);
   
 /* Macro to initialize a disassemble_info struct.  This should be called  /* Macro to initialize a disassemble_info struct.  This should be called
    by all applications creating such a struct.  */     by all applications creating such a struct.  */

Removed from v.1.1.1.8  
changed lines
  Added in v.1.1.1.9


unix.superglobalmegacorp.com