GDBserver
|
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.
#define GDB_ARCH_IS_TRAP_BRKPT | ( | X | ) | ((X) == TRAP_BRKPT) |
Definition at line 169 of file linux-ptrace.h.
#define GDB_ARCH_IS_TRAP_HWBKPT | ( | X | ) | ((X) == TRAP_HWBKPT) |
Definition at line 170 of file linux-ptrace.h.
#define PTRACE_EVENT_CLONE 3 |
Definition at line 72 of file linux-ptrace.h.
#define PTRACE_EVENT_EXEC 4 |
Definition at line 73 of file linux-ptrace.h.
#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.
#define PTRACE_EVENT_VFORK 2 |
Definition at line 71 of file linux-ptrace.h.
#define PTRACE_EVENT_VFORK_DONE 5 |
Definition at line 74 of file linux-ptrace.h.
#define PTRACE_GETEVENTMSG 0x4201 |
Definition at line 58 of file linux-ptrace.h.
#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(), read_ssve_header(), read_sve_header(), read_za_header(), riscv_linux_read_features(), and supports_zt_registers().
#define PTRACE_GETSIGINFO 0x4202 |
Definition at line 41 of file linux-ptrace.h.
#define PTRACE_O_EXITKILL 0x00100000 |
Definition at line 81 of file linux-ptrace.h.
Referenced by 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().
#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().
#define PTRACE_O_TRACESYSGOOD 0x00000001 |
Definition at line 61 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features().
#define PTRACE_O_TRACEVFORK 0x00000004 |
Definition at line 63 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features().
#define PTRACE_O_TRACEVFORKDONE 0x00000020 |
Definition at line 66 of file linux-ptrace.h.
Referenced by linux_check_ptrace_features().
#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(), write_ssve_header(), write_sve_header(), and write_za_header().
#define PTRACE_SETSIGINFO 0x4203 |
Definition at line 42 of file linux-ptrace.h.
#define PTRACE_TYPE_ARG3 void * |
Definition at line 33 of file linux-ptrace.h.
Referenced by linux_child_function(), linux_disable_event_reporting(), linux_enable_event_reporting(), linux_ptrace_test_ret_to_nx(), linux_test_for_exitkill(), and riscv_linux_read_features().
#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.
|
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, and supported_ptrace_options.
Referenced by linux_enable_event_reporting().
|
extern |
Definition at line 399 of file linux-ptrace.c.
References ptrace, PTRACE_SETOPTIONS, and PTRACE_TYPE_ARG3.
|
extern |
Definition at line 378 of file linux-ptrace.c.
References linux_check_ptrace_features(), ptrace, PTRACE_O_TRACECLONE, PTRACE_SETOPTIONS, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, and supported_ptrace_options.
|
extern |
Definition at line 431 of file linux-ptrace.c.
References linux_ptrace_get_extended_event().
|
extern |
Definition at line 36 of file linux-ptrace.c.
References linux_proc_get_tracerpid_nowarn(), and linux_proc_pid_is_zombie_nowarn().
Referenced by linux_ptrace_attach_fail_reason_string().
|
extern |
Definition at line 58 of file linux-ptrace.c.
References linux_ptrace_attach_fail_reason().
|
extern |
Definition at line 423 of file linux-ptrace.c.
Referenced by linux_is_extended_waitstatus().
|
extern |
Definition at line 409 of file linux-ptrace.c.
References linux_ptrace_test_ret_to_nx().
|
extern |
Definition at line 439 of file linux-ptrace.c.