GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
fbsd_nat_target Class Reference

#include "fbsd-nat.h"

Inheritance diagram for fbsd_nat_target:
inf_ptrace_target inf_child_target memory_breakpoint_target< process_stratum_target > process_stratum_target target_ops x86bsd_nat_target< fbsd_nat_target > aarch64_fbsd_nat_target arm_fbsd_nat_target mips_fbsd_nat_target ppc_fbsd_nat_target riscv_fbsd_nat_target x86_fbsd_nat_target amd64_fbsd_nat_target i386_fbsd_nat_target

Classes

struct  pending_event
 

Public Member Functions

const charpid_to_exec_file (int pid) override
 
int find_memory_regions (find_memory_region_ftype func, void *data) override
 
bool info_proc (const char *, enum info_proc_what) override
 
enum target_xfer_status xfer_partial (enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) override
 
bool thread_alive (ptid_t ptid) override
 
std::string pid_to_str (ptid_t) override
 
void update_thread_list () override
 
bool can_async_p () override
 
void async (bool) override
 
thread_control_capabilities get_thread_control_capabilities () override
 
void create_inferior (const char *, const std::string &, char **, int) override
 
void attach (const char *, int) override
 
void detach (inferior *, int) override
 
void kill () override
 
void mourn_inferior () override
 
void resume (ptid_t, int, enum gdb_signal) override
 
ptid_t wait (ptid_t, struct target_waitstatus *, target_wait_flags) override
 
void post_attach (int) override
 
void follow_exec (inferior *, ptid_t, const char *) override
 
int insert_exec_catchpoint (int) override
 
int remove_exec_catchpoint (int) override
 
bool supports_multi_process () override
 
bool supports_disable_randomization () override
 
virtual void low_new_fork (ptid_t parent, pid_t child)
 
virtual void low_delete_thread (thread_info *)
 
virtual void low_prepare_to_resume (thread_info *)
 
- Public Member Functions inherited from inf_ptrace_target
 ~inf_ptrace_target () override=0
 
void attach (const char *, int) override
 
void detach (inferior *inf, int) override
 
void close () override
 
void resume (ptid_t, int, enum gdb_signal) override
 
ptid_t wait (ptid_t, struct target_waitstatus *, target_wait_flags) override
 
void files_info () override
 
void kill () override
 
void create_inferior (const char *, const std::string &, char **, int) override
 
void mourn_inferior () override
 
bool thread_alive (ptid_t ptid) override
 
std::string pid_to_str (ptid_t) override
 
enum target_xfer_status xfer_partial (enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) override
 
bool is_async_p () override
 
int async_wait_fd () override
 
- Public Member Functions inherited from inf_child_target
 inf_child_target ()=default
 
 ~inf_child_target () override=0
 
const target_infoinfo () const override
 
void disconnect (const char *, int) override
 
void fetch_registers (struct regcache *, int) override=0
 
void store_registers (struct regcache *, int) override=0
 
void prepare_to_store (struct regcache *) override
 
bool supports_terminal_ours () override
 
void terminal_init () override
 
void terminal_inferior () override
 
void terminal_save_inferior () override
 
void terminal_ours_for_output () override
 
void terminal_ours () override
 
void terminal_info (const char *, int) override
 
void interrupt () override
 
void pass_ctrlc () override
 
void follow_exec (inferior *follow_inf, ptid_t ptid, const char *execd_pathname) override
 
bool can_run () override
 
bool can_create_inferior () override
 
bool can_attach () override
 
void post_attach (int) override
 
const char * pid_to_exec_file (int pid) override
 
int fileio_open (struct inferior *inf, const char *filename, int flags, int mode, int warn_if_slow, fileio_error *target_errno) override
 
int fileio_pwrite (int fd, const gdb_byte *write_buf, int len, ULONGEST offset, fileio_error *target_errno) override
 
int fileio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, fileio_error *target_errno) override
 
int fileio_fstat (int fd, struct stat *sb, fileio_error *target_errno) override
 
