xref: /openbsd-src/gnu/usr.bin/binutils/gprof/corefile.h (revision d2201f2f89f0be1a0be6f7568000ed297414a06d)
15f210c2aSfgsch /* corefile.h
25f210c2aSfgsch 
3*d2201f2fSdrahn    Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
45f210c2aSfgsch 
55f210c2aSfgsch This file is part of GNU Binutils.
65f210c2aSfgsch 
75f210c2aSfgsch This program is free software; you can redistribute it and/or modify
85f210c2aSfgsch it under the terms of the GNU General Public License as published by
95f210c2aSfgsch the Free Software Foundation; either version 2 of the License, or
105f210c2aSfgsch (at your option) any later version.
115f210c2aSfgsch 
125f210c2aSfgsch This program is distributed in the hope that it will be useful,
135f210c2aSfgsch but WITHOUT ANY WARRANTY; without even the implied warranty of
145f210c2aSfgsch MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
155f210c2aSfgsch GNU General Public License for more details.
165f210c2aSfgsch 
175f210c2aSfgsch You should have received a copy of the GNU General Public License
185f210c2aSfgsch along with this program; if not, write to the Free Software
195f210c2aSfgsch Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
205f210c2aSfgsch 
21f7cc78ecSespie #ifndef corefile_h
22f7cc78ecSespie #define corefile_h
23f7cc78ecSespie 
24*d2201f2fSdrahn struct function_map
25*d2201f2fSdrahn {
26*d2201f2fSdrahn   char *function_name;
27*d2201f2fSdrahn   char *file_name;
28*d2201f2fSdrahn };
29*d2201f2fSdrahn 
30*d2201f2fSdrahn extern struct function_map *symbol_map;
31*d2201f2fSdrahn extern unsigned int symbol_map_count;
32f7cc78ecSespie 
335f210c2aSfgsch extern bfd *core_bfd;		/* BFD for core-file.  */
345f210c2aSfgsch extern int core_num_syms;	/* # of entries in symbol-table.  */
355f210c2aSfgsch extern asymbol **core_syms;	/* Symbol table in a.out.  */
365f210c2aSfgsch extern asection *core_text_sect;/* Core text section.  */
375f210c2aSfgsch extern PTR core_text_space;	/* Text space of a.out in core.  */
385f210c2aSfgsch extern int min_insn_size;	/* Size of smallest instruction, in bytes.  */
395f210c2aSfgsch extern int offset_to_code;	/* Offset (in bytes) of code from entry
405f210c2aSfgsch 				   address of routine.  */
41f7cc78ecSespie 
425f210c2aSfgsch extern void core_init                  PARAMS ((const char *));
435f210c2aSfgsch extern void core_get_text_space        PARAMS ((bfd *));
445f210c2aSfgsch extern void core_create_function_syms  PARAMS ((bfd *));
455f210c2aSfgsch extern void core_create_line_syms      PARAMS ((bfd *));
46f7cc78ecSespie 
47f7cc78ecSespie #endif /* corefile_h */
48