OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [opcodes/] [dis-init.c] - Blame information for rev 165

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* Initialize "struct disassemble_info".
2
 
3
   Copyright 2003, 2007 Free Software Foundation, Inc.
4
 
5
   This file is part of the GNU opcodes library.
6
 
7
   This library is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3, or (at your option)
10
   any later version.
11
 
12
   It is distributed in the hope that it will be useful, but WITHOUT
13
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15
   License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with this program; if not, write to the Free Software
19
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
20
   02110-1301, USA.  */
21
 
22
#include "sysdep.h"
23
#include "dis-asm.h"
24
#include "bfd.h"
25
 
26
void
27
init_disassemble_info (struct disassemble_info *info, void *stream,
28
                       fprintf_ftype fprintf_func)
29
{
30
  memset (info, 0, sizeof (*info));
31
 
32
  info->flavour = bfd_target_unknown_flavour;
33
  info->arch = bfd_arch_unknown;
34
  info->endian = BFD_ENDIAN_UNKNOWN;
35
  info->octets_per_byte = 1;
36
  info->fprintf_func = fprintf_func;
37
  info->stream = stream;
38
  info->read_memory_func = buffer_read_memory;
39
  info->memory_error_func = perror_memory;
40
  info->print_address_func = generic_print_address;
41
  info->symbol_at_address_func = generic_symbol_at_address;
42
  info->symbol_is_valid = generic_symbol_is_valid;
43
  info->display_endian = BFD_ENDIAN_UNKNOWN;
44
}
45
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.