|
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"#include "gdb_ptrace.h"#include <sys/procfs.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 337 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 317 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 512 of file linux-ptrace.c.
References pid, 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 491 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(), linux_nat_filter_event(), and wait_lwp().
|
static |
Definition at line 264 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 302 of file linux-ptrace.c.
References xfree().
Referenced by linux_child_function().
| int linux_is_extended_waitstatus | ( | int | wstat | ) |
Definition at line 608 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 40 of file linux-ptrace.c.
References _, buffer_xml_printf(), linux_proc_get_tracerpid_nowarn(), linux_proc_pid_is_zombie_nowarn(), and pid.
Referenced by linux_nat_attach(), and linux_ptrace_attach_fail_reason_string().
| char* linux_ptrace_attach_fail_reason_string | ( | ptid_t | ptid, |
| int | err | ||
| ) |
Definition at line 59 of file linux-ptrace.c.
References buffer_finish(), buffer_grow_str0, buffer_init(), err, linux_ptrace_attach_fail_reason(), ptid_get_lwp(), safe_strerror(), xfree(), and xstrprintf().
Referenced by attach_proc_task_lwp_callback().
| int linux_ptrace_get_extended_event | ( | int | wstat | ) |
Definition at line 600 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 586 of file linux-ptrace.c.
References linux_ptrace_test_ret_to_nx().
Referenced by linux_init_ptrace().
|
static |
Definition at line 99 of file linux-ptrace.c.
References _, gdb_assert_not_reached, MAP_FAILED, ptrace(), PTRACE_GETREGS, 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 559 of file linux-ptrace.c.
References PTRACE_O_TRACECLONE, and ptrace_supports_feature().
| int linux_supports_traceexec | ( | void | ) |
Definition at line 548 of file linux-ptrace.c.
References PTRACE_O_TRACEEXEC, and ptrace_supports_feature().
| int linux_supports_tracefork | ( | void | ) |
Definition at line 537 of file linux-ptrace.c.
References PTRACE_O_TRACEFORK, and ptrace_supports_feature().
Referenced by 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 577 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 568 of file linux-ptrace.c.
References PTRACE_O_TRACEVFORKDONE, and ptrace_supports_feature().
Referenced by linux_child_follow_fork().
|
static |
Definition at line 474 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 397 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 382 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().
| int linux_wstatus_maybe_breakpoint | ( | int | wstat | ) |
Definition at line 616 of file linux-ptrace.c.
References WIFSTOPPED, and WSTOPSIG.
Referenced by linux_nat_filter_event().
|
static |
Definition at line 523 of file linux-ptrace.c.
References linux_check_ptrace_features(), and supported_ptrace_options.
Referenced by linux_supports_traceclone(), linux_supports_traceexec(), linux_supports_tracefork(), linux_supports_tracesysgood(), and linux_supports_tracevforkdone().
|
static |
Definition at line 33 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().
1.8.14