OSDN Git Service

* inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
authorPedro Alves <pedro@codesourcery.com>
Mon, 8 Sep 2008 21:27:45 +0000 (21:27 +0000)
committerPedro Alves <pedro@codesourcery.com>
Mon, 8 Sep 2008 21:27:45 +0000 (21:27 +0000)
commit002cf9fcdfee6fcc29b977680558846151f20cee
treeafc4a9d702c47701f1d9b8bdf82cc5cd6e233602
parentf2fdc646560b949b3441f0d0a00e7db97d78d08b
* inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
of the child fork.
(inf_ttrace_attach): Add the main thread.
(inf_ttrace_resume_callback): Check for exited threads.  Adjust
for always a thread.
(inf_ttrace_wait): Decorate the main thread's ptid with lwp info
using thread_change_ptid, and set its private data.  Don't add the
main thread here.
(inf_ttrace_pid_to_str): Adjust.
gdb/ChangeLog
gdb/inf-ttrace.c