aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-tdep.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-02-01 01:17:22 +0000
committerDavid Carlton <carlton@bactrian.org>2003-02-01 01:17:22 +0000
commit1093a502228e087eb8d6c93c13de838d02576e6b (patch)
tree95833011ce5f9dbf220cefa571f95f8d71def3aa /gdb/i386-linux-tdep.c
parent4ab3356e00341bd363f5f9cc961889f8bbe83e23 (diff)
downloadgdb-1093a502228e087eb8d6c93c13de838d02576e6b.zip
gdb-1093a502228e087eb8d6c93c13de838d02576e6b.tar.gz
gdb-1093a502228e087eb8d6c93c13de838d02576e6b.tar.bz2
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.
Diffstat (limited to 'gdb/i386-linux-tdep.c')
-rw-r--r--gdb/i386-linux-tdep.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/i386-linux-tdep.c b/gdb/i386-linux-tdep.c
index 6dca390..1ef14fc 100644
--- a/gdb/i386-linux-tdep.c
+++ b/gdb/i386-linux-tdep.c
@@ -322,15 +322,19 @@ static struct minimal_symbol *
find_minsym_and_objfile (char *name, struct objfile **objfile_p)
{
struct objfile *objfile;
- struct minimal_symbol *msym;
- ALL_MSYMBOLS (objfile, msym)
+ ALL_OBJFILES (objfile)
{
- if (SYMBOL_NAME (msym)
- && STREQ (SYMBOL_NAME (msym), name))
+ struct minimal_symbol *msym;
+
+ ALL_OBJFILE_MSYMBOLS (objfile, msym)
{
- *objfile_p = objfile;
- return msym;
+ if (SYMBOL_NAME (msym)
+ && STREQ (SYMBOL_NAME (msym), name))
+ {
+ *objfile_p = objfile;
+ return msym;
+ }
}
}