summaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2002-03-22 18:57:08 +0000
committerDaniel Jacobowitz <dan@debian.org>2002-03-22 18:57:08 +0000
commit83e117223034ca116e8f02a23145eb4bedbdd225 (patch)
treebca3fb4c0639f739d3342d44b0defe18dd46a83e /gdb/linespec.c
parentcd2a3d63251f7eda0ca9d86e42d98c9c5d121162 (diff)
downloadgdb-83e117223034ca116e8f02a23145eb4bedbdd225.tar.gz
2002-03-22 Daniel Jacobowitz <drow@mvista.com>
* symtab.h (lookup_block_symbol): Add mangled_name argument to prototype. * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol with new mangled_name argument. * linespec.c (decode_line_1): Likewise. * valops (value_of_this): Likewise. * symtab.c (lookup_transparent_type): Likewise. (lookup_symbol_aux): Likewise. Accept new mangled_name argument. (lookup_symbol): If we are given a mangled name, pass it down to lookup_symbol_aux. (lookup_block_symbol): If we are given a mangled name to check against, only return symbols which match it.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index ca9d01ddae6..15ccab000fa 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1213,7 +1213,7 @@ symbol_found: /* We also jump here from inside the C++ class/namespace
{
struct blockvector *bv = BLOCKVECTOR (sym_symtab);
struct block *b = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
- if (lookup_block_symbol (b, copy, VAR_NAMESPACE) != NULL)
+ if (lookup_block_symbol (b, copy, NULL, VAR_NAMESPACE) != NULL)
build_canonical_line_spec (values.sals, copy, canonical);
}
return values;