GDB (xrefs)
Classes | Functions
/tmp/gdb-7.10/gdb/block.c File Reference
#include "defs.h"
#include "block.h"
#include "symtab.h"
#include "symfile.h"
#include "gdb_obstack.h"
#include "cp-support.h"
#include "addrmap.h"
#include "gdbtypes.h"
#include "objfiles.h"

Go to the source code of this file.

Classes

struct  block_namespace_info
 

Functions

static void block_initialize_namespace (struct block *block, struct obstack *obstack)
 
struct objfileblock_objfile (const struct block *block)
 
struct gdbarchblock_gdbarch (const struct block *block)
 
int contained_in (const struct block *a, const struct block *b)
 
struct symbolblock_linkage_function (const struct block *bl)
 
struct symbolblock_containing_function (const struct block *bl)
 
int block_inlined_p (const struct block *bl)
 
static struct blockfind_block_in_blockvector (const struct blockvector *bl, CORE_ADDR pc)
 
const struct blockvectorblockvector_for_pc_sect (CORE_ADDR pc, struct obj_section *section, const struct block **pblock, struct compunit_symtab *cust)
 
int blockvector_contains_pc (const struct blockvector *bv, CORE_ADDR pc)
 
struct call_sitecall_site_for_pc (struct gdbarch *gdbarch, CORE_ADDR pc)
 
const struct blockvectorblockvector_for_pc (CORE_ADDR pc, const struct block **pblock)
 
const struct blockblock_for_pc_sect (CORE_ADDR pc, struct obj_section *section)
 
const struct blockblock_for_pc (CORE_ADDR pc)
 
const char * block_scope (const struct block *block)
 
void block_set_scope (struct block *block, const char *scope, struct obstack *obstack)
 
struct using_directblock_using (const struct block *block)
 
void block_set_using (struct block *block, struct using_direct *using_decl, struct obstack *obstack)
 
const struct blockblock_static_block (const struct block *block)
 
const struct blockblock_global_block (const struct block *block)
 
struct blockallocate_block (struct obstack *obstack)
 
struct blockallocate_global_block (struct obstack *obstack)
 
void set_block_compunit_symtab (struct block *block, struct compunit_symtab *cu)
 
static struct compunit_symtabget_block_compunit_symtab (const struct block *block)
 
static void initialize_block_iterator (const struct block *block, struct block_iterator *iter)
 
static struct compunit_symtabfind_iterator_compunit_symtab (struct block_iterator *iterator)
 
static struct symbolblock_iterator_step (struct block_iterator *iterator, int first)
 
struct symbolblock_iterator_first (const struct block *block, struct block_iterator *iterator)
 
struct symbolblock_iterator_next (struct block_iterator *iterator)
 
static struct symbolblock_iter_name_step (struct block_iterator *iterator, const char *name, int first)
 
struct symbolblock_iter_name_first (const struct block *block, const char *name, struct block_iterator *iterator)
 
struct symbolblock_iter_name_next (const char *name, struct block_iterator *iterator)
 
static struct symbolblock_iter_match_step (struct block_iterator *iterator, const char *name, symbol_compare_ftype *compare, int first)
 
struct symbolblock_iter_match_first (const struct block *block, const char *name, symbol_compare_ftype *compare, struct block_iterator *iterator)
 
struct symbolblock_iter_match_next (const char *name, symbol_compare_ftype *compare, struct block_iterator *iterator)
 
struct symbolblock_lookup_symbol (const struct block *block, const char *name, const domain_enum domain)
 
struct symbolblock_lookup_symbol_primary (const struct block *block, const char *name, const domain_enum domain)
 
struct symbolblock_find_symbol (const struct block *block, const char *name, const domain_enum domain, block_symbol_matcher_ftype *matcher, void *data)
 
int block_find_non_opaque_type (struct symbol *sym, void *data)
 
int block_find_non_opaque_type_preferred (struct symbol *sym, void *data)
 

Function Documentation

struct block* allocate_block ( struct obstack *  obstack)

Definition at line 401 of file block.c.

References OBSTACK_ZALLOC.

Referenced by finalize_symtab(), finish_block_internal(), and get_java_class_symtab().

struct block* allocate_global_block ( struct obstack *  obstack)

Definition at line 411 of file block.c.

References global_block::block, and OBSTACK_ZALLOC.

Referenced by finalize_symtab(), finish_block_internal(), and get_java_class_symtab().

struct symbol* block_containing_function ( const struct block bl)

Definition at line 115 of file block.c.

References BLOCK_FUNCTION, and BLOCK_SUPERBLOCK.

Referenced by create_sals_line_offset().

int block_find_non_opaque_type ( struct symbol sym,
void *  data 
)

Definition at line 849 of file block.c.

