GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
target.h File Reference
#include "infrun.h"
#include "breakpoint.h"
#include "gdbsupport/scoped_restore.h"
#include "gdbsupport/refcounted-object.h"
#include "target-section.h"
#include "target/target.h"
#include "target/resume.h"
#include "target/wait.h"
#include "target/waitstatus.h"
#include "bfd.h"
#include "symtab.h"
#include "memattr.h"
#include "gdbsupport/gdb_signals.h"
#include "btrace.h"
#include "record.h"
#include "command.h"
#include "disasm-flags.h"
#include "tracepoint.h"
#include "gdbsupport/fileio.h"
#include "gdbsupport/x86-xstate.h"
#include "gdbsupport/break-common.h"

Go to the source code of this file.

Classes

struct  syscall
 
struct  memory_read_result
 
struct  target_info
 
struct  target_ops
 
struct  target_ops_deleter
 
struct  target_ops_ref_policy
 
class  target_stack
 
struct  memory_write_request
 
struct  target_unpusher
 
struct  memory_breakpoint_target< BaseTarget >
 

Macros

#define TARGET_DEBUG_PRINTER(FUNC)
 
#define TARGET_DEFAULT_IGNORE()
 
#define TARGET_DEFAULT_NORETURN(ARG)
 
#define TARGET_DEFAULT_RETURN(ARG)
 
#define TARGET_DEFAULT_FUNC(ARG)
 
#define target_stopped_data_address(target, addr_p)    (target)->stopped_data_address (addr_p)
 
#define target_watchpoint_addr_within_range(target, addr, start, length)    (target)->watchpoint_addr_within_range (addr, start, length)
 

Typedefs

typedef const gdb_byte const_gdb_byte
 
typedef void async_callback_ftype(enum inferior_event_type event_type, void *context)
 
typedef std::unique_ptr< target_ops, target_ops_deletertarget_ops_up
 
typedef gdb::ref_ptr< target_ops, target_ops_ref_policytarget_ops_ref
 
typedef void target_open_ftype(const char *args, int from_tty)
 
typedef std::unique_ptr< struct target_ops, target_unpushertarget_unpush_up
 

Enumerations

enum  strata {
  dummy_stratum , file_stratum , process_stratum , thread_stratum ,
  record_stratum , arch_stratum , debug_stratum
}
 
enum  thread_control_capabilities { tc_none = 0 , tc_schedlock = 1 }
 
enum  inferior_event_type { INF_REG_EVENT , INF_EXEC_COMPLETE }
 
enum  target_object {
  TARGET_OBJECT_AVR , TARGET_OBJECT_MEMORY , TARGET_OBJECT_RAW_MEMORY , TARGET_OBJECT_STACK_MEMORY ,
  TARGET_OBJECT_CODE_MEMORY , TARGET_OBJECT_UNWIND_TABLE , TARGET_OBJECT_AUXV , TARGET_OBJECT_WCOOKIE ,
  TARGET_OBJECT_MEMORY_MAP , TARGET_OBJECT_FLASH , TARGET_OBJECT_AVAILABLE_FEATURES , TARGET_OBJECT_LIBRARIES ,
  TARGET_OBJECT_LIBRARIES_SVR4 , TARGET_OBJECT_LIBRARIES_AIX , TARGET_OBJECT_OSDATA , TARGET_OBJECT_SIGNAL_INFO ,
  TARGET_OBJECT_THREADS , TARGET_OBJECT_STATIC_TRACE_DATA , TARGET_OBJECT_TRACEFRAME_INFO , TARGET_OBJECT_FDPIC ,
  TARGET_OBJECT_DARWIN_DYLD_INFO , TARGET_OBJECT_OPENVMS_UIB , TARGET_OBJECT_BTRACE , TARGET_OBJECT_BTRACE_CONF ,
  TARGET_OBJECT_EXEC_FILE , TARGET_OBJECT_FREEBSD_VMMAP , TARGET_OBJECT_FREEBSD_PS_STRINGS
}
 
enum  target_xfer_status { TARGET_XFER_OK = 1 , TARGET_XFER_EOF = 0 , TARGET_XFER_UNAVAILABLE = 2 , TARGET_XFER_E_IO = -1 }
 
enum  flash_preserve_mode { flash_preserve , flash_discard }
 

Functions

std::string target_options_to_string (target_wait_flags target_options)
 
const char * target_xfer_status_to_string (enum target_xfer_status status)
 
enum target_xfer_status target_xfer_partial_ftype (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)
 
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)
 
LONGEST target_read (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *buf, ULONGEST offset, LONGEST len)
 
std::vector< memory_read_resultread_memory_robust (struct target_ops *ops, const ULONGEST offset, const LONGEST len)
 
LONGEST target_write (struct target_ops *ops, enum target_object object, const char *annex, const gdb_byte *buf, ULONGEST offset, 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)
 
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)
 
void set_native_target (target_ops *target)
 
target_opsget_native_target ()
 
target_opsget_dummy_target ()
 
const char * target_shortname ()
 
struct target_opsfind_attach_target (void)
 
struct target_opsfind_run_target (void)
 
bool target_attach_no_wait ()
 
void target_post_attach (int pid)
 
void target_announce_attach (int from_tty, int pid)
 
void target_announce_detach (int from_tty)
 
void target_detach (inferior *inf, int from_tty)
 
void target_disconnect (const char *, int)
 
void target_resume (ptid_t scope_ptid, int step, enum gdb_signal signal)
 
void target_commit_resumed ()
 
ptid_t default_target_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *status, target_wait_flags options)
 
bool target_has_pending_events ()
 
void target_fetch_registers (struct regcache *regcache, int regno)
 
void target_store_registers (struct regcache *regcache, int regs)
 
