diff options
author | Jim Blandy <jimb@codesourcery.com> | 2003-02-03 20:39:41 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2003-02-03 20:39:41 +0000 |
commit | 158314526c237246cc19dd4a22fd3820694cb6df (patch) | |
tree | 408d89852e5fa04a30a1d8b29843b3466f0076c1 /gdb/solib-sunos.c | |
parent | ffc65945ba8548a7668003732ba1486d0aa40a81 (diff) | |
download | gdb-158314526c237246cc19dd4a22fd3820694cb6df.zip gdb-158314526c237246cc19dd4a22fd3820694cb6df.tar.gz gdb-158314526c237246cc19dd4a22fd3820694cb6df.tar.bz2 |
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.
Diffstat (limited to 'gdb/solib-sunos.c')
-rw-r--r-- | gdb/solib-sunos.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c index ae11567..25682e0 100644 --- a/gdb/solib-sunos.c +++ b/gdb/solib-sunos.c @@ -184,6 +184,7 @@ solib_add_common_symbols (CORE_ADDR rtc_symp) xmalloc, xfree); rt_common_objfile->minimal_symbol_count = 0; rt_common_objfile->msymbols = NULL; + terminate_minimal_symbol_table (rt_common_objfile); } init_minimal_symbol_collection (); |