int fileio_close (int fd, fileio_error *target_errno) override
 
int fileio_unlink (struct inferior *inf, const char *filename, fileio_error *target_errno) override
 
gdb::optional< std::string > fileio_readlink (struct inferior *inf, const char *filename, fileio_error *target_errno) override
 
bool use_agent (bool use) override
 
bool can_use_agent () override
 
- Public Member Functions inherited from memory_breakpoint_target< process_stratum_target >
int insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) override
 
int remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt, enum remove_bp_reason reason) override
 
- Public Member Functions inherited from process_stratum_target
 ~process_stratum_target () override=0
 
strata stratum () const final override
 
virtual const char * connection_string ()
 
bool can_async_p () override
 
bool supports_non_stop () override
 
bool supports_disable_randomization () override
 
struct address_spacethread_address_space (ptid_t ptid) override
 
struct gdbarchthread_architecture (ptid_t ptid) override
 
bool has_all_memory () override
 
bool has_memory () override
 
bool has_stack () override
 
bool has_registers () override
 
bool has_execution (inferior *inf) override
 
void follow_exec (inferior *follow_inf, ptid_t ptid, const char *execd_pathname) override
 
void follow_fork (inferior *child_inf, ptid_t child_ptid, target_waitkind fork_kind, bool follow_child, bool detach_on_fork) override
 
void maybe_add_resumed_with_pending_wait_status (thread_info *thread)
 
void maybe_remove_resumed_with_pending_wait_status (thread_info *thread)
 
bool has_resumed_with_pending_wait_status () const
 
thread_inforandom_resumed_with_pending_wait_status (inferior *inf, ptid_t filter_ptid)
 
thread_infofind_thread (ptid_t ptid)
 
- Public Member Functions inherited from target_ops
target_opsbeneath () const
 
virtual ~target_ops ()
 
const char * shortname () const
 
const char * longname () const
 
virtual void resume (ptid_t, int TARGET_DEBUG_PRINTER(target_debug_print_step), enum gdb_signal) TARGET_DEFAULT_NORETURN(noprocess())
 
virtual void commit_resumed () TARGET_DEFAULT_IGNORE()
 
virtual bool stopped_by_sw_breakpoint () TARGET_DEFAULT_RETURN(false)
 
virtual bool supports_stopped_by_sw_breakpoint () TARGET_DEFAULT_RETURN(false)
 
virtual bool stopped_by_hw_breakpoint () TARGET_DEFAULT_RETURN(false)
 
virtual bool supports_stopped_by_hw_breakpoint () TARGET_DEFAULT_RETURN(false)
 
virtual int can_use_hw_breakpoint (enum bptype, int, int) TARGET_DEFAULT_RETURN(0)
 
virtual int ranged_break_num_registers () TARGET_DEFAULT_RETURN(-1)
 
virtual int insert_hw_breakpoint (struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_RETURN(-1)
 
virtual int remove_hw_breakpoint (struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_RETURN(-1)
 
virtual int remove_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) TARGET_DEFAULT_RETURN(-1)
 
virtual int insert_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) TARGET_DEFAULT_RETURN(-1)
 
virtual int insert_mask_watchpoint (CORE_ADDR, CORE_ADDR, enum target_hw_bp_type) TARGET_DEFAULT_RETURN(1)
 
virtual int remove_mask_watchpoint (CORE_ADDR, CORE_ADDR, enum target_hw_bp_type) TARGET_DEFAULT_RETURN(1)
 
virtual bool stopped_by_watchpoint () TARGET_DEFAULT_RETURN(false)
 
virtual bool have_steppable_watchpoint () TARGET_DEFAULT_RETURN(false)
 
virtual bool stopped_data_address (CORE_ADDR *) TARGET_DEFAULT_RETURN(false)
 
virtual bool watchpoint_addr_within_range (CORE_ADDR, CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_watchpoint_addr_within_range)
 
virtual int region_ok_for_hw_watchpoint (CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_region_ok_for_hw_watchpoint)
 
