+2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
+ (procfs_create_inferior): Fetch list of threads.
+
2008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
* nto-procfs.c (procfs_files_info): Fix a typo.
&& status.flags & _DEBUG_FLAG_STOPPED)
SignalKill (nto_node (), PIDGET (ptid), 0, SIGCONT, 0, 0);
nto_init_solib_absolute_prefix ();
- return ptid;
+ return ptid_build (PIDGET (ptid), 0, status.tid);
}
/* Ask the user what to do when an interrupt is received. */
close (fds[2]);
inferior_ptid = do_attach (pid_to_ptid (pid));
+ procfs_find_new_threads ();
inf = add_inferior (pid);
inf->attach_flag = 0;