2011-09-02 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Fri, 2 Sep 2011 21:03:06 +0000 (21:03 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 2 Sep 2011 21:03:06 +0000 (21:03 +0000)
commit84636d2874122cf547b3eaee494544636931c083
tree43ae5da76ce278cf91de24e84ce530ffef93f7a2
parent68e77c9e3085a638cc14b0b76c592441f99261f7
2011-09-02  Pedro Alves  <pedro@codesourcery.com>

* linux-nat.c (in_pid_list_p): New.
(linux_record_stopped_pid): Delete.
(lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
already attached to the LWP.  Return an indication if so.
(linux_nat_filter_event): Adjust.
* linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
returning an indication to ignore this thread.
gdb/ChangeLog
gdb/linux-nat.c
gdb/linux-thread-db.c