GDB (xrefs)
|
#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 <sys/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) |
#define | FORMAT "/proc/%d/task/%ld/comm" |
#define | COMM_LEN 16 |
#define COMM_LEN 16 |
Referenced by linux_nat_thread_name().
#define FORMAT "/proc/%d/task/%ld/comm" |
Referenced by linux_nat_thread_name().
#define linux_is_async_p | ( | ) | (linux_nat_event_pipe[0] != -1) |
Definition at line 228 of file linux-nat.c.
Referenced by linux_async_pipe(), and linux_nat_is_async_p().
#define O_LARGEFILE 0 |
Definition at line 165 of file linux-nat.c.
Referenced by linux_proc_xfer_partial().
#define SPUFS_MAGIC 0x23c9b64e |
Definition at line 73 of file linux-nat.c.
Referenced by spu_enumerate_spu_ids().
void _initialize_linux_nat | ( | void | ) |
Definition at line 5135 of file linux-nat.c.
References _, add_setshow_boolean_cmd(), add_setshow_zuinteger_cmd(), blocked_mask, class_maintenance, debug_linux_namespaces, debug_linux_nat, normal_mask, setdebuglist, show_debug_linux_nat(), showdebuglist, sigchld_action, sigchld_handler(), and suspend_mask.
Definition at line 819 of file linux-nat.c.
References lwp_info::core, gdb_assert, target_waitstatus::kind, lwp_info::last_resume_kind, lwp_list, lwp_info::next, lwp_info::ptid, ptid_lwp_p(), resume_continue, TARGET_WAITKIND_IGNORE, lwp_info::waitstatus, and xmalloc().
Referenced by add_lwp(), linux_nat_attach(), and linux_nat_wait_1().
|
static |
Definition at line 4312 of file linux-nat.c.
References _, error(), len, and line.
Referenced by linux_proc_pending_signals().
Definition at line 846 of file linux-nat.c.
References add_initial_lwp(), and linux_nat_new_thread.
Referenced by attach_proc_task_lwp_callback(), lin_lwp_attach_lwp(), linux_child_follow_fork(), linux_handle_extended_wait(), linux_nat_filter_event(), and linux_nat_switch_fork().
|
static |
Definition at line 337 of file linux-nat.c.
References simple_pid_list::next, simple_pid_list::pid, pid, simple_pid_list::status, status, and xmalloc().
Referenced by lin_lwp_attach_lwp(), and linux_nat_filter_event().
|
static |
Definition at line 233 of file linux-nat.c.
References linux_nat_event_pipe, and read().
Referenced by async_file_mark(), and linux_nat_wait().
|
static |
Definition at line 250 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().
Definition at line 1204 of file linux-nat.c.
References _, add_lwp(), lwp_info::cloned, 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, ptid_get_lwp(), ptrace(), safe_strerror(), lwp_info::signalled, target_pid_to_str(), and warning().
Referenced by linux_nat_attach().
|
static |
Definition at line 720 of file linux-nat.c.
References blocked_mask.
Referenced by linux_async_pipe(), linux_nat_wait_1(), and wait_lwp().
Definition at line 1612 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 linux_resume_one_lwp(), and resume_stopped_resumed_lwps().
Definition at line 2777 of file linux-nat.c.
References debug_linux_nat, fprintf_unfiltered(), GDB_ARCH_TRAP_BRKPT, gdb_stdlog, gdbarch_decr_pc_after_break(), get_regcache_arch(), get_regcache_aspace(), get_thread_regcache(), hardware_breakpoint_inserted_here_p(), linux_nat_get_siginfo(), lwp_info::ptid, regcache_read_pc(), regcache_write_pc(), software_breakpoint_inserted_here_p(), lwp_info::step, lwp_info::stop_pc, lwp_info::stop_reason, target_pid_to_str(), TARGET_STOPPED_BY_HW_BREAKPOINT, TARGET_STOPPED_BY_SW_BREAKPOINT, and TRAP_HWBKPT.
Referenced by save_sigtrap().
Definition at line 2475 of file linux-nat.c.
References current_target, do_cleanups(), inferior_ptid, lwp_info::ptid, save_inferior_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_sigtrap().
|
static |
Definition at line 3341 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(), inferior::pid, and pid_to_ptid().
Referenced by linux_nat_wait_1().
|
static |
Definition at line 4451 of file linux-nat.c.
References gdb_assert, and target_resume().
Referenced by VEC().
Definition at line 2720 of file linux-nat.c.
References gdbarch::data, gdb_assert, lwp_status_pending_p(), and lwp_info::resumed.
Referenced by select_event_lwp().
ptid_t current_lwp_ptid | ( | void | ) |
Definition at line 5125 of file linux-nat.c.
References gdb_assert, inferior_ptid, and ptid_lwp_p().
Referenced by 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().
|
static |
Definition at line 865 of file linux-nat.c.
References lwp_free(), lwp_info::next, and ptid_equal().
Referenced by delete_lwp_cleanup(), detach_callback(), exit_lwp(), and linux_nat_detach().
|
static |
Definition at line 439 of file linux-nat.c.
References delete_lwp(), and lwp_info::ptid.
Referenced by linux_child_follow_fork().
Definition at line 1458 of file linux-nat.c.
References _, debug_linux_nat, delete_lwp(), error(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, get_pending_status(), kill_lwp(), linux_nat_prepare_to_resume, lwp_info::ptid, ptid_get_lwp(), ptid_get_pid(), ptrace(), safe_strerror(), lwp_info::signalled, lwp_info::status, status, target_pid_to_str(), WIFSTOPPED, and WSTOPSIG.
Referenced by linux_nat_detach().
|
static |
Definition at line 959 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(), linux_nat_filter_event(), and wait_lwp().
Definition at line 890 of file linux-nat.c.
References lwp_info::next, lwp_info::ptid, ptid_get_lwp(), ptid_get_pid(), and ptid_lwp_p().
Referenced by attach_proc_task_lwp_callback(), check_zombie_leaders(), lin_lwp_attach_lwp(), 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 stop_and_resume_callback().
Definition at line 1375 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, non_stop, lwp_info::ptid, ptid_get_lwp(), signal_pass_state(), lwp_info::status, thread_suspend_state::stop_signal, thread_info::suspend, target_pid_to_str(), TARGET_WAITKIND_IGNORE, lwp_info::waitstatus, and WSTOPSIG.
Referenced by detach_callback(), and linux_nat_detach().
Definition at line 5183 of file linux-nat.c.
References BMSYMBOL_VALUE_ADDRESS, lookup_minimal_symbol(), bound_minimal_symbol::minsym, and target_read_memory().
Referenced by lin_thread_get_thread_signals().
|
static |
Definition at line 4692 of file linux-nat.c.
References INF_REG_EVENT, and inferior_event_handler().
Referenced by linux_nat_async().
|
static |
Definition at line 348 of file linux-nat.c.
References simple_pid_list::next, and simple_pid_list::pid.
Referenced by lin_lwp_attach_lwp().
struct lwp_info* iterate_over_lwps | ( | ptid_t | filter, |
iterate_over_lwps_ftype | callback, | ||
void * | data | ||
) |
Definition at line 910 of file linux-nat.c.
References 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(), select_event_lwp(), thread_db_update_thread_list(), x86_linux_dr_set_addr(), and x86_linux_dr_set_control().
Definition at line 3767 of file linux-nat.c.
References debug_linux_nat, fprintf_unfiltered(), gdb_stdlog, kill_lwp(), lwp_info::ptid, ptid_get_lwp(), ptrace(), safe_strerror(), and target_pid_to_str().
Referenced by kill_wait_callback(), and linux_nat_kill().
Definition at line 1845 of file linux-nat.c.
Referenced by detach_callback(), kill_callback(), linux_nat_post_attach_wait(), linux_thread_alive(), and stop_callback().
Definition at line 3801 of file linux-nat.c.
References __WCLONE, lwp_info::cloned, debug_linux_nat, fprintf_unfiltered(), gdb_assert, gdb_stdlog, kill_callback(), my_waitpid(), pid, lwp_info::ptid, ptid_get_lwp(), and target_pid_to_str().
Referenced by linux_nat_kill().
Definition at line 1054 of file linux-nat.c.
References _, __WCLONE, add_lwp(), add_to_pid_list(), lwp_info::cloned, debug_linux_nat, find_lwp_pid(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, in_pid_list_p(), lwp_info::last_resume_kind, linux_nat_post_attach_wait(), linux_supports_tracefork(), my_waitpid(), lwp_info::ptid, ptid_get_lwp(), ptid_lwp_p(), ptrace(), resume_stop, lwp_info::resumed, safe_strerror(), lwp_info::signalled, lwp_info::status, status, status_to_str(), lwp_info::stopped, target_pid_to_str(), target_post_attach, warning(), WIFSTOPPED, WNOHANG, and WSTOPSIG.
Referenced by attach_thread().
void lin_thread_get_thread_signals | ( | sigset_t * | set | ) |
Definition at line 5202 of file linux-nat.c.
References blocked_mask, get_signo(), sigchld_handler(), and suspend_mask.
Referenced by check_thread_signals().
Definition at line 4700 of file linux-nat.c.
References block_child_signals(), gdb_pipe_cloexec(), internal_error(), linux_is_async_p, linux_nat_event_pipe, and restore_child_signals_mask().
Referenced by linux_nat_async().
|
static |
Definition at line 451 of file linux-nat.c.
References _, add_lwp(), async_file_mark(), check_for_thread_db(), debug_linux_nat, delete_lwp_cleanup(), 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(), my_waitpid(), thread_info::pending_follow, perror_with_name(), lwp_info::ptid, ptid_get_lwp(), ptrace(), target_waitstatus::related_pid, resume_stop, save_inferior_ptid(), 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, lwp_info::waitstatus, WIFSTOPPED, and WSTOPSIG.
Referenced by linux_target_install_ops().
|
static |
Definition at line 639 of file linux-nat.c.
References linux_supports_tracefork().
Referenced by linux_target_install_ops().
|
static |
Definition at line 615 of file linux-nat.c.
References linux_supports_tracefork().
Referenced by linux_target_install_ops().
|
static |
Definition at line 627 of file linux-nat.c.
References linux_supports_tracefork().
Referenced by linux_target_install_ops().
|
static |
Definition at line 4134 of file linux-nat.c.
References linux_proc_pid_to_exec_file().
Referenced by linux_handle_extended_wait(), and linux_target_install_ops().
|
static |
Definition at line 410 of file linux-nat.c.
References linux_init_ptrace().
Referenced by linux_target_install_ops().
|
static |
Definition at line 416 of file linux-nat.c.
References linux_init_ptrace(), and ptid_get_pid().
Referenced by linux_target_install_ops().
|
static |
Definition at line 645 of file linux-nat.c.
Referenced by linux_target_install_ops().
|
static |
Definition at line 621 of file linux-nat.c.
Referenced by linux_target_install_ops().
|
static |
Definition at line 633 of file linux-nat.c.
Referenced by linux_target_install_ops().
|
static |
Definition at line 651 of file linux-nat.c.
References linux_supports_tracesysgood().
Referenced by linux_target_install_ops().
Definition at line 2003 of file linux-nat.c.
References _, __WCLONE, add_fork(), add_lwp(), add_thread(), lwp_info::cloned, 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, lwp_info::resumed, set_executing(), set_running(), lwp_info::signalled, lwp_info::status, status, status_to_str(), lwp_info::stopped, target_post_attach, TARGET_WAITKIND_EXECD, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_SPURIOUS, 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().
Definition at line 1877 of file linux-nat.c.
References catch_syscall_enabled(), catching_syscall_number(), debug_linux_nat, fprintf_unfiltered(), gdb_stdlog, gdbarch_get_syscall_number(), int, 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().
|
static |
Definition at line 401 of file linux-nat.c.
References linux_enable_event_reporting(), linux_nat_ptrace_options(), and linux_ptrace_init_warnings().
Referenced by linux_child_post_attach(), and linux_child_post_startup_inferior().
void linux_nat_add_target | ( | struct target_ops * | t | ) |
Definition at line 4972 of file linux-nat.c.
References add_target(), 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_name(), linux_nat_update_thread_list(), linux_nat_wait(), linux_nat_xfer_partial(), linux_ops_saved, super_close, tc_schedlock, 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_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().
|
static |
Definition at line 4738 of file linux-nat.c.
References add_file_handler(), async_file_mark(), delete_file_handler(), handle_target_event(), linux_async_pipe(), and linux_nat_event_pipe.
Referenced by linux_nat_add_target(), and linux_nat_close().
|
static |
Definition at line 1267 of file linux-nat.c.
References _, add_initial_lwp(), attach_proc_task_lwp_callback(), buffer_finish(), buffer_grow_str0, buffer_init(), CATCH, lwp_info::cloned, 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_proc_attach_tgid_threads(), linux_ptrace_attach_fail_reason(), make_cleanup(), 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(), target_terminal_ours(), thread_change_ptid(), throw_error(), target_ops::to_attach, TRY, WEXITSTATUS, WIFEXITED, WIFSIGNALED, WIFSTOPPED, WTERMSIG, and xfree().
Referenced by linux_nat_add_target().
|
static |
Definition at line 4576 of file linux-nat.c.
References target_async_permitted.
Referenced by linux_nat_add_target().
|
static |
Definition at line 4816 of file linux-nat.c.
References linux_nat_async(), linux_nat_is_async_p(), super_close, and target_ops::to_close.
Referenced by linux_nat_add_target().
|
static |
Definition at line 4863 of file linux-nat.c.
References lwp_info::core, and find_lwp_pid().
Referenced by linux_nat_add_target().
|
static |
Definition at line 1181 of file linux-nat.c.
References disable_randomization, do_cleanups(), linux_nat_pass_signals(), maybe_disable_address_space_randomization(), restore_personality(), and target_ops::to_create_inferior.
Referenced by linux_nat_add_target().
|
static |
Definition at line 1509 of file linux-nat.c.
References debug_linux_nat, delete_lwp(), detach_callback(), find_lwp_pid(), forks_exist_p(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, get_pending_status(), inferior_ptid, iterate_over_lwps(), linux_fork_detach(), linux_nat_prepare_to_resume, num_lwps(), pid, pid_to_ptid(), lwp_info::ptid, ptid_get_pid(), status, stop_callback(), stop_wait_callback(), target_pid_to_str(), target_ops::to_detach, WIFSTOPPED, WSTOPSIG, and xsnprintf().
Referenced by linux_nat_add_target().
|
static |
Definition at line 4905 of file linux-nat.c.
References fileio_to_host_mode(), fileio_to_host_openflags(), host_to_fileio_error(), linux_mntns_open_cloexec(), and linux_nat_fileio_pid_of().
Referenced by linux_nat_add_target().
|
static |
Definition at line 4894 of file linux-nat.c.
References inferior::fake_pid_p, and inferior::pid.
Referenced by linux_nat_fileio_open(), linux_nat_fileio_readlink(), and linux_nat_fileio_unlink().
|
static |
Definition at line 4932 of file linux-nat.c.
References host_to_fileio_error(), len, linux_mntns_readlink(), linux_nat_fileio_pid_of(), and xmalloc().
Referenced by linux_nat_add_target().
|
static |
Definition at line 4957 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().
|
static |
Definition at line 4875 of file linux-nat.c.
References current_inferior(), inferior::fake_pid_p, LINUX_NS_MNT, linux_ns_same(), and inferior::pid.
Referenced by linux_nat_add_target().
Definition at line 3053 of file linux-nat.c.
References add_lwp(), add_thread(), add_to_pid_list(), inferior::attach_flag, 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_thread_alive(), linux_wstatus_maybe_breakpoint(), maybe_clear_ignore_sigint(), lwp_info::must_set_ptrace_flags, non_stop, num_lwps(), pass_mask, pid_to_ptid(), lwp_info::ptid, ptid_build(), ptid_get_lwp(), ptid_get_pid(), PTRACE_EVENT_EXEC, resume_stop, lwp_info::resumed, running_callback(), save_sigtrap(), set_ignore_sigint(), signal_pass_state(), lwp_info::signalled, lwp_info::status, status, status_to_str(), lwp_info::step, stop_and_resume_callback(), lwp_info::stopped, store_waitstatus(), SYSCALL_SIGTRAP, target_pid_to_str(), lwp_info::waitstatus, WIFEXITED, WIFSIGNALED, WIFSTOPPED, and WSTOPSIG.
Referenced by linux_nat_wait_1().
void linux_nat_forget_process | ( | pid_t | pid | ) |
Definition at line 5072 of file linux-nat.c.
References linux_nat_forget_process_hook.
Referenced by delete_fork(), linux_nat_kill(), and linux_nat_mourn_inferior().
Definition at line 5104 of file linux-nat.c.
References 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(), check_stopped_by_breakpoint(), ia64_linux_stopped_data_address(), and ppc_linux_stopped_data_address().
Definition at line 2408 of file linux-nat.c.
References linux_proc_pending_signals().
Referenced by maybe_clear_ignore_sigint().
|
static |
Definition at line 4568 of file linux-nat.c.
References linux_is_async_p.
Referenced by linux_nat_add_target(), and linux_nat_close().
|
static |
Definition at line 3856 of file linux-nat.c.
References forks_exist_p(), get_last_target_status(), inferior_ptid, iterate_over_lwps(), kill_callback(), kill_wait_callback(), target_waitstatus::kind, linux_fork_killall(), linux_nat_forget_process(), pid_to_ptid(), PT_KILL, ptid_get_pid(), ptrace(), target_waitstatus::related_pid, status, stop_callback(), stop_wait_callback(), target_mourn_inferior(), TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, and target_waitstatus::value.
Referenced by linux_nat_add_target().
|
static |
Definition at line 3903 of file linux-nat.c.
References forks_exist_p(), inferior_ptid, linux_fork_mourn_inferior(), linux_nat_forget_process(), pid, ptid_get_pid(), purge_lwp_list(), and target_ops::to_mourn_inferior.
Referenced by linux_nat_add_target().
|
static |
Definition at line 743 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().
|
static |
Definition at line 4078 of file linux-nat.c.
References normal_pid_to_str(), num_lwps(), ptid_get_lwp(), ptid_get_pid(), and ptid_lwp_p().
Referenced by linux_nat_add_target().
|
static |
Definition at line 978 of file linux-nat.c.
References _, __WCLONE, debug_linux_nat, fprintf_unfiltered(), gdb_assert, gdb_stdlog, kill_lwp(), linux_proc_pid_is_stopped(), my_waitpid(), pid, ptid_get_lwp(), ptrace(), status, status_to_str(), target_pid_to_str(), warning(), WIFSTOPPED, and WSTOPSIG.
Referenced by lin_lwp_attach_lwp(), and linux_nat_attach().
Definition at line 379 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().
|
static |
Definition at line 1745 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().
Definition at line 1705 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().
void linux_nat_set_forget_process | ( | struct target_ops * | t, |
linux_nat_forget_process_ftype * | fn | ||
) |
Definition at line 5062 of file linux-nat.c.
References linux_nat_forget_process_hook.
Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), and x86_linux_add_target().
void linux_nat_set_new_fork | ( | struct target_ops * | t, |
linux_nat_new_fork_ftype * | new_fork | ||
) |
Definition at line 5052 of file linux-nat.c.
References linux_nat_new_fork.
Referenced by _initialize_aarch64_linux_nat(), _initialize_arm_linux_nat(), and x86_linux_add_target().
void linux_nat_set_new_thread | ( | struct target_ops * | t, |
void(*)(struct lwp_info *) | new_thread | ||
) |
Definition at line 5040 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().
void linux_nat_set_prepare_to_resume | ( | struct target_ops * | t, |
void(*)(struct lwp_info *) | prepare_to_resume | ||
) |
Definition at line 5094 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().
void linux_nat_set_siginfo_fixup | ( | struct target_ops * | t, |
int(*)(siginfo_t *, gdb_byte *, int) | siginfo_fixup | ||
) |
Definition at line 5082 of file linux-nat.c.
References linux_nat_siginfo_fixup, and siginfo_fixup().
Referenced by _initialize_amd64_linux_nat().
void linux_nat_set_status_is_event | ( | struct target_ops * | t, |
int(*)(int status) | status_is_event | ||
) |
Definition at line 2563 of file linux-nat.c.
References linux_nat_status_is_event.
Referenced by _initialize_ia64_linux_nat().
|
static |
Definition at line 4807 of file linux-nat.c.
References iterate_over_lwps(), linux_nat_stop_lwp(), non_stop, and target_ops::to_stop.
Referenced by linux_nat_add_target().
Definition at line 4763 of file linux-nat.c.
References debug_linux_nat, find_thread_ptid(), fprintf_unfiltered(), gdb_stdlog, lwp_info::last_resume_kind, lwp_info::ptid, ptid_get_lwp(), resume_stop, stop_callback(), thread_info::stop_requested, lwp_info::stopped, and target_pid_to_str().
Referenced by linux_nat_stop().
|
static |
Definition at line 2903 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().
|
static |
Definition at line 2882 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().
|
static |
Definition at line 2529 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().
|
static |
Definition at line 2539 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().
|
static |
Definition at line 4602 of file linux-nat.c.
Referenced by linux_nat_add_target().
|
static |
Definition at line 4596 of file linux-nat.c.
References linux_multi_process.
Referenced by linux_nat_add_target().
|
static |
Definition at line 4585 of file linux-nat.c.
Referenced by linux_nat_add_target().
|
static |
Definition at line 2915 of file linux-nat.c.
References USE_SIGTRAP_SIGINFO.
Referenced by linux_nat_add_target().
|
static |
Definition at line 2894 of file linux-nat.c.
References USE_SIGTRAP_SIGINFO.
Referenced by linux_nat_add_target().
void linux_nat_switch_fork | ( | ptid_t | new_ptid | ) |
Definition at line 936 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().
|
static |
Definition at line 4618 of file linux-nat.c.
References child_terminal_inferior(), delete_file_handler(), input_fd, set_sigint_trap(), and target_can_async_p.
Referenced by linux_nat_add_target().
|
static |
Definition at line 4652 of file linux-nat.c.
References add_file_handler(), child_terminal_ours(), clear_sigint_trap(), input_fd, and stdin_event_handler().
Referenced by linux_nat_add_target().
|
static |
Definition at line 4836 of file linux-nat.c.
References inferior::aspace, find_inferior_pid(), find_lwp_pid(), gdb_assert, arm-linux::inf, pid, lwp_info::ptid, ptid_get_lwp(), and ptid_get_pid().
Referenced by linux_nat_add_target().
|
static |
Definition at line 4055 of file linux-nat.c.
References linux_thread_alive().
Referenced by linux_nat_add_target().
|
static |
Definition at line 4094 of file linux-nat.c.
References COMM_LEN, FORMAT, gdb_fopen_cloexec(), line, pid, thread_info::ptid, ptid_get_lwp(), and ptid_get_pid().
Referenced by linux_nat_add_target().
|
static |
Definition at line 4064 of file linux-nat.c.
References delete_exited_threads(), linux_supports_traceclone(), and prune_threads().
Referenced by linux_nat_add_target().
|
static |
Definition at line 3720 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, non_stop, ptid_equal(), resume_stopped_resumed_lwps(), target_is_async_p, target_options_to_string(), target_pid_to_str(), TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, and xfree().
Referenced by linux_nat_add_target().
|
static |
Definition at line 3403 of file linux-nat.c.
References __WCLONE, add_initial_lwp(), block_child_signals(), check_zombie_leaders(), clear_sigint_trap(), lwp_info::core, debug_linux_nat, fprintf_unfiltered(), gdb_assert, gdb_stdlog, gdbarch_decr_pc_after_break(), get_regcache_arch(), 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(), non_stop, 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(), set_sigint_trap(), 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_async_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().
|
static |
Definition at line 4393 of file linux-nat.c.
References gdb_assert, linux_common_xfer_osdata(), TARGET_OBJECT_OSDATA, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by linux_xfer_partial().
|
static |
Definition at line 4000 of file linux-nat.c.
References do_cleanups(), inferior_ptid, linux_xfer_siginfo(), null_ptid, pid_to_ptid(), ptid_equal(), ptid_get_lwp(), ptid_lwp_p(), save_inferior_ptid(), TARGET_OBJECT_MEMORY, TARGET_OBJECT_SIGNAL_INFO, TARGET_XFER_EOF, and target_ops::to_xfer_partial.
Referenced by linux_nat_add_target().
void linux_proc_pending_signals | ( | int | pid, |
sigset_t * | pending, | ||
sigset_t * | blocked, | ||
sigset_t * | ignored | ||
) |
Definition at line 4353 of file linux-nat.c.
References _, add_line_to_sigset(), do_cleanups(), error(), gdb_fopen_cloexec(), make_cleanup_fclose(), startswith(), and xsnprintf().
Referenced by linux_nat_has_pending_sigint().
|
static |
Definition at line 4145 of file linux-nat.c.
References gdb_open_cloexec(), inferior_ptid, len, O_LARGEFILE, ptid_get_pid(), read(), SEEK_SET, TARGET_OBJECT_MEMORY, TARGET_XFER_EOF, TARGET_XFER_OK, and xsnprintf().
Referenced by linux_xfer_partial().
|
static |
Definition at line 4248 of file linux-nat.c.
References gdb_open_cloexec(), inferior_ptid, pid, ptid_get_pid(), read(), SEEK_SET, spu_enumerate_spu_ids(), TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and xsnprintf().
Referenced by linux_xfer_partial().
Definition at line 1641 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().
|
static |
Definition at line 1573 of file linux-nat.c.
References get_thread_regcache(), linux_nat_prepare_to_resume, 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().
void linux_stop_and_wait_all_lwps | ( | void | ) |
Definition at line 2386 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().
void linux_stop_lwp | ( | struct lwp_info * | lwp | ) |
Definition at line 2378 of file linux-nat.c.
References stop_callback().
Referenced by debug_reg_change_callback(), s390_refresh_per_info(), update_debug_registers_callback(), and update_registers_callback().
struct target_ops* linux_target | ( | void | ) |
Definition at line 4544 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().
|
static |
Definition at line 4522 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().
Definition at line 4031 of file linux-nat.c.
References debug_linux_nat, err, fprintf_unfiltered(), gdb_assert, gdb_stdlog, kill_lwp(), ptid_get_lwp(), ptid_lwp_p(), safe_strerror(), and target_pid_to_str().
Referenced by linux_nat_filter_event(), and linux_nat_thread_alive().
struct target_ops* linux_trad_target | ( | CORE_ADDR(*)(struct gdbarch *, int, int) | register_u_offset | ) |
Definition at line 4555 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().
void linux_unstop_all_lwps | ( | void | ) |
Definition at line 2399 of file linux-nat.c.
References iterate_over_lwps(), minus_one_ptid, and resume_stopped_resumed_lwps().
Referenced by try_thread_db_load_1().
|
static |
Definition at line 4408 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, 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().
|
static |
Definition at line 3945 of file linux-nat.c.
References gdb_assert, inferior_ptid, len, 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().
struct arch_lwp_info* lwp_arch_private_info | ( | struct lwp_info * | lwp | ) |
Definition at line 312 of file linux-nat.c.
References lwp_info::arch_private.
Referenced by lwp_debug_registers_changed(), and lwp_set_debug_registers_changed().
|
static |
Definition at line 771 of file linux-nat.c.
References lwp_info::arch_private, and xfree().
Referenced by delete_lwp(), and purge_lwp_list().
Definition at line 320 of file linux-nat.c.
References lwp_info::stopped.
Referenced by update_debug_registers_callback(), and x86_linux_update_debug_registers().
void lwp_set_arch_private_info | ( | struct lwp_info * | lwp, |
struct arch_lwp_info * | info | ||
) |
Definition at line 303 of file linux-nat.c.
References lwp_info::arch_private.
Referenced by lwp_set_debug_registers_changed().
Definition at line 2748 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(), running_callback(), select_event_lwp_callback(), status_callback(), and stop_and_resume_callback().
enum target_stop_reason lwp_stop_reason | ( | struct lwp_info * | lwp | ) |
Definition at line 328 of file linux-nat.c.
References lwp_info::stop_reason.
Referenced by x86_linux_update_debug_registers().
|
static |
Definition at line 2444 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().
Definition at line 424 of file linux-nat.c.
References lwp_list, lwp_info::next, lwp_info::ptid, and ptid_get_pid().
Referenced by check_zombie_leaders(), linux_nat_detach(), linux_nat_filter_event(), and linux_nat_pid_to_str().
Definition at line 295 of file linux-nat.c.
References lwp_info::ptid.
Referenced by x86_linux_update_debug_registers().
|
static |
Definition at line 359 of file linux-nat.c.
References simple_pid_list::next, simple_pid_list::status, and xfree().
Referenced by linux_handle_extended_wait().
|
static |
Definition at line 780 of file linux-nat.c.
References lwp_free(), lwp_info::next, lwp_info::ptid, and ptid_get_pid().
Referenced by linux_nat_mourn_inferior(), and linux_nat_switch_fork().
|
static |
Definition at line 733 of file linux-nat.c.
Referenced by linux_async_pipe(), linux_nat_wait_1(), and wait_lwp().
Definition at line 1729 of file linux-nat.c.
References lwp_info::last_resume_kind, resume_stop, and lwp_info::resumed.
Referenced by linux_nat_wait_1().
Definition at line 1658 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, target_pid_to_str(), and inferior::vfork_child.
Referenced by linux_nat_resume_callback(), and stop_and_resume_callback().
Definition at line 1737 of file linux-nat.c.
References lwp_info::last_resume_kind, resume_continue, and lwp_info::resumed.
Referenced by linux_nat_resume().
Definition at line 3652 of file linux-nat.c.
References breakpoint_inserted_here_p(), CATCH, check_ptrace_stopped_lwp_gone(), gdbarch::data, debug_linux_nat, END_CATCH, fprintf_unfiltered(), gdb_stdlog, get_regcache_arch(), get_regcache_aspace(), 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().
Definition at line 2991 of file linux-nat.c.
References lwp_info::resumed.
Referenced by linux_nat_wait_1().
Definition at line 2711 of file linux-nat.c.
References lwp_status_pending_p(), lwp_info::resumed, and lwp_info::stopped.
Referenced by linux_nat_filter_event().
|
static |
Definition at line 2506 of file linux-nat.c.
References check_stopped_by_breakpoint(), check_stopped_by_watchpoint(), gdb_assert, linux_nat_status_is_event, lwp_info::status, lwp_info::stop_reason, TARGET_STOPPED_BY_HW_BREAKPOINT, and TARGET_STOPPED_BY_NO_REASON.
Referenced by linux_nat_filter_event(), and stop_wait_callback().
Definition at line 2923 of file linux-nat.c.
References count_events_callback(), debug_linux_nat, fprintf_unfiltered(), gdb_assert, gdb_stdlog, int, iterate_over_lwps(), non_stop, lwp_info::ptid, select_event_lwp_callback(), select_singlestep_lwp_callback(), lwp_info::status, status, and target_pid_to_str().
Referenced by linux_nat_wait_1().
Definition at line 2759 of file linux-nat.c.
References gdbarch::data, gdb_assert, lwp_status_pending_p(), lwp_info::resumed, and selector.
Referenced by select_event_lwp().
Definition at line 2736 of file linux-nat.c.
References lwp_info::last_resume_kind, resume_step, and lwp_info::status.
Referenced by select_event_lwp().
Definition at line 2424 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().
|
static |
Definition at line 206 of file linux-nat.c.
References _, and fprintf_filtered().
Referenced by _initialize_linux_nat().
|
static |
Definition at line 4673 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(), and lin_thread_get_thread_signals().
Definition at line 3926 of file linux-nat.c.
References linux_nat_siginfo_fixup.
Referenced by linux_nat_set_siginfo_fixup(), and linux_xfer_siginfo().
Definition at line 2553 of file linux-nat.c.
References WIFSTOPPED, and WSTOPSIG.
|
static |
Definition at line 4196 of file linux-nat.c.
References gdbarch_byte_order(), SPUFS_MAGIC, store_unsigned_integer(), target_gdbarch(), and xsnprintf().
Referenced by linux_proc_xfer_spu().
Definition at line 2648 of file linux-nat.c.
References breakpoint_inserted_here_p(), debug_linux_nat, fprintf_unfiltered(), gdb_stdlog, get_regcache_arch(), get_regcache_aspace(), 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().
Definition at line 3001 of file linux-nat.c.
References debug_linux_nat, find_lwp_pid(), fprintf_unfiltered(), gdb_stdlog, lwp_info::last_resume_kind, lwp_status_pending_p(), lwp_info::ptid, ptid_get_lwp(), resume_lwp(), resume_stop, lwp_info::status, lwp_info::step, stop_callback(), stop_wait_callback(), and lwp_info::stopped.
Referenced by linux_nat_filter_event().
Definition at line 2346 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(), linux_stop_lwp(), and stop_and_resume_callback().
Definition at line 2572 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_sigtrap(), lwp_info::signalled, lwp_info::status, status, status_to_str(), lwp_info::stopped, target_pid_to_str(), inferior::vfork_child, wait_lwp(), WIFSTOPPED, and WSTOPSIG.
Referenced by linux_nat_detach(), linux_nat_kill(), linux_nat_wait_1(), linux_stop_and_wait_all_lwps(), and stop_and_resume_callback().
|
static |
Definition at line 4461 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(), parse_static_tracepoint_marker_definition(), pid, ptid_build(), ptid_get_pid(), release_static_tracepoint_marker(), static_tracepoint_marker::str_id, target_stop(), and VEC_safe_push.
Definition at line 2186 of file linux-nat.c.
References __WCLONE, inferior::attach_flag, 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(), restore_child_signals_mask(), lwp_info::status, status, status_to_str(), lwp_info::stopped, store_waitstatus(), suspend_mask, SYSCALL_SIGTRAP, target_pid_to_str(), lwp_info::waitstatus, WIFEXITED, WIFSIGNALED, WIFSTOPPED, WNOHANG, and WSTOPSIG.
Referenced by stop_wait_callback().
initialize_file_ftype _initialize_linux_nat |
|
static |
Definition at line 4611 of file linux-nat.c.
|
static |
Definition at line 711 of file linux-nat.c.
Referenced by _initialize_linux_nat(), block_child_signals(), and lin_thread_get_thread_signals().
|
static |
Definition at line 204 of file linux-nat.c.
Referenced by _initialize_linux_nat(), attach_proc_task_lwp_callback(), check_stopped_by_breakpoint(), check_zombie_leaders(), detach_callback(), get_pending_status(), kill_callback(), kill_wait_callback(), lin_lwp_attach_lwp(), linux_child_follow_fork(), linux_handle_extended_wait(), linux_handle_syscall_trap(), linux_nat_attach(), linux_nat_detach(), linux_nat_filter_event(), linux_nat_post_attach_wait(), linux_nat_resume(), linux_nat_stop_lwp(), linux_nat_wait(), linux_nat_wait_1(), linux_thread_alive(), maybe_clear_ignore_sigint(), resume_lwp(), resume_stopped_resumed_lwps(), select_event_lwp(), sigchld_handler(), status_callback(), stop_and_resume_callback(), stop_callback(), stop_wait_callback(), and wait_lwp().
enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN |
Definition at line 169 of file linux-nat.c.
Referenced by amd64_linux_fetch_inferior_registers(), amd64_linux_store_inferior_registers(), arm_linux_read_description(), fetch_fpregister(), fetch_fpregs(), fetch_register(), fetch_regs(), fetch_vfp_regs(), fetch_xstateregs(), store_fpregister(), store_fpregs(), store_register(), store_regs(), store_vfp_regs(), store_xstateregs(), and x86_linux_read_description().
int linux_multi_process = 1 |
Definition at line 4593 of file linux-nat.c.
Referenced by linux_nat_supports_multi_process().
|
static |
Definition at line 225 of file linux-nat.c.
Referenced by async_file_flush(), async_file_mark(), linux_async_pipe(), linux_nat_async(), and sigchld_handler().
|
static |
Definition at line 184 of file linux-nat.c.
Referenced by linux_nat_forget_process(), and linux_nat_set_forget_process().
|
static |
Definition at line 180 of file linux-nat.c.
Referenced by linux_handle_extended_wait(), and linux_nat_set_new_fork().
|
static |
Definition at line 177 of file linux-nat.c.
Referenced by add_lwp(), and linux_nat_set_new_thread().
|
static |
Definition at line 187 of file linux-nat.c.
Referenced by detach_callback(), linux_child_follow_fork(), linux_nat_detach(), linux_nat_set_prepare_to_resume(), and linux_resume_one_lwp_throw().
Definition at line 192 of file linux-nat.c.
Referenced by linux_nat_set_siginfo_fixup(), and siginfo_fixup().
|
static |
Definition at line 287 of file linux-nat.c.
Referenced by linux_nat_set_status_is_event(), linux_nat_wait_1(), and save_sigtrap().
|
static |
Definition at line 173 of file linux-nat.c.
|
static |
Definition at line 174 of file linux-nat.c.
Referenced by linux_nat_add_target().
struct lwp_info* lwp_list |
Definition at line 700 of file linux-nat.c.
Referenced by add_initial_lwp(), and num_lwps().
|
static |
Definition at line 704 of file linux-nat.c.
Referenced by _initialize_linux_nat().
|
static |
Definition at line 739 of file linux-nat.c.
Referenced by linux_nat_filter_event(), linux_nat_pass_signals(), and linux_nat_resume().
struct sigaction sigchld_action |
Definition at line 714 of file linux-nat.c.
Referenced by _initialize_linux_nat().
struct simple_pid_list* stopped_pids |
Definition at line 219 of file linux-nat.c.
|
static |
Definition at line 202 of file linux-nat.c.
Referenced by linux_nat_add_target(), and linux_nat_close().
|
static |
Definition at line 198 of file linux-nat.c.
Referenced by linux_target_install_ops(), and linux_xfer_partial().
|
static |
Definition at line 708 of file linux-nat.c.
Referenced by _initialize_linux_nat(), lin_thread_get_thread_signals(), linux_nat_wait_1(), and wait_lwp().