virtual bool can_accel_watchpoint_condition (CORE_ADDR, int, int, struct expression *) TARGET_DEFAULT_RETURN(false)
 
virtual int masked_watch_num_registers (CORE_ADDR, CORE_ADDR) TARGET_DEFAULT_RETURN(-1)
 
virtual int can_do_single_step () TARGET_DEFAULT_RETURN(-1)
 
virtual void load (const char *, int) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual int insert_fork_catchpoint (int) TARGET_DEFAULT_RETURN(1)
 
virtual int remove_fork_catchpoint (int) TARGET_DEFAULT_RETURN(1)
 
virtual int insert_vfork_catchpoint (int) TARGET_DEFAULT_RETURN(1)
 
virtual int remove_vfork_catchpoint (int) TARGET_DEFAULT_RETURN(1)
 
virtual int set_syscall_catchpoint (int, bool, int, gdb::array_view< const int >) TARGET_DEFAULT_RETURN(1)
 
virtual void pass_signals (gdb::array_view< const unsigned char > TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE()
 
virtual void program_signals (gdb::array_view< const unsigned char > TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE()
 
virtual const char * extra_thread_info (thread_info *) TARGET_DEFAULT_RETURN(NULL)
 
virtual const char * thread_name (thread_info *) TARGET_DEFAULT_RETURN(NULL)
 
virtual thread_infothread_handle_to_thread_info (const gdb_byte *, int, inferior *inf) TARGET_DEFAULT_RETURN(NULL)
 
virtual void rcmd (const char *command, struct ui_file *output) TARGET_DEFAULT_FUNC(default_rcmd)
 
virtual void log_command (const char *) TARGET_DEFAULT_IGNORE()
 
virtual const target_section_tableget_section_table () TARGET_DEFAULT_RETURN(default_get_section_table())
 
virtual bool attach_no_wait () TARGET_DEFAULT_RETURN(0)
 
virtual bool has_pending_events () TARGET_DEFAULT_RETURN(false)
 
virtual void thread_events (int) TARGET_DEFAULT_IGNORE()
 
virtual bool always_non_stop_p () TARGET_DEFAULT_RETURN(false)
 
virtual gdb::unique_xmalloc_ptr< char > make_corefile_notes (bfd *, int *) TARGET_DEFAULT_FUNC(dummy_make_corefile_notes)
 
virtual gdb_byte * get_bookmark (const char *, int) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void goto_bookmark (const gdb_byte *, int) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual CORE_ADDR get_thread_local_address (ptid_t ptid, CORE_ADDR load_module_addr, CORE_ADDR offset) TARGET_DEFAULT_NORETURN(generic_tls_error())
 
virtual ULONGEST get_memory_xfer_limit () TARGET_DEFAULT_RETURN(ULONGEST_MAX)
 
virtual std::vector< mem_region > virtual memory_map() TARGET_DEFAULT_RETURN(std void flash_erase (ULONGEST address, LONGEST length) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void flash_done () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual const struct target_descread_description () TARGET_DEFAULT_RETURN(NULL)
 
virtual ptid_t get_ada_task_ptid (long lwp, ULONGEST thread) TARGET_DEFAULT_FUNC(default_get_ada_task_ptid)
 
virtual int auxv_parse (const gdb_byte **readptr, const gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp) TARGET_DEFAULT_FUNC(default_auxv_parse)
 
virtual int search_memory (CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp) TARGET_DEFAULT_FUNC(default_search_memory)
 
virtual bool can_execute_reverse () TARGET_DEFAULT_RETURN(false)
 
virtual enum exec_direction_kind execution_direction () TARGET_DEFAULT_FUNC(default_execution_direction)
 
virtual bool supports_enable_disable_tracepoint () TARGET_DEFAULT_RETURN(false)
 
virtual bool supports_string_tracing () TARGET_DEFAULT_RETURN(false)
 
virtual bool supports_evaluation_of_breakpoint_conditions () TARGET_DEFAULT_RETURN(false)
 
virtual bool supports_dumpcore () TARGET_DEFAULT_RETURN(false)
 
virtual void dumpcore (const char *filename) TARGET_DEFAULT_IGNORE()
 
virtual bool can_run_breakpoint_commands () TARGET_DEFAULT_RETURN(false)
 
virtual bool filesystem_is_local () TARGET_DEFAULT_RETURN(true)
 
virtual void trace_init () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void download_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual bool can_download_tracepoint () TARGET_DEFAULT_RETURN(false)
 
virtual void download_trace_state_variable (const trace_state_variable &tsv) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void enable_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void disable_tracepoint (struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void trace_set_readonly_regions () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void trace_start () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual int get_trace_status (struct trace_status *ts) TARGET_DEFAULT_RETURN(-1)
 
virtual void get_tracepoint_status (tracepoint *tp, struct uploaded_tp *utp) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void trace_stop () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual int trace_find (enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) TARGET_DEFAULT_RETURN(-1)
 
virtual bool get_trace_state_variable_value (int tsv, LONGEST *val) TARGET_DEFAULT_RETURN(false)
 
virtual int save_trace_data (const char *filename) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual int upload_tracepoints (struct uploaded_tp **utpp) TARGET_DEFAULT_RETURN(0)
 
virtual int upload_trace_state_variables (struct uploaded_tsv **utsvp) TARGET_DEFAULT_RETURN(0)
 
virtual LONGEST get_raw_trace_data (gdb_byte *buf, ULONGEST offset, LONGEST len) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual int get_min_fast_tracepoint_insn_len () TARGET_DEFAULT_RETURN(-1)
 
virtual void set_disconnected_tracing (int val) TARGET_DEFAULT_IGNORE()
 
virtual void set_circular_trace_buffer (int val) TARGET_DEFAULT_IGNORE()
 
virtual void set_trace_buffer_size (LONGEST val) TARGET_DEFAULT_IGNORE()
 
virtual bool set_trace_notes (const char *user, const char *notes, const char *stopnotes) TARGET_DEFAULT_RETURN(false)
 
virtual int core_of_thread (ptid_t ptid) TARGET_DEFAULT_RETURN(-1)
 
virtual int verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size) TARGET_DEFAULT_FUNC(default_verify_memory)
 
virtual bool get_tib_address (ptid_t ptid, CORE_ADDR *addr) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void set_permissions () TARGET_DEFAULT_IGNORE()
 
virtual bool static_tracepoint_marker_at (CORE_ADDR, static_tracepoint_marker *marker) TARGET_DEFAULT_RETURN(false)
 
virtual std::vector< static_tracepoint_markerstatic_tracepoint_markers_by_strid (const char *id) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual traceframe_info_up traceframe_info () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual struct btrace_target_info * enable_btrace (thread_info *tp, const struct btrace_config *conf) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void disable_btrace (struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void teardown_btrace (struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual enum btrace_error read_btrace (struct btrace_data *data, struct btrace_target_info *btinfo, enum btrace_read_type type) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual const struct btrace_config * btrace_conf (const struct btrace_target_info *) TARGET_DEFAULT_RETURN(NULL)
 
virtual enum record_method record_method (ptid_t ptid) TARGET_DEFAULT_RETURN(RECORD_METHOD_NONE)
 
virtual void stop_recording () TARGET_DEFAULT_IGNORE()
 
virtual void info_record () TARGET_DEFAULT_IGNORE()
 
virtual void save_record (const char *filename) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual bool supports_delete_record () TARGET_DEFAULT_RETURN(false)
 
virtual void delete_record () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual bool record_is_replaying (ptid_t ptid) TARGET_DEFAULT_RETURN(false)
 
virtual bool record_will_replay (ptid_t ptid, int dir) TARGET_DEFAULT_RETURN(false)
 
virtual void record_stop_replaying () TARGET_DEFAULT_IGNORE()
 
virtual void goto_record_begin () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void goto_record_end () TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void goto_record (ULONGEST insn) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void insn_history (int size, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void insn_history_from (ULONGEST from, int size, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void insn_history_range (ULONGEST begin, ULONGEST end, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void call_history (int size, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void call_history_from (ULONGEST begin, int size, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual void call_history_range (ULONGEST begin, ULONGEST end, record_print_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual bool augmented_libraries_svr4_read () TARGET_DEFAULT_RETURN(false)
 
virtual const struct frame_unwindget_unwinder () TARGET_DEFAULT_RETURN(NULL)
 
virtual const struct frame_unwindget_tailcall_unwinder () TARGET_DEFAULT_RETURN(NULL)
 
virtual void prepare_to_generate_core () TARGET_DEFAULT_IGNORE()
 
virtual void done_generating_core () TARGET_DEFAULT_IGNORE()
 
virtual bool supports_memory_tagging () TARGET_DEFAULT_RETURN(false)
 
virtual bool fetch_memtags (CORE_ADDR address, size_t len, gdb::byte_vector &tags, int type) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual bool store_memtags (CORE_ADDR address, size_t len, const gdb::byte_vector &tags, int type) TARGET_DEFAULT_NORETURN(tcomplain())
 
virtual x86_xsave_layout fetch_x86_xsave_layout () TARGET_DEFAULT_RETURN(x86_xsave_layout())
 

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)
 
- Protected Member Functions inherited from inf_ptrace_target
bool async_file_open ()
 
void async_file_close ()
 
void async_file_flush ()
 
void async_file_mark ()
 
void detach_success (inferior *inf)
 
- Protected Member Functions inherited from inf_child_target
void maybe_unpush_target ()
 

Private Member Functions

ptid_t wait_1 (ptid_t, struct target_waitstatus *, target_wait_flags)
 
void resume_one_process (ptid_t, int, enum gdb_signal)
 
void stop_process (inferior *)
 
bool fetch_register_set (struct regcache *regcache, int regnum, int fetch_op, const struct regset *regset, int regbase, void *regs, size_t size)
 
bool store_register_set (struct regcache *regcache, int regnum, int fetch_op, int store_op, const struct regset *regset, int regbase, void *regs, size_t size)
 
bool fetch_regset (struct regcache *regcache, int regnum, int note, const struct regset *regset, int regbase, void *regs, size_t size)
 
bool store_regset (struct regcache *regcache, int regnum, int note, const struct regset *regset, int regbase, void *regs, size_t size)
 
void add_pending_event (const ptid_t &ptid, const target_waitstatus &status)
 
bool have_pending_event (ptid_t filter)
 
gdb::optional< pending_eventtake_pending_event (ptid_t filter)
 
void detach_fork_children (thread_info *tp)
 
bool detach_fork_children (inferior *inf)
 

Private Attributes

std::list< pending_eventm_pending_events
 

Additional Inherited Members

- Static Public Member Functions inherited from inf_ptrace_target
static void async_file_mark_if_open ()
 
- Public Attributes inherited from process_stratum_target
bool threads_executing = false
 
int connection_number = 0
 
bool commit_resumed_state = false
 
- Public Attributes inherited from target_ops
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()
 

Detailed Description

Definition at line 47 of file fbsd-nat.h.

Member Function Documentation

◆ add_pending_event()

void fbsd_nat_target::add_pending_event ( const ptid_t & ptid,
const target_waitstatus & status )
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().

◆ async()

void fbsd_nat_target::async ( bool enable)
overridevirtual

◆ attach()

void fbsd_nat_target::attach ( const char * args,
int from_tty )
overridevirtual

◆ can_async_p()

bool fbsd_nat_target::can_async_p ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 1022 of file fbsd-nat.c.

References fetch_register_set(), and target_async_permitted.

◆ create_inferior()

void fbsd_nat_target::create_inferior ( const char * exec_file,
const std::string & allargs,
char ** env,
int from_tty )
overridevirtual

◆ detach()

void fbsd_nat_target::detach ( inferior * inf,
int from_tty )
overridevirtual

◆ detach_fork_children() [1/2]

bool fbsd_nat_target::detach_fork_children ( inferior * inf)
private

◆ detach_fork_children() [2/2]

void fbsd_nat_target::detach_fork_children ( thread_info * tp)
private

◆ fetch_register_set() [1/2]

bool fbsd_nat_target::fetch_register_set ( struct regcache * regcache,
int regnum,
int fetch_op,
const struct regset * regset,
int regbase,
void * regs,
size_t size )
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().

◆ fetch_register_set() [2/2]

template<class Regset >
bool fbsd_nat_target::fetch_register_set ( struct regcache * regcache,
int regnum,
int fetch_op,
const struct regset * regset,
int regbase = 0 )
inlineprotected

Definition at line 191 of file fbsd-nat.h.

References fetch_register_set(), and regnum.

◆ fetch_regset() [1/2]

bool fbsd_nat_target::fetch_regset ( struct regcache * regcache,
int regnum,
int note,
const struct regset * regset,
int regbase,
void * regs,
size_t size )
private

◆ fetch_regset() [2/2]

template<class Regset >
bool fbsd_nat_target::fetch_regset ( struct regcache * regcache,
int regnum,
int note,
const struct regset * regset,
int regbase = 0 )
inlineprotected

Definition at line 221 of file fbsd-nat.h.

References fetch_register_set(), fetch_regset(), and regnum.

◆ find_memory_regions()

int fbsd_nat_target::find_memory_regions ( find_memory_region_ftype func,
void * data )
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().

◆ follow_exec()

void fbsd_nat_target::follow_exec ( inferior * follow_inf,
ptid_t ptid,
const char * execd_pathname )
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().

◆ get_thread_control_capabilities()

thread_control_capabilities fbsd_nat_target::get_thread_control_capabilities ( )
inlineoverridevirtual

Reimplemented from target_ops.

Definition at line 76 of file fbsd-nat.h.

References tc_schedlock.

◆ have_pending_event()

bool fbsd_nat_target::have_pending_event ( ptid_t filter)
private

Definition at line 92 of file fbsd-nat.c.

References m_pending_events.

Referenced by mourn_inferior(), and resume_one_process().

◆ have_regset()

size_t fbsd_nat_target::have_regset ( ptid_t ptid,
int note )
protected

◆ info_proc()

bool fbsd_nat_target::info_proc ( const char * args,
enum info_proc_what what )
overridevirtual

◆ insert_exec_catchpoint()

int fbsd_nat_target::insert_exec_catchpoint ( int pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2292 of file fbsd-nat.c.

◆ kill()

void fbsd_nat_target::kill ( )
overridevirtual

◆ low_delete_thread()

virtual void fbsd_nat_target::low_delete_thread ( thread_info * )
inlinevirtual

Definition at line 132 of file fbsd-nat.h.

Referenced by wait_1().

◆ low_new_fork()

virtual void fbsd_nat_target::low_new_fork ( ptid_t parent,
pid_t child )
inlinevirtual

Reimplemented in x86_fbsd_nat_target.

Definition at line 128 of file fbsd-nat.h.

Referenced by wait_1().

◆ low_prepare_to_resume()

virtual void fbsd_nat_target::low_prepare_to_resume ( thread_info * )
inlinevirtual

Definition at line 136 of file fbsd-nat.h.

Referenced by resume_one_process().

◆ mourn_inferior()

void fbsd_nat_target::mourn_inferior ( )
overridevirtual

◆ pid_to_exec_file()

const char * fbsd_nat_target::pid_to_exec_file ( int pid)
overridevirtual

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().

◆ pid_to_str()

std::string fbsd_nat_target::pid_to_str ( ptid_t ptid)
overridevirtual

Reimplemented from target_ops.

Definition at line 865 of file fbsd-nat.c.

References fetch_register_set(), normal_pid_to_str(), and pid.

◆ post_attach()

void fbsd_nat_target::post_attach ( int pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2283 of file fbsd-nat.c.

References fbsd_add_threads(), fbsd_enable_proc_events(), and pid.

◆ post_startup_inferior()

void fbsd_nat_target::post_startup_inferior ( ptid_t pid)
overrideprotectedvirtual

Implements inf_ptrace_target.

Definition at line 2275 of file fbsd-nat.c.

References fbsd_enable_proc_events(), and pid.

◆ remove_exec_catchpoint()

int fbsd_nat_target::remove_exec_catchpoint ( int pid)
overridevirtual

Reimplemented from target_ops.

Definition at line 2298 of file fbsd-nat.c.

◆ resume()

void fbsd_nat_target::resume ( ptid_t scope_ptid,
int step,
enum gdb_signal signo )
override

◆ resume_one_process()

void fbsd_nat_target::resume_one_process ( ptid_t ptid,
int step,
enum gdb_signal signo )
private

◆ stop_process()

void fbsd_nat_target::stop_process ( inferior * inf)
private

◆ store_register_set() [1/2]

bool fbsd_nat_target::store_register_set ( struct regcache * regcache,
int regnum,
int fetch_op,
int store_op,
const struct regset * regset,
int regbase,
void * regs,
size_t size )
private

◆ store_register_set() [2/2]

template<class Regset >
bool fbsd_nat_target::store_register_set ( struct regcache * regcache,
int regnum,
int fetch_op,
int store_op,
const struct regset * regset,
int regbase = 0 )
inlineprotected

Definition at line 200 of file fbsd-nat.h.

References fetch_register_set(), regnum, and store_register_set().

◆ store_regset() [1/2]

bool fbsd_nat_target::store_regset ( struct regcache * regcache,
int regnum,
int note,
const struct regset * regset,
int regbase,
void * regs,
size_t size )
private

◆ store_regset() [2/2]

template<class Regset >
bool fbsd_nat_target::store_regset ( struct regcache * regcache,
int regnum,
int note,
const struct regset * regset,
int regbase = 0 )
inlineprotected

Definition at line 230 of file fbsd-nat.h.

References fetch_register_set(), regnum, and store_regset().

◆ supports_disable_randomization()

bool fbsd_nat_target::supports_disable_randomization ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 2324 of file fbsd-nat.c.

◆ supports_multi_process()

bool fbsd_nat_target::supports_multi_process ( )
overridevirtual

Reimplemented from target_ops.

Definition at line 2318 of file fbsd-nat.c.

◆ take_pending_event()

gdb::optional< fbsd_nat_target::pending_event > fbsd_nat_target::take_pending_event ( ptid_t filter)
private

◆ thread_alive()

bool fbsd_nat_target::thread_alive ( ptid_t ptid)
overridevirtual

Reimplemented from target_ops.

Definition at line 838 of file fbsd-nat.c.

References fetch_register_set(), and ptrace.

◆ update_thread_list()

void fbsd_nat_target::update_thread_list ( )
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().

◆ wait()

ptid_t fbsd_nat_target::wait ( ptid_t ptid,
struct target_waitstatus * ourstatus,
target_wait_flags target_options )
overridevirtual

◆ wait_1()

ptid_t fbsd_nat_target::wait_1 ( ptid_t ptid,
struct target_waitstatus * ourstatus,
target_wait_flags target_options )
private

◆ xfer_partial()

enum target_xfer_status fbsd_nat_target::xfer_partial ( enum target_object object,
const char * annex,
gdb_byte * readbuf,
const gdb_byte * writebuf,
ULONGEST offset,
ULONGEST len,
ULONGEST * xfered_len )
overridevirtual

Member Data Documentation

◆ m_pending_events

std::list<pending_event> fbsd_nat_target::m_pending_events
private

Definition at line 269 of file fbsd-nat.h.

Referenced by add_pending_event(), have_pending_event(), and take_pending_event().


The documentation for this class was generated from the following files: