summaryrefslogtreecommitdiff
path: root/gdb/nto-procfs.c
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2008-07-24 13:18:58 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2008-07-24 13:18:58 +0000
commitf3021ef9be5e13e7fb938d9eda8515088e5ab77c (patch)
tree0857ccc2b80b31b78185c9c5ee69e4e6869d265b /gdb/nto-procfs.c
parent3064c23fcfec2a170dd1c86dc0955ff14c3d6487 (diff)
downloadgdb-f3021ef9be5e13e7fb938d9eda8515088e5ab77c.tar.gz
* 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c
index 2ef6e0f6a78..028394bdd9b 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