GDB (xrefs)
/tmp/gdb-7.10/gdb/symfile.h
Go to the documentation of this file.
1 /* Definitions for reading symbol files into GDB.
2 
3  Copyright (C) 1990-2015 Free Software Foundation, Inc.
4 
5  This file is part of GDB.
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 
20 #if !defined (SYMFILE_H)
21 #define SYMFILE_H
22 
23 /* This file requires that you first include "bfd.h". */
24 #include "symtab.h"
25 #include "probe.h"
26 
27 /* Opaque declarations. */
28 struct target_section;
29 struct objfile;
30 struct obj_section;
31 struct obstack;
32 struct block;
33 struct probe;
34 struct value;
35 struct frame_info;
36 struct agent_expr;
37 struct axs_value;
38 
39 /* Comparison function for symbol look ups. */
40 
41 typedef int (symbol_compare_ftype) (const char *string1,
42  const char *string2);
43 
44 /* Partial symbols are stored in the psymbol_cache and pointers to
45  them are kept in a dynamically grown array that is obtained from
46  malloc and grown as necessary via realloc. Each objfile typically
47  has two of these, one for global symbols and one for static
48  symbols. Although this adds a level of indirection for storing or
49  accessing the partial symbols, it allows us to throw away duplicate
50  psymbols and set all pointers to the single saved instance. */
51 
53 {
54 
55  /* Pointer to beginning of dynamically allocated array of pointers
56  to partial symbols. The array is dynamically expanded as
57  necessary to accommodate more pointers. */
58 
59  struct partial_symbol **list;
60 
61  /* Pointer to next available slot in which to store a pointer to a
62  partial symbol. */
63 
64  struct partial_symbol **next;
65 
66  /* Number of allocated pointer slots in current dynamic array (not
67  the number of bytes of storage). The "next" pointer will always
68  point somewhere between list[0] and list[size], and when at
69  list[size] the array will be expanded on the next attempt to
70  store a pointer. */
71 
72  int size;
73 };
74 
76 {
78  char *name;
79 
80  /* SECTINDEX must be valid for associated BFD or set to -1. */
81  int sectindex;
82 };
83 
84 /* Define an array of addresses to accommodate non-contiguous dynamic
85  loading of modules. This is for use when entering commands, so we
86  can keep track of the section names until we read the file and can
87  map them to bfd sections. This structure is also used by solib.c
88  to communicate the section addresses in shared objects to
89  symbol_file_add (). */
90 
92 {
93  /* The number of sections for which address information is
94  available. */
95  size_t num_sections;
96  /* Sections whose names are file format dependent. */
97  struct other_sections other[1];
98 };
99 
100 
101 /* A table listing the load segments in a symfile, and which segment
102  each BFD section belongs to. */
104 {
105  /* How many segments are present in this file. If there are
106  two, the text segment is the first one and the data segment
107  is the second one. */
109 
110  /* If NUM_SEGMENTS is greater than zero, the original base address
111  of each segment. */
113 
114  /* If NUM_SEGMENTS is greater than zero, the memory size of each
115  segment. */
117 
118  /* If NUM_SEGMENTS is greater than zero, this is an array of entries
119  recording which segment contains each BFD section.
120  SEGMENT_INFO[I] is S+1 if the I'th BFD section belongs to segment
121  S, or zero if it is not in any segment. */
123 };
124 
125 /* Callback for quick_symbol_functions->map_symbol_filenames. */
126 
127 typedef void (symbol_filename_ftype) (const char *filename,
128  const char *fullname, void *data);
129 
130 /* Callback for quick_symbol_functions->expand_symtabs_matching
131  to match a file name. */
132 
133 typedef int (expand_symtabs_file_matcher_ftype) (const char *filename,
134  void *data, int basenames);
135 
136 /* Callback for quick_symbol_functions->expand_symtabs_matching
137  to match a symbol name. */
138 
140  void *data);
141 
142 /* Callback for quick_symbol_functions->expand_symtabs_matching
143  to be called after a symtab has been expanded. */
144 
145 typedef void (expand_symtabs_exp_notify_ftype) \
146  (struct compunit_symtab *symtab, void *data);
147 
148 /* The "quick" symbol functions exist so that symbol readers can
149  avoiding an initial read of all the symbols. For example, symbol
150  readers might choose to use the "partial symbol table" utilities,
151  which is one implementation of the quick symbol functions.
152 
153  The quick symbol functions are generally opaque: the underlying
154  representation is hidden from the caller.
155 
156  In general, these functions should only look at whatever special
157  index the symbol reader creates -- looking through the symbol
158  tables themselves is handled by generic code. If a function is
159  defined as returning a "symbol table", this means that the function
160  should only return a newly-created symbol table; it should not
161  examine pre-existing ones.
162 
163  The exact list of functions here was determined in an ad hoc way
164  based on gdb's history. */
165 
167 {
168  /* Return true if this objfile has any "partial" symbols
169  available. */
171 
172  /* Return the symbol table for the "last" file appearing in
173  OBJFILE. */
174  struct symtab *(*find_last_source_symtab) (struct objfile *objfile);
175 
176  /* Forget all cached full file names for OBJFILE. */
178 
179  /* Expand and iterate over each "partial" symbol table in OBJFILE
180  where the source file is named NAME.
181 
182  If NAME is not absolute, a match after a '/' in the symbol table's
183  file name will also work, REAL_PATH is NULL then. If NAME is
184  absolute then REAL_PATH is non-NULL absolute file name as resolved
185  via gdb_realpath from NAME.
186 
187  If a match is found, the "partial" symbol table is expanded.
188  Then, this calls iterate_over_some_symtabs (or equivalent) over
189  all newly-created symbol tables, passing CALLBACK and DATA to it.
190  The result of this call is returned. */
192  const char *name,
193  const char *real_path,
194  int (*callback) (struct symtab *,
195  void *),
196  void *data);
197 
198  /* Check to see if the symbol is defined in a "partial" symbol table
199  of OBJFILE. BLOCK_INDEX should be either GLOBAL_BLOCK or STATIC_BLOCK,
200  depending on whether we want to search global symbols or static
201  symbols. NAME is the name of the symbol to look for. DOMAIN
202  indicates what sort of symbol to search for.
203 
204  Returns the newly-expanded compunit in which the symbol is
205  defined, or NULL if no such symbol table exists. If OBJFILE
206  contains !TYPE_OPAQUE symbol prefer its compunit. If it contains
207  only TYPE_OPAQUE symbol(s), return at least that compunit. */
208  struct compunit_symtab *(*lookup_symbol) (struct objfile *objfile,
209  int block_index, const char *name,
210  domain_enum domain);
211 
212  /* Print statistics about any indices loaded for OBJFILE. The
213  statistics should be printed to gdb_stdout. This is used for
214  "maint print statistics". */
215  void (*print_stats) (struct objfile *objfile);
216 
217  /* Dump any indices loaded for OBJFILE. The dump should go to
218  gdb_stdout. This is used for "maint print objfiles". */
219  void (*dump) (struct objfile *objfile);
220 
221  /* This is called by objfile_relocate to relocate any indices loaded
222  for OBJFILE. */
223  void (*relocate) (struct objfile *objfile,
224  const struct section_offsets *new_offsets,
225  const struct section_offsets *delta);
226 
227  /* Find all the symbols in OBJFILE named FUNC_NAME, and ensure that
228  the corresponding symbol tables are loaded. */
229  void (*expand_symtabs_for_function) (struct objfile *objfile,
230  const char *func_name);
231 
232  /* Read all symbol tables associated with OBJFILE. */
233  void (*expand_all_symtabs) (struct objfile *objfile);
234 
235  /* Read all symbol tables associated with OBJFILE which have
236  symtab_to_fullname equal to FULLNAME.
237  This is for the purposes of examining code only, e.g., expand_line_sal.
238  The routine may ignore debug info that is known to not be useful with
239  code, e.g., DW_TAG_type_unit for dwarf debug info. */
240  void (*expand_symtabs_with_fullname) (struct objfile *objfile,
241  const char *fullname);
242 
243  /* Find global or static symbols in all tables that are in DOMAIN
244  and for which MATCH (symbol name, NAME) == 0, passing each to
245  CALLBACK, reading in partial symbol tables as needed. Look
246  through global symbols if GLOBAL and otherwise static symbols.
247  Passes NAME, NAMESPACE, and DATA to CALLBACK with each symbol
248  found. After each block is processed, passes NULL to CALLBACK.
249  MATCH must be weaker than strcmp_iw_ordered in the sense that
250  strcmp_iw_ordered(x,y) == 0 --> MATCH(x,y) == 0. ORDERED_COMPARE,
251  if non-null, must be an ordering relation compatible with
252  strcmp_iw_ordered in the sense that
253  strcmp_iw_ordered(x,y) == 0 --> ORDERED_COMPARE(x,y) == 0
254  and
255  strcmp_iw_ordered(x,y) <= 0 --> ORDERED_COMPARE(x,y) <= 0
256  (allowing strcmp_iw_ordered(x,y) < 0 while ORDERED_COMPARE(x, y) == 0).
257  CALLBACK returns 0 to indicate that the scan should continue, or
258  non-zero to indicate that the scan should be terminated. */
259 
260  void (*map_matching_symbols) (struct objfile *,
261  const char *name, domain_enum domain,
262  int global,
263  int (*callback) (struct block *,
264  struct symbol *, void *),
265  void *data,
266  symbol_compare_ftype *match,
267  symbol_compare_ftype *ordered_compare);
268 
269  /* Expand all symbol tables in OBJFILE matching some criteria.
270 
271  FILE_MATCHER is called for each file in OBJFILE. The file name
272  and the DATA argument are passed to it. If it returns zero, this
273  file is skipped. If FILE_MATCHER is NULL such file is not skipped.
274  If BASENAMES is non-zero the function should consider only base name of
275  DATA (passed file name is already only the lbasename part).
276 
277  Otherwise, if KIND does not match this symbol is skipped.
278 
279  If even KIND matches, then SYMBOL_MATCHER is called for each symbol
280  defined in the file. The symbol "search" name and DATA are passed
281  to SYMBOL_MATCHER.
282 
283  If SYMBOL_MATCHER returns zero, then this symbol is skipped.
284 
285  Otherwise, this symbol's symbol table is expanded.
286 
287  DATA is user data that is passed unmodified to the callback
288  functions. */
290  (struct objfile *objfile,
291  expand_symtabs_file_matcher_ftype *file_matcher,
292  expand_symtabs_symbol_matcher_ftype *symbol_matcher,
293  expand_symtabs_exp_notify_ftype *expansion_notify,
294  enum search_domain kind,
295  void *data);
296 
297  /* Return the comp unit from OBJFILE that contains PC and
298  SECTION. Return NULL if there is no such compunit. This
299  should return the compunit that contains a symbol whose
300  address exactly matches PC, or, if there is no exact match, the
301  compunit that contains a symbol whose address is closest to
302  PC. */
303  struct compunit_symtab *(*find_pc_sect_compunit_symtab)
304  (struct objfile *objfile, struct bound_minimal_symbol msymbol,
305  CORE_ADDR pc, struct obj_section *section, int warn_if_readin);
306 
307  /* Call a callback for every file defined in OBJFILE whose symtab is
308  not already read in. FUN is the callback. It is passed the file's
309  FILENAME, the file's FULLNAME (if need_fullname is non-zero), and
310  the DATA passed to this function. */
311  void (*map_symbol_filenames) (struct objfile *objfile,
312  symbol_filename_ftype *fun, void *data,
313  int need_fullname);
314 };
315 
316 /* Structure of functions used for probe support. If one of these functions
317  is provided, all must be. */
318 
320 {
321  /* If non-NULL, return an array of probe objects.
322 
323  The returned value does not have to be freed and it has lifetime of the
324  OBJFILE. */
325  VEC (probe_p) *(*sym_get_probes) (struct objfile *);
326 };
327 
328 /* Structure to keep track of symbol reading functions for various
329  object file types. */
330 
331 struct sym_fns
332 {
333  /* Initializes anything that is global to the entire symbol table.
334  It is called during symbol_file_add, when we begin debugging an
335  entirely new program. */
336 
337  void (*sym_new_init) (struct objfile *);
338 
339  /* Reads any initial information from a symbol file, and initializes
340  the struct sym_fns SF in preparation for sym_read(). It is
341  called every time we read a symbol file for any reason. */
342 
343  void (*sym_init) (struct objfile *);
344 
345  /* sym_read (objfile, symfile_flags) Reads a symbol file into a psymtab
346  (or possibly a symtab). OBJFILE is the objfile struct for the
347  file we are reading. SYMFILE_FLAGS are the flags passed to
348  symbol_file_add & co. */
349 
350  void (*sym_read) (struct objfile *, int);
351 
352  /* Read the partial symbols for an objfile. This may be NULL, in which case
353  gdb has to check other ways if this objfile has any symbols. This may
354  only be non-NULL if the objfile actually does have debuginfo available.
355  */
356 
357  void (*sym_read_psymbols) (struct objfile *);
358 
359  /* Called when we are finished with an objfile. Should do all
360  cleanup that is specific to the object file format for the
361  particular objfile. */
362 
363  void (*sym_finish) (struct objfile *);
364 
365 
366  /* This function produces a file-dependent section_offsets
367  structure, allocated in the objfile's storage.
368 
369  The section_addr_info structure contains the offset of loadable and
370  allocated sections, relative to the absolute offsets found in the BFD. */
371 
372  void (*sym_offsets) (struct objfile *, const struct section_addr_info *);
373 
374  /* This function produces a format-independent description of
375  the segments of ABFD. Each segment is a unit of the file
376  which may be relocated independently. */
377 
378  struct symfile_segment_data *(*sym_segments) (bfd *abfd);
379 
380  /* This function should read the linetable from the objfile when
381  the line table cannot be read while processing the debugging
382  information. */
383 
384  void (*sym_read_linetable) (struct objfile *);
385 
386  /* Relocate the contents of a debug section SECTP. The
387  contents are stored in BUF if it is non-NULL, or returned in a
388  malloc'd buffer otherwise. */
389 
390  bfd_byte *(*sym_relocate) (struct objfile *, asection *sectp, bfd_byte *buf);
391 
392  /* If non-NULL, this objfile has probe support, and all the probe
393  functions referred to here will be non-NULL. */
395 
396  /* The "quick" (aka partial) symbol functions for this symbol
397  reader. */
398  const struct quick_symbol_functions *qf;
399 };
400 
401 extern struct section_addr_info *
403 
406  const struct section_addr_info *addrs);
407 
408 extern void addr_info_make_relative (struct section_addr_info *addrs,
409  bfd *abfd);
410 
411 /* The default version of sym_fns.sym_offsets for readers that don't
412  do anything special. */
413 
414 extern void default_symfile_offsets (struct objfile *objfile,
415  const struct section_addr_info *);
416 
417 /* The default version of sym_fns.sym_segments for readers that don't
418  do anything special. */
419 
420 extern struct symfile_segment_data *default_symfile_segments (bfd *abfd);
421 
422 /* The default version of sym_fns.sym_relocate for readers that don't
423  do anything special. */
424 
425 extern bfd_byte *default_symfile_relocate (struct objfile *objfile,
426  asection *sectp, bfd_byte *buf);
427 
428 extern struct symtab *allocate_symtab (struct compunit_symtab *, const char *)
429  ATTRIBUTE_NONNULL (1);
430 
431 extern struct compunit_symtab *allocate_compunit_symtab (struct objfile *,
432  const char *)
433  ATTRIBUTE_NONNULL (1);
434 
435 extern void add_compunit_symtab_to_objfile (struct compunit_symtab *cu);
436 
437 extern void add_symtab_fns (enum bfd_flavour flavour, const struct sym_fns *);
438 
439 extern void clear_symtab_users (int add_flags);
440 
441 extern enum language deduce_language_from_filename (const char *);
442 
443 /* This enum encodes bit-flags passed as ADD_FLAGS parameter to
444  symbol_file_add, etc. */
445 
447  {
448  /* Be chatty about what you are doing. */
449  SYMFILE_VERBOSE = 1 << 1,
450 
451  /* This is the main symbol file (as opposed to symbol file for dynamically
452  loaded code). */
454 
455  /* Do not call breakpoint_re_set when adding this symbol file. */
457 
458  /* Do not immediately read symbols for this file. By default,
459  symbols are read when the objfile is created. */
461  };
462 
463 extern struct objfile *symbol_file_add (const char *, int,
464  struct section_addr_info *, int);
465 
466 extern struct objfile *symbol_file_add_from_bfd (bfd *, const char *, int,
467  struct section_addr_info *,
468  int, struct objfile *parent);
469 
470 extern void symbol_file_add_separate (bfd *, const char *, int,
471  struct objfile *);
472 
473 extern char *find_separate_debug_file_by_debuglink (struct objfile *);
474 
475 /* Create a new section_addr_info, with room for NUM_SECTIONS. */
476 
477 extern struct section_addr_info *alloc_section_addr_info (size_t
478  num_sections);
479 
480 /* Build (allocate and populate) a section_addr_info struct from an
481  existing section table. */
482 
483 extern struct section_addr_info
485  *start,
486  const struct target_section
487  *end);
488 
489 /* Free all memory allocated by
490  build_section_addr_info_from_section_table. */
491 
492 extern void free_section_addr_info (struct section_addr_info *);
493 
494 
495  /* Variables */
496 
497 /* If non-zero, shared library symbols will be added automatically
498  when the inferior is created, new libraries are loaded, or when
499  attaching to the inferior. This is almost always what users will
500  want to have happen; but for very large programs, the startup time
501  will be excessive, and so if this is a problem, the user can clear
502  this flag and then add the shared library symbols as needed. Note
503  that there is a potential for confusion, since if the shared
504  library symbols are not loaded, commands like "info fun" will *not*
505  report all the functions that are actually present. */
506 
507 extern int auto_solib_add;
508 
509 /* From symfile.c */
510 
511 extern void set_initial_language (void);
512 
513 extern void find_lowest_section (bfd *, asection *, void *);
514 
515 extern bfd *symfile_bfd_open (const char *);
516 
517 extern int get_section_index (struct objfile *, char *);
518 
519 extern int print_symbol_loading_p (int from_tty, int mainline, int full);
520 
521 /* Utility functions for overlay sections: */
523 {
528 extern int overlay_cache_invalid;
529 
530 /* Return the "mapped" overlay section containing the PC. */
532 
533 /* Return any overlay section containing the PC (even in its LMA
534  region). */
535 extern struct obj_section *find_pc_overlay (CORE_ADDR);
536 
537 /* Return true if the section is an overlay. */
538 extern int section_is_overlay (struct obj_section *);
539 
540 /* Return true if the overlay section is currently "mapped". */
541 extern int section_is_mapped (struct obj_section *);
542 
543 /* Return true if pc belongs to section's VMA. */
545 
546 /* Return true if pc belongs to section's LMA. */
548 
549 /* Map an address from a section's LMA to its VMA. */
551 
552 /* Map an address from a section's VMA to its LMA. */
554 
555 /* Convert an address in an overlay section (force into VMA range). */
557 
558 /* Load symbols from a file. */
559 extern void symbol_file_add_main (const char *args, int from_tty);
560 
561 /* Clear GDB symbol tables. */
562 extern void symbol_file_clear (int from_tty);
563 
564 /* Default overlay update function. */
565 extern void simple_overlay_update (struct obj_section *);
566 
567 extern bfd_byte *symfile_relocate_debug_section (struct objfile *, asection *,
568  bfd_byte *);
569 
570 extern int symfile_map_offsets_to_segments (bfd *,
571  const struct symfile_segment_data *,
572  struct section_offsets *,
573  int, const CORE_ADDR *);
576 
577 extern struct cleanup *increment_reading_symtab (void);
578 
582  enum search_domain kind, void *data);
583 
584 void map_symbol_filenames (symbol_filename_ftype *fun, void *data,
585  int need_fullname);
586 
587 /* From dwarf2read.c */
588 
589 /* Names for a dwarf2 debugging section. The field NORMAL is the normal
590  section name (usually from the DWARF standard), while the field COMPRESSED
591  is the name of compressed sections. If your object file format doesn't
592  support compressed sections, the field COMPRESSED can be NULL. Likewise,
593  the debugging section is not supported, the field NORMAL can be NULL too.
594  It doesn't make sense to have a NULL NORMAL field but a non-NULL COMPRESSED
595  field. */
596 
598  const char *normal;
599  const char *compressed;
600 };
601 
602 /* List of names for dward2 debugging sections. Also most object file formats
603  use the standardized (ie ELF) names, some (eg XCOFF) have customized names
604  due to restrictions.
605  The table for the standard names is defined in dwarf2read.c. Please
606  update all instances of dwarf2_debug_sections if you add a field to this
607  structure. It is always safe to use { NULL, NULL } in this case. */
608 
623  /* This field has no meaning, but exists solely to catch changes to
624  this structure which are not reflected in some instance. */
625  int sentinel;
626 };
627 
628 extern int dwarf2_has_info (struct objfile *,
629  const struct dwarf2_debug_sections *);
630 
631 /* Dwarf2 sections that can be accessed by dwarf2_get_section_info. */
635 };
636 
637 extern void dwarf2_get_section_info (struct objfile *,
638  enum dwarf2_section_enum,
639  asection **, const gdb_byte **,
640  bfd_size_type *);
641 
642 extern int dwarf2_initialize_objfile (struct objfile *);
643 extern void dwarf2_build_psymtabs (struct objfile *);
644 extern void dwarf2_build_frame_info (struct objfile *);
645 
646 void dwarf2_free_objfile (struct objfile *);
647 
648 /* From mdebugread.c */
649 
650 extern void mdebug_build_psymtabs (struct objfile *,
651  const struct ecoff_debug_swap *,
652  struct ecoff_debug_info *);
653 
654 extern void elfmdebug_build_psymtabs (struct objfile *,
655  const struct ecoff_debug_swap *,
656  asection *);
657 
658 /* From minidebug.c. */
659 
660 extern bfd *find_separate_debug_file_in_section (struct objfile *);
661 
662 #endif /* !defined(SYMFILE_H) */
char * name
Definition: symfile.h:78
void dwarf2_get_section_info(struct objfile *, enum dwarf2_section_enum, asection **, const gdb_byte **, bfd_size_type *)
Definition: dwarf2read.c:2362
char * find_separate_debug_file_by_debuglink(struct objfile *)
Definition: symfile.c:1566
void(* forget_cached_source_info)(struct objfile *objfile)
Definition: symfile.h:177
CORE_ADDR overlay_mapped_address(CORE_ADDR, struct obj_section *)
Definition: symfile.c:3238
struct dwarf2_section_names types
Definition: symfile.h:618
int get_section_index(struct objfile *, char *)
Definition: symfile.c:1783
void(* expand_symtabs_matching)(struct objfile *objfile, expand_symtabs_file_matcher_ftype *file_matcher, expand_symtabs_symbol_matcher_ftype *symbol_matcher, expand_symtabs_exp_notify_ftype *expansion_notify, enum search_domain kind, void *data)
Definition: symfile.h:290
bfd_vma CORE_ADDR
Definition: common-types.h:41
struct dwarf2_section_names macinfo
Definition: symfile.h:614
struct symtab * allocate_symtab(struct compunit_symtab *, const char *) ATTRIBUTE_NONNULL(1)
Definition: symfile.c:2898
void simple_overlay_update(struct obj_section *)
Definition: symfile.c:3671
CORE_ADDR pc_in_mapped_range(CORE_ADDR, struct obj_section *)
Definition: symfile.c:3188
int dwarf2_initialize_objfile(struct objfile *)
Definition: dwarf2read.c:4194
CORE_ADDR * segment_bases
Definition: symfile.h:112
struct type ** const(pascal_builtin_types[])
struct dwarf2_section_names gdb_index
Definition: symfile.h:622
enum domain_enum_tag domain_enum
void relative_addr_info_to_section_offsets(struct section_offsets *section_offsets, int num_sections, const struct section_addr_info *addrs)
Definition: symfile.c:490
void( expand_symtabs_exp_notify_ftype)(struct compunit_symtab *symtab, void *data)
Definition: symfile.h:146
int auto_solib_add
Definition: symfile.c:168
int sectindex
Definition: symfile.h:81
void(* expand_symtabs_with_fullname)(struct objfile *objfile, const char *fullname)
Definition: symfile.h:240
void dwarf2_build_psymtabs(struct objfile *)
Definition: dwarf2read.c:4236
void default_symfile_offsets(struct objfile *objfile, const struct section_addr_info *)
Definition: symfile.c:722
void(* print_stats)(struct objfile *objfile)
Definition: symfile.h:215
void symbol_file_add_main(const char *args, int from_tty)
Definition: symfile.c:1309
void symbol_file_clear(int from_tty)
Definition: symfile.c:1331
Definition: ax.h:95
void mdebug_build_psymtabs(struct objfile *, const struct ecoff_debug_swap *, struct ecoff_debug_info *)
Definition: mdebugread.c:339
bfd_byte * default_symfile_relocate(struct objfile *objfile, asection *sectp, bfd_byte *buf)
Definition: symfile.c:3740
struct compunit_symtab * allocate_compunit_symtab(struct objfile *, const char *) ATTRIBUTE_NONNULL(1)
Definition: symfile.c:2954
search_domain
Definition: symtab.h:473
symfile_add_flags
Definition: symfile.h:446
void set_initial_language(void)
Definition: symfile.c:1692
dwarf2_section_enum
Definition: symfile.h:632
void free_symfile_segment_data(struct symfile_segment_data *data)
Definition: symfile.c:3794
struct symfile_segment_data * get_symfile_segment_data(bfd *abfd)
Definition: symfile.c:3783
struct dwarf2_section_names abbrev
Definition: symfile.h:611
void(* sym_read)(struct objfile *, int)
Definition: symfile.h:350
CORE_ADDR addr
Definition: symfile.h:77
const struct sym_probe_fns * sym_probe_fns
Definition: symfile.h:394
bfd * find_separate_debug_file_in_section(struct objfile *)
Definition: minidebug.c:259
bfd_byte * symfile_relocate_debug_section(struct objfile *, asection *, bfd_byte *)
Definition: symfile.c:3774
int(* map_symtabs_matching_filename)(struct objfile *objfile, const char *name, const char *real_path, int(*callback)(struct symtab *, void *), void *data)
Definition: symfile.h:191
const char *const name
Definition: aarch64-tdep.c:68
struct objfile * symbol_file_add_from_bfd(bfd *, const char *, int, struct section_addr_info *, int, struct objfile *parent)
Definition: symfile.c:1276
void dwarf2_free_objfile(struct objfile *)
Definition: dwarf2read.c:22162
struct section_addr_info * alloc_section_addr_info(size_t num_sections)
Definition: symfile.c:249
struct obj_section * find_pc_mapped_section(CORE_ADDR)
Definition: symfile.c:3314
int overlay_cache_invalid
Definition: symfile.c:3082
void add_symtab_fns(enum bfd_flavour flavour, const struct sym_fns *)
Definition: symfile.c:1800
void elfmdebug_build_psymtabs(struct objfile *, const struct ecoff_debug_swap *, asection *)
Definition: mdebugread.c:4880
int print_symbol_loading_p(int from_tty, int mainline, int full)
Definition: symfile.c:180
struct partial_symbol ** next
Definition: symfile.h:64
struct symfile_segment_data * default_symfile_segments(bfd *abfd)
Definition: symfile.c:812
void add_compunit_symtab_to_objfile(struct compunit_symtab *cu)
Definition: symfile.c:2985
struct objfile * symbol_file_add(const char *, int, struct section_addr_info *, int)
Definition: symfile.c:1288
int( expand_symtabs_symbol_matcher_ftype)(const char *name, void *data)
Definition: symfile.h:139
void(* sym_new_init)(struct objfile *)
Definition: symfile.h:337
struct dwarf2_section_names line
Definition: symfile.h:612
void(* dump)(struct objfile *objfile)
Definition: symfile.h:219
void(* expand_all_symtabs)(struct objfile *objfile)
Definition: symfile.h:233
struct dwarf2_section_names info
Definition: symfile.h:610
struct dwarf2_section_names frame
Definition: symfile.h:620
struct dwarf2_section_names loc
Definition: symfile.h:613
void(* expand_symtabs_for_function)(struct objfile *objfile, const char *func_name)
Definition: symfile.h:229
void(* sym_offsets)(struct objfile *, const struct section_addr_info *)
Definition: symfile.h:372
void(* sym_finish)(struct objfile *)
Definition: symfile.h:363
struct dwarf2_section_names macro
Definition: symfile.h:615
void(* relocate)(struct objfile *objfile, const struct section_offsets *new_offsets, const struct section_offsets *delta)
Definition: symfile.h:223
const char * normal
Definition: symfile.h:598
Definition: probe.h:185
struct cleanup * increment_reading_symtab(void)
Definition: symfile.c:211
void(* sym_read_psymbols)(struct objfile *)
Definition: symfile.h:357
struct obj_section * find_pc_overlay(CORE_ADDR)
Definition: symfile.c:3287
Definition: block.h:60
Definition: value.c:172
size_t num_sections
Definition: symfile.h:95
struct dwarf2_section_names eh_frame
Definition: symfile.h:621
int section_is_overlay(struct obj_section *)
Definition: symfile.c:3089
const char const char int
Definition: command.h:229
bfd_byte gdb_byte
Definition: common-types.h:38
int( symbol_compare_ftype)(const char *string1, const char *string2)
Definition: symfile.h:41
CORE_ADDR symbol_overlayed_address(CORE_ADDR, struct obj_section *)
Definition: symfile.c:3257
struct dwarf2_section_names addr
Definition: symfile.h:619
void(* sym_read_linetable)(struct objfile *)
Definition: symfile.h:384
void find_lowest_section(bfd *, asection *, void *)
Definition: symfile.c:228
int( expand_symtabs_file_matcher_ftype)(const char *filename, void *data, int basenames)
Definition: symfile.h:133
struct dwarf2_section_names ranges
Definition: symfile.h:617
void free_section_addr_info(struct section_addr_info *)
Definition: symfile.c:343
int symfile_map_offsets_to_segments(bfd *, const struct symfile_segment_data *, struct section_offsets *, int, const CORE_ADDR *)
Definition: symfile.c:3818
CORE_ADDR pc_in_unmapped_range(CORE_ADDR, struct obj_section *)
Definition: symfile.c:3165
struct section_addr_info * build_section_addr_info_from_objfile(const struct objfile *objfile)
Definition: symfile.c:322
bfd * symfile_bfd_open(const char *)
Definition: symfile.c:1721
struct other_sections other[1]
Definition: symfile.h:97
void addr_info_make_relative(struct section_addr_info *addrs, bfd *abfd)
Definition: symfile.c:573
struct partial_symbol ** list
Definition: symfile.h:59
language
Definition: defs.h:167
void(* map_matching_symbols)(struct objfile *, const char *name, domain_enum domain, int global, int(*callback)(struct block *, struct symbol *, void *), void *data, symbol_compare_ftype *match, symbol_compare_ftype *ordered_compare)
Definition: symfile.h:260
Definition: symtab.h:703
void symbol_file_add_separate(bfd *, const char *, int, struct objfile *)
Definition: symfile.c:1249
CORE_ADDR overlay_unmapped_address(CORE_ADDR, struct obj_section *)
Definition: symfile.c:3219
void clear_symtab_users(int add_flags)
Definition: symfile.c:2996
enum language deduce_language_from_filename(const char *)
Definition: symfile.c:2880
void dwarf2_build_frame_info(struct objfile *)
const char * compressed
Definition: symfile.h:599
struct section_addr_info * build_section_addr_info_from_section_table(const struct target_section *start, const struct target_section *end)
Definition: symfile.c:266
void(* sym_init)(struct objfile *)
Definition: symfile.h:343
const struct quick_symbol_functions * qf
Definition: symfile.h:398
void map_symbol_filenames(symbol_filename_ftype *fun, void *data, int need_fullname)
Definition: symfile.c:3940
int(* has_symbols)(struct objfile *objfile)
Definition: symfile.h:170
int section_is_mapped(struct obj_section *)
Definition: symfile.c:3129
CORE_ADDR * segment_sizes
Definition: symfile.h:116
struct dwarf2_section_names str
Definition: symfile.h:616
int dwarf2_has_info(struct objfile *, const struct dwarf2_debug_sections *)
Definition: dwarf2read.c:2032
overlay_debugging_state
Definition: symfile.h:522
void( symbol_filename_ftype)(const char *filename, const char *fullname, void *data)
Definition: symfile.h:127
void expand_symtabs_matching(expand_symtabs_file_matcher_ftype *, expand_symtabs_symbol_matcher_ftype *, expand_symtabs_exp_notify_ftype *, enum search_domain kind, void *data)
Definition: symfile.c:3917
VEC(probe_p)*(*sym_get_probes)(struct objfile *)
enum overlay_debugging_state overlay_debugging
void(* map_symbol_filenames)(struct objfile *objfile, symbol_filename_ftype *fun, void *data, int need_fullname)
Definition: symfile.h:311