* nto-procfs.c (do_attach): Form proper ptid including pid and tid.
authorAleksandar Ristovski <aristovski@qnx.com>
Thu, 23 Oct 2008 20:15:50 +0000 (20:15 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Thu, 23 Oct 2008 20:15:50 +0000 (20:15 +0000)
(procfs_create_inferior): Fetch list of threads.

gdb/ChangeLog
gdb/nto-procfs.c

index 23b938f7becf287005ed085f328f63acd8a92871..8362188a8e4debd6e493e7e0c3230fff9c464f2a 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 27822d5f8c33501826a76c9007853aa045c7beff..7450edc58a1715899332a170343dfea0a8f9a2f5 100644 (file)
@@ -580,7 +580,7 @@ do_attach (ptid_t ptid)
       && 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.  */
@@ -1085,6 +1085,7 @@ procfs_create_inferior (char *exec_file, char *allargs, char **env,
     close (fds[2]);
 
   inferior_ptid = do_attach (pid_to_ptid (pid));
+  procfs_find_new_threads ();
 
   inf = add_inferior (pid);
   inf->attach_flag = 0;
This page took 0.029684 seconds and 4 git commands to generate.