This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove merge_symbol_lists


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=43130d6f969cebcd407e210fd06e565647401ba9

commit 43130d6f969cebcd407e210fd06e565647401ba9
Author: Tom Tromey <tom@tromey.com>
Date:   Sun May 20 12:07:44 2018 -0600

    Remove merge_symbol_lists
    
    I discovered that merge_symbol_lists is unused, so this removes it.
    
    gdb/ChangeLog
    2018-07-16  Tom Tromey  <tom@tromey.com>
    
    	* buildsym.h (merge_symbol_lists): Remove.
    	* buildsym.c (merge_symbol_lists): Remove.

Diff:
---
 gdb/ChangeLog  |  5 +++++
 gdb/buildsym.c | 27 ---------------------------
 gdb/buildsym.h |  3 ---
 3 files changed, 5 insertions(+), 30 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index df77b21..04b80eb 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2018-07-16  Tom Tromey  <tom@tromey.com>
 
+	* buildsym.h (merge_symbol_lists): Remove.
+	* buildsym.c (merge_symbol_lists): Remove.
+
+2018-07-16  Tom Tromey  <tom@tromey.com>
+
 	* stabsread.c (scan_file_globals): Update comment.
 	* stabsread.h (scan_file_globals): Move from buildsym.h.
 	* buildsym.h (scan_file_globals): Move to stabsread.h.
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index a87f58a..d1e47c3 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1677,33 +1677,6 @@ record_producer (const char *producer)
   buildsym_compunit->producer = producer;
 }
 
-/* Merge the first symbol list SRCLIST into the second symbol list
-   TARGETLIST by repeated calls to add_symbol_to_list().  This
-   procedure "frees" each link of SRCLIST by adding it to the
-   free_pendings list.  Caller must set SRCLIST to a null list after
-   calling this function.
-
-   Void return.  */
-
-void
-merge_symbol_lists (struct pending **srclist, struct pending **targetlist)
-{
-  int i;
-
-  if (!srclist || !*srclist)
-    return;
-
-  /* Merge in elements from current link.  */
-  for (i = 0; i < (*srclist)->nsyms; i++)
-    add_symbol_to_list ((*srclist)->symbol[i], targetlist);
-
-  /* Recurse on next.  */
-  merge_symbol_lists (&(*srclist)->next, targetlist);
-
-  /* "Free" the current link.  */
-  (*srclist)->next = free_pendings;
-  free_pendings = (*srclist);
-}
 
 
 /* See buildsym.h.  */
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index f707779..d094345 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -236,9 +236,6 @@ extern void record_debugformat (const char *format);
 
 extern void record_producer (const char *producer);
 
-extern void merge_symbol_lists (struct pending **srclist,
-				struct pending **targetlist);
-
 /* Set the name of the last source file.  NAME is copied by this
    function.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]