void target_prepare_to_store (regcache *regcache)
 
struct address_spacetarget_thread_address_space (ptid_t)
 
int target_info_proc (const char *, enum info_proc_what)
 
int target_supports_disable_randomization (void)
 
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 ()
 
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_raw_memory (CORE_ADDR memaddr, const gdb_byte *myaddr, ssize_t len)
 
std::vector< mem_regiontarget_memory_map (void)
 
void flash_erase_command (const char *cmd, int from_tty)
 
void target_flash_erase (ULONGEST address, LONGEST length)
 
void target_flash_done (void)
 
int target_write_memory_blocks (const std::vector< memory_write_request > &requests, enum flash_preserve_mode preserve_flash_p, void(*progress_cb)(ULONGEST, void *))
 
void target_files_info ()
 
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)
 
bool target_supports_terminal_ours (void)
 
void target_kill (void)
 
void target_load (const char *arg, int from_tty)
 
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)
 
void target_follow_fork (inferior *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)
 
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)
 
int target_can_run ()
 
void target_pass_signals (gdb::array_view< const unsigned char > pass_signals)
 
void target_program_signals (gdb::array_view< const unsigned char > program_signals)
 
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_rcmd (const char *command, struct ui_file *outbuf)
 
int target_has_memory ()
 
int target_has_stack ()
 
int target_has_registers ()
 
bool target_has_execution (inferior *inf=nullptr)
 
bool target_can_lock_scheduler ()
 
bool target_can_async_p ()
 
bool target_can_async_p (struct target_ops *target)
 
bool target_is_async_p ()
 
void target_async (bool enable)
 
void target_thread_events (int enable)
 
bool target_is_non_stop_p ()
 
bool exists_non_stop_target ()
 
exec_direction_kind target_execution_direction ()
 
std::string target_pid_to_str (ptid_t ptid)
 
std::string normal_pid_to_str (ptid_t ptid)
 
const char * target_extra_thread_info (thread_info *tp)
 
const char * target_thread_name (struct thread_info *)
 
struct thread_infotarget_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 *)
 
const char * target_pid_to_exec_file (int pid)
 
gdbarchtarget_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_mask_watchpoint (CORE_ADDR, CORE_ADDR, enum target_hw_bp_type)
 
int target_remove_mask_watchpoint (CORE_ADDR, CORE_ADDR, enum target_hw_bp_type)
 
int target_insert_hw_breakpoint (gdbarch *gdbarch, bp_target_info *bp_tgt)
 
int target_remove_hw_breakpoint (gdbarch *gdbarch, bp_target_info *bp_tgt)
 
int target_ranged_break_num_registers (void)
 
bool target_can_accel_watchpoint_condition (CORE_ADDR addr, int len, int type, expression *cond)
 
int target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask)
 
bool target_can_execute_reverse ()
 
const struct target_desctarget_read_description (struct target_ops *)
 
ptid_t target_get_ada_task_ptid (long lwp, ULONGEST tid)
 
int target_search_memory (CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
 
bool target_filesystem_is_local ()
 
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)
 
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)
 
void fileio_handles_invalidate_target (target_ops *targ)
 
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_markertarget_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)
 
int target_core_of_thread (ptid_t ptid)
 
const struct frame_unwindtarget_get_unwinder (void)
 
const struct frame_unwindtarget_get_tailcall_unwinder (void)
 
int simple_verify_memory (struct target_ops *ops, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
 
int target_verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
 
void add_target (const target_info &info, target_open_ftype *func, completer_ftype *completer=NULL)
 
void add_deprecated_target_alias (const target_info &info, const char *alias)
 
void target_pre_inferior (int)
 
void target_preopen (int)
 
CORE_ADDR target_translate_tls_address (struct objfile *objfile, CORE_ADDR offset)
 
const struct target_sectiontarget_section_by_addr (struct target_ops *target, CORE_ADDR addr)
 
const target_section_tabletarget_get_section_table (struct target_ops *target)
 
const target_section_tabledefault_get_section_table ()
 
int memory_remove_breakpoint (struct target_ops *, struct gdbarch *, struct bp_target_info *, enum remove_bp_reason)
 
int memory_insert_breakpoint (struct target_ops *, struct gdbarch *, struct bp_target_info *)
 
int memory_validate_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
 
int default_memory_remove_breakpoint (struct gdbarch *, struct bp_target_info *)
 
int default_memory_insert_breakpoint (struct gdbarch *, struct bp_target_info *)
 
void initialize_targets (void)
 
void noprocess (void) ATTRIBUTE_NORETURN
 
void target_require_runnable (void)
 
struct target_opsfind_target_at (enum strata stratum)
 
gdb::optional< gdb::char_vector > target_get_osdata (const char *type)
 
scoped_restore_tmpl< int > make_scoped_restore_show_memory_breakpoints (int show)
 
void update_target_permissions (void)
 
struct btrace_target_info * target_enable_btrace (thread_info *tp, const struct btrace_config *)
 
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 *, struct btrace_target_info *, enum btrace_read_type)
 
const struct btrace_config * target_btrace_conf (const struct btrace_target_info *)
 
void target_stop_recording (void)
 
void target_save_record (const char *filename)
 
int target_supports_delete_record (void)
 
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)
 
void target_prepare_to_generate_core (void)
 
void target_done_generating_core (void)
 

Variables

target_xfer_partial_ftype target_xfer_partial
 
bool target_async_permitted
 
enum auto_boolean target_non_stop_enabled
 
int remote_timeout
 
bool trust_readonly
 
bool may_write_registers
 
bool may_write_memory
 
bool may_insert_breakpoints
 
bool may_insert_tracepoints
 
bool may_insert_fast_tracepoints
 
bool may_stop
 

