corefile.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* corefile.h
  2. Copyright (C) 2000-2015 Free Software Foundation, Inc.
  3. This file is part of GNU Binutils.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #ifndef corefile_h
  17. #define corefile_h
  18. struct function_map
  19. {
  20. char * function_name;
  21. char * file_name;
  22. unsigned int is_first:1; /* Is this the first symbol in an object file? */
  23. };
  24. extern struct function_map * symbol_map;
  25. extern unsigned int symbol_map_count;
  26. extern bfd * core_bfd; /* BFD for core-file. */
  27. extern asection * core_text_sect; /* Core text section. */
  28. extern void * core_text_space; /* Text space of a.out in core. */
  29. extern int offset_to_code; /* Offset (in bytes) of code from entry
  30. address of routine. */
  31. extern void core_init (const char *);
  32. extern void core_get_text_space (bfd *);
  33. extern void core_create_function_syms (void);
  34. extern void core_create_line_syms (void);
  35. extern void core_create_syms_from (const char *);
  36. #endif /* corefile_h */