diff options
author | Pedro Alves <palves@redhat.com> | 2016-07-25 12:42:17 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-07-25 12:42:17 +0100 |
commit | d617208bb06bd461b52ce041d89f7127e3044762 (patch) | |
tree | 01f2944aa2ffdcda82ef4537ae462ad25ede3480 /binutils/rescoff.c | |
parent | 3a1518e4f3c467cfee2786b0af3388529f14d23b (diff) | |
download | gdb-d617208bb06bd461b52ce041d89f7127e3044762.zip gdb-d617208bb06bd461b52ce041d89f7127e3044762.tar.gz gdb-d617208bb06bd461b52ce041d89f7127e3044762.tar.bz2 |
linux-procfs: Introduce enum proc_state
Parse the process's /proc/PID/status state into an enum instead of the
current scheme of passing state strings around.
gdb/ChangeLog:
2016-07-25 Pedro Alves <palves@redhat.com>
* nat/linux-procfs.c (enum proc_state): New enum.
(parse_proc_status_state): New function.
(linux_proc_pid_get_state): Replace output string buffer parameter
with an output proc_state parameter. Use parse_proc_status_state.
(linux_proc_pid_is_gone): Adjust to use proc_state values.
(linux_proc_pid_has_state): Change type of 'state' parameter; now
an enum proc_state. Adjust to linux_proc_pid_get_state interface
change.
(linux_proc_pid_is_stopped)
(linux_proc_pid_is_trace_stopped_nowarn)
(linux_proc_pid_is_zombie_maybe_warn): Adjust to
linux_proc_pid_get_state interface change.
Diffstat (limited to 'binutils/rescoff.c')
0 files changed, 0 insertions, 0 deletions