]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
2003-01-31 David Carlton <carlton@math.stanford.edu>
authorDavid Carlton <carlton@bactrian.org>
Sat, 1 Feb 2003 01:17:22 +0000 (01:17 +0000)
committerDavid Carlton <carlton@bactrian.org>
Sat, 1 Feb 2003 01:17:22 +0000 (01:17 +0000)
commit1093a502228e087eb8d6c93c13de838d02576e6b
tree95833011ce5f9dbf220cefa571f95f8d71def3aa
parent4ab3356e00341bd363f5f9cc961889f8bbe83e23
2003-01-31  David Carlton  <carlton@math.stanford.edu>

From Jim Blandy  <jimb@redhat.com>:

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.

* objfiles.h: Revert patch from 2003-01-27, to be replaced by
similar patch from Jim Blandy.
* objfiles.c (objfile_relocate): Ditto.
* i386-linux-tdep.c (find_minsym_and_objfile): Ditto.
* arm-linux-tdep.c (find_minsym_and_objfile): Ditto.
* gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
FLOAT_COERCION_BADNESS.
* gdbtypes.c (rank_one_type): Replace all uses of
INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
* valops.c (find_overload_match): Call cp_func_name.
* cp-support.h: Declare cp_func_name.
* cp-support.c (cp_func_name): New function.

2003-01-30  David Carlton  <carlton@math.stanford.edu>

* valops.c (find_overload_match): Move code into
find_oload_champ_namespace.
(find_oload_champ_namespace): New function, which immediately gets
eviscerated and turned into a call to
find_oload_champ_namespace_loop.
(find_oload_champ_namespace_loop): New function.
* symtab.c (make_symbol_overload_list): Move entire body into
make_symbol_overload_list_qualified.
(make_symbol_overload_list_qualified): New.
(read_in_psymtabs): New.
(make_symbol_overload_list_qualified): Rewrite.
(make_symbol_overload_list_using): New.
(lookup_symbol_namespace): Use alloca, not xmalloc.
(make_symbol_overload_list): Put some memory management stuff back
in.
14 files changed:
gdb/ChangeLog
gdb/arm-linux-tdep.c
gdb/cp-support.c
gdb/cp-support.h
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/i386-linux-tdep.c
gdb/minsyms.c
gdb/objfiles.c
gdb/objfiles.h
gdb/solib-sunos.c
gdb/symfile.c
gdb/symtab.c
gdb/valops.c