GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
stabsread.h File Reference

Go to the source code of this file.

Classes

struct  pending_stabs
 
struct  header_file
 

Macros

#define HASHSIZE
 
#define next_symbol_text(objfile)   (*next_symbol_text_func)(objfile)
 
#define HEADER_FILES(OBJFILE)   (DBX_SYMFILE_INFO (OBJFILE)->header_files)
 
#define N_HEADER_FILES(OBJFILE)   (DBX_SYMFILE_INFO (OBJFILE)->n_header_files)
 
#define N_ALLOCATED_HEADER_FILES(OBJFILE)    (DBX_SYMFILE_INFO (OBJFILE)->n_allocated_header_files)
 

Functions

int hashname (const char *name)
 
void common_block_start (const char *, struct objfile *)
 
void common_block_end (struct objfile *)
 
void cleanup_undefined_stabs_types (struct objfile *)
 
long read_number (char **, int)
 
struct symboldefine_symbol (CORE_ADDR, const char *, int, int, struct objfile *)
 
void stabsread_init (void)
 
void stabsread_new_init (void)
 
void start_stabs (void)
 
void end_stabs (void)
 
void finish_global_stabs (struct objfile *objfile)
 
legacy_psymtabdbx_end_psymtab (struct objfile *objfile, psymtab_storage *partial_symtabs, legacy_psymtab *pst, const char **include_list, int num_includes, int capping_symbol_offset, CORE_ADDR capping_text, legacy_psymtab **dependency_list, int number_dependencies, int textlow_not_set)
 
void process_one_symbol (int, int, CORE_ADDR, const char *, const section_offsets &, struct objfile *, enum language)
 
void elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect, file_ptr stabstroffset, unsigned int stabstrsize)
 
void coffstab_build_psymtabs (struct objfile *objfile, CORE_ADDR textaddr, unsigned int textsize, const std::vector< asection * > &stabs, file_ptr stabstroffset, unsigned int stabstrsize)
 
void stabsect_build_psymtabs (struct objfile *objfile, char *stab_name, char *stabstr_name, char *text_name)
 
int symbol_reference_defined (const char **)
 
void ref_add (int, struct symbol *, const char *, CORE_ADDR)
 
struct symbolref_search (int)
 
void free_header_files (void)
 
void init_header_files (void)
 
void scan_file_globals (struct objfile *objfile)
 

Variables

unsigned int symnum
 
const char *(* next_symbol_text_func )(struct objfile *)
 
unsigned char processing_gcc_compilation
 
int within_function
 
struct symbolglobal_sym_chain [HASHSIZE]
 
struct pending_stabsglobal_stabs
 
int previous_stab_code
 
int * this_object_header_files
 
int n_this_object_header_files
 
int n_allocated_this_object_header_files
 

Macro Definition Documentation

◆ HASHSIZE

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

Definition at line 29 of file stabsread.h.

◆ HEADER_FILES

#define HEADER_FILES (   OBJFILE)    (DBX_SYMFILE_INFO (OBJFILE)->header_files)

Definition at line 128 of file stabsread.h.

◆ N_ALLOCATED_HEADER_FILES

#define N_ALLOCATED_HEADER_FILES (   OBJFILE)     (DBX_SYMFILE_INFO (OBJFILE)->n_allocated_header_files)

Definition at line 134 of file stabsread.h.

◆ N_HEADER_FILES

#define N_HEADER_FILES (   OBJFILE)    (DBX_SYMFILE_INFO (OBJFILE)->n_header_files)

Definition at line 131 of file stabsread.h.

◆ next_symbol_text

#define next_symbol_text (   objfile)    (*next_symbol_text_func)(objfile)

Definition at line 39 of file stabsread.h.

Function Documentation

◆ cleanup_undefined_stabs_types()

void cleanup_undefined_stabs_types ( struct objfile objfile)

◆ coffstab_build_psymtabs()

void coffstab_build_psymtabs ( struct objfile objfile,
CORE_ADDR  textaddr,
unsigned int  textsize,
const std::vector< asection * > &  stabs,
file_ptr  stabstroffset,
unsigned int  stabstrsize 
)

◆ common_block_end()

void common_block_end ( struct objfile objfile)

◆ common_block_start()

void common_block_start ( const char *  name,
struct objfile objfile 
)

◆ dbx_end_psymtab()

legacy_psymtab * dbx_end_psymtab ( struct objfile objfile,
psymtab_storage partial_symtabs,
legacy_psymtab pst,
const char **  include_list,
int  num_includes,
int  capping_symbol_offset,
CORE_ADDR  capping_text,
legacy_psymtab **  dependency_list,
int  number_dependencies,
int  textlow_not_set 
)

◆ define_symbol()

struct symbol * define_symbol ( CORE_ADDR  valu,
const char *  string,
int  desc,
int  type,
struct objfile objfile 
)

Definition at line 649 of file stabsread.c.

