From f3021ef9be5e13e7fb938d9eda8515088e5ab77c Mon Sep 17 00:00:00 2001 From: Aleksandar Ristovski Date: Thu, 24 Jul 2008 13:18:58 +0000 Subject: * nto-procfs.c (procfs_attach): Populate initial thread list. (procfs_wait): Return new pid, built from the inferior status. --- gdb/ChangeLog | 5 +++++ gdb/nto-procfs.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 96760135b05..82dbd52360f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-07-24 Aleksandar Ristovski + + * nto-procfs.c (procfs_attach): Populate initial thread list. + (procfs_wait): Return new pid, built from the inferior status. + 2008-07-23 Thiago Jung Bauermann * configure.ac (CONFIG_INITS): Delete long obsoleted variable. 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 -- cgit v1.2.1