Macro Definition Documentation

◆ TARGET_DEBUG_PRINTER

#define TARGET_DEBUG_PRINTER ( FUNC)

Definition at line 392 of file target.h.

◆ TARGET_DEFAULT_FUNC

#define TARGET_DEFAULT_FUNC ( ARG)

Definition at line 416 of file target.h.

◆ TARGET_DEFAULT_IGNORE

#define TARGET_DEFAULT_IGNORE ( )

Definition at line 413 of file target.h.

◆ TARGET_DEFAULT_NORETURN

#define TARGET_DEFAULT_NORETURN ( ARG)

Definition at line 414 of file target.h.

◆ TARGET_DEFAULT_RETURN

#define TARGET_DEFAULT_RETURN ( ARG)

Definition at line 415 of file target.h.

◆ target_stopped_data_address

#define target_stopped_data_address ( target,
addr_p )    (target)->stopped_data_address (addr_p)

Definition at line 2106 of file target.h.

Referenced by handle_signal_stop(), and watchpoints_triggered().

◆ target_watchpoint_addr_within_range

#define target_watchpoint_addr_within_range ( target,
addr,
start,
length )    (target)->watchpoint_addr_within_range (addr, start, length)

Definition at line 2111 of file target.h.

Referenced by watchpoints_triggered().

Typedef Documentation

◆ async_callback_ftype

typedef void async_callback_ftype(enum inferior_event_type event_type, void *context)

Definition at line 381 of file target.h.

◆ const_gdb_byte

typedef const gdb_byte const_gdb_byte

Definition at line 44 of file target.h.

◆ target_open_ftype

typedef void target_open_ftype(const char *args, int from_tty)

Definition at line 2362 of file target.h.

◆ target_ops_ref

Definition at line 1364 of file target.h.

◆ target_ops_up

typedef std::unique_ptr<target_ops, target_ops_deleter> target_ops_up

Definition at line 1347 of file target.h.

◆ target_unpush_up

typedef std::unique_ptr<struct target_ops, target_unpusher> target_unpush_up

Definition at line 2388 of file target.h.

Enumeration Type Documentation

◆ flash_preserve_mode

Enumerator
flash_preserve 
flash_discard 

Definition at line 1623 of file target.h.

◆ inferior_event_type

Enumerator
INF_REG_EVENT 
INF_EXEC_COMPLETE 

Definition at line 130 of file target.h.

◆ strata

enum strata
Enumerator
dummy_stratum 
file_stratum 
process_stratum 
thread_stratum 
record_stratum 
arch_stratum 
debug_stratum 

Definition at line 93 of file target.h.

◆ target_object

Enumerator
TARGET_OBJECT_AVR 
TARGET_OBJECT_MEMORY 
TARGET_OBJECT_RAW_MEMORY 
TARGET_OBJECT_STACK_MEMORY 
TARGET_OBJECT_CODE_MEMORY 
TARGET_OBJECT_UNWIND_TABLE 
TARGET_OBJECT_AUXV 
TARGET_OBJECT_WCOOKIE 
TARGET_OBJECT_MEMORY_MAP 
TARGET_OBJECT_FLASH 
TARGET_OBJECT_AVAILABLE_FEATURES 
TARGET_OBJECT_LIBRARIES 
TARGET_OBJECT_LIBRARIES_SVR4 
TARGET_OBJECT_LIBRARIES_AIX 
TARGET_OBJECT_OSDATA 
TARGET_OBJECT_SIGNAL_INFO 
TARGET_OBJECT_THREADS 
TARGET_OBJECT_STATIC_TRACE_DATA 
TARGET_OBJECT_TRACEFRAME_INFO 
TARGET_OBJECT_FDPIC 
TARGET_OBJECT_DARWIN_DYLD_INFO 
TARGET_OBJECT_OPENVMS_UIB 
TARGET_OBJECT_BTRACE 
TARGET_OBJECT_BTRACE_CONF 
TARGET_OBJECT_EXEC_FILE 
TARGET_OBJECT_FREEBSD_VMMAP 
TARGET_OBJECT_FREEBSD_PS_STRINGS 

Definition at line 142 of file target.h.

◆ target_xfer_status

Enumerator
TARGET_XFER_OK 
TARGET_XFER_EOF 
TARGET_XFER_UNAVAILABLE 
TARGET_XFER_E_IO 

Definition at line 218 of file target.h.

◆ thread_control_capabilities

Enumerator
tc_none 
tc_schedlock 

Definition at line 104 of file target.h.

Function Documentation

◆ add_deprecated_target_alias()

void add_deprecated_target_alias ( const target_info & info,
const char * alias )
extern

◆ add_target()

void add_target ( const target_info & info,
target_open_ftype * func,
completer_ftype * completer = NULL )
extern

◆ default_get_section_table()

const target_section_table * default_get_section_table ( )
extern

Definition at line 1411 of file target.c.

References current_program_space, and program_space::target_sections().

Referenced by dummy_target::get_section_table().

◆ default_memory_insert_breakpoint()

int default_memory_insert_breakpoint ( struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt )
extern

◆ default_memory_remove_breakpoint()

int default_memory_remove_breakpoint ( struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt )
extern

◆ default_target_pass_ctrlc()

void default_target_pass_ctrlc ( struct target_ops * ops)
extern

Definition at line 3846 of file target.c.

References target_interrupt().

Referenced by dummy_target::pass_ctrlc().

◆ default_target_wait()

ptid_t default_target_wait ( struct target_ops * ops,
ptid_t ptid,
struct target_waitstatus * status,
target_wait_flags options )
extern

Definition at line 2614 of file target.c.

References status.

Referenced by dummy_target::wait().

◆ exists_non_stop_target()

