OSDN Git Service

Use a single, consistent representation for an empty minimal interps-20030203-mergepoint
authorJim Blandy <jimb@codesourcery.com>
Mon, 3 Feb 2003 20:39:41 +0000 (20:39 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 3 Feb 2003 20:39:41 +0000 (20:39 +0000)
commit3e110f64d194f87ae18020312993c2189947efa5
tree81579259d30939eb47ca6c2192582f3b97911339
parent6611f16f947edad222f08fb57df50aa5d2c85a96
Use a single, consistent representation for an empty minimal
symbol table in an objfile.
* objfiles.c (terminate_minimal_symbol_table): New function.
(allocate_objfile): Call it.
* objfiles.h (terminate_minimal_symbol_table): New declaration.
(ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
non-NULL.
* minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
objfile has minimal symbols, compare minimal_symbol_count to zero,
instead of comparing msymbols with NULL.
* objfiles.c (have_minimal_symbols): Same.
* solib-sunos.c (solib_add_common_symbols): Call
terminate_minimal_symbol_table.
* symfile.c (reread_symbols): Same.
gdb/ChangeLog
gdb/minsyms.c
gdb/objfiles.c
gdb/objfiles.h
gdb/solib-sunos.c
gdb/symfile.c