40 unsigned int index = 0;
44 if (
name[index] ==
'.' ||
name[index] ==
'\0')
58 unsigned int previous_len = 0;
60 while (
name[current_len] !=
'\0')
63 previous_len = current_len;
84 if (sym.symbol != NULL)
100 if (sym.symbol != NULL)
106 if (sym.symbol != NULL)
112 unsigned int prefix_len;
129 if (lang_this.symbol == NULL)
149 if (class_sym.
symbol == NULL)
154 nested.c_str (),
block);
169 char *concatenated_name = NULL;
171 if (module[0] !=
'\0')
174 = (
char *) alloca (strlen (module) + strlen (
name) + 2);
175 strcpy (concatenated_name, module);
176 strcat (concatenated_name,
".");
177 strcat (concatenated_name,
name);
178 name = concatenated_name;
204 if (scope[scope_len] !=
'\0')
209 int new_scope_len = scope_len;
212 if (new_scope_len != 0)
219 scope, new_scope_len);
232 if (scope_len == 0 && strchr (
name,
'.') == NULL)
235 module = (
char *) alloca (scope_len + 1);
236 strncpy (module, scope, scope_len);
237 module[scope_len] =
'\0';
260 if (base_name == NULL)
304 const char *nested_name,
309 struct type *saved_parent_type = parent_type;
325 char *concatenated_name;
335 size = strlen (parent_name) + strlen (nested_name) + 2;
336 concatenated_name = (
char *) alloca (
size);
339 parent_name, nested_name);
373 if (sym.symbol != NULL)
382 current = current->
next)
384 const char **excludep;
410 if (sym.symbol != NULL)
417 for (excludep = current->
excludes; *excludep; excludep++)
418 if (strcmp (
name, *excludep) == 0)
424 if (current->
alias != NULL)
442 if (
name[name_scope] !=
'\0' 443 && strncmp (
name, current->
alias, name_scope) == 0)
462 if (sym.symbol != NULL)
484 if (sym.symbol != NULL)
489 while (
block != NULL)
493 if (sym.symbol != NULL)
struct gdbarch * target_gdbarch(void)
struct symbol * language_lookup_primitive_type_as_symbol(const struct language_defn *la, struct gdbarch *gdbarch, const char *name)
static unsigned int d_entire_prefix_len(const char *name)
static unsigned int d_find_first_component(const char *name)
static struct block_symbol d_lookup_symbol_module(const char *scope, const char *name, const struct block *block, const domain_enum domain)
#define TYPE_N_BASECLASSES(thistype)
const char * type_name_no_tag_or_error(struct type *type)
#define TYPE_NAME(thistype)
enum domain_enum_tag domain_enum
const struct language_defn * language_def(enum language lang)
const struct block_symbol null_block_symbol
struct block_symbol d_lookup_symbol_nonlocal(const struct language_defn *langdef, const char *name, const struct block *block, const domain_enum domain)
scoped_restore_tmpl< T > make_scoped_restore(T *var)
struct type * check_typedef(struct type *type)
const struct block * block
static struct block_symbol d_lookup_symbol_imports(const char *scope, const char *name, const struct block *block, const domain_enum domain)
#define gdb_assert_not_reached(message)
struct using_direct * block_using(const struct block *block)
#define BLOCK_SUPERBLOCK(bl)
#define TYPE_BASECLASS(thistype, index)
struct block_symbol lookup_global_symbol(const char *name, const struct block *block, const domain_enum domain)
static struct block_symbol find_symbol_in_baseclass(struct type *parent_type, const char *name, const struct block *block)
struct using_direct * next
#define TYPE_TARGET_TYPE(thistype)
int xsnprintf(char *str, size_t size, const char *format,...)
#define TYPE_CODE(thistype)
#define TYPE_BASECLASS_NAME(thistype, index)
static struct block_symbol d_lookup_symbol_in_module(const char *module, const char *name, const struct block *block, const domain_enum domain, int search)
struct gdbarch * block_gdbarch(const struct block *block)
struct block_symbol lookup_static_symbol(const char *name, const domain_enum domain)
struct block_symbol lookup_language_this(const struct language_defn *lang, const struct block *block)
#define SYMBOL_TYPE(symbol)
struct block_symbol lookup_symbol_in_static_block(const char *name, const struct block *block, const domain_enum domain)
static struct block_symbol lookup_module_scope(const struct language_defn *langdef, const char *name, const struct block *block, const domain_enum domain, const char *scope, int scope_len)
static struct block_symbol d_lookup_symbol(const struct language_defn *langdef, const char *name, const struct block *block, const domain_enum domain, int search)
const char * block_scope(const struct block *block)
struct block_symbol d_lookup_nested_symbol(struct type *parent_type, const char *nested_name, const struct block *block)