bool exists_non_stop_target ( )
extern

◆ fileio_handles_invalidate_target()

void fileio_handles_invalidate_target ( target_ops * targ)
extern

Definition at line 3144 of file target.c.

References fileio_fhandles.

Referenced by target_ops_ref_policy::decref(), and remote_unpush_target().

◆ find_attach_target()

struct target_ops * find_attach_target ( void )
extern

Definition at line 2912 of file target.c.

References current_inferior(), and find_default_run_target().

Referenced by attach_command().

◆ find_run_target()

struct target_ops * find_run_target ( void )
extern

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

◆ find_target_at()

struct target_ops * find_target_at ( enum strata stratum)

◆ flash_erase_command()

void flash_erase_command ( const char * cmd,
int from_tty )

◆ get_dummy_target()

target_ops * get_dummy_target ( )
extern

Definition at line 3732 of file target.c.

References the_dummy_target.

Referenced by inferior::inferior().

◆ get_native_target()

target_ops * get_native_target ( )
extern

◆ get_target_memory()

void get_target_memory ( struct target_ops * ops,
CORE_ADDR addr,
gdb_byte * buf,
LONGEST len )
extern

◆ get_target_memory_unsigned()

ULONGEST get_target_memory_unsigned ( struct target_ops * ops,
CORE_ADDR addr,
int len,
enum bfd_endian byte_order )
extern

Definition at line 2363 of file target.c.

References extract_unsigned_integer(), and get_target_memory().

Referenced by frv_convert_from_func_ptr_addr().

◆ initialize_targets()

void initialize_targets ( void )
extern

◆ make_scoped_restore_show_memory_breakpoints()

scoped_restore_tmpl< int > make_scoped_restore_show_memory_breakpoints ( int show)
extern

◆ memory_insert_breakpoint()

int memory_insert_breakpoint ( struct target_ops * ops,
struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt )
extern

◆ memory_remove_breakpoint()

int memory_remove_breakpoint ( struct target_ops * ops,
struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt,
enum remove_bp_reason )
extern

◆ memory_validate_breakpoint()

int memory_validate_breakpoint ( struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt )
extern

◆ noprocess()

void noprocess ( void )
extern

◆ normal_pid_to_str()

std::string normal_pid_to_str ( ptid_t ptid)
extern

◆ raw_memory_xfer_partial()

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 )

◆ read_memory_robust()

std::vector< memory_read_result > read_memory_robust ( struct target_ops * ops,
const ULONGEST offset,
const LONGEST len )
extern

◆ set_native_target()

void set_native_target ( target_ops * target)
extern

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

◆ simple_verify_memory()

int simple_verify_memory ( struct target_ops * ops,
const gdb_byte * data,
CORE_ADDR memaddr,
ULONGEST size )
extern

◆ target_announce_attach()

void target_announce_attach ( int from_tty,
int pid )
extern

◆ target_announce_detach()

void target_announce_detach ( int from_tty)
extern

◆ target_async()

void target_async ( bool enable)
extern

◆ target_attach_no_wait()

bool target_attach_no_wait ( )
extern

Definition at line 224 of file target.c.

References target_ops::attach_no_wait(), current_inferior(), and inferior::top_target().

Referenced by attach_command().

◆ target_augmented_libraries_svr4_read()

bool target_augmented_libraries_svr4_read ( )
extern

◆ target_btrace_conf()

const struct btrace_config * target_btrace_conf ( const struct btrace_target_info * btinfo)
extern

Definition at line 4084 of file target.c.

References target_ops::btrace_conf(), current_inferior(), and inferior::top_target().

Referenced by btrace_conf().

◆ target_call_history()

void target_call_history ( int size,
record_print_flags flags )
extern

◆ target_call_history_from()

void target_call_history_from ( ULONGEST begin,
int size,
record_print_flags flags )
extern

◆ target_call_history_range()

void target_call_history_range ( ULONGEST begin,
ULONGEST end,
record_print_flags flags )
extern

◆ target_can_accel_watchpoint_condition()

bool target_can_accel_watchpoint_condition ( CORE_ADDR addr,
int len,
int type,
expression * cond )
extern

◆ target_can_async_p() [1/2]

bool target_can_async_p ( )
extern

◆ target_can_async_p() [2/2]

bool target_can_async_p ( struct target_ops * target)
extern

Definition at line 392 of file target.c.

References target_ops::can_async_p(), and target_async_permitted.

◆ target_can_do_single_step()

int target_can_do_single_step ( )
extern

◆ target_can_download_tracepoint()

bool target_can_download_tracepoint ( )
extern

◆ target_can_execute_reverse()

bool target_can_execute_reverse ( )
extern

◆ target_can_lock_scheduler()

bool target_can_lock_scheduler ( )
extern

◆ target_can_run()

int target_can_run ( )
extern

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

◆ target_can_run_breakpoint_commands()

bool target_can_run_breakpoint_commands ( )
extern

◆ target_can_use_agent()

bool target_can_use_agent ( )
extern

Definition at line 803 of file target.c.

References target_ops::can_use_agent(), current_inferior(), and inferior::top_target().

◆ target_can_use_hardware_watchpoint()

int target_can_use_hardware_watchpoint ( bptype type,
int cnt,
int othertype )
extern

◆ target_commit_resumed()

void target_commit_resumed ( )
extern

◆ target_core_of_thread()

int target_core_of_thread ( ptid_t ptid)
extern

◆ target_delete_record()

void target_delete_record ( void )
extern

Definition at line 4116 of file target.c.

References current_inferior(), target_ops::delete_record(), and inferior::top_target().

Referenced by cmd_record_delete().

◆ target_detach()

void target_detach ( inferior * inf,
int from_tty )
extern

◆ target_disable_btrace()

