summaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-03-07 22:52:55 +0000
committerDavid Carlton <carlton@bactrian.org>2003-03-07 22:52:55 +0000
commit5d9e7ca5ff4ac2686e115a010c5bb93ea0b9060d (patch)
treebf2e2b4c254b2c89953154875588bff26f982c60 /gdb/valops.c
parent3c786ae920c1e2ca37eac747f522c0b22d28ac4c (diff)
downloadgdb-5d9e7ca5ff4ac2686e115a010c5bb93ea0b9060d.tar.gz
2003-03-07 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_partial_symbol): Replace uses of SYMBOL_MATCHES_NATURAL_NAME by equivalent uses of SYMBOL_NATURAL_NAME, strcmp_iw. * symtab.h (SYMBOL_MATCHES_NATURAL_NAME): Delete. * minsyms.c (lookup_minimal_symbol_linkage): Make static. (lookup_minimal_symbol_natural): Ditto. (lookup_minimal_symbol): Only search on linkage names; rename first argument to 'linkage_name'. (lookup_minimal_symbol_linkage): Delete. (lookup_minimal_symbol_natural): Delete. (add_minsym_to_demangled_hash_table): Go back to using SYMBOL_DEMANGLED_NAME instead of SYMBOL_NATURAL_NAME. (lookup_minimal_symbol_aux): Don't use SYMBOL_MATCHES_NATURAL_NAME: do a strcmp_iw on SYMBOL_DEMANGLED_NAME instead. Add comment. (build_minimal_symbol_hash_tables): Go back to only adding to demangled has table if SYMBOL_DEMANGLED_NAME is non-NULL. * symtab.h: Delete declarations for lookup_minimal_symbol_linkage and lookup_minimal_symbol_natural. * valops.c (find_function_in_inferior): Use lookup_symbol_linkage instead of lookup_symbol. Change comment. * remote.c (remote_check_symbols): Use lookup_minimal_symbol_linkage_or_natural instead of lookup_minimal_symbol, but add FIXME comment as well. * objc-lang.c: Ditto. * c-exp.y: Use lookup_minimal_symbol_linkage_or_natural instead of lookup_minimal_symbol. * p-exp.y: Ditto. * objc-exp.y: Ditto. * m2-exp.y: Ditto. * jv-exp.y (push_expression_name): Ditto. * f-exp.y: Ditto. * printcmd.c (address_info): Ditto. * symtab.h: Declare lookup_minimal_symbol_linkage_or_natural. * minsyms.c (lookup_minimal_symbol_linkage_or_natural): New. * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME. * tracepoint.c (scope_info): Ditto. * symtab.c (find_pc_sect_line): Ditto. * stabsread.c (define_symbol): Ditto. * sol-thread.c (info_cb): Ditto. * printcmd.c (address_info): Ditto. * hppa-tdep.c (hppa_fix_call_dummy): Ditto. (hppa_in_solib_call_trampoline): Ditto. * findvar.c (read_var_value): Ditto.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 36408ef53be..647a7fcb189 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -161,13 +161,14 @@ int unwind_on_signal_p = 0;
static int coerce_float_to_double;
-/* Find the address of function name NAME in the inferior. */
+/* Find the address of function whose linkage name is NAME in the
+ inferior. */
struct value *
find_function_in_inferior (const char *name)
{
register struct symbol *sym;
- sym = lookup_symbol (name, 0, VAR_NAMESPACE, 0, NULL);
+ sym = lookup_symbol_linkage (name);
if (sym != NULL)
{
if (SYMBOL_CLASS (sym) != LOC_BLOCK)