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] GC inferior.c:init_inferior_list


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

commit e3d60dfc000a29959c78bd69b85100aab33f7ab5
Author: Pedro Alves <palves@redhat.com>
Date:   Thu Apr 13 16:15:34 2017 +0100

    GC inferior.c:init_inferior_list
    
    Not used anywhere.  This was actually never used.  It came in because
    I originally created inferior.c by copying thread.c, and doing
    s/thread/inferior/g, and missed that nothing needs this.  :-)
    
    gdb/ChangeLog:
    2017-04-13  Pedro Alves  <palves@redhat.com>
    
    	* inferior.c (init_inferior_list): Delete.
    	* inferior.h (init_inferior_list): Delete.

Diff:
---
 gdb/ChangeLog  |  5 +++++
 gdb/inferior.c | 18 ------------------
 gdb/inferior.h |  3 ---
 3 files changed, 5 insertions(+), 21 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 66a2a14..0f701f0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2017-04-13  Pedro Alves  <palves@redhat.com>
 
+	* inferior.c (init_inferior_list): Delete.
+	* inferior.h (init_inferior_list): Delete.
+
+2017-04-13  Pedro Alves  <palves@redhat.com>
+
 	PR threads/13217
 	* gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
 	(top level): Call it twice, with different thread sets.
diff --git a/gdb/inferior.c b/gdb/inferior.c
index 4ae265e..54e9967 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -105,24 +105,6 @@ free_inferior (struct inferior *inf)
   xfree (inf);
 }
 
-void
-init_inferior_list (void)
-{
-  struct inferior *inf, *infnext;
-
-  highest_inferior_num = 0;
-  if (!inferior_list)
-    return;
-
-  for (inf = inferior_list; inf; inf = infnext)
-    {
-      infnext = inf->next;
-      free_inferior (inf);
-    }
-
-  inferior_list = NULL;
-}
-
 struct inferior *
 add_inferior_silent (int pid)
 {
diff --git a/gdb/inferior.h b/gdb/inferior.h
index bf06ac1..58fe974 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -433,9 +433,6 @@ struct inferior
 
 DECLARE_REGISTRY (inferior);
 
-/* Create an empty inferior list, or empty the existing one.  */
-extern void init_inferior_list (void);
-
 /* Add an inferior to the inferior list, print a message that a new
    inferior is found, and return the pointer to the new inferior.
    Caller may use this pointer to initialize the private inferior


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