void target_disable_btrace ( struct btrace_target_info * btinfo)
extern

Definition at line 4056 of file target.c.

References current_inferior(), target_ops::disable_btrace(), and inferior::top_target().

Referenced by btrace_disable().

◆ target_disable_tracepoint()

void target_disable_tracepoint ( bp_location * loc)
extern

◆ target_disconnect()

void target_disconnect ( const char * args,
int from_tty )
extern

◆ target_done_generating_core()

void target_done_generating_core ( void )
extern

◆ target_download_trace_state_variable()

void target_download_trace_state_variable ( const trace_state_variable & tsv)
extern

◆ target_download_tracepoint()

void target_download_tracepoint ( bp_location * location)
extern

◆ target_dumpcore()

void target_dumpcore ( const char * filename)
extern

Definition at line 282 of file target.c.

References current_inferior(), target_ops::dumpcore(), and inferior::top_target().

Referenced by gcore_command().

◆ target_enable_btrace()

struct btrace_target_info * target_enable_btrace ( thread_info * tp,
const struct btrace_config * conf )
extern

Definition at line 4048 of file target.c.

References current_inferior(), target_ops::enable_btrace(), and inferior::top_target().

Referenced by btrace_enable().

◆ target_enable_tracepoint()

void target_enable_tracepoint ( bp_location * loc)
extern

◆ target_execution_direction()

exec_direction_kind target_execution_direction ( )
extern

◆ target_extra_thread_info()

const char * target_extra_thread_info ( thread_info * tp)
extern

◆ target_fetch_memtags()

bool target_fetch_memtags ( CORE_ADDR address,
size_t len,
gdb::byte_vector & tags,
int type )
extern

◆ target_fetch_registers()

void target_fetch_registers ( struct regcache * regcache,
int regno )
extern

◆ target_fetch_x86_xsave_layout()

x86_xsave_layout target_fetch_x86_xsave_layout ( )
extern

◆ target_fileio_close()

int target_fileio_close ( int fd,
fileio_error * target_errno )
extern

◆ target_fileio_fstat()

int target_fileio_fstat ( int fd,
struct stat * sb,
fileio_error * target_errno )
extern

◆ target_fileio_open()

int target_fileio_open ( struct inferior * inf,
const char * filename,
int flags,
int mode,
bool warn_if_slow,
fileio_error * target_errno )
extern

◆ target_fileio_pread()

int target_fileio_pread ( int fd,
gdb_byte * read_buf,
int len,
ULONGEST offset,
fileio_error * target_errno )
extern

◆ target_fileio_pwrite()

int target_fileio_pwrite ( int fd,
const gdb_byte * write_buf,
int len,
ULONGEST offset,
fileio_error * target_errno )
extern

◆ target_fileio_read_alloc()

LONGEST target_fileio_read_alloc ( struct inferior * inf,
const char * filename,
gdb_byte ** buf_p )
extern

Definition at line 3541 of file target.c.

References target_fileio_read_alloc_1().

Referenced by linux_info_proc().

◆ target_fileio_read_stralloc()

gdb::unique_xmalloc_ptr< char > target_fileio_read_stralloc ( struct inferior * inf,
const char * filename )
extern

◆ target_fileio_readlink()

gdb::optional< std::string > target_fileio_readlink ( struct inferior * inf,
const char * filename,
fileio_error * target_errno )
extern

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

◆ target_fileio_unlink()

int target_fileio_unlink ( struct inferior * inf,
const char * filename,
fileio_error * target_errno )
extern

Definition at line 3395 of file target.c.

References target_ops::beneath(), default_fileio_target(), gdb_printf(), and gdb_stdlog.

◆ target_files_info()

void target_files_info ( )
extern

Definition at line 298 of file target.c.

References current_inferior(), target_ops::files_info(), and inferior::top_target().

Referenced by info_program_command().

◆ target_filesystem_is_local()

bool target_filesystem_is_local ( )
extern

◆ target_find_memory_regions()

int target_find_memory_regions ( find_memory_region_ftype func,
void * data )
extern

◆ target_flash_done()

void target_flash_done ( void )

◆ target_flash_erase()

void target_flash_erase ( ULONGEST address,
LONGEST length )

◆ target_follow_exec()

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

◆ target_follow_fork()

void target_follow_fork ( inferior * inf,
ptid_t child_ptid,
target_waitkind fork_kind,
bool follow_child,
bool detach_fork )

◆ target_get_ada_task_ptid()

ptid_t target_get_ada_task_ptid ( long lwp,
ULONGEST tid )
extern

◆ target_get_bookmark()

gdb_byte * target_get_bookmark ( const char * args,
int from_tty )
extern

Definition at line 456 of file target.c.

References current_inferior(), target_ops::get_bookmark(), and inferior::top_target().

Referenced by save_bookmark_command().

◆ target_get_min_fast_tracepoint_insn_len()

int target_get_min_fast_tracepoint_insn_len ( )
extern

◆ target_get_osdata()

gdb::optional< gdb::char_vector > target_get_osdata ( const char * type)
extern

◆ target_get_raw_trace_data()

LONGEST target_get_raw_trace_data ( gdb_byte * buf,
ULONGEST offset,
LONGEST len )
extern

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

◆ target_get_section_table()

const target_section_table * target_get_section_table ( struct target_ops * target)
extern

◆ target_get_tailcall_unwinder()

const struct frame_unwind * target_get_tailcall_unwinder ( void )
extern

◆ target_get_tib_address()

bool target_get_tib_address ( ptid_t ptid,
CORE_ADDR * addr )
extern

◆ target_get_trace_state_variable_value()

bool target_get_trace_state_variable_value ( int tsv,
LONGEST * val )
extern

◆ target_get_trace_status()

