GDB (xrefs)
|
Go to the source code of this file.
Classes | |
struct | subfile |
struct | pending |
struct | context_stack |
Macros | |
#define | EXTERN extern |
#define | HASHSIZE |
#define | PENDINGSIZE 100 |
#define | outermost_context_p() (context_stack_depth == 0) |
#define | next_symbol_text(objfile) (*next_symbol_text_func)(objfile) |
Typedefs | |
typedef void( | record_line_ftype) (struct subfile *subfile, int line, CORE_ADDR pc) |
Variables | |
EXTERN CORE_ADDR | last_source_start_addr |
EXTERN struct subfile * | current_subfile |
EXTERN unsigned char | processing_gcc_compilation |
EXTERN unsigned char | processing_acc_compilation |
EXTERN unsigned int | symnum |
EXTERN struct pending * | file_symbols |
EXTERN struct pending * | global_symbols |
EXTERN struct pending * | local_symbols |
EXTERN struct using_direct * | using_directives |
EXTERN struct context_stack * | context_stack |
EXTERN int | context_stack_depth |
EXTERN int | context_stack_size |
EXTERN int | within_function |
EXTERN char *(* | next_symbol_text_func )(struct objfile *) |
record_line_ftype | record_line |
#define EXTERN extern |
Definition at line 43 of file buildsym.h.
#define HASHSIZE |
Definition at line 46 of file buildsym.h.
Referenced by hashname(), and scan_file_globals().
#define next_symbol_text | ( | objfile | ) | (*next_symbol_text_func)(objfile) |
Definition at line 182 of file buildsym.h.
Referenced by error_type(), parse_partial_symbols(), read_dbx_symtab(), and scan_xcoff_symtab().
#define outermost_context_p | ( | ) | (context_stack_depth == 0) |
Definition at line 169 of file buildsym.h.
Referenced by read_func_scope().
#define PENDINGSIZE 100 |
Definition at line 96 of file buildsym.h.
Referenced by add_symbol_to_list().
Definition at line 177 of file buildsym.h.
Definition at line 216 of file buildsym.c.
References free_pendings, symbol::ginfo, general_symbol_info::name, pending::next, pending::nsyms, PENDINGSIZE, symbol, and xmalloc().
Referenced by coff_read_enum_type(), common_block_end(), define_symbol(), fixup_go_packaging(), merge_symbol_lists(), new_symbol_full(), patch_block_stabs(), process_coff_symbol(), process_xcoff_symbol(), psymtab_to_symtab_1(), and read_enum_type().
void augment_type_symtab | ( | void | ) |
Definition at line 1574 of file buildsym.c.
References _, BLOCK_DICT, BLOCKVECTOR_BLOCK, complaint(), COMPUNIT_BLOCKVECTOR, buildsym_compunit::compunit_symtab, context_stack_depth, dict_add_pending(), file_symbols, GLOBAL_BLOCK, global_symbols, have_line_numbers, reset_symtab_globals(), set_missing_symtab(), STATIC_BLOCK, and symfile_complaints.
Referenced by process_full_type_unit().
struct compunit_symtab* buildsym_compunit_symtab | ( | void | ) |
Definition at line 972 of file buildsym.c.
References buildsym_compunit::compunit_symtab, and gdb_assert.
Referenced by dwarf_decode_lines().
void buildsym_init | ( | void | ) |
Definition at line 1741 of file buildsym.c.
References context_stack_size, file_symbols, gdb_assert, global_symbols, INITIAL_CONTEXT_STACK_SIZE, pending_addrmap_interesting, using_directives, and xmalloc().
Referenced by buildsym_new_init(), dbx_psymtab_to_symtab_1(), process_full_comp_unit(), process_full_type_unit(), and xcoff_psymtab_to_symtab_1().
void buildsym_new_init | ( | void | ) |
Definition at line 1773 of file buildsym.c.
References buildsym_init().
Referenced by coffstab_build_psymtabs(), dbx_new_init(), elf_new_init(), elfstab_build_psymtabs(), mdebug_build_psymtabs(), mipscoff_new_init(), stabsect_build_psymtabs(), and xcoff_new_init().
struct compunit_symtab* end_expandable_symtab | ( | CORE_ADDR | end_addr, |
int | section | ||
) |
Definition at line 1540 of file buildsym.c.
References end_symtab_from_static_block(), and end_symtab_get_static_block().
Referenced by process_full_type_unit().
struct compunit_symtab* end_symtab | ( | CORE_ADDR | end_addr, |
int | section | ||
) |
Definition at line 1529 of file buildsym.c.
References end_symtab_from_static_block(), and end_symtab_get_static_block().
Referenced by coff_end_symtab(), process_one_symbol(), psymtab_to_symtab_1(), read_ofile_symtab(), and read_xcoff_symtab().
struct compunit_symtab* end_symtab_from_static_block | ( | struct block * | static_block, |
int | section, | ||
int | expandable | ||
) |
Definition at line 1481 of file buildsym.c.
References end_symtab_with_blockvector(), and reset_symtab_globals().
Referenced by end_expandable_symtab(), end_symtab(), and process_full_comp_unit().
Definition at line 1209 of file buildsym.c.
References _, pending_block::block, block_compar(), cleanup_undefined_stabs_types(), complaint(), context_stack_depth, do_cleanups(), file_symbols, finish_block(), finish_block_internal(), finish_global_stabs(), objfile::flags, global_symbols, have_line_numbers, last_source_start_addr, local_symbols, make_cleanup(), context_stack::name, pending_block::next, OBJF_REORDERED, buildsym_compunit::objfile, context_stack::old_blocks, pop_context(), qsort, context_stack::start_addr, symfile_complaints, xfree(), and xmalloc().
Referenced by end_expandable_symtab(), end_symtab(), and process_full_comp_unit().
Definition at line 250 of file buildsym.c.
References pending::next, pending::nsyms, pending::symbol, and SYMBOL_LINKAGE_NAME.
Referenced by patch_block_stabs().
struct block* finish_block | ( | struct symbol * | symbol, |
struct pending ** | listhead, | ||
struct pending_block * | old_blocks, | ||
CORE_ADDR | start, | ||
CORE_ADDR | end | ||
) |
Definition at line 515 of file buildsym.c.
References finish_block_internal().
Referenced by coff_symtab_read(), end_symtab_get_static_block(), process_one_symbol(), read_func_scope(), read_lexical_block_scope(), and read_xcoff_symtab().
void free_pending_blocks | ( | void | ) |
Definition at line 320 of file buildsym.c.
References pending_block_obstack.
Referenced by dbx_symfile_read(), make_blockvector(), really_free_pendings(), and xcoff_initial_scan().
const char* get_last_source_file | ( | void | ) |
Definition at line 1729 of file buildsym.c.
References last_source_file.
Referenced by coff_symtab_read(), process_linenos(), process_one_symbol(), psymtab_to_symtab_1(), and read_xcoff_symtab().
struct macro_table* get_macro_table | ( | void | ) |
Definition at line 982 of file buildsym.c.
References buildsym_compunit::compunit_symtab, gdb_assert, objfile_per_bfd_storage::macro_cache, new_macro_table(), buildsym_compunit::objfile, pending_macros, objfile::per_bfd, and objfile_per_bfd_storage::storage_obstack.
Referenced by macro_start_file().
Definition at line 1664 of file buildsym.c.
References hash(), and HASHSIZE.
Referenced by common_block_end(), define_symbol(), parse_symbol(), patch_opaque_types(), process_coff_symbol(), and scan_file_globals().
Definition at line 1691 of file buildsym.c.
References add_symbol_to_list(), free_pendings, and merge_symbol_lists().
Referenced by merge_symbol_lists().
void patch_subfile_names | ( | struct subfile * | subfile, |
char * | name | ||
) |
Definition at line 816 of file buildsym.c.
References buildsym_compunit::comp_dir, deduce_language_from_filename(), subfile::language, language_unknown, subfile::name, subfile::next, and set_last_source_file().
Referenced by process_one_symbol().
struct context_stack* pop_context | ( | void | ) |
Definition at line 1653 of file buildsym.c.
References context_stack_depth, and gdb_assert.
Referenced by coff_symtab_read(), end_symtab_get_static_block(), process_one_symbol(), read_func_scope(), read_lexical_block_scope(), and read_xcoff_symtab().
char* pop_subfile | ( | void | ) |
Definition at line 869 of file buildsym.c.
References _, internal_error(), name, subfile_stack::name, subfile_stack::next, subfile_stack, and xfree().
Referenced by process_linenos(), and process_one_symbol().
struct context_stack* push_context | ( | int | desc, |
CORE_ADDR | valu | ||
) |
Definition at line 1623 of file buildsym.c.
References context_stack, context_stack_depth, context_stack_size, context_stack::depth, local_symbols, context_stack::locals, context_stack::name, context_stack::old_blocks, pending_blocks, context_stack::start_addr, using_directives, context_stack::using_directives, and xrealloc().
Referenced by coff_symtab_read(), process_one_symbol(), read_func_scope(), read_lexical_block_scope(), and read_xcoff_symtab().
void push_subfile | ( | void | ) |
Definition at line 853 of file buildsym.c.
References _, current_subfile, internal_error(), subfile::name, subfile_stack::name, subfile_stack::next, subfile_stack, and xmalloc().
Referenced by process_linenos(), and process_one_symbol().
void really_free_pendings | ( | void * | dummy | ) |
Definition at line 279 of file buildsym.c.
References file_symbols, free_buildsym_compunit(), free_macro_table(), free_pending_blocks(), global_symbols, pending::next, pending_addrmap_obstack, and xfree().
Referenced by dbx_psymtab_to_symtab_1(), dbx_symfile_read(), process_full_comp_unit(), process_full_type_unit(), xcoff_initial_scan(), and xcoff_psymtab_to_symtab_1().
Definition at line 564 of file buildsym.c.
References addrmap_create_mutable(), addrmap_set_empty(), BLOCK_END, BLOCK_START, pending_addrmap_interesting, and pending_addrmap_obstack.
Referenced by dwarf2_record_block_ranges().
void record_debugformat | ( | const char * | format | ) |
Definition at line 1671 of file buildsym.c.
References buildsym_compunit::debugformat.
Referenced by coff_start_symtab(), dwarf2_start_symtab(), process_one_symbol(), and read_xcoff_symtab().
void record_producer | ( | const char * | producer | ) |
Definition at line 1677 of file buildsym.c.
References buildsym_compunit::producer.
Referenced by dwarf2_start_symtab().
void restart_symtab | ( | struct compunit_symtab * | cust, |
const char * | name, | ||
CORE_ADDR | start_addr | ||
) |
Definition at line 1072 of file buildsym.c.
References COMPUNIT_DIRNAME, COMPUNIT_OBJFILE, buildsym_compunit::compunit_symtab, prepare_for_building(), and start_buildsym_compunit().
Referenced by setup_type_unit_groups().
void scan_file_globals | ( | struct objfile * | objfile | ) |
Definition at line 4616 of file stabsread.c.
References _, ALL_OBJFILE_MSYMBOLS, complaint(), fix_common_block(), global_sym_chain, hash(), hashname(), HASHSIZE, LOC_BLOCK, LOC_STATIC, LOC_UNRESOLVED, mst_file_bss, mst_file_data, mst_file_text, MSYMBOL_LINKAGE_NAME, MSYMBOL_SECTION, MSYMBOL_TYPE, MSYMBOL_VALUE_ADDRESS, objfile_name(), QUIT, SYMBOL_ACLASS_INDEX, SYMBOL_CLASS, SYMBOL_LINKAGE_NAME, SYMBOL_PRINT_NAME, SYMBOL_SECTION, SYMBOL_VALUE_ADDRESS, SYMBOL_VALUE_CHAIN, symfile_complaints, and symfile_objfile.
Referenced by dbx_read_symtab(), mdebug_read_symtab(), and xcoff_read_symtab().
void set_last_source_file | ( | const char * | name | ) |
Definition at line 1720 of file buildsym.c.
References last_source_file, and xfree().
Referenced by coff_end_symtab(), coff_symtab_read(), complete_symtab(), parse_partial_symbols(), patch_subfile_names(), prepare_for_building(), read_dbx_symtab(), read_ofile_symtab(), read_xcoff_symtab(), reset_symtab_globals(), and scan_xcoff_symtab().
void start_subfile | ( | const char * | name | ) |
Definition at line 656 of file buildsym.c.
References subfile::buildsym_compunit, buildsym_compunit, buildsym_compunit::comp_dir, current_subfile, deduce_language_from_filename(), gdb_assert, subfile::language, language_c, language_cplus, language_fortran, language_unknown, subfile::line_vector, subfile::name, subfile::next, SLASH_STRING, buildsym_compunit::subfiles, xfree(), and xmalloc().
Referenced by dwarf2_start_subfile(), process_linenos(), process_one_symbol(), and start_symtab().
struct compunit_symtab* start_symtab | ( | struct objfile * | objfile, |
const char * | name, | ||
const char * | comp_dir, | ||
CORE_ADDR | start_addr | ||
) |
Definition at line 1036 of file buildsym.c.
References allocate_compunit_symtab(), buildsym_compunit::compunit_symtab, current_subfile, buildsym_compunit::main_subfile, prepare_for_building(), start_buildsym_compunit(), and start_subfile().
Referenced by coff_start_symtab(), dwarf2_start_symtab(), process_one_symbol(), and read_xcoff_symtab().
EXTERN struct context_stack* context_stack |
Definition at line 158 of file buildsym.h.
Referenced by push_context().
Definition at line 162 of file buildsym.h.
Referenced by augment_type_symtab(), coff_symtab_read(), end_symtab_get_static_block(), new_symbol_full(), pop_context(), prepare_for_building(), process_one_symbol(), push_context(), and read_xcoff_symtab().
Definition at line 166 of file buildsym.h.
Referenced by buildsym_init(), and push_context().
Definition at line 73 of file buildsym.h.
Referenced by coff_symtab_read(), define_symbol(), dwarf_decode_lines(), dwarf_decode_lines_1(), dwarf_record_line(), dwarf_record_line_p(), enter_linenos(), free_buildsym_compunit(), prepare_for_building(), process_coff_symbol(), process_linenos(), process_one_symbol(), psymtab_to_symtab_1(), push_subfile(), read_enum_type(), read_type(), setup_type_unit_groups(), start_subfile(), and start_symtab().
Definition at line 109 of file buildsym.h.
Referenced by augment_type_symtab(), build_type_psymtabs_reader(), buildsym_init(), cleanup_undefined_types_1(), coff_read_enum_type(), define_symbol(), end_symtab_get_static_block(), new_symbol_full(), prepare_for_building(), process_coff_symbol(), process_full_comp_unit(), process_full_type_unit(), process_psymtab_comp_unit_reader(), process_xcoff_symbol(), read_enum_type(), read_func_scope(), read_type(), really_free_pendings(), and reset_symtab_globals().
Definition at line 113 of file buildsym.h.
Referenced by augment_type_symtab(), buildsym_init(), define_symbol(), end_symtab_get_static_block(), end_symtab_with_blockvector(), finish_global_stabs(), fixup_go_packaging(), new_symbol_full(), patch_block_stabs(), prepare_for_building(), process_coff_symbol(), process_xcoff_symbol(), really_free_pendings(), and reset_symtab_globals().
Definition at line 53 of file buildsym.h.
Referenced by aix_process_linenos(), coff_end_symtab(), end_symtab_get_static_block(), end_symtab_with_blockvector(), prepare_for_building(), process_one_symbol(), and read_ofile_symtab().
Definition at line 117 of file buildsym.h.
Referenced by coff_read_enum_type(), coff_symtab_read(), common_block_end(), common_block_start(), define_symbol(), end_symtab_get_static_block(), prepare_for_building(), process_coff_symbol(), process_one_symbol(), psymtab_to_symtab_1(), push_context(), read_enum_type(), read_func_scope(), read_lexical_block_scope(), read_xcoff_symtab(), and reset_symtab_globals().
Definition at line 186 of file buildsym.h.
Referenced by dbx_read_symtab(), mdebug_read_symtab(), parse_partial_symbols(), read_dbx_symtab(), scan_xcoff_symtab(), and xcoff_read_symtab().
EXTERN unsigned char processing_acc_compilation |
Definition at line 86 of file buildsym.h.
Referenced by coffstab_build_psymtabs(), elfstab_build_psymtabs(), read_dbx_symtab(), read_ofile_symtab(), and stabsect_build_psymtabs().
EXTERN unsigned char processing_gcc_compilation |
Definition at line 78 of file buildsym.h.
Referenced by _initialize_go32_nat(), define_symbol(), dwarf2_start_symtab(), parse_partial_symbols(), parse_procedure(), process_one_symbol(), psymtab_to_symtab_1(), and read_ofile_symtab().
record_line_ftype record_line |
Definition at line 90 of file buildsym.h.
Referenced by add_old_header_file(), coff_read_enum_type(), coff_read_struct_type(), coff_symtab_read(), dbx_lookup_type(), dbx_next_symbol_text(), find_corresponding_bincl_psymtab(), parse_partial_symbols(), process_one_symbol(), read_cpp_abbrev(), read_dbx_symtab(), read_ofile_symtab(), read_one_sym(), read_type(), read_xcoff_symtab(), set_namestring(), and xcoff_next_symbol_text().
EXTERN struct using_direct* using_directives |
Definition at line 121 of file buildsym.h.
Referenced by buildsym_init(), cp_add_using_directive(), finish_block_internal(), push_context(), read_func_scope(), and read_lexical_block_scope().
Definition at line 174 of file buildsym.h.
Referenced by coff_read_enum_type(), coff_symtab_read(), define_symbol(), prepare_for_building(), process_coff_symbol(), process_one_symbol(), process_xcoff_symbol(), read_enum_type(), and read_xcoff_symtab().