diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2008-07-24 13:18:58 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2008-07-24 13:18:58 +0000 |
commit | a6a7f2a56022855872e6f17b38a5354875ff59c9 (patch) | |
tree | 11078fa0f6815c38056db9225b32522f21835bd9 /gdb/nto-procfs.c | |
parent | 4ff738568a8db39bbdce0b660f8065740c67df18 (diff) | |
download | gdb-a6a7f2a56022855872e6f17b38a5354875ff59c9.zip gdb-a6a7f2a56022855872e6f17b38a5354875ff59c9.tar.gz gdb-a6a7f2a56022855872e6f17b38a5354875ff59c9.tar.bz2 |
* nto-procfs.c (procfs_attach): Populate initial thread list.
(procfs_wait): Return new pid, built from the inferior status.
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r-- | gdb/nto-procfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 2ef6e0f..028394b 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -535,6 +535,7 @@ procfs_attach (char *args, int from_tty) gdb_flush (gdb_stdout); } inferior_ptid = do_attach (pid_to_ptid (pid)); + procfs_find_new_threads (); push_target (&procfs_ops); } @@ -706,7 +707,7 @@ procfs_wait (ptid_t ptid, struct target_waitstatus *ourstatus) } } - return inferior_ptid; + return ptid_build (status.pid, 0, status.tid); } /* Read the current values of the inferior's registers, both the |