GDB (xrefs)

Classes | Macros | Functions | Variables
/tmp/gdb-8.1/gdb/linux-nat.c File Reference
`#include "defs.h"`
`#include "inferior.h"`
`#include "infrun.h"`
`#include "target.h"`
`#include "nat/linux-nat.h"`
`#include "nat/linux-waitpid.h"`
`#include "gdb_wait.h"`
`#include <unistd.h>`
`#include <sys/syscall.h>`
`#include "nat/gdb_ptrace.h"`
`#include "linux-nat.h"`
`#include "nat/linux-ptrace.h"`
`#include "nat/linux-procfs.h"`
`#include "nat/linux-personality.h"`
`#include "linux-fork.h"`
`#include "gdbthread.h"`
`#include "gdbcmd.h"`
`#include "regcache.h"`
`#include "regset.h"`
`#include "inf-child.h"`
`#include "inf-ptrace.h"`
`#include "auxv.h"`
`#include <sys/procfs.h>`
`#include "elf-bfd.h"`
`#include "gregset.h"`
`#include "gdbcore.h"`
`#include <ctype.h>`
`#include <sys/stat.h>`
`#include <fcntl.h>`
`#include "inf-loop.h"`
`#include "event-loop.h"`
`#include "event-top.h"`
`#include <pwd.h>`
`#include <sys/types.h>`
`#include <dirent.h>`
`#include "xml-support.h"`
`#include <sys/vfs.h>`
`#include "solib.h"`
`#include "nat/linux-osdata.h"`
`#include "linux-tdep.h"`
`#include "symfile.h"`
`#include "agent.h"`
`#include "tracepoint.h"`
`#include "buffer.h"`
`#include "target-descriptions.h"`
`#include "filestuff.h"`
`#include "objfiles.h"`
`#include "nat/linux-namespaces.h"`
`#include "fileio.h"`

Go to the source code of this file.

## Classes
struct | simple_pid_list

## Macros
#define | SPUFS_MAGIC 0x23c9b64e
#define | O_LARGEFILE 0
#define | linux_is_async_p() (linux_nat_event_pipe[0] != -1)

