mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
PR c++/18141
gdb/ChangeLog: PR c++/18141 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for klass in VAR_DOMAIN.
This commit is contained in:
@ -355,8 +355,11 @@ cp_search_static_and_baseclasses (const char *name,
|
||||
make_cleanup (xfree, nested);
|
||||
|
||||
/* Lookup a class named KLASS. If none is found, there is nothing
|
||||
more that can be done. */
|
||||
klass_sym = lookup_global_symbol (klass, block, domain);
|
||||
more that can be done. KLASS could be a namespace, so always look
|
||||
in VAR_DOMAIN. This works for classes too because of
|
||||
symbol_matches_domain (which should be replaced with something else,
|
||||
but it's what we have today). */
|
||||
klass_sym = lookup_global_symbol (klass, block, VAR_DOMAIN);
|
||||
if (klass_sym == NULL)
|
||||
{
|
||||
do_cleanups (cleanup);
|
||||
|
Reference in New Issue
Block a user