summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-03-12 14:15:19 +0000
committerTom Tromey <tromey@redhat.com>2012-03-12 14:15:19 +0000
commit1827ba892b03be2f1e1836d711cdfe152c2d00b9 (patch)
tree20bb8d4a5e27e5b72873e44421cfb23d4a806ecd
parent82a7a1cb1861638e5c70c1229e5b9b3ab949c892 (diff)
downloadgdb-1827ba892b03be2f1e1836d711cdfe152c2d00b9.tar.gz
* buildsym.c (record_pending_block): Now static.
* buildsym.h: (record_pending_block): Remove.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/buildsym.c6
-rw-r--r--gdb/buildsym.h8
3 files changed, 10 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 504464fbdbb..e4d1453b858 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-12 Tom Tromey <tromey@redhat.com>
+
+ * buildsym.c (record_pending_block): Now static.
+ * buildsym.h: (record_pending_block): Remove.
+
2012-03-12 Andreas Tobler <andreast@fgznet.ch>
* amd64bsd-nat.c: Include amd64bsd-nat.h.
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index a7f141eb5dd..fb13162bb69 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -85,6 +85,10 @@ static int pending_addrmap_interesting;
static int compare_line_numbers (const void *ln1p, const void *ln2p);
+
+static void record_pending_block (struct objfile *objfile,
+ struct block *block,
+ struct pending_block *opblock);
/* Initial sizes of data structures. These are realloc'd larger if
@@ -400,7 +404,7 @@ finish_block (struct symbol *symbol, struct pending **listhead,
Allocate the pending block struct in the objfile_obstack to save
time. This wastes a little space. FIXME: Is it worth it? */
-void
+static void
record_pending_block (struct objfile *objfile, struct block *block,
struct pending_block *opblock)
{
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 4bc6c7f5163..7cd0da09442 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -283,14 +283,6 @@ extern int hashname (const char *name);
extern void free_pending_blocks (void);
-/* FIXME: Note that this is used only in buildsym.c and dstread.c,
- which should be fixed to not need direct access to
- record_pending_block. */
-
-extern void record_pending_block (struct objfile *objfile,
- struct block *block,
- struct pending_block *opblock);
-
/* Record the name of the debug format in the current pending symbol
table. FORMAT must be a string with a lifetime at least as long as
the symtab's objfile. */