## Functions
static void | show_debug_linux_nat (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void | async_file_flush (void)
static void | async_file_mark (void)
static int | kill_lwp (int lwpid, int signo)
static int | stop_callback (struct lwp_info *lp, void *data)
static int | resume_stopped_resumed_lwps (struct lwp_info *lp, void *data)
static void | block_child_signals (sigset_t *prev_mask)
static void | restore_child_signals_mask (sigset_t *prev_mask)
static struct lwp_info * | add_lwp (ptid_t ptid)
static void | purge_lwp_list (int pid)
static void | delete_lwp (ptid_t ptid)
static struct lwp_info * | find_lwp_pid (ptid_t ptid)
static int | lwp_status_pending_p (struct lwp_info *lp)
static int | sigtrap_is_event (int status)
static void | save_stop_reason (struct lwp_info *lp)
ptid_t | ptid_of_lwp (struct lwp_info *lwp)
void | lwp_set_arch_private_info (struct lwp_info *lwp, struct arch_lwp_info *info)
struct arch_lwp_info * | lwp_arch_private_info (struct lwp_info *lwp)
int | lwp_is_stopped (struct lwp_info *lwp)
enum target_stop_reason | lwp_stop_reason (struct lwp_info *lwp)
int | lwp_is_stepping (struct lwp_info *lwp)
static void | add_to_pid_list (struct simple_pid_list **listp, int pid, int status)
static int | pull_pid_from_list (struct simple_pid_list **listp, int pid, int *statusp)
static int | linux_nat_ptrace_options (int attached)
static void | linux_init_ptrace (pid_t pid, int attached)
static void | linux_child_post_attach (struct target_ops *self, int pid)
static void | linux_child_post_startup_inferior (struct target_ops *self, ptid_t ptid)
static int | num_lwps (int pid)
static void | delete_lwp_cleanup (void *lp_voidp)
static int | linux_child_follow_fork (struct target_ops *ops, int follow_child, int detach_fork)
static int | linux_child_insert_fork_catchpoint (struct target_ops *self, int pid)
static int | linux_child_remove_fork_catchpoint (struct target_ops *self, int pid)
static int | linux_child_insert_vfork_catchpoint (struct target_ops *self, int pid)
static int | linux_child_remove_vfork_catchpoint (struct target_ops *self, int pid)
static int | linux_child_insert_exec_catchpoint (struct target_ops *self, int pid)
static int | linux_child_remove_exec_catchpoint (struct target_ops *self, int pid)
static int | linux_child_set_syscall_catchpoint (struct target_ops *self, int pid, bool needed, int any_count, gdb::array_view< const int > syscall_counts)
static hashval_t | lwp_info_hash (const void *ap)
static int | lwp_lwpid_htab_eq (const void *a, const void *b)
static void | lwp_lwpid_htab_create (void)
static void | lwp_lwpid_htab_add_lwp (struct lwp_info *lp)
static void | lwp_list_add (struct lwp_info *lp)
static void | lwp_list_remove (struct lwp_info *lp)
static void | linux_nat_pass_signals (struct target_ops *self, int numsigs, unsigned char *pass_signals)
static int | stop_wait_callback (struct lwp_info *lp, void *data)
static char * | linux_child_pid_to_exec_file (struct target_ops *self, int pid)
static int | check_ptrace_stopped_lwp_gone (struct lwp_info *lp)
static void | lwp_free (struct lwp_info *lp)
static int | lwp_lwpid_htab_remove_pid (void **slot, void *info)
static struct lwp_info * | add_initial_lwp (ptid_t ptid)
struct lwp_info * | iterate_over_lwps (ptid_t filter, iterate_over_lwps_ftype callback, void *data)
void | linux_nat_switch_fork (ptid_t new_ptid)
static void | exit_lwp (struct lwp_info *lp)
static int | linux_nat_post_attach_wait (ptid_t ptid, int *signalled)
static void | linux_nat_create_inferior (struct target_ops *ops, const char *exec_file, const std::string &allargs, char **env, int from_tty)
static int | attach_proc_task_lwp_callback (ptid_t ptid)
static void | linux_nat_attach (struct target_ops *ops, const char *args, int from_tty)
static int | get_detach_signal (struct lwp_info *lp)
static void | detach_one_lwp (struct lwp_info *lp, int *signo_p)
static int | detach_callback (struct lwp_info *lp, void *data)
static void | linux_nat_detach (struct target_ops *ops, const char *args, int from_tty)
static void | linux_resume_one_lwp_throw (struct lwp_info *lp, int step, enum gdb_signal signo)
static void | linux_resume_one_lwp (struct lwp_info *lp, int step, enum gdb_signal signo)
static void | resume_lwp (struct lwp_info *lp, int step, enum gdb_signal signo)
static int | linux_nat_resume_callback (struct lwp_info *lp, void *except)
static int | resume_clear_callback (struct lwp_info *lp, void *data)
static int | resume_set_callback (struct lwp_info *lp, void *data)
static void | linux_nat_resume (struct target_ops *ops, ptid_t ptid, int step, enum gdb_signal signo)
static int | linux_handle_syscall_trap (struct lwp_info *lp, int stopping)
static int | linux_handle_extended_wait (struct lwp_info *lp, int status)
static int | wait_lwp (struct lwp_info *lp)
void | linux_stop_lwp (struct lwp_info *lwp)
void | linux_stop_and_wait_all_lwps (void)
void | linux_unstop_all_lwps (void)
static int | linux_nat_has_pending_sigint (int pid)
static int | set_ignore_sigint (struct lwp_info *lp, void *data)
static void | maybe_clear_ignore_sigint (struct lwp_info *lp)
static int | check_stopped_by_watchpoint (struct lwp_info *lp)
static int | linux_nat_stopped_by_watchpoint (struct target_ops *ops)
static int | linux_nat_stopped_data_address (struct target_ops *ops, CORE_ADDR *addr_p)
void | linux_nat_set_status_is_event (struct target_ops *t, int(*status_is_event)(int status))
static int | status_callback (struct lwp_info *lp, void *data)
static int | count_events_callback (struct lwp_info *lp, void *data)
static int | select_singlestep_lwp_callback (struct lwp_info *lp, void *data)
static int | select_event_lwp_callback (struct lwp_info *lp, void *data)
static int | linux_nat_stopped_by_sw_breakpoint (struct target_ops *ops)
static int | linux_nat_supports_stopped_by_sw_breakpoint (struct target_ops *ops)
static int | linux_nat_stopped_by_hw_breakpoint (struct target_ops *ops)
static int | linux_nat_supports_stopped_by_hw_breakpoint (struct target_ops *ops)
static void | select_event_lwp (ptid_t filter, struct lwp_info **orig_lp, int *status)
static int | resumed_callback (struct lwp_info *lp, void *data)
static struct lwp_info * | linux_nat_filter_event (int lwpid, int status)
static void | check_zombie_leaders (void)
static ptid_t | filter_exit_event (struct lwp_info *event_child, struct target_waitstatus *ourstatus)
static ptid_t | linux_nat_wait_1 (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *ourstatus, int target_options)
static ptid_t | linux_nat_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *ourstatus, int target_options)
static void | kill_one_lwp (pid_t pid)
static void | kill_wait_one_lwp (pid_t pid)
static int | kill_callback (struct lwp_info *lp, void *data)
static int | kill_wait_callback (struct lwp_info *lp, void *data)
static void | kill_unfollowed_fork_children (struct inferior *inf)
static void | linux_nat_kill (struct target_ops *ops)
static void | linux_nat_mourn_inferior (struct target_ops *ops)
static void | siginfo_fixup (siginfo_t *siginfo, gdb_byte *inf_siginfo, int direction)
static enum target_xfer_status | linux_xfer_siginfo (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
static enum target_xfer_status | linux_nat_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
static int | linux_nat_thread_alive (struct target_ops *ops, ptid_t ptid)
static void | linux_nat_update_thread_list (struct target_ops *ops)
static const char * | linux_nat_pid_to_str (struct target_ops *ops, ptid_t ptid)
static const char * | linux_nat_thread_name (struct target_ops *self, struct thread_info *thr)
static enum target_xfer_status | linux_proc_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, LONGEST len, ULONGEST *xfered_len)
static LONGEST | spu_enumerate_spu_ids (int pid, gdb_byte *buf, ULONGEST offset, ULONGEST len)
static enum target_xfer_status | linux_proc_xfer_spu (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
static void | add_line_to_sigset (const char *line, sigset_t *sigs)
void | linux_proc_pending_signals (int pid, sigset_t *pending, sigset_t *blocked, sigset_t *ignored)
static enum target_xfer_status | linux_nat_xfer_osdata (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
static enum target_xfer_status | linux_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
static void | cleanup_target_stop (void *arg)
static | VEC (static_tracepoint_marker_p)
static void | linux_target_install_ops (struct target_ops *t)
struct target_ops * | linux_target (void)
struct target_ops * | linux_trad_target (CORE_ADDR(*register_u_offset)(struct gdbarch *, int, int))
static int | linux_nat_is_async_p (struct target_ops *ops)
static int | linux_nat_can_async_p (struct target_ops *ops)
static int | linux_nat_supports_non_stop (struct target_ops *self)
static int | linux_nat_always_non_stop_p (struct target_ops *self)
static int | linux_nat_supports_multi_process (struct target_ops *self)
static int | linux_nat_supports_disable_randomization (struct target_ops *self)
static void | linux_nat_terminal_inferior (struct target_ops *self)
static void | linux_nat_terminal_ours (struct target_ops *self)
static void | sigchld_handler (int signo)
static void | handle_target_event (int error, gdb_client_data client_data)
static int | linux_async_pipe (int enable)
static void | linux_nat_async (struct target_ops *ops, int enable)
static int | linux_nat_stop_lwp (struct lwp_info *lwp, void *data)
static void | linux_nat_stop (struct target_ops *self, ptid_t ptid)
static void | linux_nat_close (struct target_ops *self)
static struct address_space * | linux_nat_thread_address_space (struct target_ops *t, ptid_t ptid)
static int | linux_nat_core_of_thread (struct target_ops *ops, ptid_t ptid)
static int | linux_nat_filesystem_is_local (struct target_ops *ops)
static pid_t | linux_nat_fileio_pid_of (struct inferior *inf)
static int | linux_nat_fileio_open (struct target_ops *self, struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, int *target_errno)
static char * | linux_nat_fileio_readlink (struct target_ops *self, struct inferior *inf, const char *filename, int *target_errno)
static int | linux_nat_fileio_unlink (struct target_ops *self, struct inferior *inf, const char *filename, int *target_errno)
static void | linux_nat_thread_events (struct target_ops *ops, int enable)
void | linux_nat_add_target (struct target_ops *t)
void | linux_nat_set_new_thread (struct target_ops *t, void(*new_thread)(struct lwp_info *))
void | linux_nat_set_delete_thread (struct target_ops *t, void(*delete_thread)(struct arch_lwp_info *))
void | linux_nat_set_new_fork (struct target_ops *t, linux_nat_new_fork_ftype *new_fork)
void | linux_nat_set_forget_process (struct target_ops *t, linux_nat_forget_process_ftype *fn)
void | linux_nat_forget_process (pid_t pid)
void | linux_nat_set_siginfo_fixup (struct target_ops *t, int(*siginfo_fixup)(siginfo_t *, gdb_byte *, int))
void | linux_nat_set_prepare_to_resume (struct target_ops *t, void(*prepare_to_resume)(struct lwp_info *))
int | linux_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo)
ptid_t | current_lwp_ptid (void)
void | _initialize_linux_nat (void)
void | lin_thread_get_thread_signals (sigset_t *set)

## Variables
enum tribool | have_ptrace_getregset = TRIBOOL_UNKNOWN
static struct target_ops * | linux_ops
static struct target_ops | linux_ops_saved
static void(* | linux_nat_new_thread )(struct lwp_info *)
static void(* | linux_nat_delete_thread )(struct arch_lwp_info *)
static linux_nat_new_fork_ftype * | linux_nat_new_fork
static linux_nat_forget_process_ftype * | linux_nat_forget_process_hook
static void(* | linux_nat_prepare_to_resume )(struct lwp_info *)
static int(* | linux_nat_siginfo_fixup )(siginfo_t *, gdb_byte *, int)
static target_xfer_partial_ftype * | super_xfer_partial
static void(* | super_close )(struct target_ops *)
static unsigned int | debug_linux_nat
struct simple_pid_list * | stopped_pids
static int | report_thread_events
static int | linux_nat_event_pipe [2] = { -1, -1 }
static int(* | linux_nat_status_is_event )(int status) = sigtrap_is_event
static htab_t | lwp_lwpid_htab
struct lwp_info * | lwp_list
static sigset_t | normal_mask
static sigset_t | suspend_mask
static sigset_t | blocked_mask
struct sigaction | sigchld_action
static sigset_t | pass_mask
int | linux_multi_process = 1
static int | async_terminal_is_ours = 1

## Macro Definition Documentation

## ◆ linux_is_async_p

#define linux_is_async_p | ( |  | ) | (linux_nat_event_pipe[0] != -1)

Definition at line 255 of file linux-nat.c.

Referenced by linux_async_pipe(), and linux_nat_is_async_p().

## ◆ O_LARGEFILE

#define O_LARGEFILE 0

Definition at line 186 of file linux-nat.c.

Referenced by linux_proc_xfer_partial().

## ◆ SPUFS_MAGIC

#define SPUFS_MAGIC 0x23c9b64e

Definition at line 71 of file linux-nat.c.

Referenced by spu_enumerate_spu_ids().

## Function Documentation

## ◆ _initialize_linux_nat()

void _initialize_linux_nat | ( | void |  | ) |

Definition at line 4976 of file linux-nat.c.

References _, add_setshow_boolean_cmd(), add_setshow_zuinteger_cmd(), blocked_mask, class_maintenance, debug_linux_namespaces, debug_linux_nat, lwp_lwpid_htab_create(), normal_mask, setdebuglist, show_debug_linux_nat(), showdebuglist, sigchld_action, sigchld_handler(), and suspend_mask.

## ◆ add_initial_lwp()

static struct lwp_info* add_initial_lwp | ( | ptid_t | ptid | ) |
| static

Definition at line 895 of file linux-nat.c.

References lwp_info::core, gdb_assert, target_waitstatus::kind, lwp_info::last_resume_kind, lwp_list_add(), lwp_lwpid_htab_add_lwp(), memset(), lwp_info::ptid, ptid_lwp_p(), resume_continue, TARGET_WAITKIND_IGNORE, lwp_info::waitstatus, and XNEW.

Referenced by add_lwp(), linux_nat_attach(), and linux_nat_wait_1().

## ◆ add_line_to_sigset()

static void add_line_to_sigset | ( | const char * | line,
|  | sigset_t * | sigs
| ) |  |
| static

Definition at line 4150 of file linux-nat.c.

References _, and error().

Referenced by linux_proc_pending_signals().

## ◆ add_lwp()

static struct lwp_info * add_lwp | ( | ptid_t | ptid | ) |
| static

Definition at line 925 of file linux-nat.c.

References add_initial_lwp(), linux_nat_new_thread, and lwp_info::ptid.

Referenced by attach_proc_task_lwp_callback(), linux_child_follow_fork(), linux_handle_extended_wait(), linux_nat_filter_event(), and linux_nat_switch_fork().

## ◆ add_to_pid_list()

static void add_to_pid_list | ( | struct simple_pid_list ** | listp,
|  | int | pid,
|  | int | status
| ) |  |
| static

Definition at line 373 of file linux-nat.c.

References simple_pid_list::next, simple_pid_list::pid, pid, simple_pid_list::status, status, and XNEW.

Referenced by linux_nat_filter_event().

## ◆ async_file_flush()

static void async_file_flush | ( | void |  | ) |
| static

Definition at line 260 of file linux-nat.c.

References linux_nat_event_pipe, and read().

Referenced by async_file_mark(), and linux_nat_wait().

## ◆ async_file_mark()

static void async_file_mark | ( | void |  | ) |
| static

Definition at line 277 of file linux-nat.c.

References async_file_flush(), and linux_nat_event_pipe.

Referenced by linux_child_follow_fork(), linux_nat_async(), linux_nat_resume(), linux_nat_wait(), and sigchld_handler().

## ◆ attach_proc_task_lwp_callback()

static int attach_proc_task_lwp_callback | ( | ptid_t | ptid | ) |
| static

Definition at line 1138 of file linux-nat.c.

References _, add_lwp(), add_thread(), debug_linux_nat, err, find_lwp_pid(), fprintf_unfiltered(), gdb_stdlog, linux_proc_pid_is_gone(), linux_ptrace_attach_fail_reason_string(), lwp_info::must_set_ptrace_flags, lwp_info::ptid, ptid_get_lwp(), ptrace(), lwp_info::resumed, safe_strerror(), set_executing(), set_running(), lwp_info::signalled, target_pid_to_str(), and warning().

Referenced by linux_nat_attach().

## ◆ block_child_signals()

static void block_child_signals | ( | sigset_t * | prev_mask | ) |
| static

Definition at line 792 of file linux-nat.c.

References blocked_mask.

Referenced by linux_async_pipe(), linux_nat_wait_1(), and wait_lwp().

## ◆ check_ptrace_stopped_lwp_gone()

static int check_ptrace_stopped_lwp_gone | ( | struct lwp_info * | lp | ) |
| static

Definition at line 1606 of file linux-nat.c.

References gdb_assert, target_waitstatus::kind, linux_proc_pid_is_trace_stopped_nowarn(), lwp_info::ptid, ptid_get_lwp(), lwp_info::status, lwp_info::stop_reason, lwp_info::stopped, TARGET_STOPPED_BY_NO_REASON, TARGET_WAITKIND_IGNORE, and lwp_info::waitstatus.

Referenced by detach_one_lwp(), linux_resume_one_lwp(), and resume_stopped_resumed_lwps().

## ◆ check_stopped_by_watchpoint()

static int check_stopped_by_watchpoint | ( | struct lwp_info * | lp | ) |
| static

Definition at line 2467 of file linux-nat.c.

References current_target, inferior_ptid, linux_ops, make_scoped_restore(), lwp_info::ptid, lwp_info::stop_reason, lwp_info::stopped_data_address, lwp_info::stopped_data_address_p, TARGET_STOPPED_BY_WATCHPOINT, target_ops::to_stopped_by_watchpoint, and target_ops::to_stopped_data_address.

Referenced by save_stop_reason().

## ◆ check_zombie_leaders()

static void check_zombie_leaders | ( | void |  | ) |
| static

Definition at line 3222 of file linux-nat.c.

References ALL_INFERIORS, debug_linux_nat, exit_lwp(), find_lwp_pid(), fprintf_unfiltered(), gdb_stdlog, arm-linux::inf, linux_proc_pid_is_zombie(), num_lwps(), inf::pid, and pid_to_ptid().

Referenced by linux_nat_wait_1().

## ◆ cleanup_target_stop()

static void cleanup_target_stop | ( | void * | arg | ) |
| static

Definition at line 4284 of file linux-nat.c.

References gdb_assert, and target_continue_no_signal().

Referenced by VEC().

## ◆ count_events_callback()

static int count_events_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 2674 of file linux-nat.c.

References gdb_assert, lwp_status_pending_p(), and lwp_info::resumed.

Referenced by select_event_lwp().

## ◆ current_lwp_ptid()

ptid_t current_lwp_ptid | ( | void |  | ) |

Definition at line 4969 of file linux-nat.c.

References gdb_assert, inferior_ptid, and ptid_lwp_p().

Referenced by aarch64_notify_debug_reg_change(), aarch64_point_is_aligned(), s390_refresh_per_info(), x86_linux_dr_get_addr(), x86_linux_dr_get_control(), x86_linux_dr_get_status(), x86_linux_dr_set_addr(), and x86_linux_dr_set_control().

## ◆ delete_lwp()

static void delete_lwp | ( | ptid_t | ptid | ) |
| static

Definition at line 944 of file linux-nat.c.

References dummy, gdb_assert, lwp_free(), lwp_list_remove(), lwp_lwpid_htab, and lwp_info::ptid.

Referenced by delete_lwp_cleanup(), detach_one_lwp(), and exit_lwp().

## ◆ delete_lwp_cleanup()

static void delete_lwp_cleanup | ( | void * | lp_voidp | ) |
| static

Definition at line 464 of file linux-nat.c.

References delete_lwp(), and lwp_info::ptid.

Referenced by linux_child_follow_fork().

## ◆ detach_callback()

static int detach_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 1499 of file linux-nat.c.

References detach_one_lwp(), lwp_info::ptid, ptid_get_lwp(), and ptid_get_pid().

Referenced by linux_nat_detach().

## ◆ detach_one_lwp()

static void detach_one_lwp | ( | struct lwp_info * | lp,
|  | int * | signo_p
| ) |  |
| static

Definition at line 1409 of file linux-nat.c.

References _, __WALL, CATCH, check_ptrace_stopped_lwp_gone(), debug_linux_nat, delete_lwp(), END_CATCH, error(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, get_detach_signal(), kill_lwp(), linux_nat_prepare_to_resume, my_waitpid(), lwp_info::ptid, ptid_get_lwp(), ptrace(), RETURN_MASK_ERROR, safe_strerror(), lwp_info::signalled, lwp_info::status, status, target_pid_to_str(), throw_exception(), TRY, warning(), WIFEXITED, WIFSIGNALED, WIFSTOPPED, and WSTOPSIG.

Referenced by detach_callback(), and linux_nat_detach().

## ◆ exit_lwp()

static void exit_lwp | ( | struct lwp_info * | lp | ) |
| static

Definition at line 1039 of file linux-nat.c.

References _, delete_lwp(), delete_thread(), find_thread_ptid(), print_thread_events, printf_unfiltered(), lwp_info::ptid, and target_pid_to_str().

Referenced by check_zombie_leaders(), filter_exit_event(), linux_nat_filter_event(), and wait_lwp().

## ◆ filter_exit_event()

static ptid_t filter_exit_event | ( | struct lwp_info * | event_child,
|  | struct target_waitstatus * | ourstatus
| ) |  |
| static

Definition at line 3279 of file linux-nat.c.

References exit_lwp(), target_waitstatus::kind, num_lwps(), lwp_info::ptid, ptid_get_pid(), report_thread_events, TARGET_WAITKIND_IGNORE, and TARGET_WAITKIND_THREAD_EXITED.

Referenced by linux_nat_wait_1().

## ◆ find_lwp_pid()

static struct lwp_info * find_lwp_pid | ( | ptid_t | ptid | ) |
| static

Definition at line 971 of file linux-nat.c.

References dummy, selftests::ptid::lwp, lwp_lwpid_htab, lwp_info::ptid, ptid_build(), ptid_get_lwp(), ptid_get_pid(), and ptid_lwp_p().

Referenced by attach_proc_task_lwp_callback(), check_zombie_leaders(), linux_child_follow_fork(), linux_nat_core_of_thread(), linux_nat_detach(), linux_nat_filter_event(), linux_nat_resume(), linux_nat_stopped_by_hw_breakpoint(), linux_nat_stopped_by_sw_breakpoint(), linux_nat_stopped_by_watchpoint(), linux_nat_stopped_data_address(), linux_nat_thread_address_space(), and linux_nat_thread_alive().

## ◆ get_detach_signal()

static int get_detach_signal | ( | struct lwp_info * | lp | ) |
| static

Definition at line 1321 of file linux-nat.c.

References debug_linux_nat, find_thread_ptid(), fprintf_unfiltered(), gdb_signal_from_host(), gdb_signal_to_host(), gdb_signal_to_string(), gdb_stdlog, get_last_target_status(), is_executing(), target_waitstatus::kind, lwp_info::ptid, ptid_get_lwp(), target_waitstatus::sig, signal_pass_state(), lwp_info::status, thread_suspend_state::stop_signal, thread_info::suspend, target_is_non_stop_p(), target_pid_to_str(), TARGET_WAITKIND_IGNORE, target_waitstatus::value, lwp_info::waitstatus, thread_suspend_state::waitstatus, thread_suspend_state::waitstatus_pending_p, and WSTOPSIG.

Referenced by detach_one_lwp(), and linux_nat_detach().

## ◆ handle_target_event()

static void handle_target_event | ( | int | error,
|  | gdb_client_data | client_data
| ) |  |
| static

Definition at line 4519 of file linux-nat.c.

References INF_REG_EVENT, and inferior_event_handler().

Referenced by linux_nat_async().

## ◆ iterate_over_lwps()

struct lwp_info* iterate_over_lwps | ( | ptid_t | filter,
|  | iterate_over_lwps_ftype | callback,
|  | void * | data
| ) |  |

Definition at line 990 of file linux-nat.c.

References lwp_list, lwp_info::next, lwp_info::ptid, and ptid_match().

Referenced by aarch64_notify_debug_reg_change(), arm_linux_insert_hw_breakpoint1(), arm_linux_remove_hw_breakpoint1(), linux_nat_detach(), linux_nat_filter_event(), linux_nat_kill(), linux_nat_resume(), linux_nat_stop(), linux_nat_wait(), linux_nat_wait_1(), linux_stop_and_wait_all_lwps(), linux_unstop_all_lwps(), s390_refresh_per_info(), select_event_lwp(), x86_linux_dr_set_addr(), and x86_linux_dr_set_control().

## ◆ kill_callback()

static int kill_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 3717 of file linux-nat.c.

References kill_one_lwp(), lwp_info::ptid, and ptid_get_lwp().

Referenced by linux_nat_kill().

## ◆ kill_lwp()

static int kill_lwp | ( | int | lwpid,
|  | int | signo
| ) |  |
| static

Definition at line 1839 of file linux-nat.c.

References perror_with_name().

Referenced by detach_one_lwp(), kill_one_lwp(), linux_nat_post_attach_wait(), and stop_callback().

## ◆ kill_one_lwp()

static void kill_one_lwp | ( | pid_t | pid | ) |
| static

Definition at line 3653 of file linux-nat.c.

References debug_linux_nat, fprintf_unfiltered(), gdb_stdlog, kill_lwp(), pid, ptrace(), and safe_strerror().

Referenced by kill_callback(), kill_unfollowed_fork_children(), and kill_wait_one_lwp().

## ◆ kill_unfollowed_fork_children()

static void kill_unfollowed_fork_children | ( | struct inferior * | inf | ) |
| static

Definition at line 3736 of file linux-nat.c.

References ALL_NON_EXITED_THREADS, thread_info::inf, kill_one_lwp(), kill_wait_one_lwp(), target_waitstatus::kind, linux_nat_forget_process(), thread_info::pending_follow, ptid_get_lwp(), ptid_get_pid(), target_waitstatus::related_pid, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, and target_waitstatus::value.

Referenced by linux_nat_kill().

## ◆ kill_wait_callback()

static int kill_wait_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 3726 of file linux-nat.c.

References kill_wait_one_lwp(), lwp_info::ptid, and ptid_get_lwp().

Referenced by linux_nat_kill().

## ◆ kill_wait_one_lwp()

static void kill_wait_one_lwp | ( | pid_t | pid | ) |
| static

Definition at line 3685 of file linux-nat.c.

References __WALL, debug_linux_nat, fprintf_unfiltered(), gdb_assert, gdb_stdlog, kill_one_lwp(), my_waitpid(), and pid.

Referenced by kill_unfollowed_fork_children(), and kill_wait_callback().

## ◆ lin_thread_get_thread_signals()

void lin_thread_get_thread_signals | ( | sigset_t * | set | ) |

Definition at line 5024 of file linux-nat.c.

References __SIGRTMIN.

Referenced by check_thread_signals().

## ◆ linux_async_pipe()

static int linux_async_pipe | ( | int | enable | ) |
| static

Definition at line 4527 of file linux-nat.c.

References block_child_signals(), enable, gdb_pipe_cloexec(), internal_error(), linux_is_async_p, linux_nat_event_pipe, and restore_child_signals_mask().

Referenced by linux_nat_async().

## ◆ linux_child_follow_fork()

static int linux_child_follow_fork | ( | struct target_ops * | ops,
|  | int | follow_child,
|  | int | detach_fork
| ) |  |
| static

Definition at line 476 of file linux-nat.c.

References _, add_lwp(), async_file_mark(), check_for_thread_db(), debug_linux_nat, delete_lwp_cleanup(), detach_fork, do_cleanups(), find_lwp_pid(), fprintf_unfiltered(), gdb_assert, gdb_signal_from_host(), gdb_stdlog, gdbarch_software_single_step_p(), inferior_ptid, inferior_thread(), target_waitstatus::kind, lwp_info::last_resume_kind, linux_disable_event_reporting(), linux_nat_prepare_to_resume, linux_supports_tracefork(), linux_supports_tracevforkdone(), make_cleanup(), make_scoped_restore(), my_waitpid(), thread_info::pending_follow, perror_with_name(), ptid_get_lwp(), ptrace(), target_waitstatus::related_pid, resume_stop, signal_pass_state(), lwp_info::status, status, lwp_info::stopped, target_is_async_p, target_thread_architecture, TARGET_WAITKIND_VFORK_DONE, TARGET_WAITKIND_VFORKED, target_waitstatus::value, W_STOPCODE, lwp_info::waitstatus, WIFSTOPPED, and WSTOPSIG.

Referenced by linux_target_install_ops().

## ◆ linux_child_insert_exec_catchpoint()

static int linux_child_insert_exec_catchpoint | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 666 of file linux-nat.c.

References linux_supports_tracefork().

Referenced by linux_target_install_ops().

## ◆ linux_child_insert_fork_catchpoint()

static int linux_child_insert_fork_catchpoint | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 642 of file linux-nat.c.

References linux_supports_tracefork().

Referenced by linux_target_install_ops().

## ◆ linux_child_insert_vfork_catchpoint()

static int linux_child_insert_vfork_catchpoint | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 654 of file linux-nat.c.

References linux_supports_tracefork().

Referenced by linux_target_install_ops().

## ◆ linux_child_pid_to_exec_file()

static char * linux_child_pid_to_exec_file | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 3972 of file linux-nat.c.

References linux_proc_pid_to_exec_file(), and pid.

Referenced by linux_handle_extended_wait(), and linux_target_install_ops().

## ◆ linux_child_post_attach()

static void linux_child_post_attach | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 435 of file linux-nat.c.

References linux_init_ptrace(), and pid.

Referenced by linux_target_install_ops().

## ◆ linux_child_post_startup_inferior()

static void linux_child_post_startup_inferior | ( | struct target_ops * | self,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 441 of file linux-nat.c.

References linux_init_ptrace(), and ptid_get_pid().

Referenced by linux_target_install_ops().

## ◆ linux_child_remove_exec_catchpoint()

static int linux_child_remove_exec_catchpoint | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 672 of file linux-nat.c.

Referenced by linux_target_install_ops().

## ◆ linux_child_remove_fork_catchpoint()

static int linux_child_remove_fork_catchpoint | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 648 of file linux-nat.c.

Referenced by linux_target_install_ops().

## ◆ linux_child_remove_vfork_catchpoint()

static int linux_child_remove_vfork_catchpoint | ( | struct target_ops * | self,
|  | int | pid
| ) |  |
| static

Definition at line 660 of file linux-nat.c.

Referenced by linux_target_install_ops().

## ◆ linux_child_set_syscall_catchpoint()

static int linux_child_set_syscall_catchpoint | ( | struct target_ops * | self,
|  | int | pid,
|  | bool | needed,
|  | int | any_count,
|  | gdb::array_view< const int > | syscall_counts
| ) |  |
| static

Definition at line 678 of file linux-nat.c.

References linux_supports_tracesysgood().

Referenced by linux_target_install_ops().

## ◆ linux_handle_extended_wait()

static int linux_handle_extended_wait | ( | struct lwp_info * | lp,
|  | int | status
| ) |  |
| static

Definition at line 1987 of file linux-nat.c.

References _, __WALL, add_fork(), add_lwp(), add_thread(), current_inferior(), debug_linux_nat, detach_breakpoints(), target_waitstatus::execd_pathname, find_fork_pid(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, internal_error(), target_waitstatus::kind, linux_child_pid_to_exec_file(), linux_fork_checkpointing_p(), linux_nat_new_fork, linux_ptrace_get_extended_event(), my_waitpid(), perror_with_name(), pid, lwp_info::ptid, ptid_build(), ptid_get_lwp(), ptid_get_pid(), ptrace(), PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_VFORK_DONE, PTRACE_GETEVENTMSG, pull_pid_from_list(), target_waitstatus::related_pid, report_thread_events, lwp_info::resumed, set_executing(), set_running(), lwp_info::signalled, lwp_info::status, status, status_to_str(), lwp_info::stopped, stopped_pids, lwp_info::syscall_state, target_post_attach, TARGET_WAITKIND_EXECD, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_SPURIOUS, TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_THREAD_CREATED, TARGET_WAITKIND_VFORK_DONE, TARGET_WAITKIND_VFORKED, thread_db_notice_clone(), target_waitstatus::value, lwp_info::waitstatus, WIFSTOPPED, and WSTOPSIG.

Referenced by linux_nat_filter_event(), and wait_lwp().

## ◆ linux_handle_syscall_trap()

static int linux_handle_syscall_trap | ( | struct lwp_info * | lp,
|  | int | stopping
| ) |  |
| static

Definition at line 1861 of file linux-nat.c.

References catch_syscall_enabled(), catching_syscall_number(), debug_linux_nat, fprintf_unfiltered(), gdb_stdlog, gdbarch_get_syscall_number(), target_waitstatus::kind, linux_resume_one_lwp(), lwp_info::ptid, ptid_get_lwp(), ptrace(), lwp_info::step, lwp_info::stopped, target_waitstatus::syscall_number, lwp_info::syscall_state, target_thread_architecture, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN, target_waitstatus::value, and lwp_info::waitstatus.

Referenced by linux_nat_filter_event(), and wait_lwp().

## ◆ linux_init_ptrace()

static void linux_init_ptrace | ( | pid_t | pid,
|  | int | attached
| ) |  |
| static

Definition at line 426 of file linux-nat.c.

References linux_enable_event_reporting(), linux_nat_ptrace_options(), linux_ptrace_init_warnings(), and pid.

Referenced by linux_child_post_attach(), and linux_child_post_startup_inferior().

## ◆ linux_nat_add_target()

void linux_nat_add_target | ( | struct target_ops * | t | ) |

Definition at line 4804 of file linux-nat.c.

References add_target(), linux_nat_always_non_stop_p(), linux_nat_async(), linux_nat_attach(), linux_nat_can_async_p(), linux_nat_close(), linux_nat_core_of_thread(), linux_nat_create_inferior(), linux_nat_detach(), linux_nat_fileio_open(), linux_nat_fileio_readlink(), linux_nat_fileio_unlink(), linux_nat_filesystem_is_local(), linux_nat_is_async_p(), linux_nat_kill(), linux_nat_mourn_inferior(), linux_nat_pass_signals(), linux_nat_pid_to_str(), linux_nat_resume(), linux_nat_stop(), linux_nat_stopped_by_hw_breakpoint(), linux_nat_stopped_by_sw_breakpoint(), linux_nat_stopped_by_watchpoint(), linux_nat_stopped_data_address(), linux_nat_supports_disable_randomization(), linux_nat_supports_multi_process(), linux_nat_supports_non_stop(), linux_nat_supports_stopped_by_hw_breakpoint(), linux_nat_supports_stopped_by_sw_breakpoint(), linux_nat_terminal_inferior(), linux_nat_terminal_ours(), linux_nat_thread_address_space(), linux_nat_thread_alive(), linux_nat_thread_events(), linux_nat_thread_name(), linux_nat_update_thread_list(), linux_nat_wait(), linux_nat_xfer_partial(), linux_ops, linux_ops_saved, super_close, tc_schedlock, target_ops::to_always_non_stop_p, target_ops::to_async, target_ops::to_attach, target_ops::to_can_async_p, target_ops::to_close, target_ops::to_core_of_thread, target_ops::to_create_inferior, target_ops::to_detach, target_ops::to_fileio_open, target_ops::to_fileio_readlink, target_ops::to_fileio_unlink, target_ops::to_filesystem_is_local, target_ops::to_has_thread_control, target_ops::to_is_async_p, target_ops::to_kill, target_ops::to_mourn_inferior, target_ops::to_pass_signals, target_ops::to_pid_to_str, target_ops::to_resume, target_ops::to_stop, target_ops::to_stopped_by_hw_breakpoint, target_ops::to_stopped_by_sw_breakpoint, target_ops::to_stopped_by_watchpoint, target_ops::to_stopped_data_address, target_ops::to_supports_disable_randomization, target_ops::to_supports_multi_process, target_ops::to_supports_non_stop, target_ops::to_supports_stopped_by_hw_breakpoint, target_ops::to_supports_stopped_by_sw_breakpoint, target_ops::to_terminal_inferior, target_ops::to_terminal_ours, target_ops::to_thread_address_space, target_ops::to_thread_alive, target_ops::to_thread_events, target_ops::to_thread_name, target_ops::to_update_thread_list, target_ops::to_wait, and target_ops::to_xfer_partial.

Referenced by _initialize_aarch64_linux_nat(), _initialize_alpha_linux_nat(), _initialize_arm_linux_nat(), _initialize_hppa_linux_nat(), _initialize_ia64_linux_nat(), _initialize_m32r_linux_nat(), _initialize_m68k_linux_nat(), _initialize_mips_linux_nat(), _initialize_ppc_linux_nat(), _initialize_s390_nat(), _initialize_sparc64_linux_nat(), _initialize_sparc_linux_nat(), _initialize_tile_linux_nat(), _initialize_xtensa_linux_nat(), and x86_linux_add_target().

## ◆ linux_nat_always_non_stop_p()

static int linux_nat_always_non_stop_p | ( | struct target_ops * | self | ) |
| static

Definition at line 4425 of file linux-nat.c.

Referenced by linux_nat_add_target().

## ◆ linux_nat_async()

static void linux_nat_async | ( | struct target_ops * | ops,
|  | int | enable
| ) |  |
| static

Definition at line 4565 of file linux-nat.c.

References add_file_handler(), async_file_mark(), delete_file_handler(), enable, handle_target_event(), linux_async_pipe(), and linux_nat_event_pipe.

Referenced by linux_nat_add_target(), and linux_nat_close().

## ◆ linux_nat_attach()

static void linux_nat_attach | ( | struct target_ops * | ops,
|  | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1210 of file linux-nat.c.

References _, add_initial_lwp(), attach_proc_task_lwp_callback(), buffer_finish(), buffer_grow_str0, buffer_init(), CATCH, debug_linux_nat, END_CATCH, error(), fprintf_unfiltered(), gdb_signal_from_host(), gdb_signal_to_name(), gdb_signal_to_string(), gdb_stdlog, inferior_ptid, internal_error(), linux_nat_pass_signals(), linux_nat_post_attach_wait(), linux_ops, linux_proc_attach_tgid_threads(), linux_ptrace_attach_fail_reason(), make_cleanup(), target_terminal::ours(), parse_pid_to_attach(), pid, lwp_info::ptid, ptid_build(), ptid_get_lwp(), ptid_get_pid(), lwp_info::resumed, RETURN_MASK_ERROR, lwp_info::signalled, lwp_info::status, status, status_to_str(), lwp_info::stopped, target_async(), target_can_async_p, target_mourn_inferior(), thread_change_ptid(), throw_error(), target_ops::to_attach, TRY, WEXITSTATUS, WIFEXITED, WIFSIGNALED, WIFSTOPPED, WTERMSIG, and xfree().

Referenced by linux_nat_add_target().

## ◆ linux_nat_can_async_p()

static int linux_nat_can_async_p | ( | struct target_ops * | ops | ) |
| static

Definition at line 4409 of file linux-nat.c.

References target_async_permitted.

Referenced by linux_nat_add_target().

## ◆ linux_nat_close()

static void linux_nat_close | ( | struct target_ops * | self | ) |
| static

Definition at line 4640 of file linux-nat.c.

References linux_nat_async(), linux_nat_is_async_p(), linux_ops, super_close, and target_ops::to_close.

Referenced by linux_nat_add_target().

## ◆ linux_nat_core_of_thread()

static int linux_nat_core_of_thread | ( | struct target_ops * | ops,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 4687 of file linux-nat.c.

References lwp_info::core, find_lwp_pid(), and lwp_info::ptid.

Referenced by linux_nat_add_target().

## ◆ linux_nat_create_inferior()

static void linux_nat_create_inferior | ( | struct target_ops * | ops,
|  | const char * | exec_file,
|  | const std::string & | allargs,
|  | char ** | env,
|  | int | from_tty
| ) |  |
| static

Definition at line 1117 of file linux-nat.c.

References disable_randomization, linux_nat_pass_signals(), linux_ops, and target_ops::to_create_inferior.

Referenced by linux_nat_add_target().

## ◆ linux_nat_detach()

static void linux_nat_detach | ( | struct target_ops * | ops,
|  | const char * | args,
|  | int | from_tty
| ) |  |
| static

Definition at line 1510 of file linux-nat.c.

References detach_callback(), detach_one_lwp(), find_lwp_pid(), forks_exist_p(), gdb_assert, get_detach_signal(), inf_ptrace_detach_success(), inferior_ptid, iterate_over_lwps(), linux_fork_detach(), num_lwps(), pid, pid_to_ptid(), ptid_get_pid(), stop_callback(), stop_wait_callback(), and target_announce_detach().

Referenced by linux_nat_add_target().

## ◆ linux_nat_fileio_open()

static int linux_nat_fileio_open | ( | struct target_ops * | self,
|  | struct inferior * | inf,
|  | const char * | filename,
|  | int | flags,
|  | int | mode,
|  | int | warn_if_slow,
|  | int * | target_errno
| ) |  |
| static

Definition at line 4729 of file linux-nat.c.

References fileio_to_host_mode(), fileio_to_host_openflags(), flags, host_to_fileio_error(), linux_mntns_open_cloexec(), and linux_nat_fileio_pid_of().

Referenced by linux_nat_add_target().

## ◆ linux_nat_fileio_pid_of()

static pid_t linux_nat_fileio_pid_of | ( | struct inferior * | inf | ) |
| static

Definition at line 4718 of file linux-nat.c.

References inf::pid.

Referenced by linux_nat_fileio_open(), linux_nat_fileio_readlink(), and linux_nat_fileio_unlink().

## ◆ linux_nat_fileio_readlink()

static char* linux_nat_fileio_readlink | ( | struct target_ops * | self,
|  | struct inferior * | inf,
|  | const char * | filename,
|  | int * | target_errno
| ) |  |
| static

Definition at line 4756 of file linux-nat.c.

References host_to_fileio_error(), linux_mntns_readlink(), linux_nat_fileio_pid_of(), and xmalloc().

Referenced by linux_nat_add_target().

## ◆ linux_nat_fileio_unlink()

static int linux_nat_fileio_unlink | ( | struct target_ops * | self,
|  | struct inferior * | inf,
|  | const char * | filename,
|  | int * | target_errno
| ) |  |
| static

Definition at line 4781 of file linux-nat.c.

References host_to_fileio_error(), linux_mntns_unlink(), and linux_nat_fileio_pid_of().

Referenced by linux_nat_add_target().

## ◆ linux_nat_filesystem_is_local()

static int linux_nat_filesystem_is_local | ( | struct target_ops * | ops | ) |
| static

Definition at line 4699 of file linux-nat.c.

References current_inferior(), LINUX_NS_MNT, linux_ns_same(), and inf::pid.

Referenced by linux_nat_add_target().

## ◆ linux_nat_filter_event()

static struct lwp_info* linux_nat_filter_event | ( | int | lwpid,
|  | int | status
| ) |  |
| static

Definition at line 2972 of file linux-nat.c.

References add_lwp(), add_thread(), add_to_pid_list(), debug_linux_nat, exit_lwp(), find_inferior_pid(), find_lwp_pid(), fprintf_unfiltered(), gdb_assert, gdb_signal_from_host(), gdb_signal_to_host(), gdb_stdlog, lwp_info::ignore_sigint, iterate_over_lwps(), lwp_info::last_resume_kind, linux_enable_event_reporting(), linux_handle_extended_wait(), linux_handle_syscall_trap(), linux_is_extended_waitstatus(), linux_nat_ptrace_options(), linux_ptrace_get_extended_event(), linux_resume_one_lwp(), linux_wstatus_maybe_breakpoint(), maybe_clear_ignore_sigint(), lwp_info::must_set_ptrace_flags, num_lwps(), pass_mask, pid_to_ptid(), lwp_info::ptid, ptid_build(), ptid_get_lwp(), ptid_get_pid(), PTRACE_EVENT_EXEC, report_thread_events, resume_stop, lwp_info::resumed, save_stop_reason(), set_ignore_sigint(), signal_pass_state(), lwp_info::signalled, lwp_info::status, status, status_to_str(), lwp_info::step, lwp_info::stopped, stopped_pids, store_waitstatus(), SYSCALL_SIGTRAP, lwp_info::syscall_state, target_is_non_stop_p(), target_pid_to_str(), TARGET_WAITKIND_IGNORE, W_STOPCODE, lwp_info::waitstatus, WIFEXITED, WIFSIGNALED, WIFSTOPPED, and WSTOPSIG.

Referenced by linux_nat_wait_1().

## ◆ linux_nat_forget_process()

void linux_nat_forget_process | ( | pid_t | pid | ) |

Definition at line 4916 of file linux-nat.c.

References linux_nat_forget_process_hook, and pid.

Referenced by delete_fork(), kill_unfollowed_fork_children(), and linux_nat_mourn_inferior().

## ◆ linux_nat_get_siginfo()

int linux_nat_get_siginfo | ( | ptid_t | ptid,
|  | siginfo_t * | siginfo
| ) |  |

Definition at line 4948 of file linux-nat.c.

References memset(), pid, ptid_get_lwp(), ptid_get_pid(), ptrace(), PTRACE_GETSIGINFO, and PTRACE_TYPE_ARG3.

Referenced by aarch64_linux_stopped_data_address(), arm_linux_stopped_data_address(), ia64_linux_stopped_data_address(), ppc_linux_stopped_data_address(), and save_stop_reason().

## ◆ linux_nat_has_pending_sigint()

static int linux_nat_has_pending_sigint | ( | int | pid | ) |
| static

Definition at line 2400 of file linux-nat.c.

References linux_proc_pending_signals(), and pid.

Referenced by maybe_clear_ignore_sigint().

## ◆ linux_nat_is_async_p()

static int linux_nat_is_async_p | ( | struct target_ops * | ops | ) |
| static

Definition at line 4401 of file linux-nat.c.

References linux_is_async_p.

Referenced by linux_nat_add_target(), and linux_nat_close().

## ◆ linux_nat_kill()

static void linux_nat_kill | ( | struct target_ops * | ops | ) |
| static

Definition at line 3763 of file linux-nat.c.

References current_inferior(), forks_exist_p(), inferior_ptid, iterate_over_lwps(), kill_callback(), kill_unfollowed_fork_children(), kill_wait_callback(), linux_fork_killall(), pid_to_ptid(), ptid_get_pid(), stop_callback(), stop_wait_callback(), and target_mourn_inferior().

Referenced by linux_nat_add_target().

## ◆ linux_nat_mourn_inferior()

static void linux_nat_mourn_inferior | ( | struct target_ops * | ops | ) |
| static

Definition at line 3794 of file linux-nat.c.

References forks_exist_p(), inferior_ptid, linux_fork_mourn_inferior(), linux_nat_forget_process(), linux_ops, pid, ptid_get_pid(), purge_lwp_list(), and target_ops::to_mourn_inferior.

Referenced by linux_nat_add_target().

## ◆ linux_nat_pass_signals()

static void linux_nat_pass_signals | ( | struct target_ops * | self,
|  | int | numsigs,
|  | unsigned char * | pass_signals
| ) |  |
| static

Definition at line 815 of file linux-nat.c.

References gdb_signal_from_host(), and pass_mask.

Referenced by linux_nat_add_target(), linux_nat_attach(), and linux_nat_create_inferior().

## ◆ linux_nat_pid_to_str()

static const char* linux_nat_pid_to_str | ( | struct target_ops * | ops,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 3947 of file linux-nat.c.

References normal_pid_to_str(), num_lwps(), lwp_info::ptid, ptid_get_lwp(), ptid_get_pid(), and ptid_lwp_p().

Referenced by linux_nat_add_target().

## ◆ linux_nat_post_attach_wait()

static int linux_nat_post_attach_wait | ( | ptid_t | ptid,
|  | int * | signalled
| ) |  |
| static

Definition at line 1058 of file linux-nat.c.

References __WALL, debug_linux_nat, fprintf_unfiltered(), gdb_assert, gdb_stdlog, kill_lwp(), linux_proc_pid_is_stopped(), my_waitpid(), pid, thread_info::ptid, ptid_get_lwp(), ptrace(), status, status_to_str(), WIFSTOPPED, and WSTOPSIG.

Referenced by linux_nat_attach().

## ◆ linux_nat_ptrace_options()

static int linux_nat_ptrace_options | ( | int | attached | ) |
| static

Definition at line 404 of file linux-nat.c.

References PTRACE_O_EXITKILL, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEFORK, PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEVFORK, and PTRACE_O_TRACEVFORKDONE.

Referenced by linux_init_ptrace(), linux_nat_filter_event(), and wait_lwp().

## ◆ linux_nat_resume()

static void linux_nat_resume | ( | struct target_ops * | ops,
|  | ptid_t | ptid,
|  | int | step,
|  | enum gdb_signal | signo
| ) |  |
| static

Definition at line 1739 of file linux-nat.c.

References async_file_mark(), debug_linux_nat, find_lwp_pid(), fprintf_unfiltered(), gdb_assert, gdb_signal_from_host(), gdb_signal_to_host(), gdb_stdlog, inferior_ptid, iterate_over_lwps(), lwp_info::last_resume_kind, linux_nat_resume_callback(), linux_resume_one_lwp(), lwp_status_pending_p(), minus_one_ptid, pass_mask, lwp_info::ptid, ptid_equal(), ptid_is_pid(), resume_continue, resume_set_callback(), resume_step, lwp_info::status, lwp_info::step, target_async(), target_can_async_p, target_pid_to_str(), WIFSTOPPED, and WSTOPSIG.

Referenced by linux_nat_add_target().

## ◆ linux_nat_resume_callback()

static int linux_nat_resume_callback | ( | struct lwp_info * | lp,
|  | void * | except
| ) |  |
| static

Definition at line 1699 of file linux-nat.c.

References find_thread_ptid(), lwp_info::ptid, resume_lwp(), thread_suspend_state::stop_signal, lwp_info::stopped, and thread_info::suspend.

Referenced by linux_nat_resume().

## ◆ linux_nat_set_delete_thread()

void linux_nat_set_delete_thread | ( | struct target_ops * | t,
|  | void(*)(struct arch_lwp_info *) | delete_thread
| ) |  |

Definition at line 4884 of file linux-nat.c.

References delete_thread(), and linux_nat_delete_thread.

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_s390_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_forget_process()

void linux_nat_set_forget_process | ( | struct target_ops * | t,
|  | linux_nat_forget_process_ftype * | fn
| ) |  |

Definition at line 4906 of file linux-nat.c.

References linux_nat_forget_process_hook.

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_s390_nat(), _initialize_sparc64_linux_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_new_fork()

void linux_nat_set_new_fork | ( | struct target_ops * | t,
|  | linux_nat_new_fork_ftype * | new_fork
| ) |  |

Definition at line 4896 of file linux-nat.c.

References linux_nat_new_fork.

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_s390_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_new_thread()

void linux_nat_set_new_thread | ( | struct target_ops * | t,
|  | void(*)(struct lwp_info *) | new_thread
| ) |  |

Definition at line 4873 of file linux-nat.c.

References linux_nat_new_thread, and new_thread().

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_ia64_linux_nat(), _initialize_mips_linux_nat(), _initialize_ppc_linux_nat(), _initialize_s390_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_prepare_to_resume()

void linux_nat_set_prepare_to_resume | ( | struct target_ops * | t,
|  | void(*)(struct lwp_info *) | prepare_to_resume
| ) |  |

Definition at line 4938 of file linux-nat.c.

References linux_nat_prepare_to_resume.

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_s390_nat(), and x86_linux_add_target().

## ◆ linux_nat_set_siginfo_fixup()

void linux_nat_set_siginfo_fixup | ( | struct target_ops * | t,
|  | int(*)(siginfo_t *, gdb_byte *, int) | siginfo_fixup
| ) |  |

Definition at line 4926 of file linux-nat.c.

References linux_nat_siginfo_fixup, and siginfo_fixup().

Referenced by _initialize_aarch64_linux_nat(), and _initialize_amd64_linux_nat().

## ◆ linux_nat_set_status_is_event()

void linux_nat_set_status_is_event | ( | struct target_ops * | t,
|  | int(*)(int status) | status_is_event
| ) |  |

Definition at line 2527 of file linux-nat.c.

References linux_nat_status_is_event.

Referenced by _initialize_ia64_linux_nat().

## ◆ linux_nat_stop()

static void linux_nat_stop | ( | struct target_ops * | self,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 4634 of file linux-nat.c.

References iterate_over_lwps(), and linux_nat_stop_lwp().

Referenced by linux_nat_add_target().

## ◆ linux_nat_stop_lwp()

static int linux_nat_stop_lwp | ( | struct lwp_info * | lwp,
|  | void * | data
| ) |  |
| static

Definition at line 4590 of file linux-nat.c.

References debug_linux_nat, find_thread_ptid(), fprintf_unfiltered(), gdb_stdlog, selftests::ptid::lwp, ptid_get_lwp(), resume_stop, stop_callback(), thread_info::stop_requested, and target_pid_to_str().

Referenced by linux_nat_stop().

## ◆ linux_nat_stopped_by_hw_breakpoint()

static int linux_nat_stopped_by_hw_breakpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 2875 of file linux-nat.c.

References find_lwp_pid(), gdb_assert, inferior_ptid, lwp_info::stop_reason, and TARGET_STOPPED_BY_HW_BREAKPOINT.

Referenced by linux_nat_add_target().

## ◆ linux_nat_stopped_by_sw_breakpoint()

static int linux_nat_stopped_by_sw_breakpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 2854 of file linux-nat.c.

References find_lwp_pid(), gdb_assert, inferior_ptid, lwp_info::stop_reason, and TARGET_STOPPED_BY_SW_BREAKPOINT.

Referenced by linux_nat_add_target().

## ◆ linux_nat_stopped_by_watchpoint()

static int linux_nat_stopped_by_watchpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 2493 of file linux-nat.c.

References find_lwp_pid(), gdb_assert, inferior_ptid, lwp_info::stop_reason, and TARGET_STOPPED_BY_WATCHPOINT.

Referenced by linux_nat_add_target().

## ◆ linux_nat_stopped_data_address()

static int linux_nat_stopped_data_address | ( | struct target_ops * | ops,
|  | CORE_ADDR * | addr_p
| ) |  |
| static

Definition at line 2503 of file linux-nat.c.

References find_lwp_pid(), gdb_assert, inferior_ptid, lwp_info::stopped_data_address, and lwp_info::stopped_data_address_p.

Referenced by linux_nat_add_target().

## ◆ linux_nat_supports_disable_randomization()

static int linux_nat_supports_disable_randomization | ( | struct target_ops * | self | ) |
| static

Definition at line 4442 of file linux-nat.c.

Referenced by linux_nat_add_target().

## ◆ linux_nat_supports_multi_process()

static int linux_nat_supports_multi_process | ( | struct target_ops * | self | ) |
| static

Definition at line 4436 of file linux-nat.c.

References linux_multi_process.

Referenced by linux_nat_add_target().

## ◆ linux_nat_supports_non_stop()

static int linux_nat_supports_non_stop | ( | struct target_ops * | self | ) |
| static

Definition at line 4417 of file linux-nat.c.

Referenced by linux_nat_add_target().

## ◆ linux_nat_supports_stopped_by_hw_breakpoint()

static int linux_nat_supports_stopped_by_hw_breakpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 2887 of file linux-nat.c.

References USE_SIGTRAP_SIGINFO.

Referenced by linux_nat_add_target().

## ◆ linux_nat_supports_stopped_by_sw_breakpoint()

static int linux_nat_supports_stopped_by_sw_breakpoint | ( | struct target_ops * | ops | ) |
| static

Definition at line 2866 of file linux-nat.c.

References USE_SIGTRAP_SIGINFO.

Referenced by linux_nat_add_target().

## ◆ linux_nat_switch_fork()

void linux_nat_switch_fork | ( | ptid_t | new_ptid | ) |

Definition at line 1016 of file linux-nat.c.

References add_lwp(), inferior_ptid, ptid_get_pid(), purge_lwp_list(), registers_changed(), lwp_info::stopped, and thread_change_ptid().

Referenced by fork_load_infrun_state().

## ◆ linux_nat_terminal_inferior()

static void linux_nat_terminal_inferior | ( | struct target_ops * | self | ) |
| static

Definition at line 4458 of file linux-nat.c.

References async_terminal_is_ours, child_terminal_inferior(), and set_sigint_trap().

Referenced by linux_nat_add_target().

## ◆ linux_nat_terminal_ours()

static void linux_nat_terminal_ours | ( | struct target_ops * | self | ) |
| static

Definition at line 4480 of file linux-nat.c.

References async_terminal_is_ours, child_terminal_ours(), and clear_sigint_trap().

Referenced by linux_nat_add_target().

## ◆ linux_nat_thread_address_space()

static struct address_space* linux_nat_thread_address_space | ( | struct target_ops * | t,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 4660 of file linux-nat.c.

References find_inferior_pid(), find_lwp_pid(), gdb_assert, arm-linux::inf, selftests::ptid::lwp, pid, ptid_get_lwp(), and ptid_get_pid().

Referenced by linux_nat_add_target().

## ◆ linux_nat_thread_alive()

static int linux_nat_thread_alive | ( | struct target_ops * | ops,
|  | ptid_t | ptid
| ) |  |
| static

Definition at line 3915 of file linux-nat.c.

References find_lwp_pid().

Referenced by linux_nat_add_target().

## ◆ linux_nat_thread_events()

static void linux_nat_thread_events | ( | struct target_ops * | ops,
|  | int | enable
| ) |  |
| static

Definition at line 4798 of file linux-nat.c.

References enable, and report_thread_events.

Referenced by linux_nat_add_target().

## ◆ linux_nat_thread_name()

static const char* linux_nat_thread_name | ( | struct target_ops * | self,
|  | struct thread_info * | thr
| ) |  |
| static

Definition at line 3963 of file linux-nat.c.

References linux_proc_tid_get_name(), and thread_info::ptid.

Referenced by linux_nat_add_target().

## ◆ linux_nat_update_thread_list()

static void linux_nat_update_thread_list | ( | struct target_ops * | ops | ) |
| static

Definition at line 3925 of file linux-nat.c.

References ALL_LWPS, delete_exited_threads(), linux_common_core_of_thread(), and selftests::ptid::lwp.

Referenced by linux_nat_add_target().

## ◆ linux_nat_wait()

static ptid_t linux_nat_wait | ( | struct target_ops * | ops,
|  | ptid_t | ptid,
|  | struct target_waitstatus * | ourstatus,
|  | int | target_options
| ) |  |
| static

Definition at line 3604 of file linux-nat.c.

References async_file_flush(), async_file_mark(), debug_linux_nat, fprintf_unfiltered(), gdb_stdlog, iterate_over_lwps(), target_waitstatus::kind, linux_nat_wait_1(), minus_one_ptid, ptid_equal(), resume_stopped_resumed_lwps(), target_is_async_p, target_is_non_stop_p(), target_options_to_string(), target_pid_to_str(), TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, and xfree().

Referenced by linux_nat_add_target().

## ◆ linux_nat_wait_1()

static ptid_t linux_nat_wait_1 | ( | struct target_ops * | ops,
|  | ptid_t | ptid,
|  | struct target_waitstatus * | ourstatus,
|  | int | target_options
| ) |  |
| static

Definition at line 3298 of file linux-nat.c.

References __WALL, add_initial_lwp(), regcache::arch(), block_child_signals(), check_zombie_leaders(), lwp_info::core, debug_linux_nat, filter_exit_event(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, gdbarch_decr_pc_after_break(), get_thread_regcache(), inferior_ptid, iterate_over_lwps(), target_waitstatus::kind, lwp_info::last_resume_kind, linux_common_core_of_thread(), linux_nat_filter_event(), linux_nat_status_is_event, minus_one_ptid, my_waitpid(), lwp_info::ptid, ptid_build(), ptid_equal(), ptid_get_pid(), ptid_is_pid(), regcache_read_pc(), regcache_write_pc(), restore_child_signals_mask(), resume_clear_callback(), resume_stop, resume_stopped_resumed_lwps(), lwp_info::resumed, resumed_callback(), safe_strerror(), select_event_lwp(), target_waitstatus::sig, lwp_info::status, status, status_callback(), status_to_str(), stop_callback(), lwp_info::stop_reason, stop_wait_callback(), store_waitstatus(), suspend_mask, target_is_non_stop_p(), target_pid_to_str(), TARGET_STOPPED_BY_SW_BREAKPOINT, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WNOHANG, thread_change_ptid(), USE_SIGTRAP_SIGINFO, target_waitstatus::value, lwp_info::waitstatus, WNOHANG, and WSTOPSIG.

Referenced by linux_nat_wait().

## ◆ linux_nat_xfer_osdata()

static enum target_xfer_status linux_nat_xfer_osdata | ( | struct target_ops * | ops,
|  | enum target_object | object,
|  | const char * | annex,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf,
|  | ULONGEST | offset,
|  | ULONGEST | len,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 4226 of file linux-nat.c.

References gdb_assert, linux_common_xfer_osdata(), offset, TARGET_OBJECT_OSDATA, TARGET_XFER_EOF, and TARGET_XFER_OK.

Referenced by linux_xfer_partial().

## ◆ linux_nat_xfer_partial()

static enum target_xfer_status linux_nat_xfer_partial | ( | struct target_ops * | ops,
|  | enum target_object | object,
|  | const char * | annex,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf,
|  | ULONGEST | offset,
|  | ULONGEST | len,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 3891 of file linux-nat.c.

References inferior_ptid, linux_ops, linux_xfer_siginfo(), null_ptid, offset, ptid_equal(), TARGET_OBJECT_MEMORY, TARGET_OBJECT_SIGNAL_INFO, TARGET_XFER_EOF, and target_ops::to_xfer_partial.

Referenced by linux_nat_add_target().

## ◆ linux_proc_pending_signals()

void linux_proc_pending_signals | ( | int | pid,
|  | sigset_t * | pending,
|  | sigset_t * | blocked,
|  | sigset_t * | ignored
| ) |  |

Definition at line 4191 of file linux-nat.c.

References _, add_line_to_sigset(), error(), gdb_fopen_cloexec(), pid, startswith(), and xsnprintf().

Referenced by linux_nat_has_pending_sigint().

## ◆ linux_proc_xfer_partial()

static enum target_xfer_status linux_proc_xfer_partial | ( | struct target_ops * | ops,
|  | enum target_object | object,
|  | const char * | annex,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf,
|  | ULONGEST | offset,
|  | LONGEST | len,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 3982 of file linux-nat.c.

References gdb_open_cloexec(), inferior_ptid, O_LARGEFILE, offset, ptid_get_lwp(), read(), SEEK_SET, TARGET_OBJECT_MEMORY, TARGET_XFER_EOF, TARGET_XFER_OK, and xsnprintf().

Referenced by linux_xfer_partial().

## ◆ linux_proc_xfer_spu()

static enum target_xfer_status linux_proc_xfer_spu | ( | struct target_ops * | ops,
|  | enum target_object | object,
|  | const char * | annex,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf,
|  | ULONGEST | offset,
|  | ULONGEST | len,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 4086 of file linux-nat.c.

References gdb_open_cloexec(), inferior_ptid, offset, pid, ptid_get_lwp(), read(), SEEK_SET, spu_enumerate_spu_ids(), TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and xsnprintf().

Referenced by linux_xfer_partial().

## ◆ linux_resume_one_lwp()

static void linux_resume_one_lwp | ( | struct lwp_info * | lp,
|  | int | step,
|  | enum gdb_signal | signo
| ) |  |
| static

Definition at line 1635 of file linux-nat.c.

References CATCH, check_ptrace_stopped_lwp_gone(), END_CATCH, linux_resume_one_lwp_throw(), RETURN_MASK_ERROR, throw_exception(), and TRY.

Referenced by linux_handle_syscall_trap(), linux_nat_filter_event(), linux_nat_resume(), resume_lwp(), and status_callback().

## ◆ linux_resume_one_lwp_throw()

static void linux_resume_one_lwp_throw | ( | struct lwp_info * | lp,
|  | int | step,
|  | enum gdb_signal | signo
| ) |  |
| static

Definition at line 1566 of file linux-nat.c.

References lwp_info::core, get_thread_regcache(), linux_nat_prepare_to_resume, linux_ops, lwp_info::ptid, regcache_read_pc(), registers_changed_ptid(), lwp_info::step, lwp_info::stop_pc, lwp_info::stop_reason, lwp_info::stopped, TARGET_STOPPED_BY_NO_REASON, and target_ops::to_resume.

Referenced by linux_resume_one_lwp(), and resume_stopped_resumed_lwps().

## ◆ linux_stop_and_wait_all_lwps()

void linux_stop_and_wait_all_lwps | ( | void |  | ) |

Definition at line 2378 of file linux-nat.c.

References iterate_over_lwps(), minus_one_ptid, stop_callback(), and stop_wait_callback().

Referenced by try_thread_db_load_1().

## ◆ linux_stop_lwp()

void linux_stop_lwp | ( | struct lwp_info * | lwp | ) |

Definition at line 2370 of file linux-nat.c.

References selftests::ptid::lwp, and stop_callback().

Referenced by debug_reg_change_callback(), s390_refresh_per_info_cb(), update_debug_registers_callback(), and update_registers_callback().

## ◆ linux_target()

struct target_ops* linux_target | ( | void |  | ) |

Definition at line 4377 of file linux-nat.c.

References inf_ptrace_target(), and linux_target_install_ops().

Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), _initialize_hppa_linux_nat(), _initialize_ia64_linux_nat(), _initialize_m32r_linux_nat(), _initialize_m68k_linux_nat(), _initialize_ppc_linux_nat(), _initialize_s390_nat(), _initialize_sparc64_linux_nat(), _initialize_sparc_linux_nat(), _initialize_tile_linux_nat(), _initialize_xtensa_linux_nat(), and x86_linux_create_target().

## ◆ linux_target_install_ops()

static void linux_target_install_ops | ( | struct target_ops * | t | ) |
| static

Definition at line 4355 of file linux-nat.c.

References linux_child_follow_fork(), linux_child_insert_exec_catchpoint(), linux_child_insert_fork_catchpoint(), linux_child_insert_vfork_catchpoint(), linux_child_pid_to_exec_file(), linux_child_post_attach(), linux_child_post_startup_inferior(), linux_child_remove_exec_catchpoint(), linux_child_remove_fork_catchpoint(), linux_child_remove_vfork_catchpoint(), linux_child_set_syscall_catchpoint(), linux_xfer_partial(), super_xfer_partial, target_ops::to_follow_fork, target_ops::to_insert_exec_catchpoint, target_ops::to_insert_fork_catchpoint, target_ops::to_insert_vfork_catchpoint, target_ops::to_pid_to_exec_file, target_ops::to_post_attach, target_ops::to_post_startup_inferior, target_ops::to_remove_exec_catchpoint, target_ops::to_remove_fork_catchpoint, target_ops::to_remove_vfork_catchpoint, target_ops::to_set_syscall_catchpoint, and target_ops::to_xfer_partial.

Referenced by linux_target(), and linux_trad_target().

## ◆ linux_trad_target()

struct target_ops* linux_trad_target | ( | CORE_ADDR(*)(struct gdbarch *, int, int) | register_u_offset | ) |

Definition at line 4388 of file linux-nat.c.

References inf_ptrace_trad_target(), and linux_target_install_ops().

Referenced by _initialize_alpha_linux_nat(), and _initialize_mips_linux_nat().

## ◆ linux_unstop_all_lwps()

void linux_unstop_all_lwps | ( | void |  | ) |

Definition at line 2391 of file linux-nat.c.

References iterate_over_lwps(), minus_one_ptid, and resume_stopped_resumed_lwps().

Referenced by try_thread_db_load_1().

## ◆ linux_xfer_partial()

static enum target_xfer_status linux_xfer_partial | ( | struct target_ops * | ops,
|  | enum target_object | object,
|  | const char * | annex,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf,
|  | ULONGEST | offset,
|  | ULONGEST | len,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 4241 of file linux-nat.c.

References gdbarch_addr_bit(), HOST_CHAR_BIT, linux_nat_xfer_osdata(), linux_proc_xfer_partial(), linux_proc_xfer_spu(), memory_xfer_auxv, offset, super_xfer_partial, target_gdbarch(), TARGET_OBJECT_AUXV, TARGET_OBJECT_MEMORY, TARGET_OBJECT_OSDATA, TARGET_OBJECT_SPU, and TARGET_XFER_EOF.

Referenced by linux_target_install_ops().

## ◆ linux_xfer_siginfo()

static enum target_xfer_status linux_xfer_siginfo | ( | struct target_ops * | ops,
|  | enum target_object | object,
|  | const char * | annex,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf,
|  | ULONGEST | offset,
|  | ULONGEST | len,
|  | ULONGEST * | xfered_len
| ) |  |
| static

Definition at line 3836 of file linux-nat.c.

References gdb_assert, inferior_ptid, offset, pid, ptid_get_lwp(), ptid_get_pid(), ptrace(), PTRACE_GETSIGINFO, PTRACE_SETSIGINFO, PTRACE_TYPE_ARG3, siginfo_fixup(), TARGET_OBJECT_SIGNAL_INFO, TARGET_XFER_E_IO, and TARGET_XFER_OK.

Referenced by linux_nat_xfer_partial().

## ◆ lwp_arch_private_info()

struct arch_lwp_info* lwp_arch_private_info | ( | struct lwp_info * | lwp | ) |

Definition at line 340 of file linux-nat.c.

References selftests::ptid::lwp.

Referenced by aarch64_linux_prepare_to_resume(), debug_reg_change_callback(), lwp_debug_registers_changed(), lwp_set_debug_registers_changed(), s390_linux_new_fork(), s390_mark_per_info_changed(), and s390_prepare_to_resume().

## ◆ lwp_free()

static void lwp_free | ( | struct lwp_info * | lp | ) |
| static

Definition at line 843 of file linux-nat.c.

References lwp_info::arch_private, gdb_assert, linux_nat_delete_thread, and xfree().

Referenced by delete_lwp(), and lwp_lwpid_htab_remove_pid().

## ◆ lwp_info_hash()

static hashval_t lwp_info_hash | ( | const void * | ap | ) |
| static

Definition at line 701 of file linux-nat.c.

References pid, lwp_info::ptid, and ptid_get_lwp().

Referenced by lwp_lwpid_htab_create().

## ◆ lwp_is_stepping()

int lwp_is_stepping | ( | struct lwp_info * | lwp | ) |

Definition at line 364 of file linux-nat.c.

References selftests::ptid::lwp.

Referenced by s390_prepare_to_resume().

## ◆ lwp_is_stopped()

int lwp_is_stopped | ( | struct lwp_info * | lwp | ) |

Definition at line 348 of file linux-nat.c.

References selftests::ptid::lwp.

Referenced by debug_reg_change_callback(), s390_refresh_per_info_cb(), update_debug_registers_callback(), and x86_linux_update_debug_registers().

## ◆ lwp_list_add()

static void lwp_list_add | ( | struct lwp_info * | lp | ) |
| static

Definition at line 750 of file linux-nat.c.

References lwp_list, lwp_info::next, and lwp_info::prev.

Referenced by add_initial_lwp().

## ◆ lwp_list_remove()

static void lwp_list_remove | ( | struct lwp_info * | lp | ) |
| static

Definition at line 762 of file linux-nat.c.

References lwp_list, lwp_info::next, and lwp_info::prev.

Referenced by delete_lwp(), and lwp_lwpid_htab_remove_pid().

## ◆ lwp_lwpid_htab_add_lwp()

static void lwp_lwpid_htab_add_lwp | ( | struct lwp_info * | lp | ) |
| static

Definition at line 732 of file linux-nat.c.

References gdb_assert, and lwp_lwpid_htab.

Referenced by add_initial_lwp().

## ◆ lwp_lwpid_htab_create()

static void lwp_lwpid_htab_create | ( | void |  | ) |
| static

Definition at line 724 of file linux-nat.c.

References lwp_info_hash(), lwp_lwpid_htab, and lwp_lwpid_htab_eq().

Referenced by _initialize_linux_nat().

## ◆ lwp_lwpid_htab_eq()

static int lwp_lwpid_htab_eq | ( | const void * | a,
|  | const void * | b
| ) |  |
| static

Definition at line 713 of file linux-nat.c.

References lwp_info::ptid, and ptid_get_lwp().

Referenced by lwp_lwpid_htab_create().

## ◆ lwp_lwpid_htab_remove_pid()

static int lwp_lwpid_htab_remove_pid | ( | void ** | slot,
|  | void * | info
| ) |  |
| static

Definition at line 857 of file linux-nat.c.

References lwp_free(), lwp_list_remove(), lwp_lwpid_htab, pid, lwp_info::ptid, and ptid_get_pid().

Referenced by purge_lwp_list().

## ◆ lwp_set_arch_private_info()

void lwp_set_arch_private_info | ( | struct lwp_info * | lwp,
|  | struct arch_lwp_info * | info
| ) |  |

Definition at line 331 of file linux-nat.c.

References selftests::ptid::lwp.

Referenced by aarch64_linux_new_thread(), debug_reg_change_callback(), lwp_set_debug_registers_changed(), and s390_mark_per_info_changed().

## ◆ lwp_status_pending_p()

static int lwp_status_pending_p | ( | struct lwp_info * | lp | ) |
| static

Definition at line 2702 of file linux-nat.c.

References target_waitstatus::kind, lwp_info::status, TARGET_WAITKIND_IGNORE, and lwp_info::waitstatus.

Referenced by count_events_callback(), linux_nat_resume(), resume_lwp(), resume_stopped_resumed_lwps(), select_event_lwp_callback(), and status_callback().

## ◆ lwp_stop_reason()

enum target_stop_reason lwp_stop_reason | ( | struct lwp_info * | lwp | ) |

Definition at line 356 of file linux-nat.c.

References selftests::ptid::lwp.

Referenced by x86_linux_update_debug_registers().

## ◆ maybe_clear_ignore_sigint()

static void maybe_clear_ignore_sigint | ( | struct lwp_info * | lp | ) |
| static

Definition at line 2436 of file linux-nat.c.

References debug_linux_nat, fprintf_unfiltered(), gdb_stdlog, lwp_info::ignore_sigint, linux_nat_has_pending_sigint(), lwp_info::ptid, ptid_get_lwp(), and target_pid_to_str().

Referenced by linux_nat_filter_event(), and stop_wait_callback().

## ◆ num_lwps()

static int num_lwps | ( | int | pid | ) |
| static

Definition at line 449 of file linux-nat.c.

References lwp_list, lwp_info::next, pid, lwp_info::ptid, and ptid_get_pid().

Referenced by check_zombie_leaders(), filter_exit_event(), linux_nat_detach(), linux_nat_filter_event(), and linux_nat_pid_to_str().

## ◆ ptid_of_lwp()

ptid_t ptid_of_lwp | ( | struct lwp_info * | lwp | ) |

Definition at line 323 of file linux-nat.c.

References selftests::ptid::lwp.

Referenced by aarch64_linux_prepare_to_resume(), debug_reg_change_callback(), s390_prepare_to_resume(), and x86_linux_update_debug_registers().

## ◆ pull_pid_from_list()

static int pull_pid_from_list | ( | struct simple_pid_list ** | listp,
|  | int | pid,
|  | int * | statusp
| ) |  |
| static

Definition at line 384 of file linux-nat.c.

References simple_pid_list::next, pid, simple_pid_list::status, and xfree().

Referenced by linux_handle_extended_wait().

## ◆ purge_lwp_list()

static void purge_lwp_list | ( | int | pid | ) |
| static

Definition at line 875 of file linux-nat.c.

References lwp_lwpid_htab, lwp_lwpid_htab_remove_pid(), and pid.

Referenced by linux_nat_mourn_inferior(), and linux_nat_switch_fork().

## ◆ restore_child_signals_mask()

static void restore_child_signals_mask | ( | sigset_t * | prev_mask | ) |
| static

Definition at line 805 of file linux-nat.c.

Referenced by linux_async_pipe(), linux_nat_wait_1(), and wait_lwp().

## ◆ resume_clear_callback()

static int resume_clear_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 1723 of file linux-nat.c.

References lwp_info::last_resume_kind, resume_stop, and lwp_info::resumed.

Referenced by linux_nat_wait_1().

## ◆ resume_lwp()

static void resume_lwp | ( | struct lwp_info * | lp,
|  | int | step,
|  | enum gdb_signal | signo
| ) |  |
| static

Definition at line 1652 of file linux-nat.c.

References debug_linux_nat, find_inferior_ptid(), fprintf_unfiltered(), gdb_signal_to_host(), gdb_stdlog, linux_resume_one_lwp(), lwp_status_pending_p(), lwp_info::ptid, lwp_info::stopped, and target_pid_to_str().

Referenced by linux_nat_resume_callback().

## ◆ resume_set_callback()

static int resume_set_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 1731 of file linux-nat.c.

References lwp_info::last_resume_kind, resume_continue, and lwp_info::resumed.

Referenced by linux_nat_resume().

## ◆ resume_stopped_resumed_lwps()

static int resume_stopped_resumed_lwps | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 3536 of file linux-nat.c.

References regcache::arch(), regcache::aspace(), breakpoint_inserted_here_p(), CATCH, check_ptrace_stopped_lwp_gone(), gdbarch::data, debug_linux_nat, END_CATCH, fprintf_unfiltered(), gdb_stdlog, get_thread_regcache(), linux_resume_one_lwp_throw(), lwp_status_pending_p(), paddress(), lwp_info::ptid, ptid_match(), regcache_read_pc(), lwp_info::resumed, RETURN_MASK_ERROR, lwp_info::step, lwp_info::stopped, target_pid_to_str(), throw_exception(), and TRY.

Referenced by linux_nat_wait(), linux_nat_wait_1(), and linux_unstop_all_lwps().

## ◆ resumed_callback()

static int resumed_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 2963 of file linux-nat.c.

References lwp_info::resumed.

Referenced by linux_nat_wait_1().

## ◆ save_stop_reason()

static void save_stop_reason | ( | struct lwp_info * | lp | ) |
| static

Definition at line 2734 of file linux-nat.c.

References regcache::arch(), regcache::aspace(), check_stopped_by_watchpoint(), debug_linux_nat, fprintf_unfiltered(), GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT, gdb_assert, gdb_stdlog, gdbarch_decr_pc_after_break(), get_thread_regcache(), hardware_breakpoint_inserted_here_p(), linux_nat_get_siginfo(), linux_nat_status_is_event, lwp_info::ptid, regcache::regcache(), regcache_read_pc(), regcache_write_pc(), software_breakpoint_inserted_here_p(), lwp_info::status, lwp_info::step, lwp_info::stop_pc, lwp_info::stop_reason, target_pid_to_str(), TARGET_STOPPED_BY_HW_BREAKPOINT, TARGET_STOPPED_BY_NO_REASON, TARGET_STOPPED_BY_SW_BREAKPOINT, and TARGET_STOPPED_BY_WATCHPOINT.

Referenced by linux_nat_filter_event(), and stop_wait_callback().

## ◆ select_event_lwp()

static void select_event_lwp | ( | ptid_t | filter,
|  | struct lwp_info ** | orig_lp,
|  | int * | status
| ) |  |
| static

Definition at line 2895 of file linux-nat.c.

References count_events_callback(), debug_linux_nat, fprintf_unfiltered(), gdb_assert, gdb_stdlog, iterate_over_lwps(), lwp_info::ptid, select_event_lwp_callback(), select_singlestep_lwp_callback(), lwp_info::status, status, target_is_non_stop_p(), and target_pid_to_str().

Referenced by linux_nat_wait_1().

## ◆ select_event_lwp_callback()

static int select_event_lwp_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 2713 of file linux-nat.c.

References gdb_assert, lwp_status_pending_p(), lwp_info::resumed, and selector.

Referenced by select_event_lwp().

## ◆ select_singlestep_lwp_callback()

static int select_singlestep_lwp_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 2690 of file linux-nat.c.

References lwp_info::last_resume_kind, resume_step, and lwp_info::status.

Referenced by select_event_lwp().

## ◆ set_ignore_sigint()

static int set_ignore_sigint | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 2416 of file linux-nat.c.

References lwp_info::ignore_sigint, lwp_info::status, lwp_info::stopped, WIFSTOPPED, and WSTOPSIG.

Referenced by linux_nat_filter_event().

## ◆ show_debug_linux_nat()

static void show_debug_linux_nat | ( | struct ui_file * | file,
|  | int | from_tty,
|  | struct cmd_list_element * | c,
|  | const char * | value
| ) |  |
| static

Definition at line 230 of file linux-nat.c.

References _, and fprintf_filtered().

Referenced by _initialize_linux_nat().

## ◆ sigchld_handler()

static void sigchld_handler | ( | int | signo | ) |
| static

Definition at line 4500 of file linux-nat.c.

References async_file_mark(), debug_linux_nat, gdb_stdlog, linux_nat_event_pipe, and ui_file_write_async_safe().

Referenced by _initialize_linux_nat().

## ◆ siginfo_fixup()

static void siginfo_fixup | ( | siginfo_t * | siginfo,
|  | gdb_byte * | inf_siginfo,
|  | int | direction
| ) |  |
| static

Definition at line 3817 of file linux-nat.c.

References linux_nat_siginfo_fixup.

Referenced by linux_nat_set_siginfo_fixup(), and linux_xfer_siginfo().

## ◆ sigtrap_is_event()

static int sigtrap_is_event | ( | int | status | ) |
| static

Definition at line 2517 of file linux-nat.c.

References status, WIFSTOPPED, and WSTOPSIG.

## ◆ spu_enumerate_spu_ids()

static LONGEST spu_enumerate_spu_ids | ( | int | pid,
|  | gdb_byte * | buf,
|  | ULONGEST | offset,
|  | ULONGEST | len
| ) |  |
| static

Definition at line 4034 of file linux-nat.c.

References gdbarch_byte_order(), offset, pid, SPUFS_MAGIC, store_unsigned_integer(), target_gdbarch(), and xsnprintf().

Referenced by linux_proc_xfer_spu().

## ◆ status_callback()

static int status_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 2612 of file linux-nat.c.

References regcache::aspace(), breakpoint_inserted_here_p(), debug_linux_nat, fprintf_unfiltered(), gdb_stdlog, get_thread_regcache(), linux_resume_one_lwp(), lwp_status_pending_p(), paddress(), lwp_info::ptid, regcache_read_pc(), lwp_info::resumed, lwp_info::status, lwp_info::step, lwp_info::stop_pc, lwp_info::stop_reason, target_gdbarch(), target_pid_to_str(), TARGET_STOPPED_BY_HW_BREAKPOINT, and TARGET_STOPPED_BY_SW_BREAKPOINT.

Referenced by linux_nat_wait_1().

## ◆ stop_callback()

static int stop_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 2338 of file linux-nat.c.

References debug_linux_nat, fprintf_unfiltered(), gdb_assert, gdb_stdlog, kill_lwp(), lwp_info::ptid, ptid_get_lwp(), safe_strerror(), lwp_info::signalled, lwp_info::status, lwp_info::stopped, and target_pid_to_str().

Referenced by linux_nat_detach(), linux_nat_kill(), linux_nat_stop_lwp(), linux_nat_wait_1(), linux_stop_and_wait_all_lwps(), and linux_stop_lwp().

## ◆ stop_wait_callback()

static int stop_wait_callback | ( | struct lwp_info * | lp,
|  | void * | data
| ) |  |
| static

Definition at line 2536 of file linux-nat.c.

References debug_linux_nat, find_inferior_ptid(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, lwp_info::ignore_sigint, maybe_clear_ignore_sigint(), lwp_info::ptid, ptid_get_lwp(), ptrace(), safe_strerror(), save_stop_reason(), lwp_info::signalled, lwp_info::status, status, status_to_str(), lwp_info::stopped, target_pid_to_str(), wait_lwp(), WIFSTOPPED, and WSTOPSIG.

Referenced by linux_nat_detach(), linux_nat_kill(), linux_nat_wait_1(), and linux_stop_and_wait_all_lwps().

## ◆ VEC()

static VEC | ( | static_tracepoint_marker_p |  | ) |
| static

Definition at line 4294 of file linux-nat.c.

References agent_run_command(), cleanup_target_stop(), do_cleanups(), free_current_marker(), inferior_ptid, IPA_CMD_BUF_SIZE, make_cleanup(), memset(), parse_static_tracepoint_marker_definition(), pid, ptid_build(), ptid_get_pid(), release_static_tracepoint_marker(), static_tracepoint_marker::str_id, target_stop(), VEC_safe_push, and XCNEW.

## ◆ wait_lwp()

static int wait_lwp | ( | struct lwp_info * | lp | ) |
| static

Definition at line 2178 of file linux-nat.c.

References __WALL, block_child_signals(), debug_linux_nat, exit_lwp(), find_inferior_pid(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, linux_enable_event_reporting(), linux_handle_extended_wait(), linux_handle_syscall_trap(), linux_is_extended_waitstatus(), linux_nat_ptrace_options(), linux_proc_pid_is_zombie(), lwp_info::must_set_ptrace_flags, my_waitpid(), pid, lwp_info::ptid, ptid_get_lwp(), ptid_get_pid(), report_thread_events, restore_child_signals_mask(), lwp_info::status, status, status_to_str(), lwp_info::stopped, store_waitstatus(), suspend_mask, SYSCALL_SIGTRAP, lwp_info::syscall_state, target_pid_to_str(), TARGET_WAITKIND_IGNORE, W_STOPCODE, lwp_info::waitstatus, WIFEXITED, WIFSIGNALED, WIFSTOPPED, WNOHANG, and WSTOPSIG.

Referenced by stop_wait_callback().

## Variable Documentation

## ◆ async_terminal_is_ours

int async_terminal_is_ours = 1
| static

Definition at line 4451 of file linux-nat.c.

Referenced by linux_nat_terminal_inferior(), and linux_nat_terminal_ours().

## ◆ blocked_mask

sigset_t blocked_mask
| static

Definition at line 783 of file linux-nat.c.

Referenced by _initialize_linux_nat(), and block_child_signals().

## ◆ debug_linux_nat

unsigned int debug_linux_nat
| static

Definition at line 228 of file linux-nat.c.

Referenced by _initialize_linux_nat(), attach_proc_task_lwp_callback(), check_zombie_leaders(), detach_one_lwp(), get_detach_signal(), kill_one_lwp(), kill_wait_one_lwp(), linux_child_follow_fork(), linux_handle_extended_wait(), linux_handle_syscall_trap(), linux_nat_attach(), linux_nat_filter_event(), linux_nat_post_attach_wait(), linux_nat_resume(), linux_nat_stop_lwp(), linux_nat_wait(), linux_nat_wait_1(), maybe_clear_ignore_sigint(), resume_lwp(), resume_stopped_resumed_lwps(), save_stop_reason(), select_event_lwp(), sigchld_handler(), status_callback(), stop_callback(), stop_wait_callback(), and wait_lwp().

## ◆ have_ptrace_getregset

enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN

Definition at line 190 of file linux-nat.c.

Referenced by amd64_linux_fetch_inferior_registers(), amd64_linux_store_inferior_registers(), arm_linux_read_description(), fetch_fpregs(), fetch_regs(), fetch_vfp_regs(), fetch_xstateregs(), store_fpregs(), store_regs(), store_vfp_regs(), store_xstateregs(), and x86_linux_read_description().

## ◆ linux_multi_process

int linux_multi_process = 1

Definition at line 4433 of file linux-nat.c.

Referenced by linux_nat_supports_multi_process().

## ◆ linux_nat_delete_thread

void(* linux_nat_delete_thread) (struct arch_lwp_info *)
| static

Definition at line 201 of file linux-nat.c.

Referenced by linux_nat_set_delete_thread(), and lwp_free().

## ◆ linux_nat_event_pipe

int linux_nat_event_pipe[2] = { -1, -1 }
| static

Definition at line 252 of file linux-nat.c.

Referenced by async_file_flush(), async_file_mark(), linux_async_pipe(), linux_nat_async(), and sigchld_handler().

## ◆ linux_nat_forget_process_hook

linux_nat_forget_process_ftype* linux_nat_forget_process_hook
| static

Definition at line 208 of file linux-nat.c.

Referenced by linux_nat_forget_process(), and linux_nat_set_forget_process().

## ◆ linux_nat_new_fork

linux_nat_new_fork_ftype* linux_nat_new_fork
| static

Definition at line 204 of file linux-nat.c.

Referenced by linux_handle_extended_wait(), and linux_nat_set_new_fork().

## ◆ linux_nat_new_thread

void(* linux_nat_new_thread) (struct lwp_info *)
| static

Definition at line 198 of file linux-nat.c.

Referenced by add_lwp(), and linux_nat_set_new_thread().

## ◆ linux_nat_prepare_to_resume

void(* linux_nat_prepare_to_resume) (struct lwp_info *)
| static

Definition at line 211 of file linux-nat.c.

Referenced by detach_one_lwp(), linux_child_follow_fork(), linux_nat_set_prepare_to_resume(), and linux_resume_one_lwp_throw().

## ◆ linux_nat_siginfo_fixup

int(* linux_nat_siginfo_fixup) (siginfo_t *, gdb_byte *, int)
| static

Definition at line 216 of file linux-nat.c.

Referenced by linux_nat_set_siginfo_fixup(), and siginfo_fixup().

## ◆ linux_nat_status_is_event

int(* linux_nat_status_is_event) (int status) = sigtrap_is_event
| static

Definition at line 313 of file linux-nat.c.

Referenced by linux_nat_set_status_is_event(), linux_nat_wait_1(), and save_stop_reason().

## ◆ linux_ops

struct target_ops* linux_ops
| static

Definition at line 194 of file linux-nat.c.

Referenced by check_stopped_by_watchpoint(), linux_nat_add_target(), linux_nat_attach(), linux_nat_close(), linux_nat_create_inferior(), linux_nat_mourn_inferior(), linux_nat_xfer_partial(), and linux_resume_one_lwp_throw().

## ◆ linux_ops_saved

struct target_ops linux_ops_saved
| static

Definition at line 195 of file linux-nat.c.

Referenced by linux_nat_add_target().

## ◆ lwp_list

struct lwp_info* lwp_list

Definition at line 745 of file linux-nat.c.

Referenced by iterate_over_lwps(), lwp_list_add(), lwp_list_remove(), and num_lwps().

## ◆ lwp_lwpid_htab

htab_t lwp_lwpid_htab
| static

Definition at line 696 of file linux-nat.c.

Referenced by delete_lwp(), find_lwp_pid(), lwp_lwpid_htab_add_lwp(), lwp_lwpid_htab_create(), lwp_lwpid_htab_remove_pid(), and purge_lwp_list().

## ◆ normal_mask

sigset_t normal_mask
| static

Definition at line 776 of file linux-nat.c.

Referenced by _initialize_linux_nat().

## ◆ pass_mask

sigset_t pass_mask
| static

Definition at line 811 of file linux-nat.c.

Referenced by linux_nat_filter_event(), linux_nat_pass_signals(), and linux_nat_resume().

## ◆ report_thread_events

int report_thread_events
| static

Definition at line 246 of file linux-nat.c.

Referenced by filter_exit_event(), linux_handle_extended_wait(), linux_nat_filter_event(), linux_nat_thread_events(), and wait_lwp().

## ◆ sigchld_action

struct sigaction sigchld_action

Definition at line 786 of file linux-nat.c.

Referenced by _initialize_linux_nat().

## ◆ stopped_pids

struct simple_pid_list* stopped_pids

Definition at line 243 of file linux-nat.c.

Referenced by linux_handle_extended_wait(), and linux_nat_filter_event().

## ◆ super_close

void(* super_close) (struct target_ops *)
| static

Definition at line 226 of file linux-nat.c.

Referenced by linux_nat_add_target(), and linux_nat_close().

## ◆ super_xfer_partial

target_xfer_partial_ftype* super_xfer_partial
| static

Definition at line 222 of file linux-nat.c.

Referenced by linux_target_install_ops(), and linux_xfer_partial().

## ◆ suspend_mask

sigset_t suspend_mask
| static

Definition at line 780 of file linux-nat.c.

Referenced by _initialize_linux_nat(), linux_nat_wait_1(), and wait_lwp().