GDB (xrefs)
Loading...
Searching...
No Matches
Functions
/tmp/gdb-13.1/gdb/cp-namespace.c File Reference
#include "defs.h"
#include "cp-support.h"
#include "gdbsupport/gdb_obstack.h"
#include "symtab.h"
#include "symfile.h"
#include "block.h"
#include "objfiles.h"
#include "gdbtypes.h"
#include "dictionary.h"
#include "command.h"
#include "frame.h"
#include "buildsym.h"
#include "language.h"
#include "namespace.h"
#include <string>

Go to the source code of this file.

Functions

static struct block_symbol cp_lookup_nested_symbol_1 (struct type *container_type, const char *nested_name, const char *concatenated_name, const struct block *block, const domain_enum domain, int basic_lookup, int is_in_anonymous)
 
static struct typecp_lookup_transparent_type_loop (const char *name, const char *scope, int scope_len)
 
void cp_scan_for_anonymous_namespaces (struct buildsym_compunit *compunit, const struct symbol *const symbol, struct objfile *const objfile)
 
int cp_is_in_anonymous (const char *symbol_name)
 
static struct block_symbol cp_basic_lookup_symbol (const char *name, const struct block *block, const domain_enum domain, int is_in_anonymous)
 
static struct block_symbol cp_lookup_bare_symbol (const struct language_defn *langdef, const char *name, const struct block *block, const domain_enum domain, int search)
 
static struct block_symbol cp_search_static_and_baseclasses (const char *name, const struct block *block, const domain_enum domain, unsigned int prefix_len, int is_in_anonymous)
 
static struct block_symbol cp_lookup_symbol_in_namespace (const char *the_namespace, const char *name, const struct block *block, const domain_enum domain, int search)
 
static struct block_symbol cp_lookup_symbol_via_imports (const char *scope, const char *name, const struct block *block, const domain_enum domain, const int search_scope_first, const int declaration_only, const int search_parents)
 
static struct symbolsearch_symbol_list (const char *name, int num, struct symbol **syms)
 
struct block_symbol cp_lookup_symbol_imports_or_template (const char *scope, const char *name, const struct block *block, const domain_enum domain)
 
static struct block_symbol cp_lookup_symbol_via_all_imports (const char *scope, const char *name, const struct block *block, const domain_enum domain)
 
struct block_symbol cp_lookup_symbol_namespace (const char *scope, const char *name, const struct block *block, const domain_enum domain)
 
static struct block_symbol lookup_namespace_scope (const struct language_defn *langdef, const char *name, const struct block *block, const domain_enum domain, const char *scope, int scope_len)
 
struct block_symbol cp_lookup_symbol_nonlocal (const struct language_defn *langdef, const char *name, const struct block *block, const domain_enum domain)
 
struct typecp_find_type_baseclass_by_name (struct type *parent_type, const char *name)
 
static struct block_symbol find_symbol_in_baseclass (struct type *parent_type, const char *name, const struct block *block, const domain_enum domain, int is_in_anonymous)
 
struct block_symbol cp_lookup_nested_symbol (struct type *parent_type, const char *nested_name, const struct block *block, const domain_enum domain)
 
struct typecp_lookup_transparent_type (const char *name)
 
static void maintenance_cplus_namespace (const char *args, int from_tty)
 
void _initialize_cp_namespace ()
 

Function Documentation

◆ _initialize_cp_namespace()

void _initialize_cp_namespace ( )

Definition at line 1023 of file cp-namespace.c.

Referenced by initialize_all_files().

◆ cp_basic_lookup_symbol()

static struct block_symbol cp_basic_lookup_symbol ( const char *  name,
const struct block block,
const domain_enum  domain,
int  is_in_anonymous 
)
static

◆ cp_find_type_baseclass_by_name()

struct type * cp_find_type_baseclass_by_name ( struct type parent_type,
const char *  name 
)

◆ cp_is_in_anonymous()

int cp_is_in_anonymous ( const char *  symbol_name)

◆ cp_lookup_bare_symbol()

static struct block_symbol cp_lookup_bare_symbol ( const struct language_defn langdef,
const char *  name,
const struct block block,
const domain_enum  domain,
int  search 
)
static

◆ cp_lookup_nested_symbol()

struct block_symbol cp_lookup_nested_symbol ( struct type parent_type,
const char *  nested_name,
const struct block block,
const domain_enum  domain 
)

◆ cp_lookup_nested_symbol_1()

static struct block_symbol cp_lookup_nested_symbol_1 ( struct type container_type,
const char *  nested_name,
const char *  concatenated_name,
const struct block block,
const domain_enum  domain,
int  basic_lookup,
int  is_in_anonymous 
)
static

◆ cp_lookup_symbol_imports_or_template()

struct block_symbol cp_lookup_symbol_imports_or_template ( const char *  scope,
const char *  name,
const struct block block,
const domain_enum  domain 
)

◆ cp_lookup_symbol_in_namespace()

static struct block_symbol cp_lookup_symbol_in_namespace ( const char *  the_namespace,
const char *  name,
const struct block block,
const domain_enum  domain,
int  search 
)
static

◆ cp_lookup_symbol_namespace()

struct block_symbol cp_lookup_symbol_namespace ( const char *  scope,
const char *  name,
const struct block block,
const domain_enum  domain 
)

◆ cp_lookup_symbol_nonlocal()

struct block_symbol cp_lookup_symbol_nonlocal ( const struct language_defn langdef,
const char *  name,
const struct block block,
const domain_enum  domain 
)

◆ cp_lookup_symbol_via_all_imports()

static struct block_symbol cp_lookup_symbol_via_all_imports ( const char *  scope,
const char *  name,
const struct block block,
const domain_enum  domain 
)
static

◆ cp_lookup_symbol_via_imports()

static struct block_symbol cp_lookup_symbol_via_imports ( const char *  scope,
const char *  name,
const struct block block,
const domain_enum  domain,
const int  search_scope_first,
const int  declaration_only,
const int  search_parents 
)
static

◆ cp_lookup_transparent_type()

struct type * cp_lookup_transparent_type ( const char *  name)

◆ cp_lookup_transparent_type_loop()

static struct type * cp_lookup_transparent_type_loop ( const char *  name,
const char *  scope,
int  scope_len 
)
static

◆ cp_scan_for_anonymous_namespaces()

void cp_scan_for_anonymous_namespaces ( struct buildsym_compunit compunit,
const struct symbol *const  symbol,
struct objfile *const  objfile 
)

◆ cp_search_static_and_baseclasses()

static struct block_symbol cp_search_static_and_baseclasses ( const char *  name,
const struct block block,
const domain_enum  domain,
unsigned int  prefix_len,
int  is_in_anonymous 
)
static

◆ find_symbol_in_baseclass()

static struct block_symbol find_symbol_in_baseclass ( struct type parent_type,
const char *  name,
const struct block block,
const domain_enum  domain,
int  is_in_anonymous 
)
static

◆ lookup_namespace_scope()

static struct block_symbol lookup_namespace_scope ( const struct language_defn langdef,
const char *  name,
const struct block block,
const domain_enum  domain,
const char *  scope,
int  scope_len 
)
static

◆ maintenance_cplus_namespace()

static void maintenance_cplus_namespace ( const char *  args,
int  from_tty 
)
static

Definition at line 1016 of file cp-namespace.c.

References gdb_printf().

◆ search_symbol_list()

static struct symbol * search_symbol_list ( const char *  name,
int  num,
struct symbol **  syms 
)
static

Definition at line 483 of file cp-namespace.c.

References name, and general_symbol_info::natural_name().

Referenced by cp_lookup_symbol_imports_or_template().