This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 03/14] -Wmissing-prototypes: Garbage collect inferior.c:delete_threads_of_inferior.
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 29 Feb 2012 16:17:20 +0000
- Subject: [PATCH 03/14] -Wmissing-prototypes: Garbage collect inferior.c:delete_threads_of_inferior.
- References: <20120229161628.23918.51354.stgit@hit-nxdomain.opendns.com>
$ make WERROR_CFLAGS="-Wmissing-prototypes" inferior.o 1>/dev/null
../../src/gdb/inferior.c:182:1: warning: no previous prototype for âdelete_threads_of_inferiorâ [-Wmissing-prototypes]
...
Turns out the function isn't used anywhere.
2012-02-29 Pedro Alves <palves@redhat.com>
* inferior.c (delete_threads_of_inferior): Delete.
---
gdb/inferior.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/gdb/inferior.c b/gdb/inferior.c
index 51748a9..327385a 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -178,25 +178,6 @@ delete_thread_of_inferior (struct thread_info *tp, void *data)
return 0;
}
-void
-delete_threads_of_inferior (int pid)
-{
- struct inferior *inf;
- struct delete_thread_of_inferior_arg arg;
-
- for (inf = inferior_list; inf; inf = inf->next)
- if (inf->pid == pid)
- break;
-
- if (!inf)
- return;
-
- arg.pid = pid;
- arg.silent = 1;
-
- iterate_over_threads (delete_thread_of_inferior, &arg);
-}
-
/* If SILENT then be quiet -- don't announce a inferior death, or the
exit of its threads. */