diff options
author | Tom Tromey <tromey@redhat.com> | 2011-12-21 21:51:57 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-12-21 21:51:57 +0000 |
commit | c35384fbef892f85618ca4225e5a90b38be27375 (patch) | |
tree | d0f10754e04040c9e4ccfca41ec7b5d67cb9b7a3 /gdb/objfiles.c | |
parent | a5bd37c3cab43e33d3c2daf0586d6401e0dca8fd (diff) | |
download | gdb-c35384fbef892f85618ca4225e5a90b38be27375.zip gdb-c35384fbef892f85618ca4225e5a90b38be27375.tar.gz gdb-c35384fbef892f85618ca4225e5a90b38be27375.tar.bz2 |
* symtab.h: Include minsyms.h.
(prim_record_minimal_symbol, prim_record_minimal_symbol_full)
(prim_record_minimal_symbol_and_info, msymbol_hash_iw)
(msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
(lookup_minimal_symbol, lookup_minimal_symbol_text)
(lookup_minimal_symbol_solib_trampoline)
(lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
(iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
(lookup_minimal_symbol_by_pc_section)
(lookup_solib_trampoline_symbol_by_pc)
(init_minimal_symbol_collection)
(make_cleanup_discard_minimal_symbols, install_minimal_symbols)
(msymbols_sort): Move to minsyms.h.
* objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
* minsyms.c (terminate_minimal_symbol_table): Move from
objfiles.c.
* minsyms.h: New file.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 1cb1698..229e641 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -344,29 +344,6 @@ entry_point_address (void) return retval; } -/* Create the terminating entry of OBJFILE's minimal symbol table. - If OBJFILE->msymbols is zero, allocate a single entry from - OBJFILE->objfile_obstack; otherwise, just initialize - OBJFILE->msymbols[OBJFILE->minimal_symbol_count]. */ -void -terminate_minimal_symbol_table (struct objfile *objfile) -{ - if (! objfile->msymbols) - objfile->msymbols = ((struct minimal_symbol *) - obstack_alloc (&objfile->objfile_obstack, - sizeof (objfile->msymbols[0]))); - - { - struct minimal_symbol *m - = &objfile->msymbols[objfile->minimal_symbol_count]; - - memset (m, 0, sizeof (*m)); - /* Don't rely on these enumeration values being 0's. */ - MSYMBOL_TYPE (m) = mst_unknown; - SYMBOL_SET_LANGUAGE (m, language_unknown); - } -} - /* Iterator on PARENT and every separate debug objfile of PARENT. The usage pattern is: for (objfile = parent; |