GDB (xrefs)
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/buildsym.h File Reference

Go to the source code of this file.

Classes

struct  subfile
struct  pending
struct  context_stack

Defines

#define HASHSIZE
#define PENDINGSIZE   100
#define outermost_context_p()   (context_stack_depth == 0)
#define next_symbol_text(objfile)   (*next_symbol_text_func)(objfile)

Functions

void add_symbol_to_list (struct symbol *symbol, struct pending **listhead)
struct symbolfind_symbol_in_list (struct pending *list, char *name, int length)
struct blockfinish_block (struct symbol *symbol, struct pending **listhead, struct pending_block *old_blocks, CORE_ADDR start, CORE_ADDR end, struct objfile *objfile)
void record_block_range (struct block *, CORE_ADDR start, CORE_ADDR end_inclusive)
void really_free_pendings (void *dummy)
void start_subfile (const char *name, const char *dirname)
void patch_subfile_names (struct subfile *subfile, char *name)
void push_subfile (void)
char * pop_subfile (void)
struct blockend_symtab_get_static_block (CORE_ADDR end_addr, struct objfile *objfile, int expandable, int required)
struct symtabend_symtab_from_static_block (struct block *static_block, struct objfile *objfile, int section, int expandable)
struct symtabend_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
struct symtabend_expandable_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
void augment_type_symtab (struct objfile *objfile, struct symtab *primary_symtab)
void scan_file_globals (struct objfile *objfile)
void buildsym_new_init (void)
void buildsym_init (void)
struct context_stackpush_context (int desc, CORE_ADDR valu)
struct context_stackpop_context (void)
void record_line (struct subfile *subfile, int line, CORE_ADDR pc)
void start_symtab (const char *name, const char *dirname, CORE_ADDR start_addr)
void restart_symtab (CORE_ADDR start_addr)
int hashname (const char *name)
void free_pending_blocks (void)
void record_debugformat (const char *format)
void record_producer (const char *producer)
void merge_symbol_lists (struct pending **srclist, struct pending **targetlist)
void set_last_source_file (const char *name)
const char * get_last_source_file (void)
struct macro_tableget_macro_table (struct objfile *objfile, const char *comp_dir)

Variables

EXTERN CORE_ADDR last_source_start_addr
EXTERN struct subfilecurrent_subfile
EXTERN unsigned char processing_gcc_compilation
EXTERN unsigned char processing_acc_compilation
EXTERN unsigned int symnum
EXTERN struct pendingfile_symbols
EXTERN struct pendingglobal_symbols
EXTERN struct pendinglocal_symbols
EXTERN struct using_directusing_directives
EXTERN struct context_stackcontext_stack
EXTERN int context_stack_depth
EXTERN int context_stack_size
EXTERN int within_function
EXTERN char *(* next_symbol_text_func )(struct objfile *)

Define Documentation

#define HASHSIZE
Value:
127             /* Size of things hashed via
                                   hashname().  */

Definition at line 45 of file buildsym.h.

Referenced by hashname(), and scan_file_globals().

Definition at line 175 of file buildsym.h.

Referenced by error_type(), parse_partial_symbols(), read_dbx_symtab(), and scan_xcoff_symtab().

#define outermost_context_p ( )    (context_stack_depth == 0)

Definition at line 166 of file buildsym.h.

Referenced by read_func_scope().

#define PENDINGSIZE   100

Definition at line 93 of file buildsym.h.

Referenced by add_symbol_to_list().


Function Documentation

void add_symbol_to_list ( struct symbol symbol,
struct pending **  listhead 
)
void augment_type_symtab ( struct objfile objfile,
struct symtab primary_symtab 
)
void buildsym_init ( void  )
void buildsym_new_init ( void  )
struct symtab* end_expandable_symtab ( CORE_ADDR  end_addr,
struct objfile objfile,
int  section 
) [read]

Definition at line 1359 of file buildsym.c.

References end_symtab_from_static_block(), and end_symtab_get_static_block().

Referenced by process_full_type_unit().

struct symtab* end_symtab ( CORE_ADDR  end_addr,
struct objfile objfile,
int  section 
) [read]
struct symtab* end_symtab_from_static_block ( struct block static_block,
struct objfile objfile,
int  section,
int  expandable 
) [read]
struct block* end_symtab_get_static_block ( CORE_ADDR  end_addr,
struct objfile objfile,
int  expandable,
int  required 
) [read]
struct symbol* find_symbol_in_list ( struct pending list,
char *  name,
int  length 
) [read]

Definition at line 171 of file buildsym.c.

References pending::next, pending::nsyms, pending::symbol, and SYMBOL_LINKAGE_NAME.

Referenced by patch_block_stabs().

struct block* finish_block ( struct symbol symbol,
struct pending **  listhead,
struct pending_block old_blocks,
CORE_ADDR  start,
CORE_ADDR  end,
struct objfile objfile 
) [read]
void free_pending_blocks ( void  )
const char* get_last_source_file ( void  )
struct macro_table* get_macro_table ( struct objfile objfile,
const char *  comp_dir 
) [read]
int hashname ( const char *  name)
void merge_symbol_lists ( struct pending **  srclist,
struct pending **  targetlist 
)

Definition at line 1508 of file buildsym.c.

References add_symbol_to_list(), free_pendings, and merge_symbol_lists().

Referenced by merge_symbol_lists().

void patch_subfile_names ( struct subfile subfile,
char *  name 
)
struct context_stack* pop_context ( void  ) [read]
char* pop_subfile ( void  )
struct context_stack* push_context ( int  desc,
CORE_ADDR  valu 
) [read]
void push_subfile ( void  )
void really_free_pendings ( void *  dummy)
void record_block_range ( struct block ,
CORE_ADDR  start,
CORE_ADDR  end_inclusive 
)
void record_debugformat ( const char *  format)
void record_line ( struct subfile subfile,
int  line,
CORE_ADDR  pc 
)
void record_producer ( const char *  producer)

Definition at line 1494 of file buildsym.c.

References current_subfile, and subfile::producer.

Referenced by dwarf2_start_symtab().

void restart_symtab ( CORE_ADDR  start_addr)
void scan_file_globals ( struct objfile objfile)
void set_last_source_file ( const char *  name)
void start_subfile ( const char *  name,
const char *  dirname 
)
void start_symtab ( const char *  name,
const char *  dirname,
CORE_ADDR  start_addr 
)

Variable Documentation

Definition at line 155 of file buildsym.h.

Referenced by push_context().

Definition at line 163 of file buildsym.h.

Referenced by push_context(), and restart_symtab().

EXTERN char*(* next_symbol_text_func)(struct objfile *)
EXTERN unsigned int symnum
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines