GDB (xrefs)
|
#include "fbsd-nat.h"
Classes | |
struct | pending_event |
Protected Member Functions | |
void | post_startup_inferior (ptid_t) override |
template<class Regset > | |
bool | fetch_register_set (struct regcache *regcache, int regnum, int fetch_op, const struct regset *regset, int regbase=0) |
template<class Regset > | |
bool | store_register_set (struct regcache *regcache, int regnum, int fetch_op, int store_op, const struct regset *regset, int regbase=0) |
size_t | have_regset (ptid_t ptid, int note) |
template<class Regset > | |
bool | fetch_regset (struct regcache *regcache, int regnum, int note, const struct regset *regset, int regbase=0) |
template<class Regset > | |
bool | store_regset (struct regcache *regcache, int regnum, int note, const struct regset *regset, int regbase=0) |
![]() | |
bool | async_file_open () |
void | async_file_close () |
void | async_file_flush () |
void | async_file_mark () |
void | detach_success (inferior *inf) |
![]() | |
void | maybe_unpush_target () |
Private Attributes | |
std::list< pending_event > | m_pending_events |
Additional Inherited Members | |
![]() | |
static void | async_file_mark_if_open () |
![]() | |
bool | threads_executing = false |
int | connection_number = 0 |
bool | commit_resumed_state = false |
![]() | |
virtual gdb::array_view< const_gdb_byte > virtual thread_info_to_thread_handle(struct thread_info *) TARGET_DEFAULT_RETURN(gdb voi | stop )(ptid_t) TARGET_DEFAULT_IGNORE() |
Definition at line 47 of file fbsd-nat.h.
|
private |
Definition at line 82 of file fbsd-nat.c.
References fetch_register_set(), find_inferior_ptid(), m_pending_events, and status.
Referenced by stop_process(), and wait().
Reimplemented from target_ops.
Definition at line 1054 of file fbsd-nat.c.
References inf_ptrace_target::async_file_close(), inf_ptrace_target::async_file_mark(), inf_ptrace_target::async_file_open(), inf_ptrace_target::async_wait_fd(), enable, fetch_register_set(), handle_target_event(), and inf_ptrace_target::is_async_p().
Implements inf_child_target.
Definition at line 1840 of file fbsd-nat.c.
References inf_ptrace_target::attach(), current_inferior(), fetch_register_set(), and inferior::priv.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 1022 of file fbsd-nat.c.
References fetch_register_set(), and target_async_permitted.
|
overridevirtual |
Implements inf_child_target.
Definition at line 1822 of file fbsd-nat.c.
References inf_ptrace_target::create_inferior(), current_inferior(), disable_randomization, fetch_register_set(), and inferior::priv.
Reimplemented from target_ops.
Definition at line 2001 of file fbsd-nat.c.
References reg_buffer::arch(), regcache::aspace(), breakpoint_inserted_here_p(), target_waitstatus::child_ptid, detach_fork_children(), inf_ptrace_target::detach_success(), fbsd_nat_debug_printf, fbsd_nat_debug_start_end, fetch_register_set(), gdbarch_decr_pc_after_break(), get_fbsd_inferior(), get_thread_regcache(), target_waitstatus::kind(), pending_ptrace_events(), inf::pid, pid, PT_CONTINUE, ptrace, regcache_read_pc(), regcache_write_pc(), remove_breakpoints_inf(), target_waitstatus::sig, stop_process(), target_announce_detach(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WAITKIND_VFORKED, and wait_1().
Definition at line 1886 of file fbsd-nat.c.
References detach_fork_children(), fbsd_nat_debug_printf, fetch_register_set(), get_fbsd_inferior(), inf::pid, pid, ptrace, take_pending_event(), TARGET_WAITKIND_EXITED, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_SIGNALLED, and TARGET_WAITKIND_VFORKED.
|
private |
Definition at line 1855 of file fbsd-nat.c.
References target_waitstatus::child_ptid, fbsd_nat_debug_printf, fetch_register_set(), thread_info::has_pending_waitstatus(), target_waitstatus::kind(), thread_info::pending_follow, thread_info::pending_waitstatus(), pid, ptrace, TARGET_WAITKIND_FORKED, and TARGET_WAITKIND_VFORKED.
Referenced by detach(), detach_fork_children(), and kill().
|
private |
Definition at line 2336 of file fbsd-nat.c.
References reg_buffer::arch(), fetch_register_set(), get_ptrace_pid(), pid, regcache::ptid(), ptrace, PTRACE_TYPE_ARG3, regcache_map_supplies(), regset::regmap, regnum, size, and regset::supply_regset.
Referenced by add_pending_event(), async(), attach(), can_async_p(), create_inferior(), detach(), detach_fork_children(), detach_fork_children(), fetch_register_set(), fetch_register_set(), aarch64_fbsd_nat_target::fetch_registers(), amd64_fbsd_nat_target::fetch_registers(), arm_fbsd_nat_target::fetch_registers(), i386_fbsd_nat_target::fetch_registers(), mips_fbsd_nat_target::fetch_registers(), ppc_fbsd_nat_target::fetch_registers(), riscv_fbsd_nat_target::fetch_registers(), fetch_regset(), fetch_regset(), find_memory_regions(), follow_exec(), have_regset(), info_proc(), kill(), x86_fbsd_nat_target::low_new_fork(), mourn_inferior(), pid_to_exec_file(), pid_to_str(), aarch64_fbsd_nat_target::read_description(), amd64_fbsd_nat_target::read_description(), arm_fbsd_nat_target::read_description(), i386_fbsd_nat_target::read_description(), resume(), i386_fbsd_nat_target::resume(), resume_one_process(), stop_process(), store_register_set(), store_register_set(), aarch64_fbsd_nat_target::store_registers(), amd64_fbsd_nat_target::store_registers(), arm_fbsd_nat_target::store_registers(), i386_fbsd_nat_target::store_registers(), mips_fbsd_nat_target::store_registers(), ppc_fbsd_nat_target::store_registers(), riscv_fbsd_nat_target::store_registers(), store_regset(), store_regset(), take_pending_event(), thread_alive(), wait(), wait_1(), and xfer_partial().
|
inlineprotected |
Definition at line 191 of file fbsd-nat.h.
References fetch_register_set(), and regnum.
|
private |
Definition at line 2403 of file fbsd-nat.c.
References reg_buffer::arch(), fetch_register_set(), get_ptrace_pid(), pid, PT_GETREGSET, regcache::ptid(), ptrace, PTRACE_TYPE_ARG3, regcache_map_supplies(), regset::regmap, regnum, size, and regset::supply_regset.
Referenced by fetch_regset().
|
inlineprotected |
Definition at line 221 of file fbsd-nat.h.
References fetch_register_set(), fetch_regset(), and regnum.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 149 of file fbsd-nat.c.
References fetch_register_set(), func, gdb_printf(), inferior_ptid, info_verbose, paddress(), pid, size, and target_gdbarch().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2173 of file fbsd-nat.c.
References current_inferior(), fetch_register_set(), and inf_child_target::follow_exec().
|
inlineoverridevirtual |
Definition at line 92 of file fbsd-nat.c.
References m_pending_events.
Referenced by mourn_inferior(), and resume_one_process().
Definition at line 2388 of file fbsd-nat.c.
References fetch_register_set(), get_ptrace_pid(), pid, PT_GETREGSET, ptrace, and PTRACE_TYPE_ARG3.
Referenced by aarch64_fbsd_nat_target::read_description(), and arm_fbsd_nat_target::read_description().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 249 of file fbsd-nat.c.
References fbsd_fetch_cmdline(), fbsd_fetch_kinfo_proc(), fbsd_info_proc_files_entry(), fbsd_info_proc_files_header(), fbsd_info_proc_mappings_entry(), fbsd_info_proc_mappings_header(), fetch_register_set(), gdb_printf(), inferior_ptid, IP_ALL, IP_CMDLINE, IP_CWD, IP_EXE, IP_FILES, IP_MAPPINGS, IP_MINIMAL, IP_STAT, IP_STATUS, pid, and pid_to_exec_file().
Reimplemented from target_ops.
Definition at line 2292 of file fbsd-nat.c.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2118 of file fbsd-nat.c.
References current_inferior(), detach_fork_children(), fetch_register_set(), inferior_ptid, iterate_other_ptrace_events(), pid, PT_KILL, ptrace, status, stop_process(), and target_mourn_inferior().
Referenced by stop_process().
|
inlinevirtual |
Definition at line 132 of file fbsd-nat.h.
Referenced by wait_1().
Reimplemented in x86_fbsd_nat_target.
Definition at line 128 of file fbsd-nat.h.
Referenced by wait_1().
|
inlinevirtual |
Definition at line 136 of file fbsd-nat.h.
Referenced by resume_one_process().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2166 of file fbsd-nat.c.
References current_inferior(), fetch_register_set(), have_pending_event(), inf_ptrace_target::mourn_inferior(), and pid.
Reimplemented from target_ops.
Definition at line 124 of file fbsd-nat.c.
References fetch_register_set(), and pid.
Referenced by info_proc(), and wait_1().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 865 of file fbsd-nat.c.
References fetch_register_set(), normal_pid_to_str(), and pid.
Reimplemented from target_ops.
Definition at line 2283 of file fbsd-nat.c.
References fbsd_add_threads(), fbsd_enable_proc_events(), and pid.
Implements inf_ptrace_target.
Definition at line 2275 of file fbsd-nat.c.
References fbsd_enable_proc_events(), and pid.
Reimplemented from target_ops.
Definition at line 2298 of file fbsd-nat.c.
|
override |
Definition at line 1273 of file fbsd-nat.c.
References all_non_exited_inferiors(), fbsd_nat_debug_start_end, fetch_register_set(), inferior_ptid, inf::pid, resume_one_process(), and target_pid_to_str().
|
private |
Definition at line 1187 of file fbsd-nat.c.
References fbsd_nat_debug_printf, fetch_register_set(), find_inferior_ptid(), get_fbsd_inferior(), get_ptrace_pid(), have_pending_event(), inferior_ptid, low_prepare_to_resume(), ptrace, inf_ptrace_target::resume(), and target_pid_to_str().
Referenced by resume().
Definition at line 1585 of file fbsd-nat.c.
References add_pending_event(), fbsd_nat_debug_printf, fetch_register_set(), get_fbsd_inferior(), kill(), inf::pid, status, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, TARGET_WNOHANG, and wait_1().
|
private |
Definition at line 2360 of file fbsd-nat.c.
References reg_buffer::arch(), regset::collect_regset, fetch_register_set(), get_ptrace_pid(), pid, regcache::ptid(), ptrace, PTRACE_TYPE_ARG3, regcache_map_supplies(), regset::regmap, regnum, and size.
Referenced by store_register_set().
|
inlineprotected |
Definition at line 200 of file fbsd-nat.h.
References fetch_register_set(), regnum, and store_register_set().
|
private |
Definition at line 2429 of file fbsd-nat.c.
References reg_buffer::arch(), regset::collect_regset, fetch_register_set(), get_ptrace_pid(), pid, PT_GETREGSET, PT_SETREGSET, regcache::ptid(), ptrace, PTRACE_TYPE_ARG3, regcache_map_supplies(), regset::regmap, regnum, and size.
Referenced by store_regset().
|
inlineprotected |
Definition at line 230 of file fbsd-nat.h.
References fetch_register_set(), regnum, and store_regset().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2324 of file fbsd-nat.c.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 2318 of file fbsd-nat.c.
|
private |
Definition at line 103 of file fbsd-nat.c.
References fetch_register_set(), find_inferior_ptid(), get_fbsd_inferior(), and m_pending_events.
Referenced by detach_fork_children(), and wait().
Reimplemented from target_ops.
Definition at line 838 of file fbsd-nat.c.
References fetch_register_set(), and ptrace.
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 1004 of file fbsd-nat.c.
References delete_exited_threads(), fbsd_add_threads(), inferior_ptid, and prune_threads().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 1659 of file fbsd-nat.c.
References add_pending_event(), all_non_exited_inferiors(), inf_ptrace_target::async_file_flush(), inf_ptrace_target::async_file_mark(), fbsd_nat_debug_printf, fetch_register_set(), find_inferior_ptid(), get_fbsd_inferior(), inf_ptrace_target::is_async_p(), PT_CONTINUE, ptrace, stop_process(), take_pending_event(), target_options_to_string(), target_pid_to_str(), TARGET_WAITKIND_IGNORE, TARGET_WAITKIND_NO_RESUMED, and wait_1().
|
private |
Definition at line 1349 of file fbsd-nat.c.
References add_thread(), catch_syscall_enabled(), catching_syscall_number(), debug_fbsd_nat, delete_thread(), fbsd_enable_proc_events(), fbsd_fetch_kinfo_proc(), fbsd_lwp_debug_printf, fbsd_nat_debug_printf, fetch_register_set(), find_inferior_ptid(), process_stratum_target::find_thread(), get_fbsd_inferior(), in_thread_list(), low_delete_thread(), low_new_fork(), nullptr, pid, pid_to_exec_file(), PL_FLAG_SI, PT_CONTINUE, ptrace, target_pid_to_str(), TARGET_WAITKIND_STOPPED, thread_change_ptid(), and inf_ptrace_target::wait().
Referenced by detach(), stop_process(), and wait().
|
overridevirtual |
Reimplemented from target_ops.
Definition at line 634 of file fbsd-nat.c.
References fbsd_convert_siginfo(), fbsd_siginfo_size(), fetch_register_set(), inferior_ptid, pid, PL_FLAG_SI, ptrace, PTRACE_TYPE_ARG3, TARGET_OBJECT_AUXV, TARGET_OBJECT_FREEBSD_PS_STRINGS, TARGET_OBJECT_FREEBSD_VMMAP, TARGET_OBJECT_SIGNAL_INFO, TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, and inf_ptrace_target::xfer_partial().
|
private |
Definition at line 269 of file fbsd-nat.h.
Referenced by add_pending_event(), have_pending_event(), and take_pending_event().