aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/inferiors.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-03-02 16:23:42 +0000
committerPedro Alves <palves@redhat.com>2012-03-02 16:23:42 +0000
commit05044653678510ef24f2a66773ba2e8f40e12b48 (patch)
tree2ca5e6c1ae24689e6ecf583c1591352bf1124fa6 /gdb/gdbserver/inferiors.c
parentb261e0c5364661b66d55f4e77e95e7d09af8b9aa (diff)
downloadgdb-05044653678510ef24f2a66773ba2e8f40e12b48.zip
gdb-05044653678510ef24f2a66773ba2e8f40e12b48.tar.gz
gdb-05044653678510ef24f2a66773ba2e8f40e12b48.tar.bz2
2012-03-02 Pedro Alves <palves@redhat.com>
* inferiors.c (add_pid_to_list, pull_pid_from_list): Delete. * linux-low.c (struct simple_pid_list): New. (stopped_pids): New a struct simple_pid_list pointer. (add_to_pid_list, pull_pid_from_list): New. (handle_extended_wait): Don't assume the first signal new children report is SIGSTOP. Adjust call to pull_pid_from_list. (linux_wait_for_lwp): Adjust.
Diffstat (limited to 'gdb/gdbserver/inferiors.c')
-rw-r--r--gdb/gdbserver/inferiors.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index ba5cb10..2b9169a 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -239,35 +239,6 @@ clear_inferiors (void)
current_inferior = NULL;
}
-/* Two utility functions for a truly degenerate inferior_list: a simple
- PID listing. */
-
-void
-add_pid_to_list (struct inferior_list *list, unsigned long pid)
-{
- struct inferior_list_entry *new_entry;
-
- new_entry = xmalloc (sizeof (struct inferior_list_entry));
- new_entry->id = pid_to_ptid (pid);
- add_inferior_to_list (list, new_entry);
-}
-
-int
-pull_pid_from_list (struct inferior_list *list, unsigned long pid)
-{
- struct inferior_list_entry *new_entry;
-
- new_entry = find_inferior_id (list, pid_to_ptid (pid));
- if (new_entry == NULL)
- return 0;
- else
- {
- remove_inferior (list, new_entry);
- free (new_entry);
- return 1;
- }
-}
-
struct process_info *
add_process (int pid, int attached)
{