References symbol::aclass(), add_symbol_to_list(), objfile::arch(), objfile_type::builtin_double, objfile_type::builtin_int, c_canonicalize_name(), type::code(), complaint, general_symbol_info::compute_and_set_names(), cp_canonicalize_string(), cp_scan_for_anonymous_namespaces(), create_array_type(), create_static_range_type(), current_symbol, error_type(), type::field(), find_name_end(), gdbarch_believe_pcc_promotion(), gdbarch_byte_order(), gdbarch_int_bit(), gdbarch_stabs_argument_has_addr(), get_buildsym_compunit(), get_current_subfile(), get_file_symbols(), get_global_symbols(), get_local_symbols(), global_sym_chain, hashname(), symbol::is_argument(), is_cplus_marker(), type::is_unsigned(), subfile::language, general_symbol_info::language(), language_ada, language_c, language_cplus, language_pascal, type::length(), general_symbol_info::linkage_name(), LOC_ARG, LOC_BLOCK, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, lookup_function_type(), lookup_pointer_type(), name, type::name(), pending::nsyms, objfile::objfile_obstack, objfile::per_bfd, processing_gcc_compilation, read_type(), symbol::set_aclass_index(), symbol::set_domain(), type::set_fields(), symbol::set_is_argument(), type::set_is_prototyped(), general_symbol_info::set_language(), symbol::set_line(), general_symbol_info::set_linkage_name(), field::set_name(), type::set_name(), type::set_num_fields(), field::set_type(), symbol::set_type(), symbol::set_value_address(), symbol::set_value_bytes(), symbol::set_value_chain(), symbol::set_value_longest(), stab_register_index, stab_regparm_index, STRUCT_DOMAIN, pending::symbol, target_float_from_string(), symbol::type(), TYPE_ALLOC, TYPE_BASECLASS, TYPE_BASECLASS_NAME, TYPE_FIELD_ARTIFICIAL, TYPE_N_BASECLASSES, symbol::value_longest(), VAR_DOMAIN, vtbl_ptr_name, and within_function.

Referenced by process_one_symbol(), process_xcoff_symbol(), and read_xcoff_symtab().

◆ elfstab_build_psymtabs()

void elfstab_build_psymtabs ( struct objfile objfile,
asection *  stabsect,
file_ptr  stabstroffset,
unsigned int  stabstrsize 
)

◆ end_stabs()

void end_stabs ( void  )

◆ finish_global_stabs()

void finish_global_stabs ( struct objfile objfile)

◆ free_header_files()

void free_header_files ( void  )

◆ hashname()

int hashname ( const char *  name)

◆ init_header_files()

void init_header_files ( void  )

◆ process_one_symbol()

void process_one_symbol ( int  ,
int  ,
CORE_ADDR  ,
const char *  ,
const section_offsets ,
struct objfile ,
enum  language 
)

◆ read_number()

long read_number ( char **  ,
int   
)

◆ ref_add()

void ref_add ( int  refnum,
struct symbol sym,
const char *  stabs,
CORE_ADDR  value 
)

◆ ref_search()

struct symbol * ref_search ( int  refnum)

Definition at line 564 of file stabsread.c.

References ref_count, and ref_map::sym.

Referenced by process_one_symbol().

◆ scan_file_globals()

void scan_file_globals ( struct objfile objfile)

◆ stabsect_build_psymtabs()

void stabsect_build_psymtabs ( struct objfile objfile,
char *  stab_name,
char *  stabstr_name,
char *  text_name 
)

◆ stabsread_init()

void stabsread_init ( void  )

Definition at line 4647 of file stabsread.c.

Referenced by dbx_expand_psymtab(), and xcoff_expand_psymtab().

◆ stabsread_new_init()

void stabsread_new_init ( void  )

◆ start_stabs()

void start_stabs ( void  )

◆ symbol_reference_defined()

int symbol_reference_defined ( const char **  string)

Definition at line 600 of file stabsread.c.

References process_reference().

Referenced by process_one_symbol().

Variable Documentation

◆ global_stabs

struct pending_stabs* global_stabs
extern

Definition at line 58 of file stabsread.c.

Referenced by finish_global_stabs(), process_xcoff_symbol(), and start_stabs().

◆ global_sym_chain

struct symbol* global_sym_chain[HASHSIZE]
extern

◆ n_allocated_this_object_header_files

int n_allocated_this_object_header_files
extern

Definition at line 62 of file stabsread.c.

Referenced by add_this_object_header_file(), free_header_files(), and init_header_files().

◆ n_this_object_header_files

int n_this_object_header_files
extern

Definition at line 61 of file stabsread.c.

Referenced by add_this_object_header_file(), dbx_lookup_type(), and start_stabs().

◆ next_symbol_text_func

const char *(* next_symbol_text_func) (struct objfile *) ( struct objfile )
extern

◆ previous_stab_code

int previous_stab_code
extern

Definition at line 59 of file stabsread.c.

Referenced by end_stabs(), mdebug_expand_psymtab(), and process_one_symbol().

◆ processing_gcc_compilation

unsigned char processing_gcc_compilation
extern

◆ symnum

unsigned int symnum
extern

◆ this_object_header_files

int* this_object_header_files
extern

◆ within_function

int within_function
extern