aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-20 11:13:12 -0600
committerTom Tromey <tom@tromey.com>2018-07-16 08:55:17 -0600
commit2150c3ef045a525b1d74c06eb8b0811621f264e3 (patch)
tree3d1608f5efcf47922f1ae3a1e4f72d1b1cc0a411 /gdb/buildsym.c
parent0ec44fc067ca71f968a4fedda1c17cba2e5ad0ca (diff)
downloadgdb-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.c')
-rw-r--r--gdb/buildsym.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 26c5110..f2176e2 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -74,7 +74,6 @@
#include "gdbtypes.h"
#include "complaints.h"
#include "expression.h" /* For "enum exp_opcode" used by... */
-#include "bcache.h"
#include "filenames.h" /* For DOSish file names. */
#include "macrotab.h"
#include "demangle.h" /* Needed by SYMBOL_INIT_DEMANGLED_NAME. */
@@ -1667,15 +1666,6 @@ pop_context (void)
-/* Compute a small integer hash code for the given name. */
-
-int
-hashname (const char *name)
-{
- return (hash(name,strlen(name)) % HASHSIZE);
-}
-
-
void
record_debugformat (const char *format)
{