diff options
author | cvs2svn <> | 2003-09-16 05:47:54 +0400 |
---|---|---|
committer | cvs2svn <> | 2003-09-16 05:47:54 +0400 |
commit | 2cb060991433298d2f701adc7fc22adacf88eeb1 (patch) | |
tree | aa0b99e6f84e9b776740fc36646e8e3b919e5268 /include/dis-asm.h | |
parent | 5be60f99b7d5a81dcbad8c9e1d8812297936052b (diff) |
This commit was manufactured by cvs2svn to create branchezannoni_pie-20030916-branchpointcarlton_dictionary-20030917-mergeezannoni_pie-20030916-branch
'ezannoni_pie-20030916-branch'.
Sprout from cagney_x86i386-20030821-branch 2003-08-21 14:03:24 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch'
Cherrypick from master 2003-09-16 01:47:53 UTC Andrew Cagney <cagney@gnu.org> 'Index: include/ChangeLog':
ChangeLog
MAINTAINERS
config/no-executables.m4
configure
configure.in
include/ChangeLog
include/coff/ChangeLog
include/coff/i860.h
include/dis-asm.h
include/elf/ChangeLog
include/elf/dwarf2.h
include/elf/v850.h
include/floatformat.h
include/opcode/ChangeLog
include/opcode/v850.h
install-sh
missing
src-release
Diffstat (limited to 'include/dis-asm.h')
-rw-r--r-- | include/dis-asm.h | 43 |
1 files changed, 9 insertions, 34 deletions
diff --git a/include/dis-asm.h b/include/dis-asm.h index 1d67ae414..6bdd7517d 100644 --- a/include/dis-asm.h +++ b/include/dis-asm.h @@ -284,42 +284,17 @@ extern void generic_print_address extern int generic_symbol_at_address (bfd_vma, struct disassemble_info *); -/* 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).flavour = bfd_target_unknown_flavour, \ - (INFO).arch = bfd_arch_unknown, \ - (INFO).mach = 0, \ - (INFO).insn_sets = 0, \ - (INFO).endian = BFD_ENDIAN_UNKNOWN, \ - (INFO).octets_per_byte = 1, \ - 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 separately. */ +/* Method to initialize a disassemble_info struct. This should be + called by all applications creating such a struct. */ +extern void init_disassemble_info (struct disassemble_info *info, void *stream, + fprintf_ftype fprintf_func); +/* For compatibility with existing code. */ +#define INIT_DISASSEMBLE_INFO(INFO, STREAM, FPRINTF_FUNC) \ + init_disassemble_info (&(INFO), (STREAM), (fprintf_ftype) (FPRINTF_FUNC)) #define INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) \ - (INFO).fprintf_func = (fprintf_ftype)(FPRINTF_FUNC), \ - (INFO).stream = (STREAM), \ - (INFO).section = NULL, \ - (INFO).symbols = NULL, \ - (INFO).num_symbols = 0, \ - (INFO).private_data = NULL, \ - (INFO).buffer = NULL, \ - (INFO).buffer_vma = 0, \ - (INFO).buffer_length = 0, \ - (INFO).read_memory_func = buffer_read_memory, \ - (INFO).memory_error_func = perror_memory, \ - (INFO).print_address_func = generic_print_address, \ - (INFO).symbol_at_address_func = generic_symbol_at_address, \ - (INFO).flags = 0, \ - (INFO).bytes_per_line = 0, \ - (INFO).bytes_per_chunk = 0, \ - (INFO).display_endian = BFD_ENDIAN_UNKNOWN, \ - (INFO).disassembler_options = NULL, \ - (INFO).insn_info_valid = 0 + init_disassemble_info (&(INFO), (STREAM), (fprintf_ftype) (FPRINTF_FUNC)) + #ifdef __cplusplus } |