int target_get_trace_status ( trace_status * ts)
extern

◆ target_get_tracepoint_status()

void target_get_tracepoint_status ( tracepoint * tp,
uploaded_tp * utp )
extern

◆ target_get_unwinder()

const struct frame_unwind * target_get_unwinder ( void )
extern

◆ target_goto_bookmark()

void target_goto_bookmark ( const gdb_byte * arg,
int from_tty )
extern

Definition at line 462 of file target.c.

References current_inferior(), target_ops::goto_bookmark(), and inferior::top_target().

Referenced by goto_bookmark_command().

◆ target_goto_record()

void target_goto_record ( ULONGEST insn)
extern

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

◆ target_goto_record_begin()

void target_goto_record_begin ( void )
extern

◆ target_goto_record_end()

void target_goto_record_end ( void )
extern

◆ target_has_execution()

bool target_has_execution ( inferior * inf = nullptr)
extern

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

◆ target_has_memory()

int target_has_memory ( )
extern

◆ target_has_pending_events()

bool target_has_pending_events ( )
extern

◆ target_has_registers()

int target_has_registers ( )
extern

◆ target_has_stack()

int target_has_stack ( )
extern

◆ target_have_steppable_watchpoint()

bool target_have_steppable_watchpoint ( )
extern

◆ target_info_proc()

int target_info_proc ( const char * args,
enum info_proc_what )

◆ target_insert_breakpoint()

int target_insert_breakpoint ( struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt )
extern

◆ target_insert_exec_catchpoint()

int target_insert_exec_catchpoint ( int pid)
extern

◆ target_insert_fork_catchpoint()

int target_insert_fork_catchpoint ( int pid)
extern

◆ target_insert_hw_breakpoint()

int target_insert_hw_breakpoint ( gdbarch * gdbarch,
bp_target_info * bp_tgt )
extern

◆ target_insert_mask_watchpoint()

int target_insert_mask_watchpoint ( CORE_ADDR addr,
CORE_ADDR mask,
enum target_hw_bp_type )
extern

◆ target_insert_vfork_catchpoint()

int target_insert_vfork_catchpoint ( int pid)
extern

◆ target_insert_watchpoint()

int target_insert_watchpoint ( CORE_ADDR addr,
int len,
target_hw_bp_type type,
expression * cond )
extern

◆ target_insn_history()

void target_insn_history ( int size,
gdb_disassembly_flags flags )
extern

◆ target_insn_history_from()

void target_insn_history_from ( ULONGEST from,
int size,
gdb_disassembly_flags flags )
extern

◆ target_insn_history_range()

void target_insn_history_range ( ULONGEST begin,
ULONGEST end,
gdb_disassembly_flags flags )
extern

◆ target_interrupt()

void target_interrupt ( )
extern

◆ target_is_async_p()

bool target_is_async_p ( )
extern

◆ target_is_non_stop_p()

bool target_is_non_stop_p ( )
extern

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

◆ target_kill()

void target_kill ( void )
extern

◆ target_load()

void target_load ( const char * arg,
int from_tty )
extern

◆ target_log_command()

void target_log_command ( const char * p)
extern

◆ target_make_corefile_notes()

gdb::unique_xmalloc_ptr< char > target_make_corefile_notes ( bfd * bfd,
int * size_p )
extern

◆ target_masked_watch_num_registers()

int target_masked_watch_num_registers ( CORE_ADDR addr,
CORE_ADDR mask )
extern

◆ target_memory_map()

std::vector< mem_region > target_memory_map ( void )

◆ target_options_to_string()

std::string target_options_to_string ( target_wait_flags target_options)
extern

◆ target_pass_ctrlc()

void target_pass_ctrlc ( void )
extern

◆ target_pass_signals()

void target_pass_signals ( gdb::array_view< const unsigned char > pass_signals)
extern

◆ target_pid_to_exec_file()

const char * target_pid_to_exec_file ( int pid)
extern

◆ target_pid_to_str()

std::string target_pid_to_str ( ptid_t ptid)
extern

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

◆ target_post_attach()

void target_post_attach ( int pid)
extern

Definition at line 232 of file target.c.

References current_inferior(), pid, target_ops::post_attach(), and inferior::top_target().

Referenced by setup_inferior().

◆ target_pre_inferior()

void target_pre_inferior ( int from_tty)
extern

◆ target_preopen()

void target_preopen ( int from_tty)
extern

◆ target_prepare_to_generate_core()

void target_prepare_to_generate_core ( void )
extern

◆ target_prepare_to_store()

void target_prepare_to_store ( regcache * regcache)
extern

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

◆ target_program_signals()

void target_program_signals ( gdb::array_view< const unsigned char > program_signals)
extern

◆ target_ranged_break_num_registers()

int target_ranged_break_num_registers ( void )
extern

◆ target_rcmd()

void target_rcmd ( const char * command,
struct ui_file * outbuf )
extern

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

◆ target_read()

LONGEST target_read ( struct target_ops * ops,
enum target_object object,
const char * annex,
gdb_byte * buf,
ULONGEST offset,
LONGEST len )
extern

◆ target_read_alloc()

gdb::optional< gdb::byte_vector > target_read_alloc ( struct target_ops * ops,
enum target_object object,
const char * annex )
extern

◆ target_read_btrace()

enum btrace_error target_read_btrace ( struct btrace_data * btrace,
struct btrace_target_info * btinfo,
enum btrace_read_type )
extern

Definition at line 4072 of file target.c.

References current_inferior(), target_ops::read_btrace(), and inferior::top_target().

Referenced by btrace_fetch().

◆ target_read_code()

int target_read_code ( CORE_ADDR memaddr,
gdb_byte * myaddr,
ssize_t len )
extern

