From: Stu Grossman Date: Mon, 15 Jul 1996 23:59:26 +0000 (+0000) Subject: * dis-asm.h: Get rid of decls for print_insn_i8086, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a29322f78525c50e19a0111eb1173eb942bc2a2e;p=binutils-gdb.git * dis-asm.h: Get rid of decls for print_insn_i8086, print_insn_sparc64 and print_insn_sparclite. * (INIT_DISASSEMBLE_INFO): Split into two pieces. One, INIT_DISASSEMBLE_INFO_NO_ARCH inits everything except for endian, mach, and arch. --- diff --git a/include/ChangeLog b/include/ChangeLog index da089e2701e..ef0cdb4862d 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,11 @@ +Mon Jul 15 16:55:38 1996 Stu Grossman (grossman@critters.cygnus.com) + + * dis-asm.h: Get rid of decls for print_insn_i8086, + print_insn_sparc64 and print_insn_sparclite. + * (INIT_DISASSEMBLE_INFO): Split into two pieces. One, + INIT_DISASSEMBLE_INFO_NO_ARCH inits everything except for endian, + mach, and arch. + Fri Jul 12 10:19:27 1996 Stu Grossman (grossman@critters.cygnus.com) * dis-asm.h (print_insn_i8086): Declare. diff --git a/include/dis-asm.h b/include/dis-asm.h index 73bd476fcae..fddb2131d06 100644 --- a/include/dis-asm.h +++ b/include/dis-asm.h @@ -108,7 +108,6 @@ typedef int (*disassembler_ftype) extern int print_insn_big_mips PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_little_mips PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_i386 PARAMS ((bfd_vma, disassemble_info*)); -extern int print_insn_i8086 PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_m68k PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_z8001 PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_z8002 PARAMS ((bfd_vma, disassemble_info*)); @@ -123,8 +122,6 @@ extern disassembler_ftype arc_get_disassembler PARAMS ((int, int)); extern int print_insn_big_arm PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_little_arm PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_sparc PARAMS ((bfd_vma, disassemble_info*)); -extern int print_insn_sparc64 PARAMS ((bfd_vma, disassemble_info*)); -extern int print_insn_sparclite PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_big_a29k PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_little_a29k PARAMS ((bfd_vma, disassemble_info*)); extern int print_insn_i960 PARAMS ((bfd_vma, disassemble_info*)); @@ -164,6 +161,17 @@ extern void generic_print_address /* Macro to initialize a disassemble_info struct. This should be called by all applications creating such a struct. */ #define INIT_DISASSEMBLE_INFO(INFO, STREAM, FPRINTF_FUNC) \ + (INFO).arch = bfd_arch_unknown, \ + (INFO).mach = 0, \ + (INFO).endian = BFD_ENDIAN_UNKNOWN, \ + INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) + +/* Call this macro to initialize only the internal variables for the + disassembler. Architecture dependent things such as byte order, or machine + variant are not touched by this macro. This makes things much easier for + GDB which must initialize these things seperatly. */ + +#define INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) \ (INFO).fprintf_func = (FPRINTF_FUNC), \ (INFO).stream = (STREAM), \ (INFO).buffer = NULL, \ @@ -172,9 +180,6 @@ extern void generic_print_address (INFO).read_memory_func = buffer_read_memory, \ (INFO).memory_error_func = perror_memory, \ (INFO).print_address_func = generic_print_address, \ - (INFO).arch = bfd_arch_unknown, \ - (INFO).mach = 0, \ - (INFO).endian = BFD_ENDIAN_UNKNOWN, \ (INFO).flags = 0, \ (INFO).insn_info_valid = 0