GDBserver
|
#include "common-defs.h"
#include "linux-procfs.h"
#include "filestuff.h"
#include <dirent.h>
#include <sys/stat.h>
Go to the source code of this file.
Functions | |
static int | linux_proc_get_int (pid_t lwpid, const char *field, int warn) |
int | linux_proc_get_tgid (pid_t lwpid) |
pid_t | linux_proc_get_tracerpid_nowarn (pid_t lwpid) |
static int | linux_proc_pid_get_state (pid_t pid, char *buffer, size_t buffer_size, int warn) |
int | linux_proc_pid_is_gone (pid_t pid) |
static int | linux_proc_pid_has_state (pid_t pid, const char *state, int warn) |
int | linux_proc_pid_is_stopped (pid_t pid) |
int | linux_proc_pid_is_trace_stopped_nowarn (pid_t pid) |
static int | linux_proc_pid_is_zombie_maybe_warn (pid_t pid, int warn) |
int | linux_proc_pid_is_zombie_nowarn (pid_t pid) |
int | linux_proc_pid_is_zombie (pid_t pid) |
void | linux_proc_attach_tgid_threads (pid_t pid, linux_proc_attach_lwp_func attach_lwp) |
int | linux_proc_task_list_dir_exists (pid_t pid) |
char * | linux_proc_pid_to_exec_file (int pid) |
void linux_proc_attach_tgid_threads | ( | pid_t | pid, |
linux_proc_attach_lwp_func | attach_lwp | ||
) |
Definition at line 191 of file linux-procfs.c.
References _, linux_proc_get_tgid(), ptid_build(), warning(), and xsnprintf().
Referenced by linux_attach().
|
static |
Definition at line 29 of file linux-procfs.c.
References _, gdb_fopen_cloexec(), and warning().
Referenced by linux_proc_get_tgid(), and linux_proc_get_tracerpid_nowarn().
int linux_proc_get_tgid | ( | pid_t | lwpid | ) |
Definition at line 60 of file linux-procfs.c.
References linux_proc_get_int().
Referenced by linux_proc_attach_tgid_threads().
pid_t linux_proc_get_tracerpid_nowarn | ( | pid_t | lwpid | ) |
Definition at line 68 of file linux-procfs.c.
References linux_proc_get_int().
Referenced by linux_ptrace_attach_fail_reason().
|
static |
Definition at line 79 of file linux-procfs.c.
References _, gdb_fopen_cloexec(), startswith(), warning(), and xsnprintf().
Referenced by linux_proc_pid_has_state(), and linux_proc_pid_is_gone().
|
static |
Definition at line 136 of file linux-procfs.c.
References linux_proc_pid_get_state().
Referenced by linux_proc_pid_is_stopped(), linux_proc_pid_is_trace_stopped_nowarn(), and linux_proc_pid_is_zombie_maybe_warn().
int linux_proc_pid_is_gone | ( | pid_t | pid | ) |
Definition at line 108 of file linux-procfs.c.
References linux_proc_pid_get_state().
Referenced by attach_proc_task_lwp_callback().
int linux_proc_pid_is_stopped | ( | pid_t | pid | ) |
Definition at line 149 of file linux-procfs.c.
References linux_proc_pid_has_state().
Referenced by linux_attach_lwp().
int linux_proc_pid_is_trace_stopped_nowarn | ( | pid_t | pid | ) |
Definition at line 158 of file linux-procfs.c.
References linux_proc_pid_has_state().
Referenced by check_ptrace_stopped_lwp_gone().
int linux_proc_pid_is_zombie | ( | pid_t | pid | ) |
Definition at line 183 of file linux-procfs.c.
References linux_proc_pid_is_zombie_maybe_warn().
Referenced by check_zombie_leaders().
|
static |
Definition at line 167 of file linux-procfs.c.
References linux_proc_pid_has_state().
Referenced by linux_proc_pid_is_zombie(), and linux_proc_pid_is_zombie_nowarn().
int linux_proc_pid_is_zombie_nowarn | ( | pid_t | pid | ) |
Definition at line 175 of file linux-procfs.c.
References linux_proc_pid_is_zombie_maybe_warn().
Referenced by linux_ptrace_attach_fail_reason().
char* linux_proc_pid_to_exec_file | ( | int | pid | ) |
Definition at line 261 of file linux-procfs.c.
References name, and xsnprintf().
int linux_proc_task_list_dir_exists | ( | pid_t | pid | ) |
Definition at line 249 of file linux-procfs.c.
References xsnprintf().
Referenced by thread_db_init().