◆ target_read_description()

const struct target_desc * target_read_description ( struct target_ops * target)
extern

Definition at line 2773 of file target.c.

References target_ops::read_description().

Referenced by target_find_description().

◆ target_read_raw_memory()

int target_read_raw_memory ( CORE_ADDR memaddr,
gdb_byte * myaddr,
ssize_t len )
extern

Definition at line 1816 of file target.c.

References current_inferior(), TARGET_OBJECT_RAW_MEMORY, and target_read().

Referenced by dcache_read_line().

◆ target_read_stack()

int target_read_stack ( CORE_ADDR memaddr,
gdb_byte * myaddr,
ssize_t len )
extern

Definition at line 1830 of file target.c.

References current_inferior(), TARGET_OBJECT_STACK_MEMORY, and target_read().

◆ target_read_stralloc()

gdb::optional< gdb::char_vector > target_read_stralloc ( struct target_ops * ops,
enum target_object object,
const char * annex )
extern

◆ target_record_is_replaying()

int target_record_is_replaying ( ptid_t ptid)
extern

◆ target_record_method()

enum record_method target_record_method ( ptid_t ptid)
extern

◆ target_record_stop_replaying()

void target_record_stop_replaying ( void )
extern

◆ target_record_will_replay()

int target_record_will_replay ( ptid_t ptid,
int dir )
extern

◆ target_region_ok_for_hw_watchpoint()

int target_region_ok_for_hw_watchpoint ( CORE_ADDR addr,
int len )
extern

◆ target_remove_breakpoint()

int target_remove_breakpoint ( struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt,
enum remove_bp_reason reason )
extern

◆ target_remove_exec_catchpoint()

int target_remove_exec_catchpoint ( int pid)
extern

◆ target_remove_fork_catchpoint()

int target_remove_fork_catchpoint ( int pid)
extern

◆ target_remove_hw_breakpoint()

int target_remove_hw_breakpoint ( gdbarch * gdbarch,
bp_target_info * bp_tgt )
extern

◆ target_remove_mask_watchpoint()

int target_remove_mask_watchpoint ( CORE_ADDR addr,
CORE_ADDR mask,
enum target_hw_bp_type )
extern

◆ target_remove_vfork_catchpoint()

int target_remove_vfork_catchpoint ( int pid)
extern

◆ target_remove_watchpoint()

int target_remove_watchpoint ( CORE_ADDR addr,
int len,
target_hw_bp_type type,
expression * cond )
extern

◆ target_require_runnable()

void target_require_runnable ( void )
extern

Definition at line 2822 of file target.c.

References current_inferior(), and process_stratum.

Referenced by kill_if_already_running().

◆ target_resume()

void target_resume ( ptid_t scope_ptid,
int step,
enum gdb_signal signal )
extern

◆ target_save_record()

void target_save_record ( const char * filename)
extern

Definition at line 4100 of file target.c.

References current_inferior(), target_ops::save_record(), and inferior::top_target().

Referenced by cmd_record_save().

◆ target_save_trace_data()

int target_save_trace_data ( const char * filename)
extern

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

◆ target_search_memory()

int target_search_memory ( CORE_ADDR start_addr,
ULONGEST search_space_len,
const gdb_byte * pattern,
ULONGEST pattern_len,
CORE_ADDR * found_addrp )
extern

◆ target_section_by_addr()

const struct target_section * target_section_by_addr ( struct target_ops * target,
CORE_ADDR addr )

◆ target_set_circular_trace_buffer()

void target_set_circular_trace_buffer ( int val)
extern

◆ target_set_disconnected_tracing()

void target_set_disconnected_tracing ( int val)
extern

◆ target_set_permissions()

void target_set_permissions ( )
extern

◆ target_set_syscall_catchpoint()

int target_set_syscall_catchpoint ( int pid,
bool needed,
int any_count,
gdb::array_view< const int > syscall_counts )
extern

◆ target_set_trace_buffer_size()

void target_set_trace_buffer_size ( LONGEST val)
extern

◆ target_set_trace_notes()

bool target_set_trace_notes ( const char * user,
const char * notes,
const char * stopnotes )
extern

◆ target_shortname()

const char * target_shortname ( )
extern

◆ target_static_tracepoint_marker_at()

bool target_static_tracepoint_marker_at ( CORE_ADDR addr,
static_tracepoint_marker * marker )
extern

◆ target_static_tracepoint_markers_by_strid()

std::vector< static_tracepoint_marker > target_static_tracepoint_markers_by_strid ( const char * marker_id)
extern

◆ target_stop()

void target_stop ( ptid_t ptid)
extern

◆ target_stop_recording()

void target_stop_recording ( void )
extern

◆ target_stopped_by_hw_breakpoint()

bool target_stopped_by_hw_breakpoint ( )
extern

◆ target_stopped_by_sw_breakpoint()

bool target_stopped_by_sw_breakpoint ( )
extern

◆ target_stopped_by_watchpoint()

bool target_stopped_by_watchpoint ( )
extern

◆ target_store_memtags()

bool target_store_memtags ( CORE_ADDR address,
size_t len,
const gdb::byte_vector & tags,
int type )
extern

◆ target_store_registers()

void target_store_registers ( struct regcache * regcache,
int regs )
extern

◆ target_supports_delete_record()

int target_supports_delete_record ( void )
extern

◆ target_supports_disable_randomization()

int target_supports_disable_randomization ( void )

◆ target_supports_dumpcore()

bool target_supports_dumpcore ( )
extern

Definition at line 274 of file target.c.

References current_inferior(), target_ops::supports_dumpcore(), and inferior::top_target().

Referenced by gcore_command().

◆ target_supports_enable_disable_tracepoint()

bool target_supports_enable_disable_tracepoint ( )
extern

