GDB (xrefs)
|
Go to the source code of this file.
Macros | |
#define | PTRACE_TYPE_ARG3 void * |
#define | PTRACE_TYPE_ARG4 void * |
#define | PTRACE_GETSIGINFO 0x4202 |
#define | PTRACE_SETSIGINFO 0x4203 |
#define | PTRACE_GETREGSET 0x4204 |
#define | PTRACE_SETREGSET 0x4205 |
#define | PTRACE_SETOPTIONS 0x4200 |
#define | PTRACE_GETEVENTMSG 0x4201 |
#define | PTRACE_O_TRACESYSGOOD 0x00000001 |
#define | PTRACE_O_TRACEFORK 0x00000002 |
#define | PTRACE_O_TRACEVFORK 0x00000004 |
#define | PTRACE_O_TRACECLONE 0x00000008 |
#define | PTRACE_O_TRACEEXEC 0x00000010 |
#define | PTRACE_O_TRACEVFORKDONE 0x00000020 |
#define | PTRACE_O_TRACEEXIT 0x00000040 |
#define | PTRACE_EVENT_FORK 1 |
#define | PTRACE_EVENT_VFORK 2 |
#define | PTRACE_EVENT_CLONE 3 |
#define | PTRACE_EVENT_EXEC 4 |
#define | PTRACE_EVENT_VFORK_DONE 5 |
#define | PTRACE_EVENT_EXIT 6 |
#define | PTRACE_O_EXITKILL 0x00100000 |
#define | __WALL 0x40000000 /* Wait for any child. */ |
#define | USE_SIGTRAP_SIGINFO 1 |
#define | GDB_ARCH_IS_TRAP_BRKPT(X) ((X) == TRAP_BRKPT) |
#define | GDB_ARCH_IS_TRAP_HWBKPT(X) ((X) == TRAP_HWBKPT) |
#define | TRAP_HWBKPT 4 |
Functions | |
std::string | linux_ptrace_attach_fail_reason (pid_t pid) |
std::string | linux_ptrace_attach_fail_reason_string (ptid_t ptid, int err) |
void | linux_ptrace_init_warnings (void) |
void | linux_check_ptrace_features (void) |
void | linux_enable_event_reporting (pid_t pid, int attached) |
void | linux_disable_event_reporting (pid_t pid) |
int | linux_ptrace_get_extended_event (int wstat) |
int | linux_is_extended_waitstatus (int wstat) |
int | linux_wstatus_maybe_breakpoint (int wstat) |
#define __WALL 0x40000000 /* Wait for any child. */ |
Definition at line 95 of file linux-ptrace.h.
Referenced by detach_one_pid(), kill_wait_one_lwp(), linux_handle_extended_wait(), linux_nat_post_attach_wait(), linux_nat_wait_1(), and wait_lwp().
Definition at line 169 of file linux-ptrace.h.
Referenced by save_stop_reason().
#define GDB_ARCH_IS_TRAP_HWBKPT | ( | X | ) | ((X) == TRAP_HWBKPT) |
Definition at line 170 of file linux-ptrace.h.
Referenced by save_stop_reason().
#define PTRACE_EVENT_CLONE 3 |
Definition at line 72 of file linux-ptrace.h.
Referenced by linux_handle_extended_wait().
#define PTRACE_EVENT_EXEC 4 |
Definition at line 73 of file linux-ptrace.h.
Referenced by linux_handle_extended_wait(), and linux_nat_filter_event().
#define PTRACE_EVENT_EXIT 6 |
Definition at line 75 of file linux-ptrace.h.
#define PTRACE_EVENT_FORK 1 |
Definition at line 70 of file linux-ptrace.h.
Referenced by detach_one_lwp(), and linux_handle_extended_wait().
#define PTRACE_EVENT_VFORK 2 |
Definition at line 71 of file linux-ptrace.h.
Referenced by detach_one_lwp(), and linux_handle_extended_wait().
#define PTRACE_EVENT_VFORK_DONE 5 |
Definition at line 74 of file linux-ptrace.h.
Referenced by linux_handle_extended_wait().
#define PTRACE_GETEVENTMSG 0x4201 |
Definition at line 58 of file linux-ptrace.h.
Referenced by detach_one_lwp(), and linux_handle_extended_wait().
#define PTRACE_GETREGSET 0x4204 |
Definition at line 46 of file linux-ptrace.h.
Referenced by aarch64_fetch_sve_regset(), aarch64_fetch_za_regset(), aarch64_fetch_zt_regset(), aarch64_linux_get_debug_reg_capacity(), aarch64_ps_get_thread_area(), aarch64_sve_get_vq(), aarch64_sve_set_vq(), aarch64_tls_register_count(), check_regset(), check_regset(), fetch_fpregs(), fetch_fpregs_from_thread(), fetch_fpregs_from_thread(), fetch_gregs(), fetch_gregs_from_thread(), fetch_gregs_from_thread(), fetch_mteregs_from_thread(), fetch_pauth_masks_from_thread(), amd64_linux_nat_target::fetch_registers(), or1k_linux_nat_target::fetch_registers(), riscv_linux_nat_target::fetch_registers(), fetch_regs(), fetch_regset(), fetch_regset(), fetch_tlsregs_from_thread(), fetch_vfp_regs(), fetch_xstateregs(), aarch64_linux_nat_target::read_description(), arm_linux_nat_target::read_description(), x86_linux_nat_target::read_description(), read_ssve_header(), read_sve_header(), read_za_header(), riscv_linux_read_features(), store_fpregs(), store_fpregs_to_thread(), store_fpregs_to_thread(), store_gregs(), store_gregs_to_thread(), store_gregs_to_thread(), amd64_linux_nat_target::store_registers(), or1k_linux_nat_target::store_registers(), riscv_linux_nat_target::store_registers(), store_regs(), store_regset(), store_regset(), store_vfp_regs(), store_xstateregs(), and supports_zt_registers().
#define PTRACE_GETSIGINFO 0x4202 |
Definition at line 41 of file linux-ptrace.h.
Referenced by linux_nat_get_siginfo().
#define PTRACE_O_EXITKILL 0x00100000 |
Definition at line 81 of file linux-ptrace.h.
Referenced by linux_nat_ptrace_options(), and linux_test_for_exitkill().
#define PTRACE_O_TRACECLONE 0x00000008 |
Definition at line 64 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features(), and linux_enable_event_reporting().
#define PTRACE_O_TRACEEXEC 0x00000010 |
Definition at line 65 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features(), and linux_nat_ptrace_options().
#define PTRACE_O_TRACEEXIT 0x00000040 |
Definition at line 67 of file linux-ptrace.h.
#define PTRACE_O_TRACEFORK 0x00000002 |
Definition at line 62 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features(), and linux_nat_ptrace_options().
#define PTRACE_O_TRACESYSGOOD 0x00000001 |
Definition at line 61 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features(), and linux_nat_ptrace_options().
#define PTRACE_O_TRACEVFORK 0x00000004 |
Definition at line 63 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features(), and linux_nat_ptrace_options().
#define PTRACE_O_TRACEVFORKDONE 0x00000020 |
Definition at line 66 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features(), and linux_nat_ptrace_options().
#define PTRACE_SETOPTIONS 0x4200 |
Definition at line 57 of file linux-ptrace.h.
Referenced by linux_disable_event_reporting(), linux_enable_event_reporting(), and linux_test_for_exitkill().
#define PTRACE_SETREGSET 0x4205 |
Definition at line 50 of file linux-ptrace.h.
Referenced by aarch64_initialize_za_regset(), aarch64_linux_set_debug_regs(), aarch64_store_sve_regset(), aarch64_store_za_regset(), aarch64_store_zt_regset(), aarch64_sve_set_vq(), aarch64_za_set_svq(), store_fpregs(), store_fpregs_to_thread(), store_fpregs_to_thread(), store_gregs(), store_gregs_to_thread(), store_gregs_to_thread(), store_mteregs_to_thread(), amd64_linux_nat_target::store_registers(), or1k_linux_nat_target::store_registers(), riscv_linux_nat_target::store_registers(), store_regs(), store_regset(), store_regset(), store_tlsregs_to_thread(), store_vfp_regs(), store_xstateregs(), write_ssve_header(), write_sve_header(), and write_za_header().
#define PTRACE_SETSIGINFO 0x4203 |
Definition at line 42 of file linux-ptrace.h.
Referenced by linux_xfer_siginfo().
#define PTRACE_TYPE_ARG3 void * |
Definition at line 33 of file linux-ptrace.h.
Referenced by amd64bsd_fetch_inferior_registers(), amd64bsd_store_inferior_registers(), inf_ptrace_target::attach(), inf_ptrace_target::detach(), fbsd_enable_proc_events(), fetch_fp_register(), fetch_fp_regs(), fetch_register(), linux_nat_trad_target::fetch_register(), fetch_register(), fbsd_nat_target::fetch_register_set(), alpha_bsd_nat_target::fetch_registers(), amd64_fbsd_nat_target::fetch_registers(), hppa_nbsd_nat_target::fetch_registers(), hppa_obsd_nat_target::fetch_registers(), i386_fbsd_nat_target::fetch_registers(), m68k_bsd_nat_target::fetch_registers(), mips_fbsd_nat_target::fetch_registers(), mips_nbsd_nat_target::fetch_registers(), mips64_obsd_nat_target::fetch_registers(), ppc_fbsd_nat_target::fetch_registers(), ppc_nbsd_nat_target::fetch_registers(), ppc_obsd_nat_target::fetch_registers(), sh_nbsd_nat_target::fetch_registers(), tilegx_linux_nat_target::fetch_registers(), vax_bsd_nat_target::fetch_registers(), or1k_linux_nat_target::fetch_registers(), riscv_linux_nat_target::fetch_registers(), fbsd_nat_target::fetch_regset(), obsd_nat_target::follow_fork(), fbsd_nat_target::have_regset(), i386bsd_fetch_inferior_registers(), i386bsd_store_inferior_registers(), ia64_linux_fetch_register(), ia64_linux_store_register(), inf_ptrace_me(), inf_ptrace_peek_poke(), inf_ptrace_target::kill(), linux_child_function(), linux_disable_event_reporting(), linux_enable_event_reporting(), linux_nat_get_siginfo(), linux_ptrace_test_ret_to_nx(), linux_test_for_exitkill(), linux_xfer_siginfo(), arm_linux_nat_target::low_prepare_to_resume(), mips_linux_nat_target::mips64_regsets_fetch_registers(), mips_linux_nat_target::mips64_regsets_store_registers(), obsd_enable_proc_events(), amd64_fbsd_nat_target::read_description(), i386_fbsd_nat_target::read_description(), inf_ptrace_target::resume(), riscv_linux_read_features(), sparc_fetch_inferior_registers(), sparc_store_inferior_registers(), sparc_xfer_wcookie(), store_debug_register(), store_fp_register(), store_fp_regs(), store_register(), linux_nat_trad_target::store_register(), store_register(), fbsd_nat_target::store_register_set(), alpha_bsd_nat_target::store_registers(), amd64_fbsd_nat_target::store_registers(), hppa_nbsd_nat_target::store_registers(), hppa_obsd_nat_target::store_registers(), i386_fbsd_nat_target::store_registers(), m68k_bsd_nat_target::store_registers(), mips_fbsd_nat_target::store_registers(), mips_nbsd_nat_target::store_registers(), mips64_obsd_nat_target::store_registers(), ppc_fbsd_nat_target::store_registers(), ppc_nbsd_nat_target::store_registers(), ppc_obsd_nat_target::store_registers(), sh_nbsd_nat_target::store_registers(), tilegx_linux_nat_target::store_registers(), vax_bsd_nat_target::store_registers(), or1k_linux_nat_target::store_registers(), riscv_linux_nat_target::store_registers(), store_regs(), fbsd_nat_target::store_regset(), and fbsd_nat_target::xfer_partial().
#define PTRACE_TYPE_ARG4 void * |
Definition at line 37 of file linux-ptrace.h.
Referenced by linux_child_function(), linux_enable_event_reporting(), linux_ptrace_test_ret_to_nx(), and linux_test_for_exitkill().
#define TRAP_HWBKPT 4 |
Definition at line 174 of file linux-ptrace.h.
#define USE_SIGTRAP_SIGINFO 1 |
Definition at line 116 of file linux-ptrace.h.
Referenced by linux_nat_wait_1(), linux_nat_target::supports_stopped_by_hw_breakpoint(), and linux_nat_target::supports_stopped_by_sw_breakpoint().
|
extern |
Definition at line 322 of file linux-ptrace.c.
References kill_child(), linux_child_function(), linux_fork_to_function(), linux_test_for_exitkill(), my_waitpid(), PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEFORK, PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEVFORK, PTRACE_O_TRACEVFORKDONE, status, and supported_ptrace_options.
Referenced by linux_enable_event_reporting().
|
extern |
Definition at line 399 of file linux-ptrace.c.
References pid, ptrace, PTRACE_SETOPTIONS, and PTRACE_TYPE_ARG3.
Referenced by linux_nat_target::follow_fork().
|
extern |
Definition at line 378 of file linux-ptrace.c.
References linux_check_ptrace_features(), pid, ptrace, PTRACE_O_TRACECLONE, PTRACE_SETOPTIONS, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, and supported_ptrace_options.
Referenced by linux_init_ptrace_procfs(), linux_nat_filter_event(), and wait_lwp().
|
extern |
Definition at line 431 of file linux-ptrace.c.
References linux_ptrace_get_extended_event().
Referenced by detach_one_lwp(), linux_nat_filter_event(), and wait_lwp().
|
extern |
Definition at line 36 of file linux-ptrace.c.
References linux_proc_get_tracerpid_nowarn(), linux_proc_pid_is_zombie_nowarn(), and pid.
Referenced by linux_nat_target::attach(), and linux_ptrace_attach_fail_reason_string().
|
extern |
Definition at line 58 of file linux-ptrace.c.
References err, and linux_ptrace_attach_fail_reason().
Referenced by attach_proc_task_lwp_callback().
|
extern |
Definition at line 423 of file linux-ptrace.c.
Referenced by detach_one_lwp(), linux_handle_extended_wait(), linux_is_extended_waitstatus(), and linux_nat_filter_event().
|
extern |
Definition at line 409 of file linux-ptrace.c.
References linux_ptrace_test_ret_to_nx().
Referenced by linux_init_ptrace_procfs().
|
extern |
Definition at line 439 of file linux-ptrace.c.
Referenced by linux_nat_filter_event().