diff options
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r-- | gdb/nto-procfs.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 8a10d3d..d059624 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -307,7 +307,7 @@ update_thread_private_data (struct thread_info *new_thread, } static void -procfs_find_new_threads (struct target_ops *ops) +procfs_update_thread_list (struct target_ops *ops) { procfs_status status; pid_t pid; @@ -318,6 +318,8 @@ procfs_find_new_threads (struct target_ops *ops) if (ctl_fd == -1) return; + prune_threads (); + pid = ptid_get_pid (inferior_ptid); status.tid = 1; @@ -631,7 +633,7 @@ procfs_attach (struct target_ops *ops, const char *args, int from_tty) if (!target_is_pushed (ops)) push_target (ops); - procfs_find_new_threads (ops); + procfs_update_thread_list (ops); } static void @@ -1195,7 +1197,7 @@ procfs_create_inferior (struct target_ops *ops, char *exec_file, close (fds[2]); inferior_ptid = do_attach (pid_to_ptid (pid)); - procfs_find_new_threads (ops); + procfs_update_thread_list (ops); inf = current_inferior (); inferior_appeared (inf, pid); @@ -1440,7 +1442,7 @@ init_procfs_targets (void) t->to_mourn_inferior = procfs_mourn_inferior; t->to_pass_signals = procfs_pass_signals; t->to_thread_alive = procfs_thread_alive; - t->to_find_new_threads = procfs_find_new_threads; + t->to_update_thread_list = procfs_update_thread_list; t->to_pid_to_str = procfs_pid_to_str; t->to_stop = procfs_stop; t->to_have_continuable_watchpoint = 1; |