aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-03-01 21:06:14 +0000
committerPedro Alves <palves@redhat.com>2012-03-01 21:06:14 +0000
commit9079102fe5b2288e029744e2deb3e96891fe1b92 (patch)
treeabd5b9c1d72b6f52b9505ade2281ccbfbe852f79
parenta298c5e8129b61a8aaf98b09668a50ce87a293a1 (diff)
downloadgdb-9079102fe5b2288e029744e2deb3e96891fe1b92.zip
gdb-9079102fe5b2288e029744e2deb3e96891fe1b92.tar.gz
gdb-9079102fe5b2288e029744e2deb3e96891fe1b92.tar.bz2
2012-03-01 Pedro Alves <palves@redhat.com>
* inferior.c (delete_threads_of_inferior): Delete.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/inferior.c19
2 files changed, 4 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fcc95f6..fb7e347 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2012-03-01 Pedro Alves <palves@redhat.com>
+ * inferior.c (delete_threads_of_inferior): Delete.
+
+2012-03-01 Pedro Alves <palves@redhat.com>
+
Import fallback definitions from glibc.
* gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
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. */