This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[nto target] Fixes in attach and wait.
- From: Aleksandar Ristovski <aristovski at qnx dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>, Pedro Alves <pedro at codesourcery dot com>
- Date: Wed, 23 Jul 2008 09:45:17 -0400
- Subject: [nto target] Fixes in attach and wait.
Hello,
Minor changes, as per Pedro's instructions.
Thanks,
Aleksandar
2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
* nto-procfs.c (procfs_attach): Populate initial thread list.
(procfs_wait): Return new pid, built from the inferior status.
Index: gdb/nto-procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-procfs.c,v
retrieving revision 1.27
@@ -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_
}
}
- return inferior_ptid;
+ return ptid_build (status.pid, 0, status.tid);
}
/* Read the current values of the inferior's registers, both the