1*a9fa9459Szrj /* budbg.c -- Interfaces to the generic debugging information routines. 2*a9fa9459Szrj Copyright (C) 1995-2016 Free Software Foundation, Inc. 3*a9fa9459Szrj Written by Ian Lance Taylor <ian@cygnus.com>. 4*a9fa9459Szrj 5*a9fa9459Szrj This file is part of GNU Binutils. 6*a9fa9459Szrj 7*a9fa9459Szrj This program is free software; you can redistribute it and/or modify 8*a9fa9459Szrj it under the terms of the GNU General Public License as published by 9*a9fa9459Szrj the Free Software Foundation; either version 3 of the License, or 10*a9fa9459Szrj (at your option) any later version. 11*a9fa9459Szrj 12*a9fa9459Szrj This program is distributed in the hope that it will be useful, 13*a9fa9459Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of 14*a9fa9459Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*a9fa9459Szrj GNU General Public License for more details. 16*a9fa9459Szrj 17*a9fa9459Szrj You should have received a copy of the GNU General Public License 18*a9fa9459Szrj along with this program; if not, write to the Free Software 19*a9fa9459Szrj Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 20*a9fa9459Szrj 02110-1301, USA. */ 21*a9fa9459Szrj 22*a9fa9459Szrj #ifndef BUDBG_H 23*a9fa9459Szrj #define BUDBG_H 24*a9fa9459Szrj 25*a9fa9459Szrj /* Routine used to read generic debugging information. */ 26*a9fa9459Szrj 27*a9fa9459Szrj extern void *read_debugging_info (bfd *, asymbol **, long, bfd_boolean); 28*a9fa9459Szrj 29*a9fa9459Szrj /* Routine used to print generic debugging information. */ 30*a9fa9459Szrj 31*a9fa9459Szrj extern bfd_boolean print_debugging_info 32*a9fa9459Szrj (FILE *, void *, bfd *, asymbol **, 33*a9fa9459Szrj char * (*) (struct bfd *, const char *, int), bfd_boolean); 34*a9fa9459Szrj 35*a9fa9459Szrj /* Routines used to read and write stabs information. */ 36*a9fa9459Szrj 37*a9fa9459Szrj extern void *start_stab (void *, bfd *, bfd_boolean, asymbol **, long); 38*a9fa9459Szrj 39*a9fa9459Szrj extern bfd_boolean finish_stab (void *, void *); 40*a9fa9459Szrj 41*a9fa9459Szrj extern bfd_boolean parse_stab 42*a9fa9459Szrj (void *, void *, int, int, bfd_vma, const char *); 43*a9fa9459Szrj 44*a9fa9459Szrj extern bfd_boolean write_stabs_in_sections_debugging_info 45*a9fa9459Szrj (bfd *, void *, bfd_byte **, bfd_size_type *, bfd_byte **, bfd_size_type *); 46*a9fa9459Szrj 47*a9fa9459Szrj /* Routines used to read and write IEEE debugging information. */ 48*a9fa9459Szrj 49*a9fa9459Szrj extern bfd_boolean parse_ieee (void *, bfd *, const bfd_byte *, bfd_size_type); 50*a9fa9459Szrj 51*a9fa9459Szrj extern bfd_boolean write_ieee_debugging_info (bfd *, void *); 52*a9fa9459Szrj 53*a9fa9459Szrj /* Routine used to read COFF debugging information. */ 54*a9fa9459Szrj 55*a9fa9459Szrj extern bfd_boolean parse_coff (bfd *, asymbol **, long, void *); 56*a9fa9459Szrj 57*a9fa9459Szrj #endif 58