GDB (xrefs)
|
#include "defs.h"
#include "target.h"
#include "target-dcache.h"
#include "gdbcmd.h"
#include "symtab.h"
#include "inferior.h"
#include "infrun.h"
#include "observable.h"
#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
#include "dcache.h"
#include <signal.h>
#include "regcache.h"
#include "gdbcore.h"
#include "target-descriptions.h"
#include "gdbthread.h"
#include "solib.h"
#include "exec.h"
#include "inline-frame.h"
#include "tracepoint.h"
#include "gdbsupport/fileio.h"
#include "gdbsupport/agent.h"
#include "auxv.h"
#include "target-debug.h"
#include "ui.h"
#include "event-top.h"
#include <algorithm>
#include "gdbsupport/byte-vector.h"
#include "gdbsupport/search.h"
#include "terminal.h"
#include <unordered_map>
#include "target-connection.h"
#include "valprint.h"
#include "cli/cli-decode.h"
#include "target-delegates.c"
Go to the source code of this file.
Classes | |
struct | fileio_fh_t |
class | scoped_target_fd |
Macros | |
#define | CASE(X) case X: return #X |
#define | DO_TARG_OPTION(OPT) do_option (&target_options, &ret, OPT, #OPT) |
Functions | |
static void | generic_tls_error (void) |
static void | show_targetdebug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
int | target_has_memory () |
int | target_has_stack () |
int | target_has_registers () |
bool | target_has_execution (inferior *inf) |
const char * | target_shortname () |
bool | target_attach_no_wait () |
void | target_post_attach (int pid) |
void | target_prepare_to_store (regcache *regcache) |
bool | target_supports_enable_disable_tracepoint () |
bool | target_supports_string_tracing () |
bool | target_supports_evaluation_of_breakpoint_conditions () |
bool | target_supports_dumpcore () |
void | target_dumpcore (const char *filename) |
bool | target_can_run_breakpoint_commands () |
void | target_files_info () |
int | target_insert_fork_catchpoint (int pid) |
int | target_remove_fork_catchpoint (int pid) |
int | target_insert_vfork_catchpoint (int pid) |
int | target_remove_vfork_catchpoint (int pid) |
int | target_insert_exec_catchpoint (int pid) |
int | target_remove_exec_catchpoint (int pid) |
int | target_set_syscall_catchpoint (int pid, bool needed, int any_count, gdb::array_view< const int > syscall_counts) |
void | target_rcmd (const char *command, struct ui_file *outbuf) |
bool | target_can_lock_scheduler () |
bool | target_can_async_p () |
bool | target_can_async_p (struct target_ops *target) |
bool | target_is_async_p () |
exec_direction_kind | target_execution_direction () |
const char * | target_extra_thread_info (thread_info *tp) |
const char * | target_pid_to_exec_file (int pid) |
gdbarch * | target_thread_architecture (ptid_t ptid) |
int | target_find_memory_regions (find_memory_region_ftype func, void *data) |
gdb::unique_xmalloc_ptr< char > | target_make_corefile_notes (bfd *bfd, int *size_p) |
gdb_byte * | target_get_bookmark (const char *args, int from_tty) |
void | target_goto_bookmark (const gdb_byte *arg, int from_tty) |
bool | target_stopped_by_watchpoint () |
bool | target_stopped_by_sw_breakpoint () |
bool | target_supports_stopped_by_sw_breakpoint () |
bool | target_stopped_by_hw_breakpoint () |
bool | target_supports_stopped_by_hw_breakpoint () |
bool | target_have_steppable_watchpoint () |
int | target_can_use_hardware_watchpoint (bptype type, int cnt, int othertype) |
int | target_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len) |
int | target_can_do_single_step () |
int | target_insert_watchpoint (CORE_ADDR addr, int len, target_hw_bp_type type, expression *cond) |
int | target_remove_watchpoint (CORE_ADDR addr, int len, target_hw_bp_type type, expression *cond) |
int | target_insert_hw_breakpoint (gdbarch *gdbarch, bp_target_info *bp_tgt) |
int | target_remove_hw_breakpoint (gdbarch *gdbarch, bp_target_info *bp_tgt) |
bool | target_can_accel_watchpoint_condition (CORE_ADDR addr, int len, int type, expression *cond) |
bool | target_can_execute_reverse () |
ptid_t | target_get_ada_task_ptid (long lwp, ULONGEST tid) |
bool | target_filesystem_is_local () |
void | target_trace_init () |
void | target_download_tracepoint (bp_location *location) |
bool | target_can_download_tracepoint () |
void | target_download_trace_state_variable (const trace_state_variable &tsv) |
void | target_enable_tracepoint (bp_location *loc) |
void | target_disable_tracepoint (bp_location *loc) |
void | target_trace_start () |
void | target_trace_set_readonly_regions () |
int | target_get_trace_status (trace_status *ts) |
void | target_get_tracepoint_status (tracepoint *tp, uploaded_tp *utp) |
void | target_trace_stop () |
int | target_trace_find (trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) |
bool | target_get_trace_state_variable_value (int tsv, LONGEST *val) |
int | target_save_trace_data (const char *filename) |
int | target_upload_tracepoints (uploaded_tp **utpp) |
int | target_upload_trace_state_variables (uploaded_tsv **utsvp) |
LONGEST | target_get_raw_trace_data (gdb_byte *buf, ULONGEST offset, LONGEST len) |
int | target_get_min_fast_tracepoint_insn_len () |
void | target_set_disconnected_tracing (int val) |
void | target_set_circular_trace_buffer (int val) |
void | target_set_trace_buffer_size (LONGEST val) |
bool | target_set_trace_notes (const char *user, const char *notes, const char *stopnotes) |
bool | target_get_tib_address (ptid_t ptid, CORE_ADDR *addr) |
void | target_set_permissions () |
bool | target_static_tracepoint_marker_at (CORE_ADDR addr, static_tracepoint_marker *marker) |
std::vector< static_tracepoint_marker > | target_static_tracepoint_markers_by_strid (const char *marker_id) |
traceframe_info_up | target_traceframe_info () |
bool | target_use_agent (bool use) |
bool | target_can_use_agent () |
bool | target_augmented_libraries_svr4_read () |
bool | target_supports_memory_tagging () |
bool | target_fetch_memtags (CORE_ADDR address, size_t len, gdb::byte_vector &tags, int type) |
bool | target_store_memtags (CORE_ADDR address, size_t len, const gdb::byte_vector &tags, int type) |
x86_xsave_layout | target_fetch_x86_xsave_layout () |
void | target_log_command (const char *p) |
static void | open_target (const char *args, int from_tty, struct cmd_list_element *command) |
void | add_target (const target_info &t, target_open_ftype *func, completer_ftype *completer) |
void | add_deprecated_target_alias (const target_info &tinfo, const char *alias) |
void | target_kill (void) |
void | target_load (const char *arg, int from_tty) |
static void | target_terminal_is_ours_kind (target_terminal_state desired_state) |
bool | target_supports_terminal_ours (void) |
static void | tcomplain (void) |
void | noprocess (void) |
static void | default_terminal_info (struct target_ops *self, const char *args, int from_tty) |
static ptid_t | default_get_ada_task_ptid (struct target_ops *self, long lwp, ULONGEST tid) |
static enum exec_direction_kind | default_execution_direction (struct target_ops *self) |
CORE_ADDR | target_translate_tls_address (struct objfile *objfile, CORE_ADDR offset) |
const char * | target_xfer_status_to_string (enum target_xfer_status status) |
const target_section_table * | target_get_section_table (struct target_ops *target) |
const struct target_section * | target_section_by_addr (struct target_ops *target, CORE_ADDR addr) |
const target_section_table * | default_get_section_table () |
static int | memory_xfer_check_region (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *reg_len, struct mem_region **region_p) |
enum target_xfer_status | raw_memory_xfer_partial (struct target_ops *ops, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, LONGEST len, ULONGEST *xfered_len) |
static enum target_xfer_status | memory_xfer_partial_1 (struct target_ops *ops, enum target_object object, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *xfered_len) |
static enum target_xfer_status | memory_xfer_partial (struct target_ops *ops, enum target_object object, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *xfered_len) |
scoped_restore_tmpl< int > | make_scoped_restore_show_memory_breakpoints (int show) |
enum target_xfer_status | target_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) |
int | target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len) |
int | target_read_uint32 (CORE_ADDR memaddr, uint32_t *result) |
int | target_read_raw_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len) |
int | target_read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len) |
int | target_read_code (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len) |
int | target_write_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len) |
int | target_write_raw_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len) |
std::vector< mem_region > | target_memory_map (void) |
void | target_flash_erase (ULONGEST address, LONGEST length) |
void | target_flash_done (void) |
static void | show_trust_readonly (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static enum target_xfer_status | target_read_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *buf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) |
static enum target_xfer_status | target_write_partial (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len, ULONGEST *xfered_len) |
LONGEST | target_read (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *buf, ULONGEST offset, LONGEST len) |
static void | read_whatever_is_readable (struct target_ops *ops, const ULONGEST begin, const ULONGEST end, int unit_size, std::vector< memory_read_result > *result) |
std::vector< memory_read_result > | read_memory_robust (struct target_ops *ops, const ULONGEST offset, const LONGEST len) |
LONGEST | target_write_with_progress (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len, void(*progress)(ULONGEST, void *), void *baton) |
LONGEST | target_write (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, LONGEST len) |
template<typename T > | |
gdb::optional< gdb::def_vector< T > > | target_read_alloc_1 (struct target_ops *ops, enum target_object object, const char *annex) |
gdb::optional< gdb::byte_vector > | target_read_alloc (struct target_ops *ops, enum target_object object, const char *annex) |
gdb::optional< gdb::char_vector > | target_read_stralloc (struct target_ops *ops, enum target_object object, const char *annex) |
void | get_target_memory (struct target_ops *ops, CORE_ADDR addr, gdb_byte *buf, LONGEST len) |
ULONGEST | get_target_memory_unsigned (struct target_ops *ops, CORE_ADDR addr, int len, enum bfd_endian byte_order) |
int | target_insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
int | target_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt, enum remove_bp_reason reason) |
static void | info_target_command (const char *args, int from_tty) |
void | target_pre_inferior (int from_tty) |
void | target_preopen (int from_tty) |
void | target_detach (inferior *inf, int from_tty) |
void | target_disconnect (const char *args, int from_tty) |
ptid_t | target_wait (ptid_t ptid, struct target_waitstatus *status, target_wait_flags options) |
ptid_t | default_target_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *status, target_wait_flags options) |
std::string | target_pid_to_str (ptid_t ptid) |
const char * | target_thread_name (struct thread_info *info) |
struct thread_info * | target_thread_handle_to_thread_info (const gdb_byte *thread_handle, int handle_len, struct inferior *inf) |
gdb::array_view< const gdb_byte > | target_thread_info_to_thread_handle (struct thread_info *tip) |
void | target_resume (ptid_t scope_ptid, int step, enum gdb_signal signal) |
void | target_commit_resumed () |
bool | target_has_pending_events () |
void | target_pass_signals (gdb::array_view< const unsigned char > pass_signals) |
void | target_program_signals (gdb::array_view< const unsigned char > program_signals) |
static void | default_follow_fork (struct target_ops *self, inferior *child_inf, ptid_t child_ptid, target_waitkind fork_kind, bool follow_child, bool detach_fork) |
void | target_follow_fork (inferior *child_inf, ptid_t child_ptid, target_waitkind fork_kind, bool follow_child, bool detach_fork) |
void | target_follow_exec (inferior *follow_inf, ptid_t ptid, const char *execd_pathname) |
static void | default_mourn_inferior (struct target_ops *self) |
void | target_mourn_inferior (ptid_t ptid) |
const struct target_desc * | target_read_description (struct target_ops *target) |
static int | default_search_memory (struct target_ops *self, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp) |
int | target_search_memory (CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp) |
void | target_require_runnable (void) |
static void | show_auto_connect_native_target (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
void | set_native_target (target_ops *target) |
target_ops * | get_native_target () |
static struct target_ops * | find_default_run_target (const char *do_mesg) |
struct target_ops * | find_attach_target (void) |
struct target_ops * | find_run_target (void) |
int | target_info_proc (const char *args, enum info_proc_what what) |
static int | find_default_supports_disable_randomization (struct target_ops *self) |
int | target_supports_disable_randomization (void) |
int | target_supports_multi_process (void) |
gdb::optional< gdb::char_vector > | target_get_osdata (const char *type) |
struct address_space * | target_thread_address_space (ptid_t ptid) |
int | target_can_run () |
static struct target_ops * | default_fileio_target (void) |
void | fileio_handles_invalidate_target (target_ops *targ) |
static int | acquire_fileio_fd (target_ops *target, int target_fd) |
static void | release_fileio_fd (int fd, fileio_fh_t *fh) |
static fileio_fh_t * | fileio_fd_to_fh (int fd) |
int | target_fileio_open (struct inferior *inf, const char *filename, int flags, int mode, bool warn_if_slow, fileio_error *target_errno) |
int | target_fileio_pwrite (int fd, const gdb_byte *write_buf, int len, ULONGEST offset, fileio_error *target_errno) |
int | target_fileio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, fileio_error *target_errno) |
int | target_fileio_fstat (int fd, struct stat *sb, fileio_error *target_errno) |
int | target_fileio_close (int fd, fileio_error *target_errno) |
int | target_fileio_unlink (struct inferior *inf, const char *filename, fileio_error *target_errno) |
gdb::optional< std::string > | target_fileio_readlink (struct inferior *inf, const char *filename, fileio_error *target_errno) |
static LONGEST | target_fileio_read_alloc_1 (struct inferior *inf, const char *filename, gdb_byte **buf_p, int padding) |
LONGEST | target_fileio_read_alloc (struct inferior *inf, const char *filename, gdb_byte **buf_p) |
gdb::unique_xmalloc_ptr< char > | target_fileio_read_stralloc (struct inferior *inf, const char *filename) |
static int | default_region_ok_for_hw_watchpoint (struct target_ops *self, CORE_ADDR addr, int len) |
static int | default_watchpoint_addr_within_range (struct target_ops *target, CORE_ADDR addr, CORE_ADDR start, int length) |
struct target_ops * | find_target_at (enum strata stratum) |
void | target_announce_detach (int from_tty) |
void | target_announce_attach (int from_tty, int pid) |
void | generic_mourn_inferior (void) |
std::string | normal_pid_to_str (ptid_t ptid) |
static std::string | default_pid_to_str (struct target_ops *ops, ptid_t ptid) |
static int | dummy_find_memory_regions (struct target_ops *self, find_memory_region_ftype ignore1, void *ignore2) |
static gdb::unique_xmalloc_ptr< char > | dummy_make_corefile_notes (struct target_ops *self, bfd *ignore1, int *ignore2) |
target_ops * | get_dummy_target () |
int | target_thread_alive (ptid_t ptid) |
void | target_update_thread_list (void) |
void | target_stop (ptid_t ptid) |
void | target_interrupt () |
void | target_pass_ctrlc (void) |
void | default_target_pass_ctrlc (struct target_ops *ops) |
void | target_stop_and_wait (ptid_t ptid) |
void | target_continue_no_signal (ptid_t ptid) |
void | target_continue (ptid_t ptid, enum gdb_signal signal) |
static void | str_comma_list_concat_elem (std::string *list, const char *elem) |
static void | do_option (target_wait_flags *target_options, std::string *ret, target_wait_flag opt, const char *opt_str) |
std::string | target_options_to_string (target_wait_flags target_options) |
void | target_fetch_registers (struct regcache *regcache, int regno) |
void | target_store_registers (struct regcache *regcache, int regno) |
int | target_core_of_thread (ptid_t ptid) |
int | simple_verify_memory (struct target_ops *ops, const gdb_byte *data, CORE_ADDR lma, ULONGEST size) |
static int | default_verify_memory (struct target_ops *self, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size) |
int | target_verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size) |
int | target_insert_mask_watchpoint (CORE_ADDR addr, CORE_ADDR mask, enum target_hw_bp_type rw) |
int | target_remove_mask_watchpoint (CORE_ADDR addr, CORE_ADDR mask, enum target_hw_bp_type rw) |
int | target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask) |
int | target_ranged_break_num_registers (void) |
struct btrace_target_info * | target_enable_btrace (thread_info *tp, const struct btrace_config *conf) |
void | target_disable_btrace (struct btrace_target_info *btinfo) |
void | target_teardown_btrace (struct btrace_target_info *btinfo) |
enum btrace_error | target_read_btrace (struct btrace_data *btrace, struct btrace_target_info *btinfo, enum btrace_read_type type) |
const struct btrace_config * | target_btrace_conf (const struct btrace_target_info *btinfo) |
void | target_stop_recording (void) |
void | target_save_record (const char *filename) |
int | target_supports_delete_record () |
void | target_delete_record (void) |
enum record_method | target_record_method (ptid_t ptid) |
int | target_record_is_replaying (ptid_t ptid) |
int | target_record_will_replay (ptid_t ptid, int dir) |
void | target_record_stop_replaying (void) |
void | target_goto_record_begin (void) |
void | target_goto_record_end (void) |
void | target_goto_record (ULONGEST insn) |
void | target_insn_history (int size, gdb_disassembly_flags flags) |
void | target_insn_history_from (ULONGEST from, int size, gdb_disassembly_flags flags) |
void | target_insn_history_range (ULONGEST begin, ULONGEST end, gdb_disassembly_flags flags) |
void | target_call_history (int size, record_print_flags flags) |
void | target_call_history_from (ULONGEST begin, int size, record_print_flags flags) |
void | target_call_history_range (ULONGEST begin, ULONGEST end, record_print_flags flags) |
const struct frame_unwind * | target_get_unwinder (void) |
const struct frame_unwind * | target_get_tailcall_unwinder (void) |
void | target_prepare_to_generate_core (void) |
void | target_done_generating_core (void) |
static void | default_rcmd (struct target_ops *self, const char *command, struct ui_file *output) |
static void | do_monitor_command (const char *cmd, int from_tty) |
void | flash_erase_command (const char *cmd, int from_tty) |
static void | maintenance_print_target_stack (const char *cmd, int from_tty) |
void | target_async (bool enable) |
void | target_thread_events (int enable) |
static void | set_maint_target_async (bool permitted) |
static bool | get_maint_target_async () |
static void | show_maint_target_async (ui_file *file, int from_tty, cmd_list_element *c, const char *value) |
static int | target_always_non_stop_p (void) |
bool | target_is_non_stop_p () |
bool | exists_non_stop_target () |
static void | set_maint_target_non_stop (auto_boolean enabled) |
static auto_boolean | get_maint_target_non_stop () |
static void | show_maint_target_non_stop (ui_file *file, int from_tty, cmd_list_element *c, const char *value) |
void | update_target_permissions (void) |
static void | set_target_permissions (const char *args, int from_tty, struct cmd_list_element *c) |
static void | set_write_memory_registers_permission (const char *args, int from_tty, struct cmd_list_element *c) |
void | _initialize_target () |
Variables | |
static bool | auto_connect_native_target = true |
static target_ops * | the_native_target |
static std::vector< fileio_fh_t > | fileio_fhandles |
static int | lowest_closed_fd |
static dummy_target | the_dummy_target |
static const target_info | dummy_target_info |
static char | targ_desc [] |
bool | target_async_permitted = true |
enum auto_boolean | target_non_stop_enabled = AUTO_BOOLEAN_AUTO |
static bool | may_write_registers_1 = true |
static bool | may_write_memory_1 = true |
static bool | may_insert_breakpoints_1 = true |
static bool | may_insert_tracepoints_1 = true |
static bool | may_insert_fast_tracepoints_1 = true |
static bool | may_stop_1 = true |
#define DO_TARG_OPTION | ( | OPT | ) | do_option (&target_options, &ret, OPT, #OPT) |
void _initialize_target | ( | ) |
Definition at line 4519 of file target.c.
Referenced by initialize_all_files().
|
static |
Definition at line 3154 of file target.c.
References fileio_fhandles, fileio_fh_t::is_closed(), and lowest_closed_fd.
Referenced by target_fileio_open().
void add_deprecated_target_alias | ( | const target_info & | tinfo, |
const char * | alias ) |
Definition at line 896 of file target.c.
References add_cmd(), alias, deprecate_cmd(), target_info::doc, cmd_list_element::func, no_class, open_target(), cmd_list_element::set_context(), and target_info::shortname.
void add_target | ( | const target_info & | t, |
target_open_ftype * | func, | ||
completer_ftype * | completer ) |
Definition at line 868 of file target.c.
References add_basic_prefix_cmd(), add_cmd(), class_run, cmdlist, cmd_list_element::completer, target_info::doc, cmd_list_element::func, func, no_class, open_target(), set_cmd_completer(), cmd_list_element::set_context(), and target_info::shortname.
Referenced by _initialize_remote_sim(), add_inf_child_target(), bsd_kvm_add_target(), and init_procfs_targets().
|
static |
Definition at line 1160 of file target.c.
References EXEC_FORWARD, target_can_async_p(), and target_can_execute_reverse().
Referenced by dummy_target::execution_direction().
|
static |
Definition at line 3099 of file target.c.
References find_default_run_target(), find_target_at(), and process_stratum.
Referenced by target_fileio_open(), target_fileio_readlink(), and target_fileio_unlink().
|
static |
Definition at line 2710 of file target.c.
Referenced by dummy_target::follow_fork().
|
static |
Definition at line 1154 of file target.c.
References inferior_ptid.
Referenced by dummy_target::get_ada_task_ptid().
const target_section_table * default_get_section_table | ( | ) |
Definition at line 1411 of file target.c.
References current_program_space, and program_space::target_sections().
Referenced by dummy_target::get_section_table().
|
static |
Definition at line 2752 of file target.c.
Referenced by dummy_target::mourn_inferior().
|
static |
Definition at line 3699 of file target.c.
References normal_pid_to_str().
Referenced by dummy_target::pid_to_str().
|
static |
Definition at line 4267 of file target.c.
Referenced by dummy_target::rcmd().
|
static |
Definition at line 3582 of file target.c.
References gdbarch_ptr_bit(), and target_gdbarch().
Referenced by dummy_target::region_ok_for_hw_watchpoint().
|
static |
Definition at line 2782 of file target.c.
References current_inferior(), read_memory(), TARGET_OBJECT_MEMORY, and target_read().
Referenced by dummy_target::search_memory().
void default_target_pass_ctrlc | ( | struct target_ops * | ops | ) |
Definition at line 3846 of file target.c.
References target_interrupt().
Referenced by dummy_target::pass_ctrlc().
ptid_t default_target_wait | ( | struct target_ops * | ops, |
ptid_t | ptid, | ||
struct target_waitstatus * | status, | ||
target_wait_flags | options ) |
|
static |
Definition at line 1142 of file target.c.
References gdb_printf().
Referenced by dummy_target::terminal_info().
|
static |
Definition at line 3985 of file target.c.
References current_inferior(), simple_verify_memory(), and size.
Referenced by dummy_target::verify_memory().
|
static |
Definition at line 3589 of file target.c.
Referenced by dummy_target::watchpoint_addr_within_range().
|
static |
Definition at line 4274 of file target.c.
References gdb_stdtarg, and target_rcmd().
|
static |
Definition at line 3899 of file target.c.
References str_comma_list_concat_elem().
|
static |
Definition at line 3706 of file target.c.
Referenced by dummy_target::find_memory_regions().
|
static |
Definition at line 3715 of file target.c.
Referenced by dummy_target::make_corefile_notes().
bool exists_non_stop_target | ( | ) |
Definition at line 4406 of file target.c.
References all_inferiors(), switch_to_inferior_no_thread(), and target_is_non_stop_p().
Referenced by stop_all_threads(), and stop_all_threads_if_all_stop_mode().
|
static |
Definition at line 3191 of file target.c.
References fileio_fhandles.
Referenced by target_fileio_close(), target_fileio_fstat(), target_fileio_pread(), and target_fileio_pwrite().
void fileio_handles_invalidate_target | ( | target_ops * | targ | ) |
Definition at line 3144 of file target.c.
References fileio_fhandles.
Referenced by target_ops_ref_policy::decref(), and remote_unpush_target().
struct target_ops * find_attach_target | ( | void | ) |
Definition at line 2912 of file target.c.
References current_inferior(), and find_default_run_target().
Referenced by attach_command().
|
static |
Definition at line 2899 of file target.c.
References auto_connect_native_target, and the_native_target.
Referenced by default_fileio_target(), find_attach_target(), find_default_supports_disable_randomization(), find_run_target(), target_get_osdata(), and target_info_proc().
|
static |
Definition at line 2981 of file target.c.
References find_default_run_target(), and target_ops::supports_disable_randomization().
Referenced by dummy_target::supports_disable_randomization().
struct target_ops * find_run_target | ( | void | ) |
Definition at line 2930 of file target.c.
References current_inferior(), and find_default_run_target().
Referenced by mi_cmd_exec_run(), run_command_1(), and run_one_inferior().
struct target_ops * find_target_at | ( | enum strata | stratum | ) |
Definition at line 3612 of file target.c.
References current_inferior(), target_ops::stratum(), and inferior::target_at().
Referenced by default_fileio_target(), find_record_target(), target_get_osdata(), and target_info_proc().
void flash_erase_command | ( | const char * | cmd, |
int | from_tty ) |
Definition at line 4283 of file target.c.
References current_uiout, MEM_FLASH, target_flash_done(), target_flash_erase(), target_gdbarch(), and target_memory_map().
Referenced by mi_cmd_target_flash_erase().
void generic_mourn_inferior | ( | void | ) |
Definition at line 3661 of file target.c.
References breakpoint_init_inferior(), current_inferior(), deprecated_detach_hook, exit_inferior(), inf_exited, mark_breakpoints_out(), inf::pid, registers_changed(), reinit_frame_cache(), reopen_exec_file(), and switch_to_no_thread().
Referenced by gdbsim_target::close_one_inferior(), go32_nat_target::mourn_inferior(), inf_child_target::mourn_inferior(), procfs_target::mourn_inferior(), gdbsim_target::mourn_inferior(), remote_target::mourn_inferior(), and remote_unpush_target().
|
static |
Definition at line 58 of file target.c.
Referenced by dummy_target::get_thread_local_address().
target_ops * get_dummy_target | ( | ) |
Definition at line 3732 of file target.c.
References the_dummy_target.
Referenced by inferior::inferior().
|
static |
Definition at line 4368 of file target.c.
References target_async_permitted.
|
static |
Definition at line 4441 of file target.c.
References target_non_stop_enabled.
target_ops * get_native_target | ( | ) |
Definition at line 2886 of file target.c.
References the_native_target.
Referenced by amd_dbgapi_target_inferior_created(), darwin_attach_pid(), and inf_child_open_target().
void get_target_memory | ( | struct target_ops * | ops, |
CORE_ADDR | addr, | ||
gdb_byte * | buf, | ||
LONGEST | len ) |
Definition at line 2350 of file target.c.
References memory_error(), TARGET_OBJECT_RAW_MEMORY, target_read(), and TARGET_XFER_E_IO.
Referenced by get_target_memory_unsigned().
ULONGEST get_target_memory_unsigned | ( | struct target_ops * | ops, |
CORE_ADDR | addr, | ||
int | len, | ||
enum bfd_endian | byte_order ) |
Definition at line 2363 of file target.c.
References extract_unsigned_integer(), and get_target_memory().
Referenced by frv_convert_from_func_ptr_addr().
|
static |
Definition at line 2413 of file target.c.
References current_inferior(), current_program_space, dummy_stratum, gdb_printf(), objfile_name(), and program_space::symfile_object_file.
|
static |
Definition at line 4320 of file target.c.
References current_inferior(), debug_stratum, and gdb_printf().
scoped_restore_tmpl< int > make_scoped_restore_show_memory_breakpoints | ( | int | show | ) |
Definition at line 1667 of file target.c.
Referenced by aarch64_program_breakpoint_here_p(), default_program_breakpoint_here_p(), ia64_breakpoint_from_pc(), ia64_memory_insert_breakpoint(), ia64_memory_remove_breakpoint(), memory_validate_breakpoint(), ppc_linux_memory_remove_breakpoint(), and rs6000_program_breakpoint_here_p().
|
static |
Definition at line 1426 of file target.c.
References mem_region::attrib, mem_region::hi, lookup_mem_region(), MEM_FLASH, MEM_NONE, MEM_RO, MEM_WO, and mem_attrib::mode.
Referenced by memory_xfer_partial_1(), and target_xfer_partial().
|
static |
Definition at line 1624 of file target.c.
References breakpoint_xfer_memory(), gdbarch_remove_non_address_bits(), target_ops::get_memory_xfer_limit(), memory_xfer_partial_1(), target_gdbarch(), TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by target_xfer_partial().
|
static |
Definition at line 1527 of file target.c.
References mem_region::attrib, mem_attrib::cache, code_cache_enabled_p(), current_inferior(), dcache_read_memory_partial(), find_pc_overlay(), get_traceframe_number(), inferior_ptid, memory_xfer_check_region(), overlay_debugging, overlay_mapped_address(), pc_in_unmapped_range(), raw_memory_xfer_partial(), section_table_xfer_memory_partial(), stack_cache_enabled_p(), target_dcache_get_or_init(), target_get_section_table(), TARGET_OBJECT_CODE_MEMORY, TARGET_OBJECT_STACK_MEMORY, target_section_by_addr(), TARGET_XFER_E_IO, obj_section::the_bfd_section, target_section::the_bfd_section, and trust_readonly.
Referenced by memory_xfer_partial().
void noprocess | ( | void | ) |
Definition at line 1136 of file target.c.
Referenced by dummy_target::async_wait_fd(), call_function_by_hand_dummy(), gcore_command(), dummy_target::insert_breakpoint(), dummy_target::kill(), dummy_target::prepare_to_store(), dummy_target::remove_breakpoint(), restore_command(), dummy_target::resume(), and dummy_target::store_registers().
std::string normal_pid_to_str | ( | ptid_t | ptid | ) |
Definition at line 3693 of file target.c.
Referenced by default_pid_to_str(), fbsd_core_pid_to_str(), linux_core_pid_to_str(), nbsd_nat_target::pid_to_str(), bsd_uthread_target::pid_to_str(), core_target::pid_to_str(), darwin_nat_target::pid_to_str(), fbsd_nat_target::pid_to_str(), go32_nat_target::pid_to_str(), inf_ptrace_target::pid_to_str(), linux_nat_target::pid_to_str(), obsd_nat_target::pid_to_str(), gdbsim_target::pid_to_str(), remote_target::pid_to_str(), windows_nat_target::pid_to_str(), sol2_core_pid_to_str(), and windows_core_pid_to_str().
|
static |
Definition at line 849 of file target.c.
References cmd_list_element::context(), func, gdb_printf(), and gdb_stdlog.
Referenced by add_deprecated_target_alias(), and add_target().
enum target_xfer_status raw_memory_xfer_partial | ( | struct target_ops * | ops, |
gdb_byte * | readbuf, | ||
const gdb_byte * | writebuf, | ||
ULONGEST | memaddr, | ||
LONGEST | len, | ||
ULONGEST * | xfered_len ) |
Definition at line 1473 of file target.c.
References target_ops::beneath(), code_cache_enabled_p(), dcache_update(), target_ops::has_all_memory(), inferior_ptid, stack_cache_enabled_p(), target_dcache_get(), target_dcache_init_p(), TARGET_OBJECT_MEMORY, TARGET_XFER_OK, TARGET_XFER_UNAVAILABLE, and target_ops::xfer_partial().
Referenced by dcache_read_memory_partial(), memory_xfer_partial_1(), and target_xfer_partial().
std::vector< memory_read_result > read_memory_robust | ( | struct target_ops * | ops, |
const ULONGEST | offset, | ||
const LONGEST | len ) |
Definition at line 2139 of file target.c.
References mem_region::attrib, gdbarch_addressable_memory_unit_size(), mem_region::hi, lookup_mem_region(), MEM_NONE, MEM_WO, mem_attrib::mode, QUIT, read_whatever_is_readable(), target_gdbarch(), TARGET_OBJECT_MEMORY, target_read(), and xmalloc().
Referenced by mi_cmd_data_read_memory_bytes().
|
static |
Definition at line 2033 of file target.c.
References TARGET_OBJECT_MEMORY, target_read(), target_read_partial(), TARGET_XFER_OK, and xmalloc().
Referenced by read_memory_robust().
|
static |
Definition at line 3182 of file target.c.
References lowest_closed_fd, and fileio_fh_t::target_fd.
Referenced by target_fileio_close().
|
static |
Definition at line 4359 of file target.c.
References have_live_inferiors(), and target_async_permitted.
|
static |
Definition at line 4430 of file target.c.
References have_live_inferiors(), and target_non_stop_enabled.
void set_native_target | ( | target_ops * | target | ) |
Definition at line 2874 of file target.c.
References target_ops::longname(), and the_native_target.
Referenced by add_inf_child_target(), and init_procfs_targets().
|
static |
Definition at line 4487 of file target.c.
References may_insert_breakpoints, may_insert_breakpoints_1, may_insert_fast_tracepoints, may_insert_fast_tracepoints_1, may_insert_tracepoints, may_insert_tracepoints_1, may_stop, may_stop_1, target_has_execution(), update_observer_mode(), and update_target_permissions().
|
static |
Definition at line 4507 of file target.c.
References may_write_memory, may_write_memory_1, may_write_registers, may_write_registers_1, and update_observer_mode().
|
static |
Definition at line 2857 of file target.c.
References gdb_printf().
|
static |
Definition at line 4374 of file target.c.
References gdb_printf().
|
static |
Definition at line 4447 of file target.c.
References AUTO_BOOLEAN_AUTO, gdb_printf(), target_always_non_stop_p(), and target_non_stop_enabled.
|
static |
Definition at line 158 of file target.c.
References gdb_printf().
|
static |
Definition at line 1934 of file target.c.
References gdb_printf().
int simple_verify_memory | ( | struct target_ops * | ops, |
const gdb_byte * | data, | ||
CORE_ADDR | lma, | ||
ULONGEST | size ) |
Definition at line 3955 of file target.c.
References QUIT, size, status, TARGET_OBJECT_MEMORY, TARGET_XFER_OK, and target_xfer_partial.
Referenced by default_verify_memory(), and remote_target::verify_memory().
|
static |
Definition at line 3886 of file target.c.
Referenced by do_option(), and target_options_to_string().
|
static |
Definition at line 4386 of file target.c.
References target_ops::always_non_stop_p(), current_inferior(), and inferior::top_target().
Referenced by show_maint_target_non_stop(), and target_is_non_stop_p().
void target_announce_attach | ( | int | from_tty, |
int | pid ) |
Definition at line 3643 of file target.c.
References gdb_printf(), get_exec_file(), pid, and target_pid_to_str().
Referenced by darwin_nat_target::attach(), gnu_nat_target::attach(), inf_ptrace_target::attach(), procfs_target::attach(), extended_remote_target::attach(), windows_nat_target::attach(), and nto_procfs_target::attach().
void target_announce_detach | ( | int | from_tty | ) |
Definition at line 3622 of file target.c.
References gdb_printf(), get_exec_file(), inferior_ptid, pid, and target_pid_to_str().
Referenced by darwin_nat_target::detach(), fbsd_nat_target::detach(), gnu_nat_target::detach(), linux_nat_target::detach(), nto_procfs_target::detach(), windows_nat_target::detach(), inf_ptrace_target::detach(), procfs_target::detach(), and remote_target::remote_detach_1().
void target_async | ( | bool | enable | ) |
Definition at line 4337 of file target.c.
References target_ops::async(), current_inferior(), enable, infrun_async(), target_can_async_p(), and inferior::top_target().
Referenced by attach_command(), extended_remote_target::create_inferior(), dbgapi_notifier_handler(), gdb_readline_wrapper_cleanup::gdb_readline_wrapper_cleanup(), inferior_event_handler(), remote_target::process_initial_stop_replies(), linux_nat_target::resume(), record_btrace_target::resume(), resume_1(), remote_target::start_remote_1(), target_resume(), wait_one(), and gdb_readline_wrapper_cleanup::~gdb_readline_wrapper_cleanup().
bool target_attach_no_wait | ( | ) |
Definition at line 224 of file target.c.
References target_ops::attach_no_wait(), current_inferior(), and inferior::top_target().
Referenced by attach_command().
bool target_augmented_libraries_svr4_read | ( | ) |
Definition at line 809 of file target.c.
References target_ops::augmented_libraries_svr4_read(), current_inferior(), and inferior::top_target().
Referenced by solist_update_incremental().
const struct btrace_config * target_btrace_conf | ( | const struct btrace_target_info * | btinfo | ) |
Definition at line 4084 of file target.c.
References target_ops::btrace_conf(), current_inferior(), and inferior::top_target().
Referenced by btrace_conf().
void target_call_history | ( | int | size, |
record_print_flags | flags ) |
Definition at line 4206 of file target.c.
References target_ops::call_history(), current_inferior(), flags, size, and inferior::top_target().
Referenced by cmd_record_call_history().
void target_call_history_from | ( | ULONGEST | begin, |
int | size, | ||
record_print_flags | flags ) |
Definition at line 4214 of file target.c.
References target_ops::call_history_from(), current_inferior(), flags, size, and inferior::top_target().
Referenced by cmd_record_call_history().
void target_call_history_range | ( | ULONGEST | begin, |
ULONGEST | end, | ||
record_print_flags | flags ) |
Definition at line 4222 of file target.c.
References target_ops::call_history_range(), current_inferior(), flags, and inferior::top_target().
Referenced by cmd_record_call_history().
bool target_can_accel_watchpoint_condition | ( | CORE_ADDR | addr, |
int | len, | ||
int | type, | ||
expression * | cond ) |
Definition at line 585 of file target.c.
References target_ops::can_accel_watchpoint_condition(), current_inferior(), and inferior::top_target().
Referenced by watchpoint_locations_match().
bool target_can_async_p | ( | ) |
Definition at line 384 of file target.c.
References current_inferior(), and target_can_async_p().
Referenced by extended_remote_target::attach(), attach_amd_dbgapi(), attach_command(), extended_remote_target::create_inferior(), default_execution_direction(), do_target_wait_1(), handle_no_resumed(), remote_target::has_pending_events(), inferior_event_handler(), interrupt_command(), mi_async_p(), mi_cmd_exec_run(), prepare_execution_command(), prepare_to_wait(), proceed(), remote_target::queued_stop_reply(), linux_nat_target::resume(), record_btrace_target::resume(), resume_1(), run_one_inferior(), remote_target::start_remote_1(), target_async(), target_can_async_p(), target_is_non_stop_p(), target_resume(), and target_wait().
bool target_can_async_p | ( | struct target_ops * | target | ) |
Definition at line 392 of file target.c.
References target_ops::can_async_p(), and target_async_permitted.
int target_can_do_single_step | ( | ) |
Definition at line 535 of file target.c.
References target_ops::can_do_single_step(), current_inferior(), and inferior::top_target().
Referenced by arm_linux_software_single_step().
bool target_can_download_tracepoint | ( | ) |
Definition at line 626 of file target.c.
References target_ops::can_download_tracepoint(), current_inferior(), and inferior::top_target().
Referenced by download_tracepoint_locations().
bool target_can_execute_reverse | ( | ) |
Definition at line 596 of file target.c.
References target_ops::can_execute_reverse(), current_inferior(), and inferior::top_target().
Referenced by default_execution_direction(), exec_reverse_continue(), exec_reverse_once(), mi_cmd_list_target_features(), and set_exec_direction_func().
bool target_can_lock_scheduler | ( | ) |
Definition at line 374 of file target.c.
References current_inferior(), target_ops::get_thread_control_capabilities(), tc_schedlock, and inferior::top_target().
Referenced by set_schedlock_func().
int target_can_run | ( | ) |
Definition at line 3083 of file target.c.
References current_inferior().
Referenced by check_for_thread_db(), check_pid_namespace_match(), and thread_db_load().
bool target_can_run_breakpoint_commands | ( | ) |
Definition at line 290 of file target.c.
References target_ops::can_run_breakpoint_commands(), current_inferior(), and inferior::top_target().
Referenced by dprintf_breakpoint::breakpoint_hit(), build_target_command_list(), and update_dprintf_command_list().
bool target_can_use_agent | ( | ) |
Definition at line 803 of file target.c.
References target_ops::can_use_agent(), current_inferior(), and inferior::top_target().
int target_can_use_hardware_watchpoint | ( | bptype | type, |
int | cnt, | ||
int | othertype ) |
Definition at line 516 of file target.c.
References target_ops::can_use_hw_breakpoint(), current_inferior(), and inferior::top_target().
Referenced by break_range_command(), code_breakpoint::code_breakpoint(), enable_breakpoint_disp(), and update_watchpoint().
void target_commit_resumed | ( | ) |
Definition at line 2683 of file target.c.
References target_ops::commit_resumed(), current_inferior(), and inferior::top_target().
Referenced by maybe_call_commit_resumed_all_targets().
void target_continue | ( | ptid_t | ptid, |
enum gdb_signal | signal ) |
Definition at line 3878 of file target.c.
References target_resume().
Referenced by startup_inferior().
void target_continue_no_signal | ( | ptid_t | ptid | ) |
Definition at line 3870 of file target.c.
References target_resume().
Referenced by startup_inferior(), and linux_nat_target::static_tracepoint_markers_by_strid().
int target_core_of_thread | ( | ptid_t | ptid | ) |
Definition at line 3949 of file target.c.
References target_ops::core_of_thread(), current_inferior(), and inferior::top_target().
Referenced by collect_cores(), mi_interp::on_normal_stop(), and print_thread_info_1().
void target_delete_record | ( | void | ) |
Definition at line 4116 of file target.c.
References current_inferior(), target_ops::delete_record(), and inferior::top_target().
Referenced by cmd_record_delete().
void target_detach | ( | inferior * | inf, |
int | from_tty ) |
Definition at line 2531 of file target.c.
References as_process_stratum_target(), current_inferior(), target_ops::detach(), gdb::observers::inferior_pre_detach, inf::pid, prepare_for_detach(), registers_changed_ptid(), reinit_frame_cache(), scoped_disable_commit_resumed::reset_and_commit(), and inferior::top_target().
Referenced by core_file_command(), detach_command(), follow_fork_inferior(), handle_vfork_child_exec_or_exit(), kill_or_detach(), record_detach(), and target_preopen().
void target_disable_btrace | ( | struct btrace_target_info * | btinfo | ) |
Definition at line 4056 of file target.c.
References current_inferior(), target_ops::disable_btrace(), and inferior::top_target().
Referenced by btrace_disable().
void target_disable_tracepoint | ( | bp_location * | loc | ) |
Definition at line 646 of file target.c.
References current_inferior(), target_ops::disable_tracepoint(), loc, and inferior::top_target().
Referenced by disable_breakpoint(), enable_disable_bp_location(), and enable_disable_bp_num_loc().
void target_disconnect | ( | const char * | args, |
int | from_tty ) |
Definition at line 2573 of file target.c.
References current_inferior(), target_ops::disconnect(), remove_breakpoints(), and inferior::top_target().
Referenced by disconnect_command(), and record_disconnect().
void target_done_generating_core | ( | void | ) |
Definition at line 4254 of file target.c.
References current_inferior(), target_ops::done_generating_core(), and inferior::top_target().
Referenced by write_gcore_file().
void target_download_trace_state_variable | ( | const trace_state_variable & | tsv | ) |
Definition at line 632 of file target.c.
References current_inferior(), target_ops::download_trace_state_variable(), and inferior::top_target().
Referenced by start_tracing().
void target_download_tracepoint | ( | bp_location * | location | ) |
Definition at line 620 of file target.c.
References current_inferior(), target_ops::download_tracepoint(), and inferior::top_target().
Referenced by download_tracepoint_locations(), and start_tracing().
void target_dumpcore | ( | const char * | filename | ) |
Definition at line 282 of file target.c.
References current_inferior(), target_ops::dumpcore(), and inferior::top_target().
Referenced by gcore_command().
struct btrace_target_info * target_enable_btrace | ( | thread_info * | tp, |
const struct btrace_config * | conf ) |
Definition at line 4048 of file target.c.
References current_inferior(), target_ops::enable_btrace(), and inferior::top_target().
Referenced by btrace_enable().
void target_enable_tracepoint | ( | bp_location * | loc | ) |
Definition at line 640 of file target.c.
References current_inferior(), target_ops::enable_tracepoint(), loc, and inferior::top_target().
Referenced by enable_breakpoint_disp().
exec_direction_kind target_execution_direction | ( | ) |
Definition at line 410 of file target.c.
References current_inferior(), target_ops::execution_direction(), and inferior::top_target().
Referenced by fetch_inferior_event().
const char * target_extra_thread_info | ( | thread_info * | tp | ) |
Definition at line 418 of file target.c.
References current_inferior(), target_ops::extra_thread_info(), and inferior::top_target().
Referenced by print_thread_info_1(), thpy_get_details(), thread_find_command(), and thread_target_id_str().
bool target_fetch_memtags | ( | CORE_ADDR | address, |
size_t | len, | ||
gdb::byte_vector & | tags, | ||
int | type ) |
Definition at line 821 of file target.c.
References current_inferior(), target_ops::fetch_memtags(), and inferior::top_target().
Referenced by aarch64_linux_fill_memtag_section(), and aarch64_mte_get_atag().
void target_fetch_registers | ( | struct regcache * | regcache, |
int | regno ) |
Definition at line 3928 of file target.c.
References current_inferior(), regcache::debug_print_register(), target_ops::fetch_registers(), and inferior::top_target().
Referenced by aarch64_fbsd_get_thread_local_address(), amd64fbsd_get_thread_local_address(), arm_fbsd_get_thread_local_address(), bsd_kvm_pcb_cmd(), bsd_kvm_proc_cmd(), bsd_kvm_target_open(), core_target_open(), gcore_elf_build_thread_register_notes(), i386fbsd_get_thread_local_address(), ppcfbsd_get_thread_local_address(), procfs_do_thread_registers(), ps_lgetfpregs(), ps_lgetregs(), regcache::raw_update(), record_full_core_open_1(), and riscv_fbsd_get_thread_local_address().
x86_xsave_layout target_fetch_x86_xsave_layout | ( | ) |
Definition at line 835 of file target.c.
References current_inferior(), target_ops::fetch_x86_xsave_layout(), and inferior::top_target().
Referenced by i386_gdbarch_init().
int target_fileio_close | ( | int | fd, |
fileio_error * | target_errno ) |
Definition at line 3368 of file target.c.
References target_ops::fileio_close(), fileio_fd_to_fh(), gdb_printf(), gdb_stdlog, fileio_fh_t::is_closed(), release_fileio_fd(), fileio_fh_t::target, and fileio_fh_t::target_fd.
Referenced by sparc64_forget_process(), scoped_target_fd::~scoped_target_fd(), and target_fileio_stream::~target_fileio_stream().
int target_fileio_fstat | ( | int | fd, |
struct stat * | sb, | ||
fileio_error * | target_errno ) |
Definition at line 3346 of file target.c.
References fileio_fd_to_fh(), target_ops::fileio_fstat(), gdb_printf(), gdb_stdlog, fileio_fh_t::is_closed(), fileio_fh_t::target, and fileio_fh_t::target_fd.
Referenced by target_fileio_stream::stat().
int target_fileio_open | ( | struct inferior * | inf, |
const char * | filename, | ||
int | flags, | ||
int | mode, | ||
bool | warn_if_slow, | ||
fileio_error * | target_errno ) |
Definition at line 3260 of file target.c.
References acquire_fileio_fd(), target_ops::beneath(), default_fileio_target(), flags, gdb_printf(), and gdb_stdlog.
Referenced by adi_tag_fd(), gdb_bfd_iovec_fileio_open(), and target_fileio_read_alloc_1().
int target_fileio_pread | ( | int | fd, |
gdb_byte * | read_buf, | ||
int | len, | ||
ULONGEST | offset, | ||
fileio_error * | target_errno ) |
Definition at line 3320 of file target.c.
References fileio_fd_to_fh(), target_ops::fileio_pread(), gdb_printf(), gdb_stdlog, fileio_fh_t::is_closed(), fileio_fh_t::target, and fileio_fh_t::target_fd.
Referenced by adi_read_versions(), target_fileio_stream::read(), and target_fileio_read_alloc_1().
int target_fileio_pwrite | ( | int | fd, |
const gdb_byte * | write_buf, | ||
int | len, | ||
ULONGEST | offset, | ||
fileio_error * | target_errno ) |
Definition at line 3294 of file target.c.
References fileio_fd_to_fh(), target_ops::fileio_pwrite(), gdb_printf(), gdb_stdlog, fileio_fh_t::is_closed(), fileio_fh_t::target, and fileio_fh_t::target_fd.
Referenced by adi_write_versions().
LONGEST target_fileio_read_alloc | ( | struct inferior * | inf, |
const char * | filename, | ||
gdb_byte ** | buf_p ) |
Definition at line 3541 of file target.c.
References target_fileio_read_alloc_1().
Referenced by linux_info_proc().
|
static |
Definition at line 3486 of file target.c.
References scoped_target_fd::get(), QUIT, target_fileio_open(), target_fileio_pread(), xfree(), xmalloc(), and xrealloc().
Referenced by target_fileio_read_alloc(), and target_fileio_read_stralloc().
gdb::unique_xmalloc_ptr< char > target_fileio_read_stralloc | ( | struct inferior * | inf, |
const char * | filename ) |
Definition at line 3550 of file target.c.
References target_fileio_read_alloc_1().
Referenced by adi_is_addr_mapped(), linux_fill_prpsinfo(), linux_find_memory_regions_full(), linux_info_proc(), linux_process_address_in_memtag_page(), and linux_vsyscall_range_raw().
gdb::optional< std::string > target_fileio_readlink | ( | struct inferior * | inf, |
const char * | filename, | ||
fileio_error * | target_errno ) |
Definition at line 3421 of file target.c.
References target_ops::beneath(), default_fileio_target(), gdb_printf(), and gdb_stdlog.
Referenced by linux_info_proc().
int target_fileio_unlink | ( | struct inferior * | inf, |
const char * | filename, | ||
fileio_error * | target_errno ) |
Definition at line 3395 of file target.c.
References target_ops::beneath(), default_fileio_target(), gdb_printf(), and gdb_stdlog.
void target_files_info | ( | ) |
Definition at line 298 of file target.c.
References current_inferior(), target_ops::files_info(), and inferior::top_target().
Referenced by info_program_command().
bool target_filesystem_is_local | ( | ) |
Definition at line 608 of file target.c.
References current_inferior(), target_ops::filesystem_is_local(), and inferior::top_target().
Referenced by exec_file_attach(), gdb_bfd_open(), solib_find_1(), and validate_exec_file().
int target_find_memory_regions | ( | find_memory_region_ftype | func, |
void * | data ) |
Definition at line 442 of file target.c.
References current_inferior(), target_ops::find_memory_regions(), func, and inferior::top_target().
Referenced by gcore_memory_sections().
void target_flash_done | ( | void | ) |
Definition at line 1928 of file target.c.
References current_inferior(), target_ops::flash_done(), and inferior::top_target().
Referenced by flash_erase_command(), and target_write_memory_blocks().
void target_flash_erase | ( | ULONGEST | address, |
LONGEST | length ) |
Definition at line 1922 of file target.c.
References current_inferior(), target_ops::flash_erase(), and inferior::top_target().
Referenced by flash_erase_command(), and target_write_memory_blocks().
void target_follow_exec | ( | inferior * | follow_inf, |
ptid_t | ptid, | ||
const char * | execd_pathname ) |
Definition at line 2744 of file target.c.
References current_inferior(), target_ops::follow_exec(), and inferior::top_target().
Referenced by follow_exec().
void target_follow_fork | ( | inferior * | child_inf, |
ptid_t | child_ptid, | ||
target_waitkind | fork_kind, | ||
bool | follow_child, | ||
bool | detach_fork ) |
Definition at line 2721 of file target.c.
References current_inferior(), detach_fork, target_ops::follow_fork(), inferior::pid, and inferior::top_target().
Referenced by follow_fork_inferior().
ptid_t target_get_ada_task_ptid | ( | long | lwp, |
ULONGEST | tid ) |
Definition at line 602 of file target.c.
References current_inferior(), target_ops::get_ada_task_ptid(), and inferior::top_target().
Referenced by ptid_from_atcb_common().
gdb_byte * target_get_bookmark | ( | const char * | args, |
int | from_tty ) |
Definition at line 456 of file target.c.
References current_inferior(), target_ops::get_bookmark(), and inferior::top_target().
Referenced by save_bookmark_command().
int target_get_min_fast_tracepoint_insn_len | ( | ) |
Definition at line 727 of file target.c.
References current_inferior(), target_ops::get_min_fast_tracepoint_insn_len(), and inferior::top_target().
Referenced by i386_fast_tracepoint_valid_at().
gdb::optional< gdb::char_vector > target_get_osdata | ( | const char * | type | ) |
Definition at line 3008 of file target.c.
References find_default_run_target(), find_target_at(), process_stratum, TARGET_OBJECT_OSDATA, and target_read_stralloc().
Referenced by get_osdata().
LONGEST target_get_raw_trace_data | ( | gdb_byte * | buf, |
ULONGEST | offset, | ||
LONGEST | len ) |
Definition at line 719 of file target.c.
References current_inferior(), target_ops::get_raw_trace_data(), and inferior::top_target().
Referenced by trace_save().
const target_section_table * target_get_section_table | ( | struct target_ops * | target | ) |
Definition at line 1385 of file target.c.
References target_ops::get_section_table().
Referenced by maintenance_info_target_sections(), memory_xfer_partial_1(), remote_target::remote_xfer_live_readonly_partial(), section_table_read_available_memory(), target_section_by_addr(), and exec_target::xfer_partial().
const struct frame_unwind * target_get_tailcall_unwinder | ( | void | ) |
Definition at line 4238 of file target.c.
References current_inferior(), target_ops::get_tailcall_unwinder(), and inferior::top_target().
Referenced by frame_unwind_find_by_frame().
bool target_get_tib_address | ( | ptid_t | ptid, |
CORE_ADDR * | addr ) |
Definition at line 762 of file target.c.
References current_inferior(), target_ops::get_tib_address(), and inferior::top_target().
Referenced by display_one_tib(), tlb_value_read(), and windows_solib_create_inferior_hook().
bool target_get_trace_state_variable_value | ( | int | tsv, |
LONGEST * | val ) |
Definition at line 691 of file target.c.
References current_inferior(), target_ops::get_trace_state_variable_value(), and inferior::top_target().
Referenced by mi_cmd_trace_frame_collected(), tvariables_info_1(), and value_of_internalvar().
int target_get_trace_status | ( | trace_status * | ts | ) |
Definition at line 664 of file target.c.
References current_inferior(), target_ops::get_trace_status(), and inferior::top_target().
Referenced by query_if_trace_running(), trace_save(), trace_status_mi(), and tstatus_command().
void target_get_tracepoint_status | ( | tracepoint * | tp, |
uploaded_tp * | utp ) |
Definition at line 670 of file target.c.
References current_inferior(), target_ops::get_tracepoint_status(), and inferior::top_target().
Referenced by trace_save(), and tstatus_command().
const struct frame_unwind * target_get_unwinder | ( | void | ) |
Definition at line 4230 of file target.c.
References current_inferior(), target_ops::get_unwinder(), and inferior::top_target().
Referenced by frame_unwind_find_by_frame().
void target_goto_bookmark | ( | const gdb_byte * | arg, |
int | from_tty ) |
Definition at line 462 of file target.c.
References current_inferior(), target_ops::goto_bookmark(), and inferior::top_target().
Referenced by goto_bookmark_command().
void target_goto_record | ( | ULONGEST | insn | ) |
Definition at line 4172 of file target.c.
References current_inferior(), target_ops::goto_record(), and inferior::top_target().
Referenced by record_goto(), and recpy_bt_goto().
void target_goto_record_begin | ( | void | ) |
Definition at line 4156 of file target.c.
References current_inferior(), target_ops::goto_record_begin(), and inferior::top_target().
Referenced by cmd_record_goto_begin().
void target_goto_record_end | ( | void | ) |
Definition at line 4164 of file target.c.
References current_inferior(), target_ops::goto_record_end(), and inferior::top_target().
Referenced by cmd_record_goto_end(), and recpy_bt_goto().
bool target_has_execution | ( | inferior * | inf | ) |
Definition at line 201 of file target.c.
References current_inferior().
Referenced by add_thread_db_info(), adi_assign_command(), adi_examine_command(), attach_command(), call_function_by_hand_dummy(), check_multi_target_resumption(), check_thread_db_callback(), checkpoint_command(), compile_to_object(), darwin_solib_create_inferior_hook(), derive_heap_segment(), enable_break(), expression::evaluate(), exec_file_command(), fbsd_vdso_range(), find_function_in_inferior(), for_each_just_stopped_thread(), gcore_command(), get_bpstat_thread(), remote_target::get_min_fast_tracepoint_insn_len(), inferior::has_execution(), inferior_event_handler(), info_program_command(), insert_breakpoint_locations(), kill_if_already_running(), kill_or_detach(), linux_address_in_memtag_page(), linux_info_proc(), linux_vsyscall_range_raw(), lookup_child_selector(), lookup_objc_class(), maybe_remove_breakpoints(), normal_stop(), remote_target::open_1(), remote_target::read_description(), record_btrace_target_open(), record_full_open_1(), record_thread(), reload_shared_libraries(), remote_target::remote_check_symbols(), remote_target::remote_detach_1(), infcall_suspend_state::restore(), restore_command(), set_non_stop(), set_observer_mode(), set_target_permissions(), svr4_solib_create_inferior_hook(), target_preopen(), thread_db_find_new_threads_silently(), try_thread_db_load_1(), update_inserted_breakpoint_locations(), update_solib_list(), update_watchpoint(), value_allocate_space_in_inferior(), value_nsstring(), remote_target::verify_memory(), windows_solib_create_inferior_hook(), remote_target::xfer_partial(), and rs6000_nat_target::xfer_shared_libraries().
int target_has_memory | ( | ) |
Definition at line 165 of file target.c.
References current_inferior().
Referenced by get_current_frame(), has_stack_frames(), scoped_restore_current_thread::restore(), and tui_data_window::show_registers().
bool target_has_pending_events | ( | ) |
Definition at line 2692 of file target.c.
References current_inferior(), target_ops::has_pending_events(), and inferior::top_target().
Referenced by maybe_set_commit_resumed_all_targets().
int target_has_registers | ( | ) |
Definition at line 189 of file target.c.
References current_inferior().
Referenced by arm_pc_is_thumb(), bpfinishpy_detect_out_scope_cb(), current_me_module(), current_options(), derive_stack_segment(), get_current_frame(), has_stack_frames(), ia64_frame_prev_register(), ia64_sigtramp_frame_prev_register(), info_float_command(), info_vector_command(), libunwind_frame_prev_register(), mi_cmd_data_write_register_values(), language_defn::read_var_value(), regcache_print(), registers_info(), scoped_restore_current_thread::restore(), tui_data_window::show_registers(), thread_db_load(), and tui_get_register().
int target_has_stack | ( | ) |
Definition at line 177 of file target.c.
References current_inferior().
Referenced by ada_build_task_list(), backtrace_command_1(), derive_stack_segment(), frame_apply_all_command(), frame_apply_command(), frame_apply_level_command(), get_current_frame(), has_stack_frames(), info_auxv_command(), list_command(), scoped_restore_current_thread::restore(), restore_infcall_control_state(), tui_data_window::show_registers(), siginfo_make_value(), thread_command(), and tlb_make_value().
bool target_have_steppable_watchpoint | ( | ) |
Definition at line 508 of file target.c.
References current_inferior(), target_ops::have_steppable_watchpoint(), and inferior::top_target().
Referenced by displaced_step_instruction_executed_successfully(), handle_signal_stop(), procfs_target::insert_watchpoint(), and thread_still_needs_step_over().
int target_info_proc | ( | const char * | args, |
enum info_proc_what | what ) |
Definition at line 2954 of file target.c.
References target_ops::beneath(), find_default_run_target(), find_target_at(), gdb_printf(), gdb_stdlog, target_ops::info_proc(), and process_stratum.
Referenced by info_proc_cmd_1().
int target_insert_breakpoint | ( | struct gdbarch * | gdbarch, |
struct bp_target_info * | bp_tgt ) |
Definition at line 2376 of file target.c.
References current_inferior(), target_ops::insert_breakpoint(), may_insert_breakpoints, and inferior::top_target().
Referenced by insert_bp_location(), and code_breakpoint::insert_location().
int target_insert_exec_catchpoint | ( | int | pid | ) |
Definition at line 338 of file target.c.
References current_inferior(), target_ops::insert_exec_catchpoint(), pid, and inferior::top_target().
Referenced by exec_catchpoint::insert_location().
int target_insert_fork_catchpoint | ( | int | pid | ) |
Definition at line 306 of file target.c.
References current_inferior(), target_ops::insert_fork_catchpoint(), pid, and inferior::top_target().
Referenced by fork_catchpoint::insert_location().
int target_insert_hw_breakpoint | ( | gdbarch * | gdbarch, |
bp_target_info * | bp_tgt ) |
Definition at line 565 of file target.c.
References current_inferior(), target_ops::insert_hw_breakpoint(), and inferior::top_target().
Referenced by code_breakpoint::insert_location().
int target_insert_mask_watchpoint | ( | CORE_ADDR | addr, |
CORE_ADDR | mask, | ||
enum target_hw_bp_type | rw ) |
Definition at line 4005 of file target.c.
References current_inferior(), target_ops::insert_mask_watchpoint(), and inferior::top_target().
Referenced by masked_watchpoint::insert_location().
int target_insert_vfork_catchpoint | ( | int | pid | ) |
Definition at line 322 of file target.c.
References current_inferior(), target_ops::insert_vfork_catchpoint(), pid, and inferior::top_target().
Referenced by fork_catchpoint::insert_location().
int target_insert_watchpoint | ( | CORE_ADDR | addr, |
int | len, | ||
target_hw_bp_type | type, | ||
expression * | cond ) |
Definition at line 543 of file target.c.
References current_inferior(), target_ops::insert_watchpoint(), and inferior::top_target().
Referenced by watchpoint::insert_location().
void target_insn_history | ( | int | size, |
gdb_disassembly_flags | flags ) |
Definition at line 4180 of file target.c.
References current_inferior(), flags, target_ops::insn_history(), size, and inferior::top_target().
Referenced by cmd_record_insn_history().
void target_insn_history_from | ( | ULONGEST | from, |
int | size, | ||
gdb_disassembly_flags | flags ) |
Definition at line 4188 of file target.c.
References current_inferior(), flags, target_ops::insn_history_from(), size, and inferior::top_target().
Referenced by cmd_record_insn_history().
void target_insn_history_range | ( | ULONGEST | begin, |
ULONGEST | end, | ||
gdb_disassembly_flags | flags ) |
Definition at line 4197 of file target.c.
References current_inferior(), flags, target_ops::insn_history_range(), and inferior::top_target().
Referenced by cmd_record_insn_history().
void target_interrupt | ( | ) |
Definition at line 3798 of file target.c.
References current_inferior(), target_ops::interrupt(), may_stop, and inferior::top_target().
Referenced by default_target_pass_ctrlc(), interrupt_target_1(), nto_handle_sigint(), remote_target::pass_ctrlc(), and remote_target::remote_serial_quit_handler().
bool target_is_async_p | ( | ) |
Definition at line 402 of file target.c.
References current_inferior(), target_ops::is_async_p(), target_async_permitted, and inferior::top_target().
Referenced by attach_command(), do_target_wait_1(), remote_target::push_stop_reply(), remote_target::putpkt_binary(), amd_dbgapi_target::stop(), amd_dbgapi_target::wait(), linux_nat_target::wait(), record_btrace_target::wait(), and remote_target::wait().
bool target_is_non_stop_p | ( | ) |
Definition at line 4394 of file target.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_TRUE, non_stop, target_always_non_stop_p(), target_can_async_p(), and target_non_stop_enabled.
Referenced by adjust_pc_after_break(), remote_target::async(), extended_remote_target::attach(), attach_command(), attach_post_wait(), check_multi_target_resumption(), remote_target::commit_resumed(), detach_command(), exists_non_stop_target(), fetch_inferior_event(), find_thread_waiting_for_vfork_done(), finish_step_over(), follow_fork(), for_each_just_stopped_thread(), get_detach_signal(), handle_inferior_event(), handle_notification(), handle_vfork_done(), internal_resume_ptid(), remote_target::interrupt(), keep_going_pass_signal(), linux_nat_filter_event(), linux_nat_wait_1(), mark_non_executing_threads(), prepare_for_detach(), proceed(), proceed_resume_thread_checked(), remote_target::process_initial_stop_replies(), remote_target::process_stop_reply(), remote_target::putpkt_binary(), remote_target::remote_notice_new_inferior(), remote_target::remote_resume_with_vcont(), remote_target_is_non_stop_p(), record_btrace_target::resume(), remote_target::resume(), resume_1(), select_event_lwp(), show_can_use_displaced_stepping(), remote_target::start_remote_1(), start_step_over(), remote_target::stop(), stop_all_threads(), switch_back_to_stepped_thread(), update_global_location_list(), remote_target::update_thread_list(), use_displaced_stepping(), linux_nat_target::wait(), record_btrace_target::wait(), and remote_target::wait().
void target_kill | ( | void | ) |
Definition at line 913 of file target.c.
References current_inferior(), disable, target_ops::kill(), and inferior::top_target().
Referenced by attach_command(), kill_command(), kill_if_already_running(), kill_inferior_command(), kill_or_detach(), record_kill(), and target_preopen().
void target_load | ( | const char * | arg, |
int | from_tty ) |
Definition at line 928 of file target.c.
References current_inferior(), target_ops::load(), target_dcache_invalidate(), and inferior::top_target().
Referenced by load_command().
void target_log_command | ( | const char * | p | ) |
Definition at line 841 of file target.c.
References current_inferior(), target_ops::log_command(), and inferior::top_target().
Referenced by execute_command(), and mi_execute_command().
gdb::unique_xmalloc_ptr< char > target_make_corefile_notes | ( | bfd * | bfd, |
int * | size_p ) |
Definition at line 450 of file target.c.
References current_inferior(), target_ops::make_corefile_notes(), and inferior::top_target().
Referenced by write_gcore_file_1().
int target_masked_watch_num_registers | ( | CORE_ADDR | addr, |
CORE_ADDR | mask ) |
Definition at line 4029 of file target.c.
References current_inferior(), target_ops::masked_watch_num_registers(), and inferior::top_target().
Referenced by masked_watchpoint::resources_needed(), and watch_command_1().
std::vector< mem_region > target_memory_map | ( | void | ) |
Definition at line 1891 of file target.c.
References current_inferior(), mem_region::hi, mem_region::lo, mem_region::number, and inferior::top_target().
Referenced by flash_erase_command(), and require_target_regions().
void target_mourn_inferior | ( | ptid_t | ptid | ) |
Definition at line 2758 of file target.c.
References current_inferior(), inferior_ptid, target_ops::mourn_inferior(), and inferior::top_target().
Referenced by linux_nat_target::attach(), windows_nat_target::get_windows_debug_event(), handle_inferior_event(), interrupt_query(), darwin_nat_target::kill(), fbsd_nat_target::kill(), gnu_nat_target::kill(), inf_ptrace_target::kill(), linux_nat_target::kill(), nto_procfs_target::kill(), procfs_target::kill(), gdbsim_target::kill(), remote_target::kill(), windows_nat_target::kill(), record_mourn_inferior(), remote_target::remote_detach_1(), and startup_inferior().
std::string target_options_to_string | ( | target_wait_flags | target_options | ) |
Definition at line 3912 of file target.c.
References DO_TARG_OPTION, str_comma_list_concat_elem(), and TARGET_WNOHANG.
Referenced by target_debug_print_target_wait_flags(), fbsd_nat_target::wait(), and linux_nat_target::wait().
void target_pass_ctrlc | ( | void | ) |
Definition at line 3812 of file target.c.
References all_inferiors(), current_inferior(), target_ops::pass_ctrlc(), set_current_inferior(), THREAD_RUNNING, and inferior::top_target().
Referenced by default_quit_handler(), target_terminal::inferior(), infrun_quit_handler(), target_terminal::restore_inferior(), and wait_for_signal().
void target_pass_signals | ( | gdb::array_view< const unsigned char > | pass_signals | ) |
Definition at line 2698 of file target.c.
References current_inferior(), target_ops::pass_signals(), and inferior::top_target().
Referenced by do_target_resume(), handle_command(), record_full_target::resume(), and signal_catch_update().
const char * target_pid_to_exec_file | ( | int | pid | ) |
Definition at line 426 of file target.c.
References current_inferior(), pid, target_ops::pid_to_exec_file(), and inferior::top_target().
Referenced by exec_file_locate_attach(), and validate_exec_file().
std::string target_pid_to_str | ( | ptid_t | ptid | ) |
Definition at line 2623 of file target.c.
References current_inferior(), target_ops::pid_to_str(), and inferior::top_target().
Referenced by add_inferior(), add_thread_with_info(), extended_remote_target::attach(), btrace_disable(), btrace_enable(), dcache_info_1(), delete_checkpoint_command(), detach_checkpoint_command(), detach_inferior(), remote_target::disable_btrace(), display_one_tib(), remote_target::enable_btrace(), x86_linux_nat_target::enable_btrace(), i386_gnu_nat_target::fetch_registers(), procfs_target::fetch_registers(), inf_ptrace_target::files_info(), nto_procfs_target::files_info(), procfs_target::files_info(), windows_nat_target::files_info(), follow_exec(), follow_fork_inferior(), handle_vfork_child_exec_or_exit(), inferior_pid_to_str(), info_checkpoints_command(), info_program_command(), record_btrace_target::info_record(), kill_command(), linux_fork_context(), linux_fork_detach(), linux_fork_mourn_inferior(), tui_locator_window::make_status_line(), normal_stop(), notify_thread_exited(), print_exited_reason(), print_inferior_quit_action(), print_program_space(), print_selected_thread_frame(), print_target_wait_results(), print_thread_info_1(), remote_target::remote_detach_1(), remote_target::remote_stop_ns(), rename_vmcore_idle_reg_sections(), fbsd_nat_target::resume(), gnu_nat_target::resume(), fbsd_nat_target::resume_one_process(), i386_gnu_nat_target::store_registers(), procfs_target::store_registers(), target_announce_attach(), target_announce_detach(), target_translate_tls_address(), process_stratum_target::thread_address_space(), thread_command(), thread_find_command(), thread_target_id_str(), fbsd_nat_target::wait(), fbsd_nat_target::wait_1(), and scoped_switch_fork_info::~scoped_switch_fork_info().
void target_post_attach | ( | int | pid | ) |
Definition at line 232 of file target.c.
References current_inferior(), pid, target_ops::post_attach(), and inferior::top_target().
Referenced by setup_inferior().
void target_pre_inferior | ( | int | from_tty | ) |
Definition at line 2449 of file target.c.
References inferior::attach_flag, current_inferior(), gdbarch_has_global_solist(), inferior::highest_thread_num, invalidate_target_mem_regions(), no_shared_libraries(), target_clear_description(), target_gdbarch(), and update_previous_thread().
Referenced by attach_command(), run_command_1(), and target_preopen().
void target_preopen | ( | int | from_tty | ) |
Definition at line 2495 of file target.c.
References current_inferior(), dont_repeat(), file_stratum, pid, inferior::pop_all_targets_above(), query(), target_detach(), target_has_execution(), target_kill(), target_pre_inferior(), and update_previous_thread().
Referenced by bsd_kvm_target_open(), core_target_open(), inf_child_target::disconnect(), exec_target_open(), inf_child_open_target(), nto_procfs_target::open(), remote_target::open_1(), and tfile_target_open().
void target_prepare_to_generate_core | ( | void | ) |
Definition at line 4246 of file target.c.
References current_inferior(), target_ops::prepare_to_generate_core(), and inferior::top_target().
Referenced by write_gcore_file().
void target_prepare_to_store | ( | regcache * | regcache | ) |
Definition at line 240 of file target.c.
References current_inferior(), target_ops::prepare_to_store(), and inferior::top_target().
Referenced by regcache::raw_write().
void target_program_signals | ( | gdb::array_view< const unsigned char > | program_signals | ) |
Definition at line 2704 of file target.c.
References current_inferior(), target_ops::program_signals(), and inferior::top_target().
Referenced by handle_command(), and update_signals_program_target().
int target_ranged_break_num_registers | ( | void | ) |
Definition at line 4040 of file target.c.
References current_inferior(), target_ops::ranged_break_num_registers(), and inferior::top_target().
Referenced by break_range_command(), and ranged_breakpoint::resources_needed().
void target_rcmd | ( | const char * | command, |
struct ui_file * | outbuf ) |
Definition at line 366 of file target.c.
References current_inferior(), target_ops::rcmd(), and inferior::top_target().
Referenced by do_monitor_command(), and show_bdccsr_command().
LONGEST target_read | ( | struct target_ops * | ops, |
enum target_object | object, | ||
const char * | annex, | ||
gdb_byte * | buf, | ||
ULONGEST | offset, | ||
LONGEST | len ) |
Definition at line 1970 of file target.c.
References gdbarch_addressable_memory_unit_size(), QUIT, status, target_gdbarch(), TARGET_OBJECT_CODE_MEMORY, TARGET_OBJECT_MEMORY, TARGET_OBJECT_RAW_MEMORY, TARGET_OBJECT_STACK_MEMORY, target_read_partial(), TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by BP_MANIPULATION_ENDIAN(), darwin_solib_read_all_image_info_addr(), default_search_memory(), display_one_tib(), get_target_memory(), infcall_suspend_state::infcall_suspend_state(), linux_get_siginfo_data(), mi_cmd_data_read_memory(), read_memory_robust(), read_whatever_is_readable(), remote_target::search_memory(), siginfo_value_read(), sparc_fetch_wcookie(), target_read_code(), target_read_memory(), target_read_raw_memory(), and target_read_stack().
gdb::optional< gdb::byte_vector > target_read_alloc | ( | struct target_ops * | ops, |
enum target_object | object, | ||
const char * | annex ) |
Definition at line 2312 of file target.c.
Referenced by avr_io_reg_read_command(), dsbt_get_initial_loadmaps(), fbsd_make_note_desc(), fbsd_vdso_range(), linux_make_corefile_notes(), procfs_target::make_corefile_notes(), sdata_make_value(), and target_read_auxv_raw().
gdb::optional< gdb::def_vector< T > > target_read_alloc_1 | ( | struct target_ops * | ops, |
enum target_object | object, | ||
const char * | annex ) |
Definition at line 2263 of file target.c.
References QUIT, status, TARGET_OBJECT_MEMORY, target_read_partial(), TARGET_XFER_EOF, and TARGET_XFER_OK.
enum btrace_error target_read_btrace | ( | struct btrace_data * | btrace, |
struct btrace_target_info * | btinfo, | ||
enum btrace_read_type | type ) |
Definition at line 4072 of file target.c.
References current_inferior(), target_ops::read_btrace(), and inferior::top_target().
Referenced by btrace_fetch().
int target_read_code | ( | CORE_ADDR | memaddr, |
gdb_byte * | myaddr, | ||
ssize_t | len ) |
Definition at line 1844 of file target.c.
References current_inferior(), TARGET_OBJECT_CODE_MEMORY, and target_read().
Referenced by amd64_analyze_stack_align(), amd64_skip_xmm_prologue(), arm_adjust_breakpoint_address(), gdb_disassembler_memory_reader::dis_asm_read_memory(), extend_buffer_earlier(), i386_analyze_frame_setup(), i386_analyze_register_saves(), i386_analyze_stack_align(), i386_analyze_struct_return(), i386_follow_jump(), i386_frame_cache_1(), i386_match_pattern(), i386_skip_endbr(), i386_skip_main_prologue(), i386_skip_noop(), i386_skip_probe(), i386_skip_prologue(), microblaze_fetch_instruction(), or1k_fetch_instruction(), riscv_breakpoint_kind_from_pc(), and rx_get_opcode_byte().
const struct target_desc * target_read_description | ( | struct target_ops * | target | ) |
Definition at line 2773 of file target.c.
References target_ops::read_description().
Referenced by target_find_description().
int target_read_memory | ( | CORE_ADDR | memaddr, |
gdb_byte * | myaddr, | ||
ssize_t | len ) |
Definition at line 1785 of file target.c.
References current_inferior(), TARGET_OBJECT_MEMORY, and target_read().
Referenced by aarch64_fbsd_sigframe_init(), aarch64_get_longjmp_target(), aarch64_linux_read_signal_frame_info(), aarch64_linux_restore_vregs(), aarch64_process_record(), aarch64_program_breakpoint_here_p(), aarch64_stub_unwind_sniffer(), alpha_get_longjmp_target(), alpha_read_insn(), alpha_skip_prologue(), alphanbsd_sigtramp_offset(), amd64_get_longjmp_target(), amd64_skip_main_prologue(), amd64_stack_frame_destroyed_p(), amd64_windows_find_unwind_info(), amd64_windows_frame_decode_epilogue(), amd64_windows_frame_decode_insns(), amd64_windows_skip_prologue(), amd64_x32_analyze_stack_align(), arc_get_longjmp_target(), arm_breakpoint_kind_from_current_state(), arm_breakpoint_kind_from_pc(), arm_get_longjmp_target(), arm_skip_bx_reg(), arm_stub_unwind_sniffer(), BP_MANIPULATION(), BP_MANIPULATION(), call0_analyze_prologue(), call0_ret(), cp_print_value(), csky_check_long_branch(), csky_get_insn(), csky_pc_is_csky16(), csky_stub_unwind_sniffer(), darwin_current_sos(), darwin_load_image_infos(), darwin_read_exec_load_addr_at_init(), darwin_read_exec_load_addr_from_dyld(), darwin_validate_exec_header(), default_memory_insert_breakpoint(), default_program_breakpoint_here_p(), dsbt_current_sos(), dump_mapping_p(), elf_gnu_ifunc_resolve_by_got(), elf_locate_base(), enable_break2(), execute_code(), fbsd_get_thread_local_address(), fbsd_get_tls_index(), fbsd_read_integer_by_name(), fetch_instruction(), riscv_insn::fetch_instruction(), fetch_loadmap(), fetch_loadmap(), fetch_mips_16(), find_canonical_descriptor_in_load_object(), find_extant_func_descr(), frv_analyze_prologue(), frv_current_sos(), frv_linux_pc_in_sigtramp(), frv_linux_sigcontext_reg_addr(), frv_skip_main_prologue(), gcore_copy_callback(), gdb_bfd_scan_elf_dyntag(), gdbscm_memory_port_read(), hppa64_convert_code_addr_to_fptr(), hppa_linux_find_global_pointer(), hppa_match_insns(), hppa_stack_frame_destroyed_p(), hppabsd_find_global_pointer(), i386_darwin_sstep_at_sigreturn(), i386_get_longjmp_target(), i386_in_stack_tramp_p(), i386_stack_frame_destroyed_p(), ia64_breakpoint_from_pc(), ia64_convert_from_func_ptr_addr(), ia64_find_global_pointer_from_dynamic_section(), ia64_memory_insert_breakpoint(), ia64_memory_remove_breakpoint(), insns_match_pattern(), jit_read_code_entry(), jit_read_descriptor(), jit_reader_try_read_symtab(), jit_target_read_impl(), ld_so_xfer_auxv(), lm_base(), lm_base(), lm_info_read(), load_progress(), loongarch_fetch_instruction(), i386_linux_nat_target::low_resume(), m32c_analyze_prologue(), m32r_memory_insert_breakpoint(), m68hc11_pseudo_register_read(), m68k_get_longjmp_target(), memory_validate_breakpoint(), mi_cmd_trace_frame_collected(), microblaze_linux_memory_remove_breakpoint(), mips64_fbsd_sigframe_init(), mips64_linux_get_longjmp_target(), mips_fbsd_sigframe_init(), mips_fetch_instruction(), mips_get_mips16_fn_stub_pc(), mips_linux_get_longjmp_target(), mips_skip_pic_trampoline_code(), mips_stub_frame_sniffer(), mipsnbsd_get_longjmp_target(), mn10300_analyze_prologue(), moxie_process_readu(), msp430_get_opcode_byte(), nds32_get_longjmp_target(), nios2_get_longjmp_target(), nios2_stub_frame_sniffer(), nto_read_auxv_from_initial_stack(), partial_memory_read(), pascal_object_print_value(), pdc_read_data(), ppc_linux_memory_remove_breakpoint(), displaced_step_buffers::prepare(), ps_xfer_memory(), target_buffer::read(), read_aarch64_ctx(), read_memory_backward(), read_program_header(), record_linux_msghdr(), record_linux_sockaddr(), record_linux_system_call(), record_read_memory(), remote_fileio_func_open(), remote_fileio_func_rename(), remote_fileio_func_stat(), remote_fileio_func_system(), remote_fileio_func_unlink(), remote_fileio_func_write(), riscv_fbsd_sigframe_init(), rl78_get_opcode_byte(), rocm_bfd_iovec_open(), rs6000_fetch_instruction(), rs6000_program_breakpoint_here_p(), rs6000_skip_main_prologue(), rw_common(), s390_process_record(), s390_readinstruction(), s390_sigtramp_frame_sniffer(), s390_stack_frame_destroyed_p(), safe_frame_unwind_memory(), safe_read_memory_integer(), safe_read_memory_unsigned_integer(), struct_field_searcher::search(), search_struct_method(), skip_prologue(), skip_prologue_hard_way(), sparc64_linux_get_longjmp_target(), sparc_fetch_instruction(), sparc_supply_rwindow(), stap_modify_semaphore(), target_read_memory_bfd(), target_read_uint32(), target_write_memory_blocks(), thumb2_copy_table_branch(), thumb_stack_frame_destroyed_p(), tic6x_get_longjmp_target(), tilegx_get_longjmp_target(), trad_frame_set_reg_regmap(), val_print_string(), bsd_uthread_target::wait(), windows_solib_create_inferior_hook(), xstormy16_find_jmp_table_entry(), and xtensa_scan_prologue().
|
static |
Definition at line 1945 of file target.c.
References target_xfer_partial.
Referenced by read_whatever_is_readable(), target_read(), and target_read_alloc_1().
int target_read_raw_memory | ( | CORE_ADDR | memaddr, |
gdb_byte * | myaddr, | ||
ssize_t | len ) |
Definition at line 1816 of file target.c.
References current_inferior(), TARGET_OBJECT_RAW_MEMORY, and target_read().
Referenced by dcache_read_line().
int target_read_stack | ( | CORE_ADDR | memaddr, |
gdb_byte * | myaddr, | ||
ssize_t | len ) |
Definition at line 1830 of file target.c.
References current_inferior(), TARGET_OBJECT_STACK_MEMORY, and target_read().
gdb::optional< gdb::char_vector > target_read_stralloc | ( | struct target_ops * | ops, |
enum target_object | object, | ||
const char * | annex ) |
Definition at line 2321 of file target.c.
Referenced by btrace_read_config(), fetch_available_features_from_target(), remote_target::memory_map(), remote_target::pid_to_exec_file(), remote_target::read_btrace(), remote_target::remote_get_threads_with_qxfer(), solib_aix_get_library_list(), solib_target_current_sos(), target_get_osdata(), and remote_target::traceframe_info().
int target_read_uint32 | ( | CORE_ADDR | memaddr, |
uint32_t * | result ) |
Definition at line 1798 of file target.c.
References extract_unsigned_integer(), gdbarch_byte_order(), target_gdbarch(), and target_read_memory().
int target_record_is_replaying | ( | ptid_t | ptid | ) |
Definition at line 4132 of file target.c.
References current_inferior(), target_ops::record_is_replaying(), and inferior::top_target().
Referenced by clear_proceed_status(), and cmd_record_delete().
enum record_method target_record_method | ( | ptid_t | ptid | ) |
Definition at line 4124 of file target.c.
References current_inferior(), target_ops::record_method(), and inferior::top_target().
Referenced by gdbpy_current_recording().
void target_record_stop_replaying | ( | void | ) |
Definition at line 4148 of file target.c.
References current_inferior(), target_ops::record_stop_replaying(), and inferior::top_target().
Referenced by clear_proceed_status().
int target_record_will_replay | ( | ptid_t | ptid, |
int | dir ) |
Definition at line 4140 of file target.c.
References current_inferior(), target_ops::record_will_replay(), and inferior::top_target().
Referenced by clear_proceed_status(), schedlock_applies(), and user_visible_resume_ptid().
int target_region_ok_for_hw_watchpoint | ( | CORE_ADDR | addr, |
int | len ) |
Definition at line 526 of file target.c.
References current_inferior(), target_ops::region_ok_for_hw_watchpoint(), and inferior::top_target().
Referenced by can_use_hardware_watchpoint(), and watchpoint::resources_needed().
int target_remove_breakpoint | ( | struct gdbarch * | gdbarch, |
struct bp_target_info * | bp_tgt, | ||
enum remove_bp_reason | reason ) |
Definition at line 2393 of file target.c.
References current_inferior(), may_insert_breakpoints, target_ops::remove_breakpoint(), and inferior::top_target().
Referenced by remove_breakpoint_1(), and code_breakpoint::remove_location().
int target_remove_exec_catchpoint | ( | int | pid | ) |
Definition at line 346 of file target.c.
References current_inferior(), pid, target_ops::remove_exec_catchpoint(), and inferior::top_target().
Referenced by exec_catchpoint::remove_location().
int target_remove_fork_catchpoint | ( | int | pid | ) |
Definition at line 314 of file target.c.
References current_inferior(), pid, target_ops::remove_fork_catchpoint(), and inferior::top_target().
Referenced by fork_catchpoint::remove_location().
int target_remove_hw_breakpoint | ( | gdbarch * | gdbarch, |
bp_target_info * | bp_tgt ) |
Definition at line 575 of file target.c.
References current_inferior(), target_ops::remove_hw_breakpoint(), and inferior::top_target().
Referenced by remove_breakpoint_1(), and code_breakpoint::remove_location().
int target_remove_mask_watchpoint | ( | CORE_ADDR | addr, |
CORE_ADDR | mask, | ||
enum target_hw_bp_type | rw ) |
Definition at line 4017 of file target.c.
References current_inferior(), target_ops::remove_mask_watchpoint(), and inferior::top_target().
Referenced by masked_watchpoint::remove_location().
int target_remove_vfork_catchpoint | ( | int | pid | ) |
Definition at line 330 of file target.c.
References current_inferior(), pid, target_ops::remove_vfork_catchpoint(), and inferior::top_target().
Referenced by fork_catchpoint::remove_location().
int target_remove_watchpoint | ( | CORE_ADDR | addr, |
int | len, | ||
target_hw_bp_type | type, | ||
expression * | cond ) |
Definition at line 554 of file target.c.
References current_inferior(), target_ops::remove_watchpoint(), and inferior::top_target().
Referenced by watchpoint::remove_location().
void target_require_runnable | ( | void | ) |
Definition at line 2822 of file target.c.
References current_inferior(), and process_stratum.
Referenced by kill_if_already_running().
void target_resume | ( | ptid_t | scope_ptid, |
int | step, | ||
enum gdb_signal | signal ) |
Definition at line 2657 of file target.c.
References clear_inline_frame_state(), process_stratum_target::commit_resumed_state, current_inferior(), inferior_ptid, inferior::process_target(), registers_changed_ptid(), target_ops::resume(), set_executing(), target_async(), target_can_async_p(), target_dcache_invalidate(), and inferior::top_target().
Referenced by do_target_resume(), target_continue(), and target_continue_no_signal().
void target_save_record | ( | const char * | filename | ) |
Definition at line 4100 of file target.c.
References current_inferior(), target_ops::save_record(), and inferior::top_target().
Referenced by cmd_record_save().
int target_save_trace_data | ( | const char * | filename | ) |
Definition at line 699 of file target.c.
References current_inferior(), target_ops::save_trace_data(), and inferior::top_target().
Referenced by tfile_target_save().
int target_search_memory | ( | CORE_ADDR | start_addr, |
ULONGEST | search_space_len, | ||
const gdb_byte * | pattern, | ||
ULONGEST | pattern_len, | ||
CORE_ADDR * | found_addrp ) |
Definition at line 2807 of file target.c.
References current_inferior(), target_ops::search_memory(), and inferior::top_target().
Referenced by find_command(), and infpy_search_memory().
const struct target_section * target_section_by_addr | ( | struct target_ops * | target, |
CORE_ADDR | addr ) |
Definition at line 1393 of file target.c.
References target_section::addr, and target_get_section_table().
Referenced by memory_xfer_partial_1(), ppc64_convert_from_func_ptr_addr(), remote_target::remote_xfer_live_readonly_partial(), s390_load(), and record_btrace_target::xfer_partial().
void target_set_circular_trace_buffer | ( | int | val | ) |
Definition at line 741 of file target.c.
References current_inferior(), target_ops::set_circular_trace_buffer(), and inferior::top_target().
Referenced by set_circular_trace_buffer(), and start_tracing().
void target_set_disconnected_tracing | ( | int | val | ) |
Definition at line 735 of file target.c.
References current_inferior(), target_ops::set_disconnected_tracing(), and inferior::top_target().
Referenced by set_disconnected_tracing(), and start_tracing().
void target_set_permissions | ( | ) |
Definition at line 768 of file target.c.
References current_inferior(), target_ops::set_permissions(), and inferior::top_target().
int target_set_syscall_catchpoint | ( | int | pid, |
bool | needed, | ||
int | any_count, | ||
gdb::array_view< const int > | syscall_counts ) |
Definition at line 354 of file target.c.
References current_inferior(), pid, target_ops::set_syscall_catchpoint(), and inferior::top_target().
Referenced by syscall_catchpoint::insert_location(), and syscall_catchpoint::remove_location().
void target_set_trace_buffer_size | ( | LONGEST | val | ) |
Definition at line 747 of file target.c.
References current_inferior(), target_ops::set_trace_buffer_size(), and inferior::top_target().
Referenced by set_trace_buffer_size(), and start_tracing().
bool target_set_trace_notes | ( | const char * | user, |
const char * | notes, | ||
const char * | stopnotes ) |
Definition at line 753 of file target.c.
References current_inferior(), target_ops::set_trace_notes(), and inferior::top_target().
Referenced by set_trace_notes(), set_trace_stop_notes(), set_trace_user(), start_tracing(), and stop_tracing().
const char * target_shortname | ( | ) |
Definition at line 216 of file target.c.
References current_inferior(), target_ops::shortname(), and inferior::top_target().
Referenced by bfin_sw_breakpoint_from_kind(), gdbsim_target::detach(), exec_reverse_continue(), exec_reverse_once(), gdbsim_target::files_info(), tui_locator_window::make_status_line(), set_schedlock_func(), and sh_sw_breakpoint_from_kind().
bool target_static_tracepoint_marker_at | ( | CORE_ADDR | addr, |
static_tracepoint_marker * | marker ) |
Definition at line 774 of file target.c.
References current_inferior(), target_ops::static_tracepoint_marker_at(), and inferior::top_target().
Referenced by code_breakpoint::code_breakpoint(), remote_target::download_tracepoint(), and update_static_tracepoint().
std::vector< static_tracepoint_marker > target_static_tracepoint_markers_by_strid | ( | const char * | marker_id | ) |
Definition at line 783 of file target.c.
References current_inferior(), target_ops::static_tracepoint_markers_by_strid(), and inferior::top_target().
Referenced by decode_static_tracepoint_spec(), info_static_tracepoint_markers_command(), and update_static_tracepoint().
void target_stop | ( | ptid_t | ptid | ) |
Definition at line 3782 of file target.c.
References process_stratum_target::commit_resumed_state, current_inferior(), may_stop, inferior::process_target(), target_ops::stop, and inferior::top_target().
Referenced by attach_command(), attach_post_wait(), interrupt_thread_callback(), notice_new_inferior(), prepare_for_detach(), linux_nat_target::static_tracepoint_markers_by_strid(), stop_all_threads(), stop_current_target_threads_ns(), and target_stop_and_wait().
void target_stop_and_wait | ( | ptid_t | ptid | ) |
Definition at line 3854 of file target.c.
References non_stop, status, target_stop(), and target_wait().
void target_stop_recording | ( | void | ) |
Definition at line 4092 of file target.c.
References current_inferior(), target_ops::stop_recording(), and inferior::top_target().
bool target_stopped_by_hw_breakpoint | ( | ) |
Definition at line 492 of file target.c.
References current_inferior(), target_ops::stopped_by_hw_breakpoint(), and inferior::top_target().
Referenced by handle_signal_stop(), and save_waitstatus().
bool target_stopped_by_sw_breakpoint | ( | ) |
Definition at line 478 of file target.c.
References current_inferior(), target_ops::stopped_by_sw_breakpoint(), and inferior::top_target().
Referenced by handle_signal_stop(), and save_waitstatus().
bool target_stopped_by_watchpoint | ( | ) |
Definition at line 470 of file target.c.
References current_inferior(), target_ops::stopped_by_watchpoint(), and inferior::top_target().
Referenced by bpstat_stop_status_nowatch(), displaced_step_instruction_executed_successfully(), handle_signal_stop(), record_full_wait_1(), save_waitstatus(), and watchpoints_triggered().
bool target_store_memtags | ( | CORE_ADDR | address, |
size_t | len, | ||
const gdb::byte_vector & | tags, | ||
int | type ) |
Definition at line 828 of file target.c.
References current_inferior(), target_ops::store_memtags(), and inferior::top_target().
Referenced by aarch64_linux_set_memtags().
void target_store_registers | ( | struct regcache * | regcache, |
int | regno ) |
Definition at line 3936 of file target.c.
References current_inferior(), regcache::debug_print_register(), may_write_registers, target_ops::store_registers(), and inferior::top_target().
Referenced by ps_lsetfpregs(), ps_lsetregs(), regcache::raw_write(), rs6000_lynx178_push_dummy_call(), and rs6000_push_dummy_call().
int target_supports_delete_record | ( | void | ) |
Definition at line 4108 of file target.c.
References current_inferior(), target_ops::supports_delete_record(), and inferior::top_target().
Referenced by cmd_record_delete().
int target_supports_disable_randomization | ( | void | ) |
Definition at line 2992 of file target.c.
References current_inferior(), target_ops::supports_disable_randomization(), and inferior::top_target().
Referenced by set_disable_randomization(), and show_disable_randomization().
bool target_supports_dumpcore | ( | ) |
Definition at line 274 of file target.c.
References current_inferior(), target_ops::supports_dumpcore(), and inferior::top_target().
Referenced by gcore_command().
bool target_supports_enable_disable_tracepoint | ( | ) |
Definition at line 248 of file target.c.
References current_inferior(), target_ops::supports_enable_disable_tracepoint(), and inferior::top_target().
Referenced by disable_breakpoint(), enable_breakpoint_disp(), enable_disable_bp_location(), enable_disable_bp_num_loc(), and start_tracing().
bool target_supports_evaluation_of_breakpoint_conditions | ( | ) |
Definition at line 264 of file target.c.
References current_inferior(), target_ops::supports_evaluation_of_breakpoint_conditions(), and inferior::top_target().
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), build_target_condition_list(), force_breakpoint_reinsertion(), mark_breakpoint_location_modified(), set_condition_evaluation_mode(), and translate_condition_evaluation_mode().
bool target_supports_memory_tagging | ( | ) |
Definition at line 815 of file target.c.
References current_inferior(), target_ops::supports_memory_tagging(), and inferior::top_target().
Referenced by do_examine(), memory_tag_check_command(), memory_tag_print_allocation_tag_command(), memory_tag_print_logical_tag_command(), memory_tag_set_allocation_tag_command(), memory_tag_with_logical_tag_command(), and should_validate_memtags().
int target_supports_multi_process | ( | void | ) |
Definition at line 3000 of file target.c.
References current_inferior(), target_ops::supports_multi_process(), and inferior::top_target().
Referenced by startup_inferior(), and user_visible_resume_ptid().
bool target_supports_stopped_by_hw_breakpoint | ( | ) |
Definition at line 498 of file target.c.
References current_inferior(), target_ops::supports_stopped_by_hw_breakpoint(), and inferior::top_target().
Referenced by build_bpstat_chain(), need_moribund_for_location_type(), and save_waitstatus().
bool target_supports_stopped_by_sw_breakpoint | ( | ) |
Definition at line 484 of file target.c.
References current_inferior(), target_ops::supports_stopped_by_sw_breakpoint(), and inferior::top_target().
Referenced by adjust_pc_after_break(), build_bpstat_chain(), do_target_wait_1(), need_moribund_for_location_type(), and save_waitstatus().
bool target_supports_string_tracing | ( | ) |
Definition at line 256 of file target.c.
References current_inferior(), target_ops::supports_string_tracing(), and inferior::top_target().
Referenced by decode_agent_options().
bool target_supports_terminal_ours | ( | void | ) |
Definition at line 1114 of file target.c.
References current_inferior().
Referenced by amd_dbgapi_log_message_callback(), ATTRIBUTE_PRINTF(), print_flush(), quit(), and vwarning().
void target_teardown_btrace | ( | struct btrace_target_info * | btinfo | ) |
Definition at line 4064 of file target.c.
References current_inferior(), target_ops::teardown_btrace(), and inferior::top_target().
Referenced by btrace_teardown().
|
static |
Definition at line 1028 of file target.c.
References all_inferiors(), current_inferior(), is_inferior, is_ours, is_ours_for_output, set_current_inferior(), target_ops::terminal_ours(), target_ops::terminal_ours_for_output(), target_ops::terminal_save_inferior(), and inferior::top_target().
Referenced by target_terminal::ours(), and target_terminal::ours_for_output().
struct address_space * target_thread_address_space | ( | ptid_t | ptid | ) |
Definition at line 3028 of file target.c.
References current_inferior(), target_ops::thread_address_space(), and inferior::top_target().
Referenced by get_thread_arch_regcache().
int target_thread_alive | ( | ptid_t | ptid | ) |
Definition at line 3770 of file target.c.
References current_inferior(), target_ops::thread_alive(), and inferior::top_target().
Referenced by keep_going_stepped_thread(), lwp_to_thread(), rw_common(), thread_alive(), and sol_thread_target::xfer_partial().
gdbarch * target_thread_architecture | ( | ptid_t | ptid | ) |
Definition at line 434 of file target.c.
References current_inferior(), target_ops::thread_architecture(), and inferior::top_target().
Referenced by elf_none_make_corefile_notes(), fbsd_make_corefile_notes(), linux_nat_target::follow_fork(), get_thread_regcache(), linux_handle_syscall_trap(), linux_make_corefile_notes(), record_full_wait_1(), and record_full_target::resume().
void target_thread_events | ( | int | enable | ) |
Definition at line 4349 of file target.c.
References current_inferior(), enable, target_ops::thread_events(), and inferior::top_target().
Referenced by stop_all_threads().
struct thread_info * target_thread_handle_to_thread_info | ( | const gdb_byte * | thread_handle, |
int | handle_len, | ||
struct inferior * | inf ) |
Definition at line 2637 of file target.c.
References current_inferior(), target_ops::thread_handle_to_thread_info(), and inferior::top_target().
Referenced by find_thread_by_handle().
gdb::array_view< const gdb_byte > target_thread_info_to_thread_handle | ( | struct thread_info * | tip | ) |
Definition at line 2649 of file target.c.
References current_inferior(), and inferior::top_target().
Referenced by thpy_thread_handle().
const char * target_thread_name | ( | struct thread_info * | info | ) |
Definition at line 2629 of file target.c.
References current_inferior(), target_ops::thread_name(), and inferior::top_target().
Referenced by thread_find_command(), and thread_name().
int target_trace_find | ( | trace_find_type | type, |
int | num, | ||
CORE_ADDR | addr1, | ||
CORE_ADDR | addr2, | ||
int * | tpp ) |
Definition at line 682 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::trace_find().
Referenced by set_current_traceframe(), remote_target::set_remote_traceframe(), and tfind_1().
void target_trace_init | ( | ) |
Definition at line 614 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::trace_init().
Referenced by start_tracing().
void target_trace_set_readonly_regions | ( | ) |
Definition at line 658 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::trace_set_readonly_regions().
Referenced by start_tracing().
void target_trace_start | ( | ) |
Definition at line 652 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::trace_start().
Referenced by start_tracing().
void target_trace_stop | ( | ) |
Definition at line 676 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::trace_stop().
Referenced by stop_tracing().
traceframe_info_up target_traceframe_info | ( | ) |
Definition at line 791 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::traceframe_info().
Referenced by get_traceframe_info().
CORE_ADDR target_translate_tls_address | ( | struct objfile * | objfile, |
CORE_ADDR | offset ) |
Definition at line 1280 of file target.c.
References current_inferior(), objfile::flags, gdbarch_fetch_tls_load_module_address(), gdbarch_fetch_tls_load_module_address_p(), gdbarch_get_thread_local_address(), gdbarch_get_thread_local_address_p(), target_ops::get_thread_local_address(), inferior_ptid, lm_addr(), OBJF_SHARED, objfile_name(), objfile::separate_debug_objfile_backlink, target_gdbarch(), target_pid_to_str(), and inferior::top_target().
Referenced by dwarf_expr_context::execute_stack_op(), find_minsym_type_and_address(), and language_defn::read_var_value().
void target_update_thread_list | ( | void | ) |
Definition at line 3776 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::update_thread_list().
Referenced by check_for_thread_db(), core_target_open(), print_ada_task_info(), remote_target::start_remote_1(), task_command_1(), and update_thread_list().
int target_upload_trace_state_variables | ( | uploaded_tsv ** | utsvp | ) |
Definition at line 711 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::upload_trace_state_variables().
Referenced by trace_save().
int target_upload_tracepoints | ( | uploaded_tp ** | utpp | ) |
Definition at line 705 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::upload_tracepoints().
Referenced by trace_save().
bool target_use_agent | ( | bool | use | ) |
Definition at line 797 of file target.c.
References current_inferior(), inferior::top_target(), and target_ops::use_agent().
Referenced by set_can_use_agent().
int target_verify_memory | ( | const gdb_byte * | data, |
CORE_ADDR | memaddr, | ||
ULONGEST | size ) |
Definition at line 3994 of file target.c.
References current_inferior(), size, inferior::top_target(), and target_ops::verify_memory().
Referenced by compare_sections_command().
ptid_t target_wait | ( | ptid_t | ptid, |
struct target_waitstatus * | status, | ||
target_wait_flags | options ) |
Definition at line 2586 of file target.c.
References process_stratum_target::commit_resumed_state, current_inferior(), inferior::process_target(), status, target_can_async_p(), gdb::observers::target_post_wait, gdb::observers::target_pre_wait, TARGET_WNOHANG, inferior::top_target(), and target_ops::wait().
Referenced by do_target_wait_1(), poll_one_curr_target(), remote_target::process_initial_stop_replies(), startup_inferior(), and target_stop_and_wait().
LONGEST target_write | ( | struct target_ops * | ops, |
enum target_object | object, | ||
const char * | annex, | ||
const gdb_byte * | buf, | ||
ULONGEST | offset, | ||
LONGEST | len ) |
Definition at line 2249 of file target.c.
References target_write_with_progress().
Referenced by infcall_suspend_state::restore(), siginfo_value_write(), target_write_memory(), and target_write_raw_memory().
int target_write_memory | ( | CORE_ADDR | memaddr, |
const gdb_byte * | myaddr, | ||
ssize_t | len ) |
Definition at line 1861 of file target.c.
References current_inferior(), TARGET_OBJECT_MEMORY, and target_write().
Referenced by append_insns(), append_insns(), copy_sections(), gdbscm_memory_port_write(), ia64_memory_insert_breakpoint(), ld_so_xfer_auxv(), m32r_memory_insert_breakpoint(), m68hc11_pseudo_register_write(), pdc_write_data(), ps_xfer_memory(), record_full_exec_insn(), remote_fileio_func_fstat(), remote_fileio_func_gettimeofday(), remote_fileio_func_read(), remote_fileio_func_stat(), restore_binary_file(), restore_one_section(), riscv_push_dummy_code(), rw_common(), sparc_collect_rwindow(), stap_modify_semaphore(), store_regs(), and write_memory().
|
static |
Definition at line 1956 of file target.c.
References target_xfer_partial.
Referenced by target_write_with_progress().
int target_write_raw_memory | ( | CORE_ADDR | memaddr, |
const gdb_byte * | myaddr, | ||
ssize_t | len ) |
Definition at line 1878 of file target.c.
References current_inferior(), TARGET_OBJECT_RAW_MEMORY, and target_write().
Referenced by default_memory_insert_breakpoint(), default_memory_remove_breakpoint(), ia64_memory_remove_breakpoint(), m32r_memory_remove_breakpoint(), microblaze_linux_memory_remove_breakpoint(), and ppc_linux_memory_remove_breakpoint().
LONGEST target_write_with_progress | ( | struct target_ops * | ops, |
enum target_object | object, | ||
const char * | annex, | ||
const gdb_byte * | buf, | ||
ULONGEST | offset, | ||
LONGEST | len, | ||
void(*)(ULONGEST, void *) | progress, | ||
void * | baton ) |
Definition at line 2203 of file target.c.
References gdbarch_addressable_memory_unit_size(), QUIT, status, target_gdbarch(), TARGET_OBJECT_CODE_MEMORY, TARGET_OBJECT_MEMORY, TARGET_OBJECT_RAW_MEMORY, TARGET_OBJECT_STACK_MEMORY, target_write_partial(), TARGET_XFER_E_IO, TARGET_XFER_EOF, and TARGET_XFER_OK.
Referenced by target_write(), and target_write_memory_blocks().
enum target_xfer_status target_xfer_partial | ( | struct target_ops * | ops, |
enum target_object | object, | ||
const char * | annex, | ||
gdb_byte * | readbuf, | ||
const gdb_byte * | writebuf, | ||
ULONGEST | offset, | ||
ULONGEST | len, | ||
ULONGEST * | xfered_len ) |
Definition at line 1675 of file target.c.
References gdb_printf(), gdb_putc(), gdb_puts(), gdb_stdlog, may_write_memory, memory_xfer_check_region(), memory_xfer_partial(), raw_memory_xfer_partial(), target_ops::shortname(), TARGET_OBJECT_CODE_MEMORY, TARGET_OBJECT_MEMORY, TARGET_OBJECT_RAW_MEMORY, TARGET_OBJECT_STACK_MEMORY, TARGET_XFER_E_IO, TARGET_XFER_EOF, TARGET_XFER_OK, TARGET_XFER_UNAVAILABLE, and target_ops::xfer_partial().
const char * target_xfer_status_to_string | ( | enum target_xfer_status | status | ) |
Definition at line 1370 of file target.c.
References CASE, status, TARGET_XFER_E_IO, and TARGET_XFER_UNAVAILABLE.
Referenced by memory_error_message().
|
static |
Definition at line 1129 of file target.c.
References current_inferior().
Referenced by dummy_target::async(), dummy_target::call_history(), dummy_target::call_history_from(), dummy_target::call_history_range(), dummy_target::delete_record(), dummy_target::disable_btrace(), dummy_target::disable_tracepoint(), dummy_target::disconnect(), dummy_target::download_trace_state_variable(), dummy_target::download_tracepoint(), dummy_target::enable_btrace(), dummy_target::enable_tracepoint(), dummy_target::fetch_memtags(), dummy_target::flash_done(), dummy_target::flash_erase(), dummy_target::get_bookmark(), dummy_target::get_raw_trace_data(), dummy_target::get_tib_address(), dummy_target::get_tracepoint_status(), dummy_target::goto_bookmark(), dummy_target::goto_record(), dummy_target::goto_record_begin(), dummy_target::goto_record_end(), dummy_target::insn_history(), dummy_target::insn_history_from(), dummy_target::insn_history_range(), dummy_target::load(), dummy_target::read_btrace(), dummy_target::save_record(), dummy_target::save_trace_data(), dummy_target::static_tracepoint_markers_by_strid(), dummy_target::store_memtags(), dummy_target::teardown_btrace(), dummy_target::trace_init(), dummy_target::trace_set_readonly_regions(), dummy_target::trace_start(), dummy_target::trace_stop(), dummy_target::traceframe_info(), and dummy_target::use_agent().
void update_target_permissions | ( | void | ) |
Definition at line 4473 of file target.c.
References may_insert_breakpoints, may_insert_breakpoints_1, may_insert_fast_tracepoints, may_insert_fast_tracepoints_1, may_insert_tracepoints, may_insert_tracepoints_1, may_stop, may_stop_1, may_write_memory, may_write_memory_1, may_write_registers, and may_write_registers_1.
Referenced by set_observer_mode(), and set_target_permissions().
|
static |
Definition at line 2854 of file target.c.
Referenced by find_default_run_target().
|
static |
Definition at line 3737 of file target.c.
Referenced by dummy_target::info().
|
static |
Definition at line 3134 of file target.c.
Referenced by acquire_fileio_fd(), fileio_fd_to_fh(), and fileio_handles_invalidate_target().
|
static |
Definition at line 3139 of file target.c.
Referenced by acquire_fileio_fd(), and release_fileio_fd().
|
static |
Definition at line 4465 of file target.c.
Referenced by set_target_permissions(), and update_target_permissions().
|
static |
Definition at line 4467 of file target.c.
Referenced by set_target_permissions(), and update_target_permissions().
|
static |
Definition at line 4466 of file target.c.
Referenced by set_target_permissions(), and update_target_permissions().
|
static |
Definition at line 4468 of file target.c.
Referenced by set_target_permissions(), and update_target_permissions().
|
static |
Definition at line 4464 of file target.c.
Referenced by set_write_memory_registers_permission(), and update_target_permissions().
|
static |
Definition at line 4463 of file target.c.
Referenced by set_write_memory_registers_permission(), and update_target_permissions().
|
static |
bool target_async_permitted = true |
Definition at line 4356 of file target.c.
Referenced by fbsd_nat_target::can_async_p(), linux_nat_target::can_async_p(), remote_target::can_async_p(), get_maint_target_async(), remote_target::open_1(), set_maint_target_async(), target_can_async_p(), and target_is_async_p().
enum auto_boolean target_non_stop_enabled = AUTO_BOOLEAN_AUTO |
Definition at line 4425 of file target.c.
Referenced by get_maint_target_non_stop(), set_maint_target_non_stop(), show_maint_target_non_stop(), and target_is_non_stop_p().
|
static |
Definition at line 3727 of file target.c.
Referenced by get_dummy_target().
|
static |
Definition at line 2869 of file target.c.
Referenced by find_default_run_target(), get_native_target(), and set_native_target().