GDB (API)
Classes | Defines | Functions
/home/stan/gdb/src/gdb/block.h File Reference
#include "dictionary.h"

Go to the source code of this file.

Classes

struct  block
struct  global_block
struct  blockvector
struct  block_iterator

Defines

#define BLOCK_START(bl)   (bl)->startaddr
#define BLOCK_END(bl)   (bl)->endaddr
#define BLOCK_FUNCTION(bl)   (bl)->function
#define BLOCK_SUPERBLOCK(bl)   (bl)->superblock
#define BLOCK_DICT(bl)   (bl)->dict
#define BLOCK_NAMESPACE(bl)   (bl)->language_specific.cplus_specific.namespace
#define BLOCKVECTOR_NBLOCKS(blocklist)   (blocklist)->nblocks
#define BLOCKVECTOR_BLOCK(blocklist, n)   (blocklist)->block[n]
#define BLOCKVECTOR_MAP(blocklist)   ((blocklist)->map)
#define ALL_BLOCK_SYMBOLS(block, iter, sym)

Functions

struct symbolblock_linkage_function (const struct block *)
struct symbolblock_containing_function (const struct block *)
int block_inlined_p (const struct block *block)
int contained_in (const struct block *, const struct block *)
struct blockvectorblockvector_for_pc (CORE_ADDR, struct block **)
struct blockvectorblockvector_for_pc_sect (CORE_ADDR, struct obj_section *, struct block **, struct symtab *)
int blockvector_contains_pc (struct blockvector *bv, CORE_ADDR pc)
struct call_sitecall_site_for_pc (struct gdbarch *gdbarch, CORE_ADDR pc)
struct blockblock_for_pc (CORE_ADDR)
struct blockblock_for_pc_sect (CORE_ADDR, struct obj_section *)
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, struct obstack *obstack)
struct blockblock_static_block (const struct block *block)
struct blockblock_global_block (const struct block *block)
struct blockallocate_block (struct obstack *obstack)
struct blockallocate_global_block (struct obstack *obstack)
void set_block_symtab (struct block *, struct symtab *)
struct symbolblock_iterator_first (const struct block *block, struct block_iterator *iterator)
struct symbolblock_iterator_next (struct block_iterator *iterator)
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)
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)

Define Documentation

#define ALL_BLOCK_SYMBOLS (   block,
  iter,
  sym 
)
Value:
for ((sym) = block_iterator_first ((block), &(iter));   \
       (sym);                                           \
       (sym) = block_iterator_next (&(iter)))

Definition at line 277 of file block.h.

#define BLOCK_DICT (   bl)    (bl)->dict

Definition at line 121 of file block.h.

#define BLOCK_END (   bl)    (bl)->endaddr

Definition at line 118 of file block.h.

#define BLOCK_FUNCTION (   bl)    (bl)->function

Definition at line 119 of file block.h.

#define BLOCK_NAMESPACE (   bl)    (bl)->language_specific.cplus_specific.namespace

Definition at line 122 of file block.h.

#define BLOCK_START (   bl)    (bl)->startaddr

Definition at line 117 of file block.h.

#define BLOCK_SUPERBLOCK (   bl)    (bl)->superblock

Definition at line 120 of file block.h.

#define BLOCKVECTOR_BLOCK (   blocklist,
 
)    (blocklist)->block[n]

Definition at line 137 of file block.h.

#define BLOCKVECTOR_MAP (   blocklist)    ((blocklist)->map)

Definition at line 138 of file block.h.

#define BLOCKVECTOR_NBLOCKS (   blocklist)    (blocklist)->nblocks

Definition at line 136 of file block.h.


Function Documentation

struct block* allocate_block ( struct obstack *  obstack) [read]

Definition at line 375 of file block.c.

struct block* allocate_global_block ( struct obstack *  obstack) [read]

Definition at line 392 of file block.c.

struct symbol* block_containing_function ( const struct block ) [read]

Definition at line 90 of file block.c.

struct block* block_for_pc ( CORE_ADDR  ) [read]

Definition at line 256 of file block.c.

struct block* block_for_pc_sect ( CORE_ADDR  ,
struct obj_section  
) [read]

Definition at line 241 of file block.c.

struct block* block_global_block ( const struct block block) [read]

Definition at line 354 of file block.c.

int block_inlined_p ( const struct block block)

Definition at line 101 of file block.c.

struct symbol* block_iter_match_first ( const struct block block,
const char *  name,
symbol_compare_ftype compare,
struct block_iterator iterator 
) [read]

Definition at line 670 of file block.c.

struct symbol* block_iter_match_next ( const char *  name,
symbol_compare_ftype compare,
struct block_iterator iterator 
) [read]

Definition at line 687 of file block.c.

struct symbol* block_iter_name_first ( const struct block block,
const char *  name,
struct block_iterator iterator 
) [read]

Definition at line 601 of file block.c.

struct symbol* block_iter_name_next ( const char *  name,
struct block_iterator iterator 
) [read]

Definition at line 616 of file block.c.

struct symbol* block_iterator_first ( const struct block block,
struct block_iterator iterator 
) [read]

Definition at line 535 of file block.c.

struct symbol* block_iterator_next ( struct block_iterator iterator) [read]

Definition at line 549 of file block.c.

struct symbol* block_linkage_function ( const struct block ) [read]

Definition at line 75 of file block.c.

const char* block_scope ( const struct block block)

Definition at line 269 of file block.c.

void block_set_scope ( struct block block,
const char *  scope,
struct obstack *  obstack 
)

Definition at line 286 of file block.c.

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

Definition at line 311 of file block.c.

struct block* block_static_block ( const struct block block) [read]

Definition at line 339 of file block.c.

struct using_direct* block_using ( const struct block block) [read]

Definition at line 298 of file block.c.

int blockvector_contains_pc ( struct blockvector bv,
CORE_ADDR  pc 
)

Definition at line 188 of file block.c.

struct blockvector* blockvector_for_pc ( CORE_ADDR  ,
struct block **   
) [read]

Definition at line 231 of file block.c.

struct blockvector* blockvector_for_pc_sect ( CORE_ADDR  ,
struct obj_section ,
struct block **  ,
struct symtab  
) [read]

Definition at line 159 of file block.c.

struct call_site* call_site_for_pc ( struct gdbarch *  gdbarch,
CORE_ADDR  pc 
) [read]

Definition at line 198 of file block.c.

int contained_in ( const struct block ,
const struct block  
)

Definition at line 48 of file block.c.

void set_block_symtab ( struct block ,
struct symtab  
)

Definition at line 402 of file block.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines