This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 5/8] GC inferior.c:init_inferior_list
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 12 Apr 2017 00:51:10 +0100
- Subject: [PATCH 5/8] GC inferior.c:init_inferior_list
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=palves at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8B998A329E
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8B998A329E
- References: <1491954673-29172-1-git-send-email-palves@redhat.com>
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:
yyyy-mm-dd Pedro Alves <palves@redhat.com>
* inferior.c (init_inferior_list): Delete.
* inferior.h (init_inferior_list): Delete.
---
gdb/inferior.c | 18 ------------------
gdb/inferior.h | 3 ---
2 files changed, 21 deletions(-)
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 7c0ddf3..29ec7be 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
--
2.5.5