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 "cli/cli-style.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_resume (procinfo *pi, ptid_t scope_ptid, int step, enum gdb_signal signo) |
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 procinfo * | procinfo_list |
#define MAX_PROC_NAME_SIZE sizeof("/proc/999999/lwp/0123456789/lwpstatus") |
Definition at line 226 of file procfs.c.
Referenced by iterate_over_mappings(), open_procinfo_files(), and proc_update_threads().
typedef struct procinfo procinfo |
typedef std::unique_ptr<procinfo, procinfo_deleter> procinfo_up |
void _initialize_procfs | ( | ) |
Definition at line 3447 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 484 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 442 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 560 of file procfs.c.
References destroy_procinfo(), KILL, procinfo::pathname, procinfo::pid, and warning_filename_and_errno().
Referenced by do_attach(), and procfs_target::procfs_init_inferior().
Definition at line 498 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 523 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 1798 of file procfs.c.
References add_thread(), create_procinfo(), current_inferior(), dead_procinfo(), FD_CTL, 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 1871 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 3159 of file procfs.c.
References func.
Referenced by procfs_target::find_memory_regions().
|
static |
Definition at line 281 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(), proc_resume(), procfs_target::thread_alive(), and procfs_target::wait().
|
static |
Definition at line 310 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 3549 of file procfs.c.
References inferior_ptid.
Referenced by find_stop_signal().
|
static |
Definition at line 3559 of file procfs.c.
References find_signalled_thread(), and iterate_over_threads().
Referenced by procfs_target::make_corefile_notes().
|
static |
Definition at line 3220 of file procfs.c.
References gdb_printf(), gdbarch_addr_bit(), mappingflags(), and target_gdbarch().
Referenced by info_proc_mappings().
|
static |
Definition at line 3248 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 2409 of file procfs.c.
References close_procinfo_files(), procinfo::fpregs_valid, procinfo::gregs_valid, procinfo::status_valid, and procinfo::threads_valid.
Referenced by proc_resume().
|
static |
Definition at line 3111 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 366 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 337 of file procfs.c.
References flags, procinfo::pathname, and status.
Referenced by open_procinfo_files().
|
static |
Definition at line 1260 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 1341 of file procfs.c.
References procinfo::ctl_fd, find_procinfo_or_die(), procinfo::pid, and procinfo::tid.
Referenced by do_detach().
Definition at line 1597 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 605 of file procfs.c.
References file_name_style, func, procinfo::pathname, cli_style_option::style(), and styled_string().
Referenced by procfs_target::fetch_registers(), procfs_target::info_proc(), iterate_over_mappings(), procfs_target::pass_signals(), proc_resume(), proc_trace_syscalls_1(), proc_update_threads(), procfs_target::procfs_init_inferior(), procfs_set_watchpoint(), procfs_target::store_registers(), unconditionally_kill_inferior(), and procfs_target::wait().
|
static |
Definition at line 669 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 1575 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 1391 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 1378 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 1124 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 1556 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 621 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 1178 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 1151 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 1205 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 1232 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 1665 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_resume(), proc_update_threads(), and procfs_target::update_thread_list().
|
static |
Definition at line 1472 of file procfs.c.
References procinfo::ctl_fd, FD_CTL, and open_procinfo_files().
Referenced by unconditionally_kill_inferior().
|
static |
Definition at line 764 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 724 of file procfs.c.
References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by procfs_target::wait().
|
static |
Definition at line 1497 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 2437 of file procfs.c.
References find_procinfo(), procinfo::ignore_next_sigstop, invalidate_cache(), proc_error(), proc_iterate_over_threads(), proc_run_process(), proc_set_async(), and procinfo::tid.
Referenced by procfs_target::resume(), and procfs_target::wait().
|
static |
Definition at line 923 of file procfs.c.
References procinfo::ctl_fd, FD_CTL, open_procinfo_files(), and proc_set_current_signal().
Referenced by proc_resume(), and procfs_target::wait().
|
static |
Definition at line 839 of file procfs.c.
References FLAG_SET, and proc_modify_flag().
Referenced by proc_resume().
|
static |
Definition at line 1288 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 1439 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 1405 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 1091 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 808 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 990 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 955 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 1023 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 1057 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 1530 of file procfs.c.
References procinfo::ctl_fd, and procfs_address_to_host_pointer().
Referenced by procfs_set_watchpoint().
|
static |
Definition at line 858 of file procfs.c.
References procinfo::ctl_fd, FD_CTL, and open_procinfo_files().
Referenced by do_attach().
|
static |
Definition at line 737 of file procfs.c.
References proc_get_status(), procinfo::prstatus, and procinfo::status_valid.
Referenced by procfs_target::wait().
|
static |
Definition at line 3402 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 3371 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 3422 of file procfs.c.
References FLAG_SET, and proc_trace_syscalls().
Referenced by _initialize_procfs().
|
static |
Definition at line 3428 of file procfs.c.
References FLAG_SET, and proc_trace_syscalls().
Referenced by _initialize_procfs().
|
static |
Definition at line 849 of file procfs.c.
References FLAG_RESET, and proc_modify_flag().
Referenced by procfs_target::wait().
|
static |
Definition at line 829 of file procfs.c.
References FLAG_RESET, and proc_modify_flag().
Referenced by procfs_set_exec_trap().
|
static |
Definition at line 818 of file procfs.c.
References FLAG_RESET, and proc_modify_flag().
Referenced by procfs_set_exec_trap().
|
static |
Definition at line 3434 of file procfs.c.
References FLAG_RESET, and proc_trace_syscalls().
Referenced by _initialize_procfs().
|
static |
Definition at line 3440 of file procfs.c.
References FLAG_RESET, and proc_trace_syscalls().
Referenced by _initialize_procfs().
|
static |
Definition at line 1609 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 881 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 595 of file procfs.c.
References file_name_style, func, procinfo::pathname, cli_style_option::style(), and styled_string().
Referenced by do_detach(), procfs_set_exec_trap(), and procfs_xfer_memory().
|
static |
Definition at line 708 of file procfs.c.
References builtin_type::builtin_data_ptr, builtin_type(), 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 693 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 681 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 1518 of file procfs.c.
References builtin_type::builtin_data_ptr, builtin_type(), gdbarch_address_to_pointer(), type::length(), and target_gdbarch().
Referenced by proc_set_watchpoint().
Definition at line 3531 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 1712 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 3482 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 3474 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 2855 of file procfs.c.
References add_thread(), process_stratum_target::find_thread(), procinfo::pid, thread_info::state, the_procfs_target, THREAD_EXITED, and procinfo::tid.
Referenced by procfs_target::update_thread_list().
|
static |
Definition at line 2744 of file procfs.c.
Referenced by procfs_target::create_inferior().
|
static |
Definition at line 2691 of file procfs.c.
References create_procinfo(), FD_CTL, gdb_flush(), gdb_stderr, open_procinfo_files(), 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 2954 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 2360 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 2547 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 275 of file procfs.c.
Referenced by create_procinfo(), destroy_procinfo(), find_procinfo(), and procfs_first_available().
|
static |
Definition at line 166 of file procfs.c.
Referenced by _initialize_procfs(), do_attach(), proc_set_current_signal(), procfs_do_thread_registers(), and procfs_notice_thread().