1130561Sobrien/* Initialize "struct disassemble_info".
2130561Sobrien
3130561Sobrien   Copyright 2003 Free Software Foundation, Inc.
4130561Sobrien
5130561Sobrien   This program is free software; you can redistribute it and/or
6130561Sobrien   modify it under the terms of the GNU General Public License as
7130561Sobrien   published by the Free Software Foundation; either version 2 of the
8130561Sobrien   License, or (at your option) any later version.
9130561Sobrien
10130561Sobrien   This program is distributed in the hope that it will be useful, but
11130561Sobrien   WITHOUT ANY WARRANTY; without even the implied warranty of
12130561Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13130561Sobrien   General Public License for more details.
14130561Sobrien
15130561Sobrien   You should have received a copy of the GNU General Public License
16130561Sobrien   along with this program; if not, write to the Free Software
17218822Sdim   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
18218822Sdim   02110-1301, USA.  */
19130561Sobrien
20130561Sobrien#include "sysdep.h"
21130561Sobrien#include "dis-asm.h"
22130561Sobrien#include "bfd.h"
23130561Sobrien
24130561Sobrienvoid
25130561Sobrieninit_disassemble_info (struct disassemble_info *info, void *stream,
26130561Sobrien		       fprintf_ftype fprintf_func)
27130561Sobrien{
28130561Sobrien  memset (info, 0, sizeof (*info));
29130561Sobrien
30130561Sobrien  info->flavour = bfd_target_unknown_flavour;
31130561Sobrien  info->arch = bfd_arch_unknown;
32130561Sobrien  info->endian = BFD_ENDIAN_UNKNOWN;
33130561Sobrien  info->octets_per_byte = 1;
34130561Sobrien  info->fprintf_func = fprintf_func;
35130561Sobrien  info->stream = stream;
36130561Sobrien  info->read_memory_func = buffer_read_memory;
37130561Sobrien  info->memory_error_func = perror_memory;
38130561Sobrien  info->print_address_func = generic_print_address;
39130561Sobrien  info->symbol_at_address_func = generic_symbol_at_address;
40130561Sobrien  info->symbol_is_valid = generic_symbol_is_valid;
41130561Sobrien  info->display_endian = BFD_ENDIAN_UNKNOWN;
42130561Sobrien}
43130561Sobrien
44