X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fstabsread.h;h=0da88f4142f54dcd52aa6c6ac5cf2f12d3a8fba7;hb=6b84eeb21628a89b40c985b527d3d5db7806c93c;hp=df8f926734413aac1666cce5b5aa912e9e8d8a47;hpb=ecd75fc8eed3bde86036141228074a20e55dcfc9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/stabsread.h b/gdb/stabsread.h index df8f926734..0da88f4142 100644 --- a/gdb/stabsread.h +++ b/gdb/stabsread.h @@ -1,5 +1,5 @@ /* Include file for stabs debugging format support functions. - Copyright (C) 1986-2014 Free Software Foundation, Inc. + Copyright (C) 1986-2018 Free Software Foundation, Inc. This file is part of GDB. @@ -17,6 +17,7 @@ along with this program. If not, see . */ struct objfile; +enum language; /* Definitions, prototypes, etc for stabs debugging format support functions. @@ -30,6 +31,28 @@ struct objfile; #define EXTERN extern #endif +#define HASHSIZE 127 /* Size of things hashed via + hashname(). */ + +/* Compute a small integer hash code for the given name. */ + +extern int hashname (const char *name); + +/* Count symbols as they are processed, for error messages. */ + +EXTERN unsigned int symnum; + +#define next_symbol_text(objfile) (*next_symbol_text_func)(objfile) + +/* Function to invoke get the next symbol. Return the symbol name. */ + +EXTERN const char *(*next_symbol_text_func) (struct objfile *); + +/* Global variable which, when set, indicates that we are processing a + .o file compiled with gcc */ + +EXTERN unsigned char processing_gcc_compilation; + /* Hash table of global symbols whose values are not known yet. They are chained thru the SYMBOL_VALUE_CHAIN, since we don't have the correct data for that slot yet. @@ -40,7 +63,7 @@ struct objfile; EXTERN struct symbol *global_sym_chain[HASHSIZE]; -extern void common_block_start (char *, struct objfile *); +extern void common_block_start (const char *, struct objfile *); extern void common_block_end (struct objfile *); /* Kludge for xcoffread.c */ @@ -132,7 +155,7 @@ extern void cleanup_undefined_stabs_types (struct objfile *); extern long read_number (char **, int); -extern struct symbol *define_symbol (CORE_ADDR, char *, int, int, +extern struct symbol *define_symbol (CORE_ADDR, const char *, int, int, struct objfile *); extern void stabsread_init (void); @@ -160,20 +183,16 @@ struct stab_section_list /* Functions exported by dbxread.c. These are not in stabsread.c because they are only used by some stabs readers. */ -extern struct partial_symtab *end_psymtab (struct objfile *objfile, - struct partial_symtab *pst, - const char **include_list, - int num_includes, - int capping_symbol_offset, - CORE_ADDR capping_text, - struct partial_symtab - **dependency_list, - int number_dependencies, - int textlow_not_set); - -extern void process_one_symbol (int, int, CORE_ADDR, char *, +extern struct partial_symtab *dbx_end_psymtab + (struct objfile *objfile, struct partial_symtab *pst, + const char **include_list, int num_includes, + int capping_symbol_offset, CORE_ADDR capping_text, + struct partial_symtab **dependency_list, int number_dependencies, + int textlow_not_set); + +extern void process_one_symbol (int, int, CORE_ADDR, const char *, const struct section_offsets *, - struct objfile *); + struct objfile *, enum language); extern void elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect, @@ -189,11 +208,9 @@ extern void coffstab_build_psymtabs extern void stabsect_build_psymtabs (struct objfile *objfile, char *stab_name, char *stabstr_name, char *text_name); -extern void elfstab_offset_sections (struct objfile *, - struct partial_symtab *); -extern int symbol_reference_defined (char **); +extern int symbol_reference_defined (const char **); -extern void ref_add (int, struct symbol *, char *, CORE_ADDR); +extern void ref_add (int, struct symbol *, const char *, CORE_ADDR); extern struct symbol *ref_search (int);