GDB (xrefs)
|
#include "defs.h"
#include "inferior.h"
#include "infrun.h"
#include "target.h"
#include "gdbcore.h"
#include "elf-bfd.h"
#include "gdbcmd.h"
#include "gdbthread.h"
#include "regcache.h"
#include "inf-child.h"
#include "nat/fork-inferior.h"
#include "gdbarch.h"
#include <sys/procfs.h>
#include <sys/fault.h>
#include <sys/syscall.h>
#include "gdbsupport/gdb_wait.h"
#include <signal.h>
#include <ctype.h>
#include "gdb_bfd.h"
#include "auxv.h"
#include "procfs.h"
#include "observable.h"
#include "gdbsupport/scoped_fd.h"
#include "gdbsupport/pathstuff.h"
#include "gdbsupport/buildargv.h"
#include <sys/types.h>
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include "proc-utils.h"
#include "gregset.h"
Go to the source code of this file.
Classes | |
class | procfs_target |
struct | procinfo |
struct | procinfo_deleter |
struct | procfs_corefile_thread_data |
Macros | |
#define | CTL_PROC_NAME_FMT "/proc/%d/ctl" |
#define | AS_PROC_NAME_FMT "/proc/%d/as" |
#define | MAP_PROC_NAME_FMT "/proc/%d/map" |
#define | STATUS_PROC_NAME_FMT "/proc/%d/status" |
#define | MAX_PROC_NAME_SIZE sizeof("/proc/999999/lwp/0123456789/lwpstatus") |
Typedefs | |
typedef struct procinfo | procinfo |
typedef std::unique_ptr< procinfo, procinfo_deleter > | procinfo_up |
Enumerations | |
enum | { FD_CTL , FD_STATUS , FD_AS } |
enum | { NOKILL , KILL } |
enum | { FLAG_RESET , FLAG_SET } |
Functions | |
static enum target_xfer_status | procfs_xfer_memory (gdb_byte *, const gdb_byte *, ULONGEST, ULONGEST, ULONGEST *) |
static procinfo * | find_procinfo_or_die (int pid, int tid) |
static procinfo * | find_procinfo (int pid, int tid) |
static procinfo * | create_procinfo (int pid, int tid) |
static void | destroy_procinfo (procinfo *p) |
static void | dead_procinfo (procinfo *p, const char *msg, int killp) |
static int | open_procinfo_files (procinfo *p, int which) |
static void | close_procinfo_files (procinfo *p) |
static int | iterate_over_mappings (procinfo *pi, find_memory_region_ftype child_func, void *data, int(*func)(struct prmap *map, find_memory_region_ftype child_func, void *data)) |
static int | open_with_retry (const char *pathname, int flags) |
static void | destroy_one_procinfo (procinfo **list, procinfo *pi) |
static long | proc_flags (procinfo *pi) |
static int | proc_why (procinfo *pi) |
static int | proc_what (procinfo *pi) |
static int | proc_set_current_signal (procinfo *pi, int signo) |
static int | proc_get_current_thread (procinfo *pi) |
static int | proc_iterate_over_threads (procinfo *pi, int(*func)(procinfo *, procinfo *, void *), void *ptr) |
static void | proc_warn (procinfo *pi, const char *func, int line) |
static void | proc_error (procinfo *pi, const char *func, int line) |
static int | proc_get_status (procinfo *pi) |
static int | proc_watchpoint_address (procinfo *pi, CORE_ADDR *addr) |
static int | proc_nsysarg (procinfo *pi) |
static long * | proc_sysargs (procinfo *pi) |
static int | proc_modify_flag (procinfo *pi, long flag, long mode) |
static int | proc_set_run_on_last_close (procinfo *pi) |
static int | proc_unset_run_on_last_close (procinfo *pi) |
static int | proc_unset_inherit_on_fork (procinfo *pi) |
static int | proc_set_async (procinfo *pi) |
static int | proc_unset_async (procinfo *pi) |
static int | proc_stop_process (procinfo *pi) |
static int | proc_wait_for_stop (procinfo *pi) |
static int | proc_run_process (procinfo *pi, int step, int signo) |
static int | proc_set_traced_signals (procinfo *pi, sigset_t *sigset) |
static int | proc_set_traced_faults (procinfo *pi, fltset_t *fltset) |
static int | proc_set_traced_sysentry (procinfo *pi, sysset_t *sysset) |
static int | proc_set_traced_sysexit (procinfo *pi, sysset_t *sysset) |
static int | proc_set_held_signals (procinfo *pi, sigset_t *sighold) |
static sigset_t * | proc_get_held_signals (procinfo *pi, sigset_t *save) |
static sigset_t * | proc_get_traced_signals (procinfo *pi, sigset_t *save) |
static fltset_t * | proc_get_traced_faults (procinfo *pi, fltset_t *save) |
static sysset_t * | proc_get_traced_sysentry (procinfo *pi, sysset_t *save) |
static sysset_t * | proc_get_traced_sysexit (procinfo *pi, sysset_t *save) |
static int | proc_clear_current_fault (procinfo *pi) |
static int | proc_clear_current_signal (procinfo *pi) |
static gdb_gregset_t * | proc_get_gregs (procinfo *pi) |
static gdb_fpregset_t * | proc_get_fpregs (procinfo *pi) |
static int | proc_set_gregs (procinfo *pi) |
static int | proc_set_fpregs (procinfo *pi) |
static int | proc_kill (procinfo *pi, int signo) |
static int | proc_parent_pid (procinfo *pi) |
static void * | procfs_address_to_host_pointer (CORE_ADDR addr) |
static int | proc_set_watchpoint (procinfo *pi, CORE_ADDR addr, int len, int wflags) |
static int | proc_get_nthreads (procinfo *pi) |
static int | proc_delete_dead_threads (procinfo *parent, procinfo *thread, void *ignore) |
static int | proc_update_threads (procinfo *pi) |
static void | do_attach (ptid_t ptid) |
static void | do_detach () |
static void | proc_trace_syscalls_1 (procinfo *pi, int syscallnum, int entry_or_exit, int mode, int from_tty) |
static int | procfs_debug_inferior (procinfo *pi) |
static int | invalidate_cache (procinfo *parent, procinfo *pi, void *ptr) |
static void | unconditionally_kill_inferior (procinfo *pi) |
static void | procfs_set_exec_trap (void) |
static void | procfs_pre_trace (void) |
static int | procfs_notice_thread (procinfo *pi, procinfo *thread, void *ptr) |
static int | procfs_set_watchpoint (ptid_t ptid, CORE_ADDR addr, int len, int rwflag, int after) |
static int | find_memory_regions_callback (struct prmap *map, find_memory_region_ftype func, void *data) |
static char * | mappingflags (long flags) |
static int | info_mappings_callback (struct prmap *map, find_memory_region_ftype ignore, void *unused) |
static void | info_proc_mappings (procinfo *pi, int summary) |
static void | proc_trace_syscalls (const char *args, int from_tty, int entry_or_exit, int mode) |
static void | proc_trace_sysentry_cmd (const char *args, int from_tty) |
static void | proc_trace_sysexit_cmd (const char *args, int from_tty) |
static void | proc_untrace_sysentry_cmd (const char *args, int from_tty) |
static void | proc_untrace_sysexit_cmd (const char *args, int from_tty) |
void | _initialize_procfs () |
ptid_t | procfs_first_available (void) |
static void | procfs_do_thread_registers (bfd *obfd, ptid_t ptid, gdb::unique_xmalloc_ptr< char > ¬e_data, int *note_size, enum gdb_signal stop_signal) |
static int | procfs_corefile_thread_callback (procinfo *pi, procinfo *thread, void *data) |
static int | find_signalled_thread (struct thread_info *info, void *data) |
static enum gdb_signal | find_stop_signal (void) |
Variables | |
static procfs_target | the_procfs_target |
static char | errmsg [128] |
static procinfo * | procinfo_list |
#define MAX_PROC_NAME_SIZE sizeof("/proc/999999/lwp/0123456789/lwpstatus") |
typedef std::unique_ptr<procinfo, procinfo_deleter> procinfo_up |
void _initialize_procfs | ( | ) |
Definition at line 3445 of file procfs.c.
References add_com(), add_inf_child_target(), no_class, proc_trace_sysentry_cmd(), proc_trace_sysexit_cmd(), proc_untrace_sysentry_cmd(), proc_untrace_sysexit_cmd(), and the_procfs_target.
|
static |
Definition at line 485 of file procfs.c.
References procinfo::as_fd, procinfo::ctl_fd, and procinfo::status_fd.
Referenced by destroy_one_procinfo(), and invalidate_cache().
|
static |
Definition at line 443 of file procfs.c.
References find_procinfo(), find_procinfo_or_die(), procinfo::next, procinfo::pathname, pid, procinfo::pid, procinfo_list, procinfo::saved_entryset, procinfo::saved_exitset, procinfo::thread_list, and procinfo::tid.
Referenced by do_attach(), procfs_target::info_proc(), proc_update_threads(), procfs_target::procfs_init_inferior(), procfs_set_exec_trap(), and procfs_target::wait().
|
static |
Definition at line 561 of file procfs.c.
References destroy_procinfo(), KILL, procinfo::pathname, procinfo::pid, and print_sys_errmsg().
Referenced by do_attach(), and procfs_target::procfs_init_inferior().
Definition at line 499 of file procfs.c.
References close_procinfo_files(), procinfo::next, procinfo::saved_entryset, procinfo::saved_exitset, and xfree().
Referenced by destroy_procinfo(), and proc_delete_dead_threads().
|
static |
Definition at line 524 of file procfs.c.
References destroy_one_procinfo(), find_procinfo(), procinfo::pid, procinfo_list, procinfo::thread_list, and procinfo::tid.
Referenced by dead_procinfo(), do_detach(), procfs_target::mourn_inferior(), procinfo_deleter::operator()(), procfs_target::thread_alive(), and unconditionally_kill_inferior().
|
static |
Definition at line 1793 of file procfs.c.
References add_thread(), create_procinfo(), current_inferior(), dead_procinfo(), errmsg, FD_CTL, gdb_printf(), gdb_stderr, procinfo::ignore_next_sigstop, inferior_appeared(), NOKILL, open_procinfo_files(), procinfo::pid, proc_flags(), proc_get_current_thread(), proc_get_held_signals(), proc_get_traced_faults(), proc_get_traced_signals(), proc_get_traced_sysentry(), proc_get_traced_sysexit(), proc_prettyprint_why(), proc_set_run_on_last_close(), proc_stop_process(), proc_what(), proc_why(), procfs_debug_inferior(), procinfo::saved_entryset, procinfo::saved_exitset, procinfo::saved_fltset, procinfo::saved_sighold, procinfo::saved_sigset, switch_to_thread(), the_procfs_target, and procinfo::was_stopped.
Referenced by procfs_target::attach().
|
static |
Definition at line 1865 of file procfs.c.
References destroy_procinfo(), find_procinfo_or_die(), inferior_ptid, proc_clear_current_fault(), proc_clear_current_signal(), proc_flags(), proc_set_held_signals(), proc_set_run_on_last_close(), proc_set_traced_faults(), proc_set_traced_signals(), proc_set_traced_sysentry(), proc_set_traced_sysexit(), proc_warn(), query(), procinfo::saved_entryset, procinfo::saved_exitset, procinfo::saved_fltset, procinfo::saved_sighold, procinfo::saved_sigset, and procinfo::was_stopped.
Referenced by procfs_target::detach().
|
static |
Definition at line 3157 of file procfs.c.
References func.
Referenced by procfs_target::find_memory_regions().
|
static |
Definition at line 282 of file procfs.c.
References procinfo::next, pid, procinfo::pid, procinfo_list, procinfo::thread_list, and procinfo::tid.
Referenced by create_procinfo(), destroy_procinfo(), find_procinfo_or_die(), procfs_target::info_proc(), procfs_target::kill(), procfs_target::mourn_inferior(), procfs_target::resume(), procfs_target::thread_alive(), and procfs_target::wait().
|
static |
Definition at line 311 of file procfs.c.
References find_procinfo(), pid, and procinfo::tid.
Referenced by create_procinfo(), do_detach(), procfs_target::fetch_registers(), procfs_target::find_memory_regions(), procfs_target::make_corefile_notes(), procfs_target::pass_signals(), proc_clear_current_fault(), proc_clear_current_signal(), proc_get_current_thread(), proc_get_held_signals(), proc_get_nthreads(), proc_get_traced_faults(), proc_get_traced_signals(), proc_get_traced_sysentry(), proc_get_traced_sysexit(), proc_iterate_over_threads(), proc_modify_flag(), proc_parent_pid(), proc_set_current_signal(), proc_set_held_signals(), proc_set_traced_faults(), proc_set_traced_signals(), proc_set_traced_sysentry(), proc_set_traced_sysexit(), proc_trace_syscalls(), proc_update_threads(), proc_wait_for_stop(), procfs_set_watchpoint(), procfs_xfer_memory(), procfs_target::resume(), procfs_target::stopped_by_watchpoint(), procfs_target::stopped_data_address(), procfs_target::store_registers(), procfs_target::update_thread_list(), and procfs_target::wait().
|
static |
Definition at line 3547 of file procfs.c.
References inferior_ptid.
Referenced by find_stop_signal().
|
static |
Definition at line 3557 of file procfs.c.
References find_signalled_thread(), and iterate_over_threads().
Referenced by procfs_target::make_corefile_notes().
|
static |
Definition at line 3218 of file procfs.c.
References gdb_printf(), gdbarch_addr_bit(), if(), mappingflags(), and target_gdbarch().
Referenced by info_proc_mappings().
|
static |
Definition at line 3246 of file procfs.c.
References gdb_printf(), gdbarch_ptr_bit(), info_mappings_callback(), iterate_over_mappings(), and target_gdbarch().
Referenced by procfs_target::info_proc().
Definition at line 2410 of file procfs.c.
References close_procinfo_files(), procinfo::fpregs_valid, procinfo::gregs_valid, procinfo::status_valid, and procinfo::threads_valid.
Referenced by procfs_target::resume().
|
static |
Definition at line 3109 of file procfs.c.
References MAX_PROC_NAME_SIZE, procinfo::pid, proc_error(), and read().
Referenced by procfs_target::find_memory_regions(), and info_proc_mappings().
|
static |
|
static |
Definition at line 367 of file procfs.c.
References procinfo::as_fd, procinfo::ctl_fd, FD_AS, FD_CTL, FD_STATUS, MAX_PROC_NAME_SIZE, open_with_retry(), procinfo::pathname, procinfo::status_fd, and procinfo::tid.
Referenced by do_attach(), procfs_target::info_proc(), proc_get_status(), proc_kill(), proc_run_process(), proc_set_fpregs(), proc_set_gregs(), proc_stop_process(), procfs_target::procfs_init_inferior(), procfs_set_exec_trap(), and procfs_xfer_memory().
|
static |
Definition at line 338 of file procfs.c.
References flags, procinfo::pathname, and status.
Referenced by open_procinfo_files().
|
static |
Definition at line 1255 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, and procinfo::tid.
Referenced by do_detach().
|
static |
Definition at line 1336 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, and procinfo::tid.
Referenced by do_detach().
Definition at line 1592 of file procfs.c.
References destroy_one_procinfo(), proc_get_status(), procinfo::status_valid, and procinfo::thread_list.
Referenced by proc_update_threads().
|
static |
Definition at line 602 of file procfs.c.
References errmsg, func, procinfo::pathname, and perror_with_name().
Referenced by procfs_target::fetch_registers(), procfs_target::info_proc(), iterate_over_mappings(), procfs_target::pass_signals(), proc_trace_syscalls_1(), proc_update_threads(), procfs_target::procfs_init_inferior(), procfs_set_watchpoint(), procfs_target::resume(), procfs_target::store_registers(), unconditionally_kill_inferior(), and procfs_target::wait().
|
static |
Definition at line 664 of file procfs.c.
References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by do_attach(), do_detach(), procfs_target::info_proc(), proc_get_status(), procfs_target::procfs_init_inferior(), procfs_target::stopped_by_watchpoint(), and procfs_target::wait().
|
static |
Definition at line 1570 of file procfs.c.
References find_procinfo_or_die(), procinfo::pid, proc_get_status(), procinfo::prstatus, procinfo::status_valid, and procinfo::tid.
Referenced by do_attach(), proc_get_status(), procfs_target::procfs_init_inferior(), and procfs_target::wait().
|
static |
Definition at line 1386 of file procfs.c.
References procinfo::fpregs_valid, proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by procfs_target::fetch_registers(), proc_set_fpregs(), and procfs_target::store_registers().
|
static |
Definition at line 1373 of file procfs.c.
References procinfo::gregs_valid, proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by procfs_target::fetch_registers(), proc_set_gregs(), and procfs_target::store_registers().
|
static |
Definition at line 1119 of file procfs.c.
References find_procinfo_or_die(), procinfo::pid, proc_get_status(), procinfo::prstatus, procinfo::status_valid, and procinfo::tid.
Referenced by do_attach(), and procfs_target::procfs_init_inferior().
|
static |
Definition at line 1551 of file procfs.c.
References find_procinfo_or_die(), procinfo::pid, proc_get_status(), procinfo::prstatus, procinfo::status_valid, and procinfo::tid.
Referenced by procfs_target::info_proc().
|
static |
Definition at line 616 of file procfs.c.
References FD_STATUS, procinfo::fpregs_valid, procinfo::gregs_valid, open_procinfo_files(), proc_flags(), proc_get_current_thread(), PROC_PRETTYFPRINT_STATUS, proc_what(), proc_why(), procinfo::prstatus, read(), SEEK_SET, procinfo::status_fd, procinfo::status_valid, and procinfo::tid.
Referenced by proc_delete_dead_threads(), proc_flags(), proc_get_current_thread(), proc_get_fpregs(), proc_get_gregs(), proc_get_held_signals(), proc_get_nthreads(), proc_get_traced_faults(), proc_get_traced_signals(), proc_get_traced_sysentry(), proc_get_traced_sysexit(), proc_nsysarg(), proc_parent_pid(), proc_set_current_signal(), proc_sysargs(), proc_watchpoint_address(), proc_what(), proc_why(), and procfs_target::thread_alive().
|
static |
Definition at line 1173 of file procfs.c.
References find_procinfo_or_die(), procinfo::pid, proc_get_status(), procinfo::prstatus, procinfo::status_valid, and procinfo::tid.
Referenced by do_attach(), and procfs_target::procfs_init_inferior().
|
static |
Definition at line 1146 of file procfs.c.
References find_procinfo_or_die(), procinfo::pid, proc_get_status(), procinfo::prstatus, procinfo::status_valid, and procinfo::tid.
Referenced by do_attach(), and procfs_target::procfs_init_inferior().
|
static |
Definition at line 1200 of file procfs.c.
References find_procinfo_or_die(), procinfo::pid, proc_get_status(), procinfo::prstatus, procinfo::status_valid, and procinfo::tid.
Referenced by do_attach(), proc_trace_syscalls_1(), and procfs_target::procfs_init_inferior().
|
static |
Definition at line 1227 of file procfs.c.
References find_procinfo_or_die(), procinfo::pid, proc_get_status(), procinfo::prstatus, procinfo::status_valid, and procinfo::tid.
Referenced by do_attach(), proc_trace_syscalls_1(), and procfs_target::procfs_init_inferior().
|
static |
Definition at line 1660 of file procfs.c.
References find_procinfo_or_die(), procinfo::next, procinfo::pid, procinfo::thread_list, and procinfo::tid.
Referenced by procfs_target::make_corefile_notes(), proc_update_threads(), procfs_target::resume(), and procfs_target::update_thread_list().
|
static |
Definition at line 1467 of file procfs.c.
References procinfo::ctl_fd, FD_CTL, and open_procinfo_files().
Referenced by unconditionally_kill_inferior().
|
static |
Definition at line 759 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), FLAG_RESET, FLAG_SET, procinfo::pid, and procinfo::status_valid.
Referenced by proc_set_async(), proc_set_run_on_last_close(), proc_unset_async(), proc_unset_inherit_on_fork(), and proc_unset_run_on_last_close().
|
static |
Definition at line 719 of file procfs.c.
References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by procfs_target::wait().
|
static |
Definition at line 1492 of file procfs.c.
References find_procinfo_or_die(), procinfo::pid, proc_get_status(), procinfo::prstatus, procinfo::status_valid, and procinfo::tid.
Referenced by unconditionally_kill_inferior().
|
static |
Definition at line 918 of file procfs.c.
References procinfo::ctl_fd, FD_CTL, open_procinfo_files(), and proc_set_current_signal().
Referenced by procfs_target::resume(), and procfs_target::wait().
|
static |
Definition at line 834 of file procfs.c.
References FLAG_SET, and proc_modify_flag().
Referenced by procfs_target::resume().
|
static |
Definition at line 1283 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), get_last_target_status(), inferior_ptid, target_waitstatus::kind(), procinfo::pid, proc_get_status(), procinfo::prstatus, target_waitstatus::sig, TARGET_WAITKIND_STOPPED, the_procfs_target, and procinfo::tid.
Referenced by proc_run_process().
|
static |
Definition at line 1434 of file procfs.c.
References procinfo::ctl_fd, FD_CTL, procinfo::fpregs_valid, open_procinfo_files(), and proc_get_fpregs().
Referenced by procfs_target::store_registers().
|
static |
Definition at line 1400 of file procfs.c.
References procinfo::ctl_fd, FD_CTL, procinfo::gregs_valid, open_procinfo_files(), and proc_get_gregs().
Referenced by procfs_target::store_registers().
|
static |
Definition at line 1086 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, procinfo::status_valid, and procinfo::tid.
Referenced by do_detach().
|
static |
Definition at line 803 of file procfs.c.
References FLAG_SET, and proc_modify_flag().
Referenced by do_attach(), do_detach(), and procfs_target::procfs_init_inferior().
|
static |
Definition at line 985 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, procinfo::status_valid, and procinfo::tid.
Referenced by do_detach(), and procfs_debug_inferior().
|
static |
Definition at line 950 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, procinfo::status_valid, and procinfo::tid.
Referenced by do_detach(), procfs_target::pass_signals(), and procfs_debug_inferior().
|
static |
Definition at line 1018 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, procinfo::status_valid, and procinfo::tid.
Referenced by do_detach(), proc_trace_syscalls_1(), and procfs_debug_inferior().
|
static |
Definition at line 1052 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, procinfo::status_valid, and procinfo::tid.
Referenced by do_detach(), proc_trace_syscalls_1(), procfs_debug_inferior(), and procfs_set_exec_trap().
|
static |
Definition at line 1525 of file procfs.c.
References procinfo::ctl_fd, and procfs_address_to_host_pointer().
Referenced by procfs_set_watchpoint().
|
static |
Definition at line 853 of file procfs.c.
References procinfo::ctl_fd, FD_CTL, and open_procinfo_files().
Referenced by do_attach().
|
static |
Definition at line 732 of file procfs.c.
References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by procfs_target::wait().
|
static |
Definition at line 3400 of file procfs.c.
References error_no_arg(), find_procinfo_or_die(), inferior_ptid, and proc_trace_syscalls_1().
Referenced by proc_trace_sysentry_cmd(), proc_trace_sysexit_cmd(), proc_untrace_sysentry_cmd(), and proc_untrace_sysexit_cmd().
|
static |
Definition at line 3369 of file procfs.c.
References FLAG_SET, proc_error(), proc_get_traced_sysentry(), proc_get_traced_sysexit(), proc_set_traced_sysentry(), and proc_set_traced_sysexit().
Referenced by proc_trace_syscalls().
|
static |
Definition at line 3420 of file procfs.c.
References FLAG_SET, and proc_trace_syscalls().
Referenced by _initialize_procfs().
|
static |
Definition at line 3426 of file procfs.c.
References FLAG_SET, and proc_trace_syscalls().
Referenced by _initialize_procfs().
|
static |
Definition at line 844 of file procfs.c.
References FLAG_RESET, and proc_modify_flag().
Referenced by procfs_target::wait().
|
static |
Definition at line 824 of file procfs.c.
References FLAG_RESET, and proc_modify_flag().
Referenced by procfs_set_exec_trap().
|
static |
Definition at line 813 of file procfs.c.
References FLAG_RESET, and proc_modify_flag().
Referenced by procfs_set_exec_trap().
|
static |
Definition at line 3432 of file procfs.c.
References FLAG_RESET, and proc_trace_syscalls().
Referenced by _initialize_procfs().
|
static |
Definition at line 3438 of file procfs.c.
References FLAG_RESET, and proc_trace_syscalls().
Referenced by _initialize_procfs().
|
static |
Definition at line 1604 of file procfs.c.
References create_procinfo(), find_procinfo_or_die(), MAX_PROC_NAME_SIZE, procinfo::pathname, procinfo::pid, proc_delete_dead_threads(), proc_error(), proc_iterate_over_threads(), procinfo::threads_valid, and procinfo::tid.
Referenced by procfs_target::update_thread_list().
|
static |
Definition at line 876 of file procfs.c.
References clear_sigint_trap(), procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, set_sigint_trap(), procinfo::status_valid, and procinfo::tid.
Referenced by procfs_target::procfs_init_inferior(), and procfs_target::wait().
|
static |
Definition at line 594 of file procfs.c.
References errmsg, func, procinfo::pathname, and print_sys_errmsg().
Referenced by do_detach(), procfs_set_exec_trap(), and procfs_xfer_memory().
|
static |
Definition at line 703 of file procfs.c.
References builtin_type::builtin_data_ptr, gdbarch_pointer_to_address(), proc_get_status(), procinfo::prstatus, procinfo::status_valid, and target_gdbarch().
Referenced by procfs_target::stopped_data_address().
|
static |
Definition at line 688 of file procfs.c.
References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by do_attach(), procfs_target::info_proc(), proc_get_status(), procfs_target::stopped_by_watchpoint(), and procfs_target::wait().
|
static |
Definition at line 676 of file procfs.c.
References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by do_attach(), procfs_target::info_proc(), proc_get_status(), procfs_target::stopped_by_watchpoint(), and procfs_target::wait().
|
static |
Definition at line 1513 of file procfs.c.
References builtin_type::builtin_data_ptr, gdbarch_address_to_pointer(), type::length(), and target_gdbarch().
Referenced by proc_set_watchpoint().
Definition at line 3529 of file procfs.c.
References procinfo::pid, procfs_do_thread_registers(), and procinfo::tid.
Referenced by procfs_target::make_corefile_notes().
|
static |
Definition at line 1707 of file procfs.c.
References proc_set_traced_faults(), proc_set_traced_signals(), proc_set_traced_sysentry(), proc_set_traced_sysexit(), status, and xfree().
Referenced by do_attach(), and procfs_target::procfs_init_inferior().
|
static |
Definition at line 3480 of file procfs.c.
References fill_fpregset(), fill_gregset(), get_thread_regcache(), regcache::ptid(), target_fetch_registers(), and the_procfs_target.
Referenced by procfs_corefile_thread_callback().
ptid_t procfs_first_available | ( | void | ) |
Definition at line 3472 of file procfs.c.
References procinfo::pid, and procinfo_list.
Referenced by sol_thread_target::resume(), rw_common(), and sol_thread_target::xfer_partial().
Definition at line 2853 of file procfs.c.
References add_thread(), find_thread_ptid(), procinfo::pid, thread_info::state, the_procfs_target, THREAD_EXITED, and procinfo::tid.
Referenced by procfs_target::update_thread_list().
|
static |
Definition at line 2742 of file procfs.c.
Referenced by procfs_target::create_inferior().
|
static |
Definition at line 2689 of file procfs.c.
References create_procinfo(), FD_CTL, gdb_flush(), gdb_stderr, open_procinfo_files(), perror_with_name(), proc_set_traced_sysexit(), proc_unset_inherit_on_fork(), proc_unset_run_on_last_close(), and proc_warn().
Referenced by procfs_target::create_inferior().
|
static |
Definition at line 2952 of file procfs.c.
References find_procinfo_or_die(), inferior_ptid, proc_error(), and proc_set_watchpoint().
Referenced by procfs_target::insert_watchpoint(), and procfs_target::remove_watchpoint().
|
static |
Definition at line 2361 of file procfs.c.
References procinfo::as_fd, FD_AS, find_procinfo_or_die(), inferior_ptid, open_procinfo_files(), proc_warn(), PROCFS_NOTE, read(), SEEK_SET, TARGET_XFER_E_IO, and TARGET_XFER_OK.
Referenced by procfs_target::xfer_partial().
|
static |
Definition at line 2545 of file procfs.c.
References destroy_procinfo(), procinfo::pid, proc_error(), proc_kill(), proc_parent_pid(), and status.
Referenced by procfs_target::kill().
|
static |
Definition at line 258 of file procfs.c.
Referenced by cp_demangled_name_to_comp(), do_attach(), proc_error(), and proc_warn().
|
static |
Definition at line 276 of file procfs.c.
Referenced by create_procinfo(), destroy_procinfo(), find_procinfo(), and procfs_first_available().
|
static |
Definition at line 165 of file procfs.c.
Referenced by _initialize_procfs(), do_attach(), proc_set_current_signal(), procfs_do_thread_registers(), and procfs_notice_thread().