diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-06 22:56:46 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-06 22:56:46 -0800 |
commit | 24d864bb955adc2ecd2103dd7a0dbf9cdfd37010 (patch) | |
tree | 162f3f2b969f5021f49be0c90452fbd5a38c8d83 /gdb/cp-namespace.c | |
parent | 358d6ab39c95691e721820fd54e9780208faf252 (diff) | |
download | gdb-24d864bb955adc2ecd2103dd7a0dbf9cdfd37010.zip gdb-24d864bb955adc2ecd2103dd7a0dbf9cdfd37010.tar.gz gdb-24d864bb955adc2ecd2103dd7a0dbf9cdfd37010.tar.bz2 |
Rename lookup_symbol_static to lookup_symbol_in_static_block,
and lookup_static_symbol_aux to lookup_static_symbol.
gdb/ChangeLog:
* symtab.c (lookup_static_symbol): Renamed from
lookup_static_symbol_aux. All callers updated.
(lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
All callers updated.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index c6e1102..76ffee2 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -615,7 +615,7 @@ lookup_symbol_file (const char *name, { struct symbol *sym = NULL; - sym = lookup_symbol_static (name, block, domain); + sym = lookup_symbol_in_static_block (name, block, domain); if (sym != NULL) return sym; @@ -771,14 +771,15 @@ find_symbol_in_baseclass (struct type *parent_type, const char *name, len = strlen (base_name) + 2 + strlen (name) + 1; concatenated_name = xrealloc (concatenated_name, len); xsnprintf (concatenated_name, len, "%s::%s", base_name, name); - sym = lookup_symbol_static (concatenated_name, block, VAR_DOMAIN); + sym = lookup_symbol_in_static_block (concatenated_name, block, + VAR_DOMAIN); if (sym != NULL) break; /* Nope. We now have to search all static blocks in all objfiles, even if block != NULL, because there's no guarantees as to which symtab the symbol we want is in. */ - sym = lookup_static_symbol_aux (concatenated_name, VAR_DOMAIN); + sym = lookup_static_symbol (concatenated_name, VAR_DOMAIN); if (sym != NULL) break; @@ -849,7 +850,7 @@ cp_lookup_nested_symbol (struct type *parent_type, concatenated_name = alloca (size); xsnprintf (concatenated_name, size, "%s::%s", parent_name, nested_name); - sym = lookup_static_symbol_aux (concatenated_name, VAR_DOMAIN); + sym = lookup_static_symbol (concatenated_name, VAR_DOMAIN); if (sym != NULL) return sym; |