diff options
author | Pedro Alves <palves@redhat.com> | 2014-02-27 14:30:08 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-02-27 14:30:08 +0000 |
commit | d632a0971cf9c8044e2b59da45ba6bbc27714c84 (patch) | |
tree | c25bc84fafba4b81ff1704912fe19529503dbcef /gdb/nat/linux-waitpid.h | |
parent | 2ebd5a35208e40dab7df46c7d6d58f4d614c6e21 (diff) | |
download | gdb-d632a0971cf9c8044e2b59da45ba6bbc27714c84.zip gdb-d632a0971cf9c8044e2b59da45ba6bbc27714c84.tar.gz gdb-d632a0971cf9c8044e2b59da45ba6bbc27714c84.tar.bz2 |
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.
Diffstat (limited to 'gdb/nat/linux-waitpid.h')
-rw-r--r-- | gdb/nat/linux-waitpid.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/nat/linux-waitpid.h b/gdb/nat/linux-waitpid.h index ae90e50..cac38db 100644 --- a/gdb/nat/linux-waitpid.h +++ b/gdb/nat/linux-waitpid.h @@ -24,4 +24,8 @@ __WALL for systems where that is not available. */ extern int my_waitpid (int pid, int *status, int flags); +/* Convert wait status STATUS to a string. Used for printing debug + messages only. */ +extern char *status_to_str (int status); + #endif /* LINUX_WAITPID_H */ |