1*a9fa9459Szrj /* corefile.h
2*a9fa9459Szrj 
3*a9fa9459Szrj    Copyright (C) 2000-2016 Free Software Foundation, Inc.
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,
20*a9fa9459Szrj    MA 02110-1301, USA.  */
21*a9fa9459Szrj 
22*a9fa9459Szrj #ifndef corefile_h
23*a9fa9459Szrj #define corefile_h
24*a9fa9459Szrj 
25*a9fa9459Szrj struct function_map
26*a9fa9459Szrj {
27*a9fa9459Szrj   char *         function_name;
28*a9fa9459Szrj   char *         file_name;
29*a9fa9459Szrj   unsigned int   is_first:1;	/* Is this the first symbol in an object file?  */
30*a9fa9459Szrj };
31*a9fa9459Szrj 
32*a9fa9459Szrj extern struct function_map * symbol_map;
33*a9fa9459Szrj extern unsigned int symbol_map_count;
34*a9fa9459Szrj 
35*a9fa9459Szrj extern bfd * core_bfd;		  /* BFD for core-file.  */
36*a9fa9459Szrj extern asection * core_text_sect; /* Core text section.  */
37*a9fa9459Szrj extern void * core_text_space;    /* Text space of a.out in core.  */
38*a9fa9459Szrj extern int offset_to_code;	  /* Offset (in bytes) of code from entry
39*a9fa9459Szrj 				     address of routine.  */
40*a9fa9459Szrj 
41*a9fa9459Szrj extern void core_init                  (const char *);
42*a9fa9459Szrj extern void core_get_text_space        (bfd *);
43*a9fa9459Szrj extern void core_create_function_syms  (void);
44*a9fa9459Szrj extern void core_create_line_syms      (void);
45*a9fa9459Szrj extern void core_create_syms_from      (const char *);
46*a9fa9459Szrj 
47*a9fa9459Szrj #endif /* corefile_h */
48