GDB (xrefs)
|
#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(), PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, status, supported_ptrace_options, warning(), and WIFSTOPPED.
Referenced by 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(), 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(), PTRACE_SETOPTIONS, and PTRACE_TYPE_ARG3.
Referenced by linux_child_follow_fork().
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(), PTRACE_O_TRACECLONE, PTRACE_SETOPTIONS, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, and supported_ptrace_options.
Referenced by linux_init_ptrace(), linux_nat_filter_event(), and wait_lwp().
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().
Definition at line 595 of file linux-ptrace.c.
References linux_ptrace_get_extended_event().
Referenced by linux_nat_filter_event(), and wait_lwp().
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_nat_attach(), and linux_ptrace_attach_fail_reason_string().
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().
Definition at line 587 of file linux-ptrace.c.
Referenced by linux_handle_extended_wait(), linux_is_extended_waitstatus(), linux_nat_filter_event(), 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 linux_init_ptrace().
|
static |
Definition at line 95 of file linux-ptrace.c.
References _, gdb_assert_not_reached, MAP_FAILED, ptrace(), PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, safe_strerror(), status, 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_nat_update_thread_list(), and thread_db_use_events().
int linux_supports_tracefork | ( | void | ) |
Definition at line 535 of file linux-ptrace.c.
References PTRACE_O_TRACEFORK, and ptrace_supports_feature().
Referenced by lin_lwp_attach_lwp(), linux_child_follow_fork(), linux_child_insert_exec_catchpoint(), linux_child_insert_fork_catchpoint(), and linux_child_insert_vfork_catchpoint().
int linux_supports_tracesysgood | ( | void | ) |
Definition at line 564 of file linux-ptrace.c.
References PTRACE_O_TRACESYSGOOD, and ptrace_supports_feature().
Referenced by linux_child_set_syscall_catchpoint().
int linux_supports_tracevforkdone | ( | void | ) |
Definition at line 555 of file linux-ptrace.c.
References PTRACE_O_TRACEVFORKDONE, and ptrace_supports_feature().
Referenced by linux_child_follow_fork().
|
static |
Definition at line 472 of file linux-ptrace.c.
References ptrace(), 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(), 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, status, supported_ptrace_options, warning(), and WIFSTOPPED.
Referenced by linux_check_ptrace_features().
|
static |
Definition at line 380 of file linux-ptrace.c.
References ptrace(), PTRACE_O_TRACESYSGOOD, PTRACE_SETOPTIONS, PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG4, and supported_ptrace_options.
Referenced by linux_check_ptrace_features().
Definition at line 603 of file linux-ptrace.c.
References WIFSTOPPED, and WSTOPSIG.
Referenced by linux_nat_filter_event().
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().