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_infoadd_lwp (ptid_t ptid)
 
static void purge_lwp_list (int pid)
 
static void delete_lwp (ptid_t ptid)
 
static struct lwp_infofind_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_infolwp_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_infoadd_initial_lwp (ptid_t ptid)
 
struct lwp_infoiterate_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_infolinux_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_opslinux_target (void)
 
struct target_opslinux_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_spacelinux_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_opslinux_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_ftypelinux_nat_new_fork
 
static linux_nat_forget_process_ftypelinux_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_ftypesuper_xfer_partial
 
static void(* super_close )(struct target_ops *)
 
static unsigned int debug_linux_nat
 
struct simple_pid_liststopped_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_infolwp_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  )

◆ add_initial_lwp()

static struct lwp_info* add_initial_lwp ( ptid_t  ptid)
static

◆ 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

◆ add_to_pid_list()

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

◆ 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

◆ attach_proc_task_lwp_callback()

static int attach_proc_task_lwp_callback ( ptid_t  ptid)
static

◆ 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

◆ check_stopped_by_watchpoint()

static int check_stopped_by_watchpoint ( struct lwp_info lp)
static

◆ check_zombie_leaders()

static void check_zombie_leaders ( void  )
static

◆ 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  )

◆ delete_lwp()

static void delete_lwp ( ptid_t  ptid)
static

◆ 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

◆ exit_lwp()

static void exit_lwp ( struct lwp_info lp)
static

◆ filter_exit_event()

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

◆ find_lwp_pid()

static struct lwp_info * find_lwp_pid ( ptid_t  ptid)
static

◆ get_detach_signal()

static int get_detach_signal ( struct lwp_info lp)
static

◆ 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 
)

◆ 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

◆ kill_one_lwp()

static void kill_one_lwp ( pid_t  pid)
static

◆ kill_unfollowed_fork_children()

static void kill_unfollowed_fork_children ( struct inferior inf)
static

◆ 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

◆ 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

◆ linux_child_follow_fork()

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

◆ 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

◆ linux_handle_syscall_trap()

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

◆ linux_init_ptrace()

static void linux_init_ptrace ( pid_t  pid,
int  attached 
)
static

◆ 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

◆ linux_nat_attach()

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

◆ 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

◆ 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

◆ linux_nat_detach()

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

◆ 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

◆ 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

◆ linux_nat_fileio_unlink()

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

◆ 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

◆ linux_nat_forget_process()

void linux_nat_forget_process ( pid_t  pid)

◆ linux_nat_get_siginfo()

int linux_nat_get_siginfo ( ptid_t  ptid,
siginfo_t *  siginfo 
)

◆ 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

◆ linux_nat_mourn_inferior()

static void linux_nat_mourn_inferior ( struct target_ops ops)
static

◆ linux_nat_pass_signals()

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

◆ linux_nat_pid_to_str()

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

◆ linux_nat_post_attach_wait()

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

◆ linux_nat_ptrace_options()

static int linux_nat_ptrace_options ( int  attached)
static

◆ linux_nat_resume()

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

◆ linux_nat_resume_callback()

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

◆ linux_nat_set_delete_thread()

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

◆ linux_nat_set_forget_process()

void linux_nat_set_forget_process ( struct target_ops t,
linux_nat_forget_process_ftype fn 
)

◆ linux_nat_set_new_fork()

void linux_nat_set_new_fork ( struct target_ops t,
linux_nat_new_fork_ftype new_fork 
)

◆ linux_nat_set_new_thread()

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

◆ linux_nat_set_prepare_to_resume()

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

◆ linux_nat_set_siginfo_fixup()

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

◆ 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

◆ linux_nat_stopped_by_hw_breakpoint()

static int linux_nat_stopped_by_hw_breakpoint ( struct target_ops ops)
static

◆ linux_nat_stopped_by_sw_breakpoint()

static int linux_nat_stopped_by_sw_breakpoint ( struct target_ops ops)
static

◆ linux_nat_stopped_by_watchpoint()

static int linux_nat_stopped_by_watchpoint ( struct target_ops ops)
static

◆ linux_nat_stopped_data_address()

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

◆ 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)

◆ 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

◆ 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

◆ linux_nat_wait()

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

◆ 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

◆ 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

◆ 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

◆ linux_proc_pending_signals()

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

◆ 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

◆ 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

◆ linux_resume_one_lwp()

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

◆ linux_resume_one_lwp_throw()

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

◆ 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)

◆ linux_target()

struct target_ops* linux_target ( void  )

◆ linux_target_install_ops()

static void linux_target_install_ops ( struct target_ops t)
static

◆ linux_trad_target()

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

◆ 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

◆ 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

◆ lwp_arch_private_info()

struct arch_lwp_info* lwp_arch_private_info ( struct lwp_info lwp)

◆ lwp_free()

static void lwp_free ( struct lwp_info lp)
static

◆ 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)

◆ 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 
)

◆ lwp_status_pending_p()

static int lwp_status_pending_p ( struct lwp_info lp)
static

◆ 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

◆ num_lwps()

static int num_lwps ( int  pid)
static

◆ ptid_of_lwp()

ptid_t ptid_of_lwp ( struct lwp_info lwp)

◆ 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

◆ 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

◆ 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

◆ select_event_lwp()

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

◆ 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

◆ 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

◆ 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

◆ status_callback()

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

◆ stop_callback()

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

◆ stop_wait_callback()

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

◆ VEC()

static VEC ( static_tracepoint_marker_p  )
static

◆ wait_lwp()

static int wait_lwp ( struct lwp_info lp)
static

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

◆ have_ptrace_getregset

enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN

◆ 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

◆ 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

◆ 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

◆ 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

◆ 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

◆ 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().