diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-20 11:13:12 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-16 08:55:17 -0600 |
commit | 2150c3ef045a525b1d74c06eb8b0811621f264e3 (patch) | |
tree | 3d1608f5efcf47922f1ae3a1e4f72d1b1cc0a411 /gdb/buildsym.h | |
parent | 0ec44fc067ca71f968a4fedda1c17cba2e5ad0ca (diff) | |
download | gdb-2150c3ef045a525b1d74c06eb8b0811621f264e3.zip gdb-2150c3ef045a525b1d74c06eb8b0811621f264e3.tar.gz gdb-2150c3ef045a525b1d74c06eb8b0811621f264e3.tar.bz2 |
Move some code from buildsym to stabsread
A few things that currently reside in buildsym.c turn out to be
specific to the stabs reader. This patch moves these from
buildsym.[ch] to stabsread.[ch].
gdb/ChangeLog
2018-07-16 Tom Tromey <tom@tromey.com>
* stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
(next_symbol_text_func): Move from buildsym.h.
* stabsread.c (hashname): Move from buildsym.c.
* buildsym.h (HASHSIZE, symnum, next_symbol_text)
(next_symbol_text_func, hashname): Move to stabsread.h.
* buildsym.c: Don't include bcache.h
(hashname): Move to stasbread.c.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r-- | gdb/buildsym.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 191db8c..0b19c39 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -46,9 +46,6 @@ struct dynamic_prop; #define EXTERN extern #endif -#define HASHSIZE 127 /* Size of things hashed via - hashname(). */ - /* The list of sub-source-files within the current individual compilation. Each file gets its own symtab with its own linetable and associated info, but they all share one blockvector. */ @@ -74,10 +71,6 @@ EXTERN struct subfile *current_subfile; EXTERN unsigned char processing_gcc_compilation; -/* Count symbols as they are processed, for error messages. */ - -EXTERN unsigned int symnum; - /* Record the symbols defined for each context in a list. We don't create a struct block for the context until we know how long to make it. */ @@ -173,12 +166,6 @@ typedef void (record_line_ftype) (struct subfile *subfile, int line, -#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 *); - extern void add_symbol_to_list (struct symbol *symbol, struct pending **listhead); @@ -251,8 +238,6 @@ extern struct compunit_symtab *start_symtab (struct objfile *objfile, extern void restart_symtab (struct compunit_symtab *cust, const char *name, CORE_ADDR start_addr); -extern int hashname (const char *name); - extern void free_pending_blocks (void); /* Record the name of the debug format in the current pending symbol |