References SYMBOL_TYPE, and TYPE_IS_OPAQUE.

Referenced by basic_lookup_transparent_type_1(), and basic_lookup_transparent_type_quick().

int block_find_non_opaque_type_preferred ( struct symbol sym,
void *  data 
)

Definition at line 857 of file block.c.

References SYMBOL_TYPE, and TYPE_IS_OPAQUE.

Referenced by dw2_lookup_symbol(), and psym_lookup_symbol().

struct symbol* block_find_symbol ( const struct block block,
const char *  name,
const domain_enum  domain,
block_symbol_matcher_ftype matcher,
void *  data 
)
const struct block* block_for_pc ( CORE_ADDR  pc)
const struct block* block_for_pc_sect ( CORE_ADDR  pc,
struct obj_section section 
)
struct gdbarch* block_gdbarch ( const struct block block)
const struct block* block_global_block ( const struct block block)
static void block_initialize_namespace ( struct block block,
struct obstack *  obstack 
)
static

Definition at line 350 of file block.c.

References BLOCK_NAMESPACE.

Referenced by block_set_scope(), and block_set_using().

int block_inlined_p ( const struct block bl)
struct symbol* block_iter_match_first ( const struct block block,
const char *  name,
symbol_compare_ftype compare,
struct block_iterator iterator 
)
struct symbol* block_iter_match_next ( const char *  name,
symbol_compare_ftype compare,
struct block_iterator iterator 
)
static struct symbol* block_iter_match_step ( struct block_iterator iterator,
const char *  name,
symbol_compare_ftype compare,
int  first 
)
static
struct symbol* block_iter_name_first ( const struct block block,
const char *  name,
struct block_iterator iterator 
)
struct symbol* block_iter_name_next ( const char *  name,
struct block_iterator iterator 
)
static struct symbol* block_iter_name_step ( struct block_iterator iterator,
const char *  name,
int  first 
)
static
struct symbol* block_iterator_first ( const struct block block,
struct block_iterator iterator 
)
struct symbol* block_iterator_next ( struct block_iterator iterator)
static struct symbol* block_iterator_step ( struct block_iterator iterator,
int  first 
)
static
struct symbol* block_linkage_function ( const struct block bl)
struct symbol* block_lookup_symbol ( const struct block block,
const char *  name,
const domain_enum  domain 
)
struct symbol* block_lookup_symbol_primary ( const struct block block,
const char *  name,
const domain_enum  domain 
)
struct objfile* block_objfile ( const struct block block)
const char* block_scope ( const struct block block)
void block_set_scope ( struct block block,
const char *  scope,
struct obstack *  obstack 
)

Definition at line 312 of file block.c.

References block_initialize_namespace(), and BLOCK_NAMESPACE.

Referenced by cp_set_block_scope(), and read_func_scope().

void block_set_using ( struct block block,
struct using_direct using_decl,
struct obstack *  obstack 
)

Definition at line 337 of file block.c.

References block_initialize_namespace(), and BLOCK_NAMESPACE.

Referenced by finish_block_internal().

const struct block* block_static_block ( const struct block block)
struct using_direct* block_using ( const struct block block)

Definition at line 324 of file block.c.

References BLOCK_NAMESPACE.

Referenced by cp_lookup_symbol_via_imports(), and make_symbol_overload_list_using().

int blockvector_contains_pc ( const struct blockvector bv,
CORE_ADDR  pc 
)

Definition at line 214 of file block.c.

References find_block_in_blockvector().

Referenced by recursively_find_pc_sect_compunit_symtab().

const struct blockvector* blockvector_for_pc ( CORE_ADDR  pc,
const struct block **  pblock 
)

Definition at line 257 of file block.c.

References blockvector_for_pc_sect(), and find_pc_mapped_section().

Referenced by block_starting_point_at().

const struct blockvector* blockvector_for_pc_sect ( CORE_ADDR  pc,
struct obj_section section,
const struct block **  pblock,
struct compunit_symtab cust 
)
struct call_site* call_site_for_pc ( struct gdbarch gdbarch,
CORE_ADDR  pc 
)
int contained_in ( const struct block a,
const struct block b 
)
static struct block* find_block_in_blockvector ( const struct blockvector bl,
CORE_ADDR  pc 
)
static
static struct compunit_symtab* find_iterator_compunit_symtab ( struct block_iterator iterator)
static
static struct compunit_symtab* get_block_compunit_symtab ( const struct block block)
static

Definition at line 434 of file block.c.

References BLOCK_SUPERBLOCK, global_block::compunit_symtab, and gdb_assert.

Referenced by initialize_block_iterator().

static void initialize_block_iterator ( const struct block block,
struct block_iterator iter 
)
static
void set_block_compunit_symtab ( struct block block,
struct compunit_symtab cu 
)