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.
+2014-11-06 Doug Evans <xdje42@gmail.com>
+
+ * 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.
+
2014-11-06 Doug Evans <xdje42@gmail.com>
* block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
{
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;
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;
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;
char *copy;
copy = copy_name (name);
- sym = lookup_symbol_static (copy, expression_context_block,
- VAR_DOMAIN);
+ sym = lookup_symbol_in_static_block (copy, expression_context_block,
+ VAR_DOMAIN);
if (sym != NULL)
sym = lookup_symbol_global (copy, expression_context_block,
VAR_DOMAIN);
/* Now search all static file-level symbols. Not strictly correct,
but more useful than an error. */
- return lookup_static_symbol_aux (name, domain);
+ return lookup_static_symbol (name, domain);
}
/* See symtab.h. */
struct symbol *
-lookup_static_symbol_aux (const char *name, const domain_enum domain)
+lookup_static_symbol (const char *name, const domain_enum domain)
{
struct objfile *objfile;
struct symbol *sym;
than that one, so I don't think we should worry about that for
now. */
- sym = lookup_symbol_static (name, block, domain);
+ sym = lookup_symbol_in_static_block (name, block, domain);
if (sym != NULL)
return sym;
/* See symtab.h. */
struct symbol *
-lookup_symbol_static (const char *name,
- const struct block *block,
- const domain_enum domain)
+lookup_symbol_in_static_block (const char *name,
+ const struct block *block,
+ const domain_enum domain)
{
const struct block *static_block = block_static_block (block);
Upon success sets BLOCK_FOUND and fixes up the symbol's section
if necessary. */
-extern struct symbol *lookup_symbol_static (const char *name,
- const struct block *block,
- const domain_enum domain);
+extern struct symbol *lookup_symbol_in_static_block (const char *name,
+ const struct block *block,
+ const domain_enum domain);
/* Lookup a symbol in all files' global blocks.
Upon success sets BLOCK_FOUND and fixes up the symbol's section
Upon success sets BLOCK_FOUND and fixes up the symbol's section
if necessary. */
-extern struct symbol *lookup_static_symbol_aux (const char *name,
- const domain_enum domain);
+extern struct symbol *lookup_static_symbol (const char *name,
+ const domain_enum domain);
/* Lookup a [struct, union, enum] by name, within a specified block. */
+ strlen (name) + 1);
sprintf (concatenated_name, "%s::%s", namespace_name, name);
- sym = lookup_static_symbol_aux (concatenated_name, VAR_DOMAIN);
+ sym = lookup_static_symbol (concatenated_name, VAR_DOMAIN);
}
if (sym == NULL)