aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2008-10-23 20:15:50 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2008-10-23 20:15:50 +0000
commit103fd00dc6f8d285b63a5945f404d3b5221689bc (patch)
tree911a75b4db578fa3f181257637f857726dda34bb
parent3fdfcbf1edbb17225ba62566ad29f2e39e780e38 (diff)
downloadgdb-103fd00dc6f8d285b63a5945f404d3b5221689bc.zip
gdb-103fd00dc6f8d285b63a5945f404d3b5221689bc.tar.gz
gdb-103fd00dc6f8d285b63a5945f404d3b5221689bc.tar.bz2
* nto-procfs.c (do_attach): Form proper ptid including pid and tid.
(procfs_create_inferior): Fetch list of threads.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/nto-procfs.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 23b938f..8362188 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
(procfs_create_inferior): Make attach_flag per-inferior.
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index 27822d5..7450edc 100644
--- a/gdb/nto-procfs.c
+++ b/gdb/nto-procfs.c
@@ -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;