GDBserver
|
#include "common-defs.h"
#include "linux-ptrace.h"
#include "linux-procfs.h"
#include "linux-waitpid.h"
#include "buffer.h"
#include "gdb_wait.h"
Go to the source code of this file.
Variables | |
static int | supported_ptrace_options = -1 |
void linux_check_ptrace_features | ( | void | ) |
Definition at line 335 of file linux-ptrace.c.
References _, error(), linux_child_function(), linux_fork_to_function(), linux_test_for_exitkill(), linux_test_for_tracefork(), linux_test_for_tracesysgood(), my_waitpid(), perror_with_name(), PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, supported_ptrace_options, warning(), and WIFSTOPPED.
Referenced by initialize_low(), linux_enable_event_reporting(), and ptrace_supports_feature().
|
static |
Definition at line 315 of file linux-ptrace.c.
References linux_fork_to_function(), linux_grandchild_function(), PTRACE_TYPE_ARG3, and PTRACE_TYPE_ARG4.
Referenced by linux_check_ptrace_features().
void linux_disable_event_reporting | ( | pid_t | pid | ) |
Definition at line 510 of file linux-ptrace.c.
References PTRACE_SETOPTIONS, and PTRACE_TYPE_ARG3.
void linux_enable_event_reporting | ( | pid_t | pid, |
int | options | ||
) |
Definition at line 489 of file linux-ptrace.c.
References linux_check_ptrace_features(), PTRACE_O_TRACECLONE, PTRACE_SETOPTIONS, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, and supported_ptrace_options.
Referenced by linux_low_filter_event(), and reset_lwp_ptrace_options_callback().
Definition at line 262 of file linux-ptrace.c.
References gdb_assert, perror_with_name(), and xmalloc().
Referenced by linux_check_ptrace_features(), and linux_child_function().
|
static |
Definition at line 300 of file linux-ptrace.c.
References xfree().
Referenced by linux_child_function().
int linux_is_extended_waitstatus | ( | int | wstat | ) |
Definition at line 595 of file linux-ptrace.c.
References linux_ptrace_get_extended_event().
Referenced by get_detach_signal(), and linux_low_filter_event().
void linux_ptrace_attach_fail_reason | ( | pid_t | pid, |
struct buffer * | buffer | ||
) |
Definition at line 36 of file linux-ptrace.c.
References _, buffer_xml_printf(), linux_proc_get_tracerpid_nowarn(), and linux_proc_pid_is_zombie_nowarn().
Referenced by linux_ptrace_attach_fail_reason_string().
char* linux_ptrace_attach_fail_reason_string | ( | ptid_t | ptid, |
int | err | ||
) |
Definition at line 55 of file linux-ptrace.c.
References buffer_finish(), buffer_grow_str0, buffer_init(), linux_ptrace_attach_fail_reason(), ptid_get_lwp(), safe_strerror(), xfree(), and xstrprintf().
Referenced by attach_proc_task_lwp_callback(), attach_thread(), and linux_attach().
int linux_ptrace_get_extended_event | ( | int | wstat | ) |
Definition at line 587 of file linux-ptrace.c.
Referenced by handle_extended_wait(), linux_is_extended_waitstatus(), and linux_test_for_tracefork().
void linux_ptrace_init_warnings | ( | void | ) |
Definition at line 573 of file linux-ptrace.c.
References linux_ptrace_test_ret_to_nx().
Referenced by initialize_low().
|
static |
Definition at line 95 of file linux-ptrace.c.
References _, errno, gdb_assert_not_reached, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, safe_strerror(), warning(), WIFSIGNALED, WIFSTOPPED, WSTOPSIG, and WTERMSIG.
Referenced by linux_ptrace_init_warnings().
int linux_supports_traceclone | ( | void | ) |
Definition at line 546 of file linux-ptrace.c.
References PTRACE_O_TRACECLONE, and ptrace_supports_feature().
Referenced by linux_look_up_symbols().
int linux_supports_tracefork | ( | void | ) |
Definition at line 535 of file linux-ptrace.c.
References PTRACE_O_TRACEFORK, and ptrace_supports_feature().
Referenced by linux_supports_fork_events(), and linux_supports_vfork_events().
int linux_supports_tracesysgood | ( | void | ) |
Definition at line 564 of file linux-ptrace.c.
References PTRACE_O_TRACESYSGOOD, and ptrace_supports_feature().
int linux_supports_tracevforkdone | ( | void | ) |
Definition at line 555 of file linux-ptrace.c.
References PTRACE_O_TRACEVFORKDONE, and ptrace_supports_feature().
|
static |
Definition at line 472 of file linux-ptrace.c.
References PTRACE_O_EXITKILL, PTRACE_SETOPTIONS, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, and supported_ptrace_options.
Referenced by linux_check_ptrace_features().
|
static |
Definition at line 395 of file linux-ptrace.c.
References _, linux_ptrace_get_extended_event(), my_waitpid(), PTRACE_EVENT_FORK, PTRACE_GETEVENTMSG, PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK, PTRACE_O_TRACEVFORKDONE, PTRACE_SETOPTIONS, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, supported_ptrace_options, warning(), and WIFSTOPPED.
Referenced by linux_check_ptrace_features().
|
static |
Definition at line 380 of file linux-ptrace.c.
References PTRACE_O_TRACESYSGOOD, PTRACE_SETOPTIONS, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, and supported_ptrace_options.
Referenced by linux_check_ptrace_features().
int linux_wstatus_maybe_breakpoint | ( | int | wstat | ) |
Definition at line 603 of file linux-ptrace.c.
References WIFSTOPPED, and WSTOPSIG.
Referenced by linux_low_filter_event(), and linux_wait_1().
|
static |
Definition at line 521 of file linux-ptrace.c.
References linux_check_ptrace_features(), and supported_ptrace_options.
Referenced by linux_supports_traceclone(), linux_supports_tracefork(), linux_supports_tracesysgood(), and linux_supports_tracevforkdone().
|
static |
Definition at line 29 of file linux-ptrace.c.
Referenced by linux_check_ptrace_features(), linux_enable_event_reporting(), linux_test_for_exitkill(), linux_test_for_tracefork(), linux_test_for_tracesysgood(), and ptrace_supports_feature().