Search
lxdream.org :: lxdream/src/x86dasm/dis-init.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/x86dasm/dis-init.c
changeset 755:ab873907b00e
prev362:dc40e2064dc4
author nkeynes
date Tue Feb 28 17:25:26 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Implement display output for the GLES2 case (no fixed function
rendering)
view annotate diff log raw
     1 /* Initialize "struct disassemble_info".
     3    Copyright 2003 Free Software Foundation, Inc.
     5    This program is free software; you can redistribute it and/or
     6    modify it under the terms of the GNU General Public License as
     7    published by the Free Software Foundation; either version 2 of the
     8    License, or (at your option) any later version.
    10    This program is distributed in the hope that it will be useful, but
    11    WITHOUT ANY WARRANTY; without even the implied warranty of
    12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13    General Public License for more details.
    15    You should have received a copy of the GNU General Public License
    16    along with this program; if not, write to the Free Software
    17    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    18    02111-1307, USA.  */
    20 #include "x86dasm/sysdep.h"
    21 #include "x86dasm/dis-asm.h"
    22 #include "x86dasm/bfd.h"
    24 void
    25 init_disassemble_info (struct disassemble_info *info, void *stream,
    26 		       fprintf_ftype fprintf_func)
    27 {
    28   memset (info, 0, sizeof (*info));
    30   info->flavour = bfd_target_unknown_flavour;
    31   info->arch = bfd_arch_unknown;
    32   info->endian = BFD_ENDIAN_UNKNOWN;
    33   info->octets_per_byte = 1;
    34   info->fprintf_func = fprintf_func;
    35   info->stream = stream;
    36   info->read_memory_func = buffer_read_memory;
    37   info->memory_error_func = perror_memory;
    38   info->print_address_func = generic_print_address;
    39   info->symbol_at_address_func = generic_symbol_at_address;
    40   info->symbol_is_valid = generic_symbol_is_valid;
    41   info->display_endian = BFD_ENDIAN_UNKNOWN;
    42 }
.