00001 /* Initialize "struct disassemble_info". 00002 00003 Copyright 2003 Free Software Foundation, Inc. 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License as 00007 published by the Free Software Foundation; either version 2 of the 00008 License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, but 00011 WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00018 02111-1307, USA. */ 00019 00020 #include "sysdep.h" 00021 #include "dis-asm.h" 00022 #include "bfd.h" 00023 00024 void 00025 init_disassemble_info (struct disassemble_info *info, void *stream, 00026 fprintf_ftype fprintf_func) 00027 { 00028 memset (info, 0, sizeof (*info)); 00029 00030 info->flavour = bfd_target_unknown_flavour; 00031 info->arch = bfd_arch_unknown; 00032 info->endian = BFD_ENDIAN_UNKNOWN; 00033 info->octets_per_byte = 1; 00034 info->fprintf_func = fprintf_func; 00035 info->stream = stream; 00036 info->read_memory_func = buffer_read_memory; 00037 info->memory_error_func = perror_memory; 00038 info->print_address_func = generic_print_address; 00039 info->symbol_at_address_func = generic_symbol_at_address; 00040 info->symbol_is_valid = generic_symbol_is_valid; 00041 info->display_endian = BFD_ENDIAN_UNKNOWN; 00042 } 00043
1.5.6