* buildsym.c (record_pending_block): Now static.
authorTom Tromey <tromey@redhat.com>
Mon, 12 Mar 2012 14:15:22 +0000 (14:15 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 12 Mar 2012 14:15:22 +0000 (14:15 +0000)
* buildsym.h: (record_pending_block): Remove.

gdb/ChangeLog
gdb/buildsym.c
gdb/buildsym.h

index 504464fbdbb2cfe0f504799be1bc637cfe6acb74..e4d1453b8588258d10b7fcb6b4e2d4ff92b16ac9 100644 (file)
@@ -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.
index a7f141eb5ddd9cf5d2896f79468fe7d3fbaf844c..fb13162bb6911c3eda055d2c7ed3e427ee5695d1 100644 (file)
@@ -85,6 +85,10 @@ static int pending_addrmap_interesting;
 
 \f
 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);
 \f
 
 /* 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)
 {
index 4bc6c7f5163cf41499f08b95b26e47457bb67c34..7cd0da09442fdfd22145b6e340b0e9a26fc19a6c 100644 (file)
@@ -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.  */
This page took 0.051221 seconds and 4 git commands to generate.