Move linux-nat.c:status_to_str to nat/linux-waitpid.c.
authorPedro Alves <palves@redhat.com>
Thu, 27 Feb 2014 14:30:08 +0000 (14:30 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 27 Feb 2014 14:30:08 +0000 (14:30 +0000)
commitd632a0971cf9c8044e2b59da45ba6bbc27714c84
treec25bc84fafba4b81ff1704912fe19529503dbcef
parent2ebd5a35208e40dab7df46c7d6d58f4d614c6e21
Move linux-nat.c:status_to_str to nat/linux-waitpid.c.

So that gdbserver's Linux backend can use it too.

gdb/
2014-02-27  Pedro Alves  <palves@redhat.com>

PR 12702
* linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
* nat/linux-waitpid.c: Include string.h.
(status_to_str): Moved here and made extern.
* nat/linux-waitpid.h (status_to_str): New declaration.
gdb/ChangeLog
gdb/linux-nat.c
gdb/nat/linux-waitpid.c
gdb/nat/linux-waitpid.h