2012-02-27 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Mon, 27 Feb 2012 16:22:16 +0000 (16:22 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 27 Feb 2012 16:22:16 +0000 (16:22 +0000)
commit644cebc98ce121ef7e6a8c0d1867ae01e936b41b
treef4eee5e5d107abfb51774b8dabae8706ad8232a1
parentc14d7ab2b61d410e10380fcdc21985cdcd88f810
2012-02-27  Pedro Alves  <palves@redhat.com>

gdb/gdbserver/
* linux-low.c (pid_is_stopped): Delete, moved to common/.
(linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.

gdb/
* linux-nat.c (pid_is_stopped): Delete, moved to common/.
(linux_nat_post_attach_wait): Adjust to use
linux_proc_pid_is_stopped.

* common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
* common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
based on pid_is_stopped from both linux-nat.c and
gdbserver/linux-low.c, and renamed.
gdb/ChangeLog
gdb/common/linux-procfs.c
gdb/common/linux-procfs.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/linux-nat.c