◆ target_supports_evaluation_of_breakpoint_conditions()

bool target_supports_evaluation_of_breakpoint_conditions ( )
extern

◆ target_supports_memory_tagging()

bool target_supports_memory_tagging ( )
extern

◆ target_supports_stopped_by_hw_breakpoint()

bool target_supports_stopped_by_hw_breakpoint ( )
extern

◆ target_supports_stopped_by_sw_breakpoint()

bool target_supports_stopped_by_sw_breakpoint ( )
extern

◆ target_supports_string_tracing()

bool target_supports_string_tracing ( )
extern

◆ target_supports_terminal_ours()

bool target_supports_terminal_ours ( void )
extern

◆ target_teardown_btrace()

void target_teardown_btrace ( struct btrace_target_info * btinfo)
extern

Definition at line 4064 of file target.c.

References current_inferior(), target_ops::teardown_btrace(), and inferior::top_target().

Referenced by btrace_teardown().

◆ target_thread_address_space()

struct address_space * target_thread_address_space ( ptid_t ptid)

◆ target_thread_alive()

int target_thread_alive ( ptid_t ptid)
extern

◆ target_thread_architecture()

gdbarch * target_thread_architecture ( ptid_t ptid)
extern

◆ target_thread_events()

void target_thread_events ( int enable)
extern

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

◆ target_thread_handle_to_thread_info()

struct thread_info * target_thread_handle_to_thread_info ( const gdb_byte * thread_handle,
int handle_len,
struct inferior * inf )
extern

◆ target_thread_info_to_thread_handle()

gdb::array_view< const gdb_byte > target_thread_info_to_thread_handle ( struct thread_info * tip)
extern

Definition at line 2649 of file target.c.

References current_inferior(), and inferior::top_target().

Referenced by thpy_thread_handle().

◆ target_thread_name()

const char * target_thread_name ( struct thread_info * info)
extern

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

◆ target_trace_find()

int target_trace_find ( trace_find_type type,
int num,
CORE_ADDR addr1,
CORE_ADDR addr2,
int * tpp )
extern

◆ target_trace_init()

void target_trace_init ( )
extern

Definition at line 614 of file target.c.

References current_inferior(), inferior::top_target(), and target_ops::trace_init().

Referenced by start_tracing().

◆ target_trace_set_readonly_regions()

void target_trace_set_readonly_regions ( )
extern

◆ target_trace_start()

void target_trace_start ( )
extern

Definition at line 652 of file target.c.

References current_inferior(), inferior::top_target(), and target_ops::trace_start().

Referenced by start_tracing().

◆ target_trace_stop()

void target_trace_stop ( )
extern

Definition at line 676 of file target.c.

References current_inferior(), inferior::top_target(), and target_ops::trace_stop().

Referenced by stop_tracing().

◆ target_traceframe_info()

traceframe_info_up target_traceframe_info ( )
extern

Definition at line 791 of file target.c.

References current_inferior(), inferior::top_target(), and target_ops::traceframe_info().

Referenced by get_traceframe_info().

◆ target_translate_tls_address()

CORE_ADDR target_translate_tls_address ( struct objfile * objfile,
CORE_ADDR offset )
extern

◆ target_update_thread_list()

void target_update_thread_list ( void )
extern

◆ target_upload_trace_state_variables()

int target_upload_trace_state_variables ( uploaded_tsv ** utsvp)
extern

◆ target_upload_tracepoints()

int target_upload_tracepoints ( uploaded_tp ** utpp)
extern

Definition at line 705 of file target.c.

References current_inferior(), inferior::top_target(), and target_ops::upload_tracepoints().

Referenced by trace_save().

◆ target_use_agent()

bool target_use_agent ( bool use)
extern

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

◆ target_verify_memory()

int target_verify_memory ( const gdb_byte * data,
CORE_ADDR memaddr,
ULONGEST size )

◆ target_write()

LONGEST target_write ( struct target_ops * ops,
enum target_object object,
const char * annex,
const gdb_byte * buf,
ULONGEST offset,
LONGEST len )
extern

◆ target_write_memory_blocks()

int target_write_memory_blocks ( const std::vector< memory_write_request > & requests,
enum flash_preserve_mode preserve_flash_p,
void(*)(ULONGEST, void *) progress_cb )

◆ target_write_raw_memory()

int target_write_raw_memory ( CORE_ADDR memaddr,
const gdb_byte * myaddr,
ssize_t len )
extern

◆ target_write_with_progress()

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 )

◆ target_xfer_partial_ftype()

enum target_xfer_status target_xfer_partial_ftype ( 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 )

◆ target_xfer_status_to_string()

const char * target_xfer_status_to_string ( enum target_xfer_status status)
extern

Definition at line 1370 of file target.c.

References CASE, status, TARGET_XFER_E_IO, and TARGET_XFER_UNAVAILABLE.

Referenced by memory_error_message().

◆ update_target_permissions()

void update_target_permissions ( void )
extern

Variable Documentation

◆ may_insert_breakpoints

bool may_insert_breakpoints
extern

◆ may_insert_fast_tracepoints

bool may_insert_fast_tracepoints
extern

◆ may_insert_tracepoints

bool may_insert_tracepoints
extern

◆ may_stop

bool may_stop
extern

◆ may_write_memory

bool may_write_memory
extern

◆ may_write_registers

bool may_write_registers
extern

◆ remote_timeout

int remote_timeout
extern

◆ target_async_permitted

bool target_async_permitted
extern

◆ target_non_stop_enabled

enum auto_boolean target_non_stop_enabled
extern

◆ target_xfer_partial

target_xfer_partial_ftype target_xfer_partial
extern

◆ trust_readonly

bool trust_readonly
extern