This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[dictionary] fix calls to lookup_minimal_symbol
- From: David Carlton <carlton at bactrian dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: 02 May 2003 13:35:01 -0700
- Subject: [dictionary] fix calls to lookup_minimal_symbol
When, on the branch, I tried to tell which calls to
lookup_minimal_symbol expected a natural name and which expected a
linkage name, I missed a few. Oops.
David Carlton
carlton@bactrian.org
2003-05-02 David Carlton <carlton@bactrian.org>
* minsyms.c: Delete declarations for lookup_minimal_symbol_linkage
and lookup_minimal_symbol_natural.
* linespec.c (decode_variable): Call
lookup_minimal_symbol_linkage_or_natural instead of
lookup_minimal_symbol.
(decode_dollar): Ditto.
Index: linespec.c
===================================================================
RCS file: /cvs/src/src/gdb/linespec.c,v
retrieving revision 1.22.2.17
diff -u -p -r1.22.2.17 linespec.c
--- linespec.c 1 May 2003 00:46:50 -0000 1.22.2.17
+++ linespec.c 2 May 2003 20:34:24 -0000
@@ -1665,7 +1665,7 @@ decode_dollar (char **argptr, int funfir
sym, NULL, sym_symtab);
/* If symbol was not found, look in minimal symbol tables. */
- msymbol = lookup_minimal_symbol (copy, NULL, NULL);
+ msymbol = lookup_minimal_symbol_linkage_or_natural (copy);
if (msymbol != NULL)
return minsym_found (funfirstline, msymbol);
@@ -1762,7 +1762,7 @@ decode_variable (char **argptr, int funf
sym, file_symtab, sym_symtab);
}
- msymbol = lookup_minimal_symbol (copy, NULL, NULL);
+ msymbol = lookup_minimal_symbol_linkage_or_natural (copy);
if (msymbol != NULL)
return minsym_found (funfirstline, msymbol);
Index: minsyms.c
===================================================================
RCS file: /cvs/src/src/gdb/minsyms.c,v
retrieving revision 1.22.8.7
diff -u -p -r1.22.8.7 minsyms.c
--- minsyms.c 16 Apr 2003 19:56:53 -0000 1.22.8.7
+++ minsyms.c 2 May 2003 20:34:27 -0000
@@ -76,16 +76,6 @@ static int msym_bunch_index;
static int msym_count;
-static struct minimal_symbol *lookup_minimal_symbol_linkage (const char *name,
- const char *sfile,
- struct objfile
- *objf);
-
-static struct minimal_symbol *lookup_minimal_symbol_natural (const char *name,
- const char *sfile,
- struct objfile
- *objf);
-
static struct minimal_symbol *lookup_minimal_symbol_aux (const char *name,
int linkage,
const char *sfile,