|
GDB (xrefs)
|
#include "infrun.h"#include "breakpoint.h"#include "common/scoped_restore.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 "vec.h"#include "gdb_signals.h"#include "btrace.h"#include "record.h"#include "command.h"#include "disasm.h"#include "tracepoint.h"#include "break-common.h"Go to the source code of this file.
Classes | |
| struct | syscall |
| struct | memory_read_result |
| struct | target_ops |
| struct | memory_write_request |
| struct | target_section |
| struct | target_section_table |
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 | OPS_MAGIC 3840 |
| #define | target_shortname (current_target.to_shortname) |
| #define | target_longname (current_target.to_longname) |
| #define | target_attach_no_wait (current_target.to_attach_no_wait) |
| #define | target_post_attach(pid) (*current_target.to_post_attach) (¤t_target, pid) |
| #define | target_prepare_to_store(regcache) (*current_target.to_prepare_to_store) (¤t_target, regcache) |
| #define | target_supports_enable_disable_tracepoint() (*current_target.to_supports_enable_disable_tracepoint) (¤t_target) |
| #define | target_supports_string_tracing() (*current_target.to_supports_string_tracing) (¤t_target) |
| #define | target_supports_evaluation_of_breakpoint_conditions() (*current_target.to_supports_evaluation_of_breakpoint_conditions) (¤t_target) |
| #define | target_can_run_breakpoint_commands() (*current_target.to_can_run_breakpoint_commands) (¤t_target) |
| #define | target_files_info() (*current_target.to_files_info) (¤t_target) |
| #define | target_post_startup_inferior(ptid) (*current_target.to_post_startup_inferior) (¤t_target, ptid) |
| #define | target_insert_fork_catchpoint(pid) (*current_target.to_insert_fork_catchpoint) (¤t_target, pid) |
| #define | target_remove_fork_catchpoint(pid) (*current_target.to_remove_fork_catchpoint) (¤t_target, pid) |
| #define | target_insert_vfork_catchpoint(pid) (*current_target.to_insert_vfork_catchpoint) (¤t_target, pid) |
| #define | target_remove_vfork_catchpoint(pid) (*current_target.to_remove_vfork_catchpoint) (¤t_target, pid) |
| #define | target_insert_exec_catchpoint(pid) (*current_target.to_insert_exec_catchpoint) (¤t_target, pid) |
| #define | target_remove_exec_catchpoint(pid) (*current_target.to_remove_exec_catchpoint) (¤t_target, pid) |
| #define | target_set_syscall_catchpoint(pid, needed, any_count, syscall_counts) |
| #define | target_has_exited(pid, wait_status, exit_status) |
| #define | target_can_run(t) ((t)->to_can_run) (t) |
| #define | target_rcmd(command, outbuf) (*current_target.to_rcmd) (¤t_target, command, outbuf) |
| #define | target_has_all_memory target_has_all_memory_1 () |
| #define | target_has_memory target_has_memory_1 () |
| #define | target_has_stack target_has_stack_1 () |
| #define | target_has_registers target_has_registers_1 () |
| #define | target_has_execution target_has_execution_current () |
| #define | target_can_lock_scheduler (current_target.to_has_thread_control & tc_schedlock) |
| #define | target_can_async_p() (current_target.to_can_async_p (¤t_target)) |
| #define | target_is_async_p() (current_target.to_is_async_p (¤t_target)) |
| #define | target_execution_direction() (current_target.to_execution_direction (¤t_target)) |
| #define | target_extra_thread_info(TP) (current_target.to_extra_thread_info (¤t_target, TP)) |
| #define | target_pid_to_exec_file(pid) (current_target.to_pid_to_exec_file) (¤t_target, pid) |
| #define | target_thread_architecture(ptid) (current_target.to_thread_architecture (¤t_target, ptid)) |
| #define | target_find_memory_regions(FUNC, DATA) (current_target.to_find_memory_regions) (¤t_target, FUNC, DATA) |
| #define | target_make_corefile_notes(BFD, SIZE_P) (current_target.to_make_corefile_notes) (¤t_target, BFD, SIZE_P) |
| #define | target_get_bookmark(ARGS, FROM_TTY) (current_target.to_get_bookmark) (¤t_target, ARGS, FROM_TTY) |
| #define | target_goto_bookmark(ARG, FROM_TTY) (current_target.to_goto_bookmark) (¤t_target, ARG, FROM_TTY) |
| #define | target_stopped_by_watchpoint() ((*current_target.to_stopped_by_watchpoint) (¤t_target)) |
| #define | target_stopped_by_sw_breakpoint() ((*current_target.to_stopped_by_sw_breakpoint) (¤t_target)) |
| #define | target_supports_stopped_by_sw_breakpoint() ((*current_target.to_supports_stopped_by_sw_breakpoint) (¤t_target)) |
| #define | target_stopped_by_hw_breakpoint() ((*current_target.to_stopped_by_hw_breakpoint) (¤t_target)) |
| #define | target_supports_stopped_by_hw_breakpoint() ((*current_target.to_supports_stopped_by_hw_breakpoint) (¤t_target)) |
| #define | target_have_steppable_watchpoint (current_target.to_have_steppable_watchpoint) |
| #define | target_have_continuable_watchpoint (current_target.to_have_continuable_watchpoint) |
| #define | target_can_use_hardware_watchpoint(TYPE, CNT, OTHERTYPE) |
| #define | target_region_ok_for_hw_watchpoint(addr, len) |
| #define | target_can_do_single_step() (*current_target.to_can_do_single_step) (¤t_target) |
| #define | target_insert_watchpoint(addr, len, type, cond) |
| #define | target_remove_watchpoint(addr, len, type, cond) |
| #define | target_insert_hw_breakpoint(gdbarch, bp_tgt) |
| #define | target_remove_hw_breakpoint(gdbarch, bp_tgt) |
| #define | target_stopped_data_address(target, addr_p) (*(target)->to_stopped_data_address) (target, addr_p) |
| #define | target_watchpoint_addr_within_range(target, addr, start, length) (*(target)->to_watchpoint_addr_within_range) (target, addr, start, length) |
| #define | target_can_accel_watchpoint_condition(addr, len, type, cond) |
| #define | target_can_execute_reverse current_target.to_can_execute_reverse (¤t_target) |
| #define | target_get_ada_task_ptid(lwp, tid) (*current_target.to_get_ada_task_ptid) (¤t_target, lwp,tid) |
| #define | target_filesystem_is_local() current_target.to_filesystem_is_local (¤t_target) |
| #define | target_trace_init() (*current_target.to_trace_init) (¤t_target) |
| #define | target_download_tracepoint(t) (*current_target.to_download_tracepoint) (¤t_target, t) |
| #define | target_can_download_tracepoint() (*current_target.to_can_download_tracepoint) (¤t_target) |
| #define | target_download_trace_state_variable(tsv) (*current_target.to_download_trace_state_variable) (¤t_target, tsv) |
| #define | target_enable_tracepoint(loc) (*current_target.to_enable_tracepoint) (¤t_target, loc) |
| #define | target_disable_tracepoint(loc) (*current_target.to_disable_tracepoint) (¤t_target, loc) |
| #define | target_trace_start() (*current_target.to_trace_start) (¤t_target) |
| #define | target_trace_set_readonly_regions() (*current_target.to_trace_set_readonly_regions) (¤t_target) |
| #define | target_get_trace_status(ts) (*current_target.to_get_trace_status) (¤t_target, ts) |
| #define | target_get_tracepoint_status(tp, utp) (*current_target.to_get_tracepoint_status) (¤t_target, tp, utp) |
| #define | target_trace_stop() (*current_target.to_trace_stop) (¤t_target) |
| #define | target_trace_find(type, num, addr1, addr2, tpp) |
| #define | target_get_trace_state_variable_value(tsv, val) |
| #define | target_save_trace_data(filename) (*current_target.to_save_trace_data) (¤t_target, filename) |
| #define | target_upload_tracepoints(utpp) (*current_target.to_upload_tracepoints) (¤t_target, utpp) |
| #define | target_upload_trace_state_variables(utsvp) (*current_target.to_upload_trace_state_variables) (¤t_target, utsvp) |
| #define | target_get_raw_trace_data(buf, offset, len) |
| #define | target_get_min_fast_tracepoint_insn_len() (*current_target.to_get_min_fast_tracepoint_insn_len) (¤t_target) |
| #define | target_set_disconnected_tracing(val) (*current_target.to_set_disconnected_tracing) (¤t_target, val) |
| #define | target_set_circular_trace_buffer(val) (*current_target.to_set_circular_trace_buffer) (¤t_target, val) |
| #define | target_set_trace_buffer_size(val) (*current_target.to_set_trace_buffer_size) (¤t_target, val) |
| #define | target_set_trace_notes(user, notes, stopnotes) |
| #define | target_get_tib_address(ptid, addr) (*current_target.to_get_tib_address) (¤t_target, (ptid), (addr)) |
| #define | target_set_permissions() (*current_target.to_set_permissions) (¤t_target) |
| #define | target_static_tracepoint_marker_at(addr, marker) |
| #define | target_static_tracepoint_markers_by_strid(marker_id) |
| #define | target_traceframe_info() (*current_target.to_traceframe_info) (¤t_target) |
| #define | target_use_agent(use) (*current_target.to_use_agent) (¤t_target, use) |
| #define | target_can_use_agent() (*current_target.to_can_use_agent) (¤t_target) |
| #define | target_augmented_libraries_svr4_read() (*current_target.to_augmented_libraries_svr4_read) (¤t_target) |
| #define | target_log_command(p) (*current_target.to_log_command) (¤t_target, p) |
Typedefs | |
| typedef struct static_tracepoint_marker * | static_tracepoint_marker_p |
| typedef void | async_callback_ftype(enum inferior_event_type event_type, void *context) |
| typedef struct memory_write_request | memory_write_request_s |
Variables | |
| target_xfer_partial_ftype | target_xfer_partial |
| struct target_ops | current_target |
| int | target_async_permitted |
| enum auto_boolean | target_non_stop_enabled |
| int | remote_debug |
| int | baud_rate |
| int | serial_parity |
| int | remote_timeout |
| int | may_write_registers |
| int | may_write_memory |
| int | may_insert_breakpoints |
| int | may_insert_tracepoints |
| int | may_insert_fast_tracepoints |
| int | may_stop |
| #define OPS_MAGIC 3840 |
Definition at line 1270 of file target.h.
Referenced by bsd_kvm_add_target(), bsd_uthread_target(), inf_child_target(), init_aix_thread_ops(), init_core_ops(), init_dummy_target(), init_exec_ops(), init_gdbsim_ops(), init_ravenscar_thread_ops(), init_record_btrace_ops(), init_record_full_core_ops(), init_record_full_ops(), init_remote_ops(), init_sol_thread_ops(), init_spu_ops(), init_thread_db_ops(), init_tracefile_ops(), procfs_target(), push_target(), target_bfd_reopen(), and target_is_pushed().
| #define target_attach_no_wait (current_target.to_attach_no_wait) |
Definition at line 1307 of file target.h.
Referenced by attach_command().
| #define target_augmented_libraries_svr4_read | ( | ) | (*current_target.to_augmented_libraries_svr4_read) (¤t_target) |
Definition at line 2221 of file target.h.
Referenced by solist_update_incremental(), and svr4_current_sos_via_xfer_libraries().
| #define target_can_accel_watchpoint_condition | ( | addr, | |
| len, | |||
| type, | |||
| cond | |||
| ) |
Definition at line 2002 of file target.h.
Referenced by watchpoint_locations_match().
| #define target_can_async_p | ( | ) | (current_target.to_can_async_p (¤t_target)) |
Definition at line 1778 of file target.h.
Referenced by default_execution_direction(), extended_remote_attach(), extended_remote_create_inferior(), fetch_inferior_event(), handle_no_resumed(), inferior_event_handler(), interrupt_command(), linux_nat_attach(), linux_nat_resume(), mi_async_p(), proceed(), record_btrace_resume(), record_full_core_resume(), record_full_resume(), remote_resume(), remote_start_remote(), and resume_1().
| #define target_can_do_single_step | ( | ) | (*current_target.to_can_do_single_step) (¤t_target) |
Definition at line 1930 of file target.h.
Referenced by arm_linux_software_single_step().
| #define target_can_download_tracepoint | ( | ) | (*current_target.to_can_download_tracepoint) (¤t_target) |
Definition at line 2134 of file target.h.
Referenced by download_tracepoint_locations().
| #define target_can_execute_reverse current_target.to_can_execute_reverse (¤t_target) |
Definition at line 2013 of file target.h.
Referenced by default_execution_direction(), exec_reverse_continue(), exec_reverse_once(), mi_cmd_list_target_features(), and set_exec_direction_func().
| #define target_can_lock_scheduler (current_target.to_has_thread_control & tc_schedlock) |
Definition at line 1771 of file target.h.
Referenced by set_schedlock_func().
| #define target_can_run | ( | t | ) | ((t)->to_can_run) (t) |
Definition at line 1645 of file target.h.
Referenced by check_for_thread_db(), check_pid_namespace_match(), find_default_run_target(), and thread_db_load().
| #define target_can_run_breakpoint_commands | ( | ) | (*current_target.to_can_run_breakpoint_commands) (¤t_target) |
Definition at line 1434 of file target.h.
Referenced by build_target_command_list(), dprintf_breakpoint_hit(), and update_dprintf_command_list().
| #define target_can_use_agent | ( | ) | (*current_target.to_can_use_agent) (¤t_target) |
| #define target_can_use_hardware_watchpoint | ( | TYPE, | |
| CNT, | |||
| OTHERTYPE | |||
| ) |
Definition at line 1918 of file target.h.
Referenced by break_range_command(), enable_breakpoint_disp(), init_breakpoint_sal(), and update_watchpoint().
| #define target_disable_tracepoint | ( | loc | ) | (*current_target.to_disable_tracepoint) (¤t_target, loc) |
Definition at line 2143 of file target.h.
Referenced by disable_breakpoint(), and enable_disable_bp_num_loc().
| #define target_download_trace_state_variable | ( | tsv | ) | (*current_target.to_download_trace_state_variable) (¤t_target, tsv) |
Definition at line 2137 of file target.h.
Referenced by start_tracing().
| #define target_download_tracepoint | ( | t | ) | (*current_target.to_download_tracepoint) (¤t_target, t) |
Definition at line 2131 of file target.h.
Referenced by download_tracepoint_locations(), and start_tracing().
| #define target_enable_tracepoint | ( | loc | ) | (*current_target.to_enable_tracepoint) (¤t_target, loc) |
Definition at line 2140 of file target.h.
Referenced by enable_breakpoint_disp().
| #define target_execution_direction | ( | ) | (current_target.to_execution_direction (¤t_target)) |
Definition at line 1798 of file target.h.
Referenced by fetch_inferior_event().
| #define target_extra_thread_info | ( | TP | ) | (current_target.to_extra_thread_info (¤t_target, TP)) |
Definition at line 1813 of file target.h.
Referenced by print_thread_info_1(), and thread_find_command().
| #define target_files_info | ( | ) | (*current_target.to_files_info) (¤t_target) |
Definition at line 1512 of file target.h.
Referenced by info_program_command().
| #define target_filesystem_is_local | ( | ) | current_target.to_filesystem_is_local (¤t_target) |
Definition at line 2040 of file target.h.
Referenced by exec_file_attach(), gdb_bfd_open(), and solib_find_1().
| #define target_find_memory_regions | ( | FUNC, | |
| DATA | |||
| ) | (current_target.to_find_memory_regions) (¤t_target, FUNC, DATA) |
Definition at line 1854 of file target.h.
Referenced by gcore_memory_sections().
| #define target_get_ada_task_ptid | ( | lwp, | |
| tid | |||
| ) | (*current_target.to_get_ada_task_ptid) (¤t_target, lwp,tid) |
Definition at line 2018 of file target.h.
Referenced by ptid_from_atcb_common().
| #define target_get_bookmark | ( | ARGS, | |
| FROM_TTY | |||
| ) | (current_target.to_get_bookmark) (¤t_target, ARGS, FROM_TTY) |
Definition at line 1865 of file target.h.
Referenced by save_bookmark_command().
| #define target_get_min_fast_tracepoint_insn_len | ( | ) | (*current_target.to_get_min_fast_tracepoint_insn_len) (¤t_target) |
Definition at line 2182 of file target.h.
Referenced by i386_fast_tracepoint_valid_at().
| #define target_get_raw_trace_data | ( | buf, | |
| offset, | |||
| len | |||
| ) |
Definition at line 2178 of file target.h.
Referenced by trace_save().
| #define target_get_tib_address | ( | ptid, | |
| addr | |||
| ) | (*current_target.to_get_tib_address) (¤t_target, (ptid), (addr)) |
Definition at line 2198 of file target.h.
Referenced by display_one_tib(), and tlb_value_read().
| #define target_get_trace_state_variable_value | ( | tsv, | |
| val | |||
| ) |
Definition at line 2165 of file target.h.
Referenced by mi_cmd_trace_frame_collected(), tvariables_info_1(), and value_of_internalvar().
| #define target_get_trace_status | ( | ts | ) | (*current_target.to_get_trace_status) (¤t_target, ts) |
Definition at line 2152 of file target.h.
Referenced by query_if_trace_running(), trace_save(), trace_status_mi(), and tstatus_command().
| #define target_get_tracepoint_status | ( | tp, | |
| utp | |||
| ) | (*current_target.to_get_tracepoint_status) (¤t_target, tp, utp) |
Definition at line 2155 of file target.h.
Referenced by trace_save(), and tstatus_command().
| #define target_goto_bookmark | ( | ARG, | |
| FROM_TTY | |||
| ) | (current_target.to_goto_bookmark) (¤t_target, ARG, FROM_TTY) |
Definition at line 1868 of file target.h.
Referenced by goto_bookmark_command().
| #define target_has_all_memory target_has_all_memory_1 () |
| #define target_has_execution target_has_execution_current () |
Definition at line 1756 of file target.h.
Referenced by add_thread_db_info(), adi_assign_command(), adi_examine_command(), attach_command(), bpstat_do_actions(), breakpoints_should_be_inserted_now(), call_function_by_hand_dummy(), checkpoint_command(), compile_to_object(), derive_heap_segment(), dispose_inferior(), enable_break(), evaluate_subexp(), exec_file_command(), find_function_in_inferior(), for_each_just_stopped_thread(), gcore_command(), inferior_event_handler(), info_program_command(), kill_if_already_running(), kill_or_detach(), linux_info_proc(), linux_vsyscall_range_raw(), lookup_child_selector(), lookup_objc_class(), maybe_remove_breakpoints(), normal_stop(), record_btrace_open(), record_full_open_1(), record_thread(), reload_shared_libraries(), remote_check_symbols(), remote_detach_1(), remote_get_min_fast_tracepoint_insn_len(), remote_read_description(), remote_start_remote(), remote_verify_memory(), remote_xfer_partial(), restore_command(), restore_infcall_suspend_state(), rs6000_xfer_shared_libraries(), score7_fetch_inst(), set_non_stop(), set_observer_mode(), set_target_permissions(), spu_skip_standalone_loader(), svr4_solib_create_inferior_hook(), thread_db_find_new_threads_silently(), try_thread_db_load_1(), update_solib_list(), update_watchpoint(), value_allocate_space_in_inferior(), and value_nsstring().
| #define target_has_exited | ( | pid, | |
| wait_status, | |||
| exit_status | |||
| ) |
| #define target_has_memory target_has_memory_1 () |
Definition at line 1729 of file target.h.
Referenced by get_current_frame(), has_stack_frames(), scoped_restore_current_thread::scoped_restore_current_thread(), tui_show_registers(), and scoped_restore_current_thread::~scoped_restore_current_thread().
| #define target_has_registers target_has_registers_1 () |
Definition at line 1740 of file target.h.
Referenced by arm_pc_is_thumb(), bpfinishpy_detect_out_scope_cb(), current_me_module(), current_options(), default_read_var_value(), 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(), regcache_print(), registers_info(), scoped_restore_current_thread::scoped_restore_current_thread(), thread_db_load(), tui_get_register(), tui_show_registers(), and scoped_restore_current_thread::~scoped_restore_current_thread().
| #define target_has_stack target_has_stack_1 () |
Definition at line 1735 of file target.h.
Referenced by ada_build_task_list(), backtrace_command_1(), derive_stack_segment(), get_current_frame(), has_stack_frames(), info_auxv_command(), kill_command(), restore_infcall_control_state(), scoped_restore_current_thread::scoped_restore_current_thread(), siginfo_make_value(), thread_command(), tlb_make_value(), tui_show_registers(), and scoped_restore_current_thread::~scoped_restore_current_thread().
| #define target_have_continuable_watchpoint (current_target.to_have_continuable_watchpoint) |
| #define target_have_steppable_watchpoint (current_target.to_have_steppable_watchpoint) |
Definition at line 1896 of file target.h.
Referenced by displaced_step_fixup(), handle_signal_stop(), procfs_insert_watchpoint(), and thread_still_needs_step_over().
| #define target_insert_exec_catchpoint | ( | pid | ) | (*current_target.to_insert_exec_catchpoint) (¤t_target, pid) |
Definition at line 1602 of file target.h.
Referenced by insert_catch_exec().
| #define target_insert_fork_catchpoint | ( | pid | ) | (*current_target.to_insert_fork_catchpoint) (¤t_target, pid) |
Definition at line 1570 of file target.h.
Referenced by insert_catch_fork().
| #define target_insert_hw_breakpoint | ( | gdbarch, | |
| bp_tgt | |||
| ) |
Definition at line 1968 of file target.h.
Referenced by bkpt_insert_location().
| #define target_insert_vfork_catchpoint | ( | pid | ) | (*current_target.to_insert_vfork_catchpoint) (¤t_target, pid) |
Definition at line 1576 of file target.h.
Referenced by insert_catch_vfork().
| #define target_insert_watchpoint | ( | addr, | |
| len, | |||
| type, | |||
| cond | |||
| ) |
Definition at line 1939 of file target.h.
Referenced by insert_watchpoint().
| #define target_is_async_p | ( | ) | (current_target.to_is_async_p (¤t_target)) |
Definition at line 1781 of file target.h.
Referenced by attach_command(), do_target_wait(), gdb_readline_wrapper(), linux_child_follow_fork(), linux_nat_wait(), prepare_to_wait(), putpkt_binary(), record_btrace_wait(), and remote_wait().
| #define target_log_command | ( | p | ) | (*current_target.to_log_command) (¤t_target, p) |
Definition at line 2226 of file target.h.
Referenced by execute_command(), and mi_execute_command().
| #define target_longname (current_target.to_longname) |
Definition at line 1280 of file target.h.
Referenced by kill_command().
| #define target_make_corefile_notes | ( | BFD, | |
| SIZE_P | |||
| ) | (current_target.to_make_corefile_notes) (¤t_target, BFD, SIZE_P) |
Definition at line 1861 of file target.h.
Referenced by write_gcore_file_1().
| #define target_pid_to_exec_file | ( | pid | ) | (current_target.to_pid_to_exec_file) (¤t_target, pid) |
Definition at line 1839 of file target.h.
Referenced by exec_file_locate_attach().
| #define target_post_attach | ( | pid | ) | (*current_target.to_post_attach) (¤t_target, pid) |
Definition at line 1315 of file target.h.
Referenced by linux_handle_extended_wait(), and setup_inferior().
| #define target_post_startup_inferior | ( | ptid | ) | (*current_target.to_post_startup_inferior) (¤t_target, ptid) |
Definition at line 1562 of file target.h.
Referenced by inf_ptrace_create_inferior().
| #define target_prepare_to_store | ( | regcache | ) | (*current_target.to_prepare_to_store) (¤t_target, regcache) |
Definition at line 1398 of file target.h.
Referenced by regcache::raw_write().
| #define target_rcmd | ( | command, | |
| outbuf | |||
| ) | (*current_target.to_rcmd) (¤t_target, command, outbuf) |
Definition at line 1715 of file target.h.
Referenced by do_monitor_command().
| #define target_region_ok_for_hw_watchpoint | ( | addr, | |
| len | |||
| ) |
Definition at line 1925 of file target.h.
Referenced by can_use_hardware_watchpoint(), and resources_needed_watchpoint().
| #define target_remove_exec_catchpoint | ( | pid | ) | (*current_target.to_remove_exec_catchpoint) (¤t_target, pid) |
Definition at line 1605 of file target.h.
Referenced by remove_catch_exec().
| #define target_remove_fork_catchpoint | ( | pid | ) | (*current_target.to_remove_fork_catchpoint) (¤t_target, pid) |
Definition at line 1573 of file target.h.
Referenced by remove_catch_fork().
| #define target_remove_hw_breakpoint | ( | gdbarch, | |
| bp_tgt | |||
| ) |
Definition at line 1972 of file target.h.
Referenced by bkpt_remove_location(), and remove_breakpoint_1().
| #define target_remove_vfork_catchpoint | ( | pid | ) | (*current_target.to_remove_vfork_catchpoint) (¤t_target, pid) |
Definition at line 1579 of file target.h.
Referenced by remove_catch_vfork().
| #define target_remove_watchpoint | ( | addr, | |
| len, | |||
| type, | |||
| cond | |||
| ) |
Definition at line 1943 of file target.h.
Referenced by remove_watchpoint().
| #define target_save_trace_data | ( | filename | ) | (*current_target.to_save_trace_data) (¤t_target, filename) |
Definition at line 2169 of file target.h.
Referenced by tfile_target_save().
| #define target_set_circular_trace_buffer | ( | val | ) | (*current_target.to_set_circular_trace_buffer) (¤t_target, val) |
Definition at line 2188 of file target.h.
Referenced by set_circular_trace_buffer(), and start_tracing().
| #define target_set_disconnected_tracing | ( | val | ) | (*current_target.to_set_disconnected_tracing) (¤t_target, val) |
Definition at line 2185 of file target.h.
Referenced by set_disconnected_tracing(), and start_tracing().
| #define target_set_permissions | ( | ) | (*current_target.to_set_permissions) (¤t_target) |
| #define target_set_syscall_catchpoint | ( | pid, | |
| needed, | |||
| any_count, | |||
| syscall_counts | |||
| ) |
| #define target_set_trace_buffer_size | ( | val | ) | (*current_target.to_set_trace_buffer_size) (¤t_target, val) |
Definition at line 2191 of file target.h.
Referenced by set_trace_buffer_size(), and start_tracing().
| #define target_set_trace_notes | ( | user, | |
| notes, | |||
| stopnotes | |||
| ) |
Definition at line 2194 of file target.h.
Referenced by set_trace_notes(), set_trace_stop_notes(), set_trace_user(), start_tracing(), and stop_tracing().
| #define target_shortname (current_target.to_shortname) |
Definition at line 1279 of file target.h.
Referenced by bfin_sw_breakpoint_from_kind(), exec_reverse_continue(), exec_reverse_once(), gdbsim_detach(), gdbsim_files_info(), set_schedlock_func(), sh_sw_breakpoint_from_kind(), and tui_make_status_line().
| #define target_static_tracepoint_marker_at | ( | addr, | |
| marker | |||
| ) |
Definition at line 2204 of file target.h.
Referenced by init_breakpoint_sal(), remote_download_tracepoint(), and update_static_tracepoint().
| #define target_static_tracepoint_markers_by_strid | ( | marker_id | ) |
Definition at line 2208 of file target.h.
Referenced by decode_static_tracepoint_spec(), info_static_tracepoint_markers_command(), and update_static_tracepoint().
| #define target_stopped_by_hw_breakpoint | ( | ) | ((*current_target.to_stopped_by_hw_breakpoint) (¤t_target)) |
Definition at line 1888 of file target.h.
Referenced by handle_signal_stop().
| #define target_stopped_by_sw_breakpoint | ( | ) | ((*current_target.to_stopped_by_sw_breakpoint) (¤t_target)) |
Definition at line 1882 of file target.h.
Referenced by handle_signal_stop().
| #define target_stopped_by_watchpoint | ( | ) | ((*current_target.to_stopped_by_watchpoint) (¤t_target)) |
Definition at line 1876 of file target.h.
Referenced by displaced_step_fixup(), handle_signal_stop(), record_full_wait_1(), and watchpoints_triggered().
| #define target_stopped_data_address | ( | target, | |
| addr_p | |||
| ) | (*(target)->to_stopped_data_address) (target, addr_p) |
Definition at line 1984 of file target.h.
Referenced by handle_signal_stop(), and watchpoints_triggered().
| #define target_supports_enable_disable_tracepoint | ( | ) | (*current_target.to_supports_enable_disable_tracepoint) (¤t_target) |
Definition at line 1419 of file target.h.
Referenced by disable_breakpoint(), enable_breakpoint_disp(), enable_disable_bp_num_loc(), and start_tracing().
| #define target_supports_evaluation_of_breakpoint_conditions | ( | ) | (*current_target.to_supports_evaluation_of_breakpoint_conditions) (¤t_target) |
Definition at line 1428 of file target.h.
Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), build_target_condition_list(), force_breakpoint_reinsertion(), mark_breakpoint_location_modified(), mark_breakpoint_modified(), set_condition_evaluation_mode(), and translate_condition_evaluation_mode().
| #define target_supports_stopped_by_hw_breakpoint | ( | ) | ((*current_target.to_supports_stopped_by_hw_breakpoint) (¤t_target)) |
Definition at line 1891 of file target.h.
Referenced by bpstat_stop_status(), need_moribund_for_location_type(), and save_waitstatus().
| #define target_supports_stopped_by_sw_breakpoint | ( | ) | ((*current_target.to_supports_stopped_by_sw_breakpoint) (¤t_target)) |
Definition at line 1885 of file target.h.
Referenced by adjust_pc_after_break(), bpstat_stop_status(), do_target_wait(), need_moribund_for_location_type(), and save_waitstatus().
| #define target_supports_string_tracing | ( | ) | (*current_target.to_supports_string_tracing) (¤t_target) |
Definition at line 1422 of file target.h.
Referenced by decode_agent_options().
| #define target_thread_architecture | ( | ptid | ) | (current_target.to_thread_architecture (¤t_target, ptid)) |
Definition at line 1844 of file target.h.
Referenced by get_thread_regcache(), linux_child_follow_fork(), linux_handle_syscall_trap(), record_full_resume(), and record_full_wait_1().
| #define target_trace_find | ( | type, | |
| num, | |||
| addr1, | |||
| addr2, | |||
| tpp | |||
| ) |
Definition at line 2161 of file target.h.
Referenced by set_current_traceframe(), set_remote_traceframe(), and tfind_1().
| #define target_trace_init | ( | ) | (*current_target.to_trace_init) (¤t_target) |
Definition at line 2128 of file target.h.
Referenced by start_tracing().
| #define target_trace_set_readonly_regions | ( | ) | (*current_target.to_trace_set_readonly_regions) (¤t_target) |
Definition at line 2149 of file target.h.
Referenced by start_tracing().
| #define target_trace_start | ( | ) | (*current_target.to_trace_start) (¤t_target) |
Definition at line 2146 of file target.h.
Referenced by start_tracing().
| #define target_trace_stop | ( | ) | (*current_target.to_trace_stop) (¤t_target) |
Definition at line 2158 of file target.h.
Referenced by stop_tracing().
| #define target_traceframe_info | ( | ) | (*current_target.to_traceframe_info) (¤t_target) |
Definition at line 2212 of file target.h.
Referenced by get_traceframe_info().
| #define target_upload_trace_state_variables | ( | utsvp | ) | (*current_target.to_upload_trace_state_variables) (¤t_target, utsvp) |
Definition at line 2175 of file target.h.
Referenced by trace_save().
| #define target_upload_tracepoints | ( | utpp | ) | (*current_target.to_upload_tracepoints) (¤t_target, utpp) |
Definition at line 2172 of file target.h.
Referenced by trace_save().
| #define target_use_agent | ( | use | ) | (*current_target.to_use_agent) (¤t_target, use) |
Definition at line 2215 of file target.h.
Referenced by set_can_use_agent().
| #define target_watchpoint_addr_within_range | ( | target, | |
| addr, | |||
| start, | |||
| length | |||
| ) | (*(target)->to_watchpoint_addr_within_range) (target, addr, start, length) |
Definition at line 1989 of file target.h.
Referenced by watchpoints_triggered().
| typedef void async_callback_ftype(enum inferior_event_type event_type, void *context) |
| typedef struct memory_write_request memory_write_request_s |
| typedef struct static_tracepoint_marker* static_tracepoint_marker_p |
| enum flash_preserve_mode |
| enum inferior_event_type |
| enum strata |
| enum target_object |
| enum target_xfer_status |
| void add_deprecated_target_alias | ( | struct target_ops * | t, |
| const char * | alias | ||
| ) |
Definition at line 403 of file target.c.
References add_cmd(), alias, deprecate_cmd(), no_class, open_target(), set_cmd_context(), set_cmd_sfunc(), target_ops::to_doc, target_ops::to_shortname, and xstrprintf().
Referenced by _initialize_record_full().
| void add_target | ( | struct target_ops * | ) |
Definition at line 395 of file target.c.
References add_target_with_completer().
Referenced by _initialize_alphabsd_nat(), _initialize_amd64_sol2_nat(), _initialize_amd64nbsd_nat(), _initialize_arm_netbsd_nat(), _initialize_darwin_inferior(), _initialize_go32_nat(), _initialize_hppanbsd_nat(), _initialize_i386gnu_nat(), _initialize_i386nbsd_nat(), _initialize_m68kbsd_nat(), _initialize_m88kbsd_nat(), _initialize_mipsnbsd_nat(), _initialize_ppcnbsd_nat(), _initialize_record_btrace(), _initialize_record_full(), _initialize_remote(), _initialize_remote_sim(), _initialize_rs6000_nat(), _initialize_shnbsd_nat(), _initialize_sparc64nbsd_nat(), _initialize_sparc_sol2_nat(), _initialize_sparcnbsd_nat(), _initialize_spu_nat(), _initialize_vaxbsd_nat(), _initialize_windows_nat(), bsd_kvm_add_target(), fbsd_nat_add_target(), init_procfs_targets(), linux_nat_add_target(), and obsd_add_target().
| void add_target_with_completer | ( | struct target_ops * | t, |
| completer_ftype * | completer | ||
| ) |
Definition at line 368 of file target.c.
References _, add_cmd(), add_prefix_cmd(), class_run, cmdlist, complete_target_initialization(), cmd_list_element::completer, no_class, open_target(), set_cmd_completer(), set_cmd_context(), set_cmd_sfunc(), target_command(), target_ops::to_doc, target_ops::to_shortname, and VEC_safe_push.
Referenced by _initialize_corelow(), _initialize_ctf(), _initialize_exec(), _initialize_tracefile_tfile(), and add_target().
| void complete_target_initialization | ( | struct target_ops * | t | ) |
Definition at line 317 of file target.c.
References gdb_assert, install_delegators(), return_zero(), return_zero_has_execution(), target_ops::to_can_async_p, target_ops::to_can_run, target_ops::to_has_all_memory, target_ops::to_has_execution, target_ops::to_has_memory, target_ops::to_has_registers, target_ops::to_has_stack, and target_ops::to_supports_non_stop.
Referenced by _initialize_aix_thread(), _initialize_bsd_uthread(), _initialize_ravenscar(), _initialize_sol_thread(), _initialize_spu_multiarch(), add_target_with_completer(), and init_thread_db_ops().
| DEF_VEC_O | ( | memory_write_request_s | ) |
| DEF_VEC_P | ( | static_tracepoint_marker_p | ) |
| int default_child_has_all_memory | ( | struct target_ops * | ops | ) |
Definition at line 196 of file target.c.
References inferior_ptid, null_ptid, and ptid_equal().
Referenced by inf_child_target(), init_ravenscar_thread_ops(), and init_remote_ops().
| int default_child_has_execution | ( | struct target_ops * | ops, |
| ptid_t | the_ptid | ||
| ) |
Definition at line 236 of file target.c.
References null_ptid, and ptid_equal().
Referenced by inf_child_target(), init_gdbsim_ops(), init_ravenscar_thread_ops(), and init_remote_ops().
| int default_child_has_memory | ( | struct target_ops * | ops | ) |
Definition at line 206 of file target.c.
References inferior_ptid, null_ptid, and ptid_equal().
Referenced by inf_child_target(), init_ravenscar_thread_ops(), and init_remote_ops().
| int default_child_has_registers | ( | struct target_ops * | ops | ) |
Definition at line 226 of file target.c.
References inferior_ptid, null_ptid, and ptid_equal().
Referenced by inf_child_target(), init_gdbsim_ops(), init_ravenscar_thread_ops(), and init_remote_ops().
| int default_child_has_stack | ( | struct target_ops * | ops | ) |
Definition at line 216 of file target.c.
References inferior_ptid, null_ptid, and ptid_equal().
Referenced by inf_child_target(), init_gdbsim_ops(), init_ravenscar_thread_ops(), and init_remote_ops().
| int default_memory_insert_breakpoint | ( | struct gdbarch * | , |
| struct bp_target_info * | |||
| ) |
Definition at line 37 of file mem-break.c.
References bp, gdbarch_sw_breakpoint_from_kind(), bp_target_info::kind, bp_target_info::placed_address, bp_target_info::shadow_contents, bp_target_info::shadow_len, target_read_memory(), and target_write_raw_memory().
Referenced by gdbarch_alloc().
| int default_memory_remove_breakpoint | ( | struct gdbarch * | , |
| struct bp_target_info * | |||
| ) |
Definition at line 74 of file mem-break.c.
References gdbarch_sw_breakpoint_from_kind(), bp_target_info::kind, bp_target_info::placed_address, bp_target_info::shadow_contents, and target_write_raw_memory().
Referenced by BP_MANIPULATION(), and gdbarch_alloc().
| void default_target_pass_ctrlc | ( | struct target_ops * | ops | ) |
Definition at line 3350 of file target.c.
References inferior_ptid, and target_interrupt().
Referenced by install_dummy_methods().
| ptid_t default_target_wait | ( | struct target_ops * | ops, |
| ptid_t | ptid, | ||
| struct target_waitstatus * | status, | ||
| int | options | ||
| ) |
Definition at line 2185 of file target.c.
References minus_one_ptid, status, and TARGET_WAITKIND_IGNORE.
Referenced by install_dummy_methods().
| struct target_ops* find_attach_target | ( | void | ) |
Definition at line 2546 of file target.c.
References target_ops::beneath, current_target, find_default_run_target(), and target_ops::to_attach.
Referenced by attach_command().
| struct target_ops* find_run_target | ( | void | ) |
Definition at line 2567 of file target.c.
References target_ops::beneath, current_target, find_default_run_target(), and target_ops::to_create_inferior.
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 3161 of file target.c.
References target_ops::beneath, current_target, and target_ops::to_stratum.
Referenced by find_record_target(), remote_file_delete(), remote_file_get(), remote_file_put(), and remote_hostio_close_cleanup().
| struct target_ops* find_target_beneath | ( | struct target_ops * | ) |
Definition at line 3153 of file target.c.
References target_ops::beneath.
Referenced by aix_thread_detach(), aix_thread_fetch_registers(), aix_thread_mourn_inferior(), aix_thread_pid_to_str(), aix_thread_resume(), aix_thread_store_registers(), aix_thread_thread_alive(), aix_thread_wait(), aix_thread_xfer_partial(), bsd_uthread_fetch_registers(), bsd_uthread_mourn_inferior(), bsd_uthread_resume(), bsd_uthread_store_registers(), bsd_uthread_thread_alive(), bsd_uthread_wait(), ravenscar_core_of_thread(), ravenscar_fetch_registers(), ravenscar_mourn_inferior(), ravenscar_prepare_to_store(), ravenscar_resume(), ravenscar_stopped_by_hw_breakpoint(), ravenscar_stopped_by_sw_breakpoint(), ravenscar_stopped_by_watchpoint(), ravenscar_stopped_data_address(), ravenscar_store_registers(), ravenscar_wait(), sol_thread_alive(), sol_thread_detach(), sol_thread_fetch_registers(), sol_thread_mourn_inferior(), sol_thread_resume(), sol_thread_store_registers(), sol_thread_wait(), sol_thread_xfer_partial(), sol_update_thread_list(), spu_fetch_registers(), spu_mourn_inferior(), spu_region_ok_for_hw_watchpoint(), spu_search_memory(), spu_store_registers(), spu_thread_architecture(), spu_xfer_partial(), thread_db_detach(), thread_db_get_thread_local_address(), thread_db_mourn_inferior(), thread_db_pid_to_str(), thread_db_resume(), and thread_db_wait().
| void flash_erase_command | ( | const char * | cmd, |
| int | from_tty | ||
| ) |
Definition at line 3808 of file target.c.
References _, current_uiout, hex_string(), arm-linux::m, MEM_FLASH, paddress(), target_flash_done(), target_flash_erase(), target_gdbarch(), and target_memory_map().
Referenced by initialize_targets(), and mi_cmd_target_flash_erase().
| void get_target_memory | ( | struct target_ops * | ops, |
| CORE_ADDR | addr, | ||
| gdb_byte * | buf, | ||
| LONGEST | len | ||
| ) |
Definition at line 1961 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 1974 of file target.c.
References extract_unsigned_integer(), gdb_assert, and get_target_memory().
Referenced by frv_convert_from_func_ptr_addr().
| void initialize_targets | ( | void | ) |
Definition at line 4070 of file target.c.
References _, add_cmd(), add_com(), add_info(), add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_zuinteger_cmd(), auto_connect_native_target, class_maintenance, class_obscure, class_support, do_monitor_command(), flash_erase_command(), info_target_command(), init_dummy_target(), maint_set_target_async_command(), maint_set_target_non_stop_command(), maint_show_target_async_command(), maint_show_target_non_stop_command(), maintenance_print_target_stack(), maintenance_set_cmdlist, maintenance_show_cmdlist, maintenanceprintlist, may_insert_breakpoints_1, may_insert_fast_tracepoints_1, may_insert_tracepoints_1, may_stop_1, may_write_memory_1, may_write_registers_1, no_class, push_target(), set_target_permissions(), set_write_memory_permission(), setdebuglist, setlist, show_auto_connect_native_target(), show_targetdebug(), show_trust_readonly(), showdebuglist, showlist, targ_desc, target_async_permitted_1, and target_non_stop_enabled_1.
Referenced by gdb_init().
| scoped_restore_tmpl<int> make_scoped_defer_target_commit_resume | ( | ) |
Definition at line 2245 of file target.c.
References defer_target_commit_resume, and make_scoped_restore().
Referenced by proceed().
| scoped_restore_tmpl<int> make_scoped_restore_show_memory_breakpoints | ( | int | show | ) |
Definition at line 1250 of file target.c.
References make_scoped_restore().
Referenced by ia64_breakpoint_from_pc(), ia64_memory_insert_breakpoint(), ia64_memory_remove_breakpoint(), memory_validate_breakpoint(), ppc_linux_memory_remove_breakpoint(), and program_breakpoint_here_p().
| int memory_insert_breakpoint | ( | struct target_ops * | , |
| struct gdbarch * | , | ||
| struct bp_target_info * | |||
| ) |
Definition at line 87 of file mem-break.c.
References gdbarch_memory_insert_breakpoint().
Referenced by inf_child_target(), init_gdbsim_ops(), install_dummy_methods(), remote_insert_breakpoint(), and set_gdbarch_memory_insert_breakpoint().
| int memory_remove_breakpoint | ( | struct target_ops * | , |
| struct gdbarch * | , | ||
| struct bp_target_info * | , | ||
| enum | remove_bp_reason | ||
| ) |
Definition at line 94 of file mem-break.c.
References gdbarch_memory_remove_breakpoint().
Referenced by inf_child_target(), init_gdbsim_ops(), install_dummy_methods(), remote_remove_breakpoint(), and set_gdbarch_memory_remove_breakpoint().
| int memory_validate_breakpoint | ( | struct gdbarch * | gdbarch, |
| struct bp_target_info * | bp_tgt | ||
| ) |
Definition at line 102 of file mem-break.c.
References bp, BREAKPOINT_MAX, gdbarch_breakpoint_from_pc(), make_scoped_restore_show_memory_breakpoints(), bp_target_info::placed_address, and target_read_memory().
Referenced by remove_breakpoint_1().
| void noprocess | ( | void | ) |
Definition at line 548 of file target.c.
Referenced by call_function_by_hand_dummy(), gcore_command(), restore_command(), tdefault_kill(), tdefault_prepare_to_store(), tdefault_resume(), and tdefault_store_registers().
| const char* normal_pid_to_str | ( | ptid_t | ptid | ) |
Definition at line 3234 of file target.c.
References ptid_get_pid(), and xsnprintf().
Referenced by bsd_uthread_pid_to_str(), core_pid_to_str(), darwin_pid_to_str(), default_pid_to_str(), fbsd_core_pid_to_str(), gdbsim_pid_to_str(), go32_pid_to_str(), i386_windows_core_pid_to_str(), inf_ptrace_pid_to_str(), linux_core_pid_to_str(), linux_nat_pid_to_str(), remote_pid_to_str(), sol2_core_pid_to_str(), and windows_pid_to_str().
| void pop_all_targets | ( | void | ) |
Definition at line 759 of file target.c.
References dummy_stratum, and pop_all_targets_above().
Referenced by quit_force().
| void pop_all_targets_above | ( | enum strata | above_stratum | ) |
Definition at line 743 of file target.c.
References current_target, target_ops::to_stratum, and unpush_target_and_assert().
Referenced by pop_all_targets(), and target_preopen().
| void pop_all_targets_at_and_above | ( | enum strata | stratum | ) |
Definition at line 752 of file target.c.
References current_target, target_ops::to_stratum, and unpush_target_and_assert().
Referenced by remote_unpush_target().
| void push_target | ( | struct target_ops * | ) |
Definition at line 642 of file target.c.
References _, target_ops::beneath, fprintf_unfiltered(), gdb_stderr, internal_error(), OPS_MAGIC, target_close(), target_ops::to_magic, target_ops::to_shortname, target_ops::to_stratum, and update_current_target().
Referenced by add_target_sections(), bsd_kvm_open(), bsd_uthread_activate(), check_for_thread_db(), core_open(), darwin_attach_pid(), do_initial_windows_stuff(), gdbsim_open(), gnu_attach(), gnu_create_inferior(), go32_create_inferior(), inf_child_open_target(), inf_ptrace_attach(), inf_ptrace_create_inferior(), initialize_targets(), pd_enable(), procfs_attach(), procfs_create_inferior(), procfs_init_inferior(), ravenscar_inferior_created(), record_btrace_push_target(), record_full_core_open_1(), record_full_open_1(), remote_open_1(), spu_multiarch_activate(), tfile_open(), and try_thread_db_load_1().
| 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 1056 of file target.c.
References target_ops::beneath, code_cache_enabled_p(), dcache_update(), inferior_ptid, null_ptid, ptid_equal(), stack_cache_enabled_p(), target_dcache_get(), target_dcache_init_p(), TARGET_OBJECT_MEMORY, TARGET_XFER_OK, TARGET_XFER_UNAVAILABLE, target_ops::to_has_all_memory, and target_ops::to_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 1731 of file target.c.
References mem_region::attrib, gdb_assert, gdbarch_addressable_memory_unit_size(), mem_region::hi, lookup_mem_region(), MEM_NONE, MEM_WO, mem_attrib::mode, offset, QUIT, read_whatever_is_readable(), target_gdbarch(), TARGET_OBJECT_MEMORY, target_read(), and xmalloc().
Referenced by mi_cmd_data_read_memory_bytes().
| int simple_search_memory | ( | struct target_ops * | ops, |
| CORE_ADDR | start_addr, | ||
| ULONGEST | search_space_len, | ||
| const gdb_byte * | pattern, | ||
| ULONGEST | pattern_len, | ||
| CORE_ADDR * | found_addrp | ||
| ) |
Definition at line 2323 of file target.c.
References _, gdb_assert, hex_string(), plongest(), pulongest(), SEARCH_CHUNK_SIZE, TARGET_OBJECT_MEMORY, target_read(), and warning().
Referenced by default_search_memory(), remote_search_memory(), and spu_search_memory().
| int simple_verify_memory | ( | struct target_ops * | ops, |
| const gdb_byte * | data, | ||
| CORE_ADDR | memaddr, | ||
| ULONGEST | size | ||
| ) |
Definition at line 3464 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_verify_memory().
| void target_announce_detach | ( | int | from_tty | ) |
Definition at line 3177 of file target.c.
References _, gdb_flush(), gdb_stdout, get_exec_file(), inferior_ptid, pid, pid_to_ptid(), printf_unfiltered(), ptid_get_pid(), and target_pid_to_str().
Referenced by darwin_detach(), inf_ptrace_detach(), linux_nat_detach(), procfs_detach(), and remote_detach_1().
| void target_async | ( | int | enable | ) |
Definition at line 3860 of file target.c.
References current_target, enable, infrun_async(), and target_ops::to_async.
Referenced by extended_remote_attach(), extended_remote_create_inferior(), gdb_readline_wrapper(), gdb_readline_wrapper_cleanup(), inferior_event_handler(), linux_nat_attach(), linux_nat_resume(), record_btrace_resume(), record_full_core_resume(), record_full_resume(), remote_resume(), remote_start_remote(), and resume_1().
| const struct btrace_config* target_btrace_conf | ( | const struct btrace_target_info * | ) |
Definition at line 3595 of file target.c.
References current_target, and target_ops::to_btrace_conf.
Referenced by btrace_conf().
| void target_call_history | ( | int | size, |
| int | flags | ||
| ) |
Definition at line 3724 of file target.c.
References current_target, flags, size, and target_ops::to_call_history.
Referenced by cmd_record_call_history().
| void target_call_history_from | ( | ULONGEST | begin, |
| int | size, | ||
| int | flags | ||
| ) |
Definition at line 3732 of file target.c.
References current_target, flags, size, and target_ops::to_call_history_from.
Referenced by cmd_record_call_history().
Definition at line 3740 of file target.c.
References current_target, flags, and target_ops::to_call_history_range.
Referenced by cmd_record_call_history().
| void target_close | ( | struct target_ops * | targ | ) |
Definition at line 3290 of file target.c.
References fprintf_unfiltered(), gdb_assert, gdb_stdlog, target_is_pushed(), target_ops::to_close, and target_ops::to_xclose.
Referenced by enable_break(), push_target(), and unpush_target().
| void target_commit_resume | ( | ) |
Definition at line 2234 of file target.c.
References current_target, defer_target_commit_resume, and target_ops::to_commit_resume.
Referenced by do_target_resume(), and proceed().
| int target_core_of_thread | ( | ptid_t | ptid | ) |
Definition at line 3458 of file target.c.
References current_target, and target_ops::to_core_of_thread.
Referenced by collect_cores(), mi_on_normal_stop_1(), and print_thread_info_1().
| void target_delete_record | ( | void | ) |
Definition at line 3634 of file target.c.
References current_target, and target_ops::to_delete_record.
Referenced by cmd_record_delete().
| void target_detach | ( | const char * | , |
| int | |||
| ) |
Definition at line 2147 of file target.c.
References current_target, gdbarch_has_global_breakpoints(), inferior_ptid, prepare_for_detach(), ptid_get_pid(), remove_breakpoints_pid(), target_gdbarch(), and target_ops::to_detach.
Referenced by detach_command(), dispose_inferior(), follow_fork_inferior(), handle_vfork_child_exec_or_exit(), kill_or_detach(), and record_detach().
| void target_disable_btrace | ( | struct btrace_target_info * | btinfo | ) |
Definition at line 3569 of file target.c.
References current_target, and target_ops::to_disable_btrace.
Referenced by btrace_disable().
| void target_disconnect | ( | const char * | , |
| int | |||
| ) |
Definition at line 2164 of file target.c.
References current_target, remove_breakpoints(), and target_ops::to_disconnect.
Referenced by disconnect_command(), and record_disconnect().
| void target_done_generating_core | ( | void | ) |
Definition at line 3772 of file target.c.
References current_target, and target_ops::to_done_generating_core.
Referenced by write_gcore_file().
| struct btrace_target_info* target_enable_btrace | ( | ptid_t | ptid, |
| const struct btrace_config * | |||
| ) |
Definition at line 3561 of file target.c.
References btrace_target_info::conf, current_target, btrace_target_info::ptid, and target_ops::to_enable_btrace.
Referenced by btrace_enable().
| void target_fetch_registers | ( | struct regcache * | regcache, |
| int | regno | ||
| ) |
Definition at line 3437 of file target.c.
References current_target, regcache::debug_print_register(), and target_ops::to_fetch_registers.
Referenced by bsd_kvm_open(), bsd_kvm_pcb_cmd(), bsd_kvm_proc_cmd(), core_open(), fbsd_corefile_thread(), linux_corefile_thread(), procfs_do_thread_registers(), ps_lgetfpregs(), ps_lgetregs(), regcache::raw_update(), and record_full_core_open_1().
| int target_fileio_close | ( | int | fd, |
| int * | target_errno | ||
| ) |
Definition at line 2915 of file target.c.
References fileio_fh_t::fd, fileio_fd_to_fh, fprintf_unfiltered(), gdb_stdlog, is_closed_fileio_fh, release_fileio_fd(), fileio_fh_t::t, and target_ops::to_fileio_close.
Referenced by gdb_bfd_iovec_fileio_close(), sparc64_forget_process(), and target_fileio_close_cleanup().
| int target_fileio_fstat | ( | int | fd, |
| struct stat * | sb, | ||
| int * | target_errno | ||
| ) |
Definition at line 2895 of file target.c.
References fileio_fh_t::fd, fileio_fd_to_fh, fprintf_unfiltered(), gdb_stdlog, is_closed_fileio_fh, fileio_fh_t::t, and target_ops::to_fileio_fstat.
Referenced by gdb_bfd_iovec_fileio_fstat().
| int target_fileio_open | ( | struct inferior * | inf, |
| const char * | filename, | ||
| int | flags, | ||
| int | mode, | ||
| int * | target_errno | ||
| ) |
Definition at line 2826 of file target.c.
References flags, and target_fileio_open_1().
Referenced by adi_tag_fd(), and target_fileio_read_alloc_1().
| int target_fileio_open_warn_if_slow | ( | struct inferior * | inf, |
| const char * | filename, | ||
| int | flags, | ||
| int | mode, | ||
| int * | target_errno | ||
| ) |
Definition at line 2836 of file target.c.
References flags, and target_fileio_open_1().
Referenced by gdb_bfd_iovec_fileio_open().
| int target_fileio_pread | ( | int | fd, |
| gdb_byte * | read_buf, | ||
| int | len, | ||
| ULONGEST | offset, | ||
| int * | target_errno | ||
| ) |
Definition at line 2871 of file target.c.
References fileio_fh_t::fd, fileio_fd_to_fh, fprintf_unfiltered(), gdb_stdlog, is_closed_fileio_fh, offset, pulongest(), fileio_fh_t::t, and target_ops::to_fileio_pread.
Referenced by adi_read_versions(), gdb_bfd_iovec_fileio_pread(), and target_fileio_read_alloc_1().
| int target_fileio_pwrite | ( | int | fd, |
| const gdb_byte * | write_buf, | ||
| int | len, | ||
| ULONGEST | offset, | ||
| int * | target_errno | ||
| ) |
Definition at line 2847 of file target.c.
References fileio_fh_t::fd, fileio_fd_to_fh, fprintf_unfiltered(), gdb_stdlog, is_closed_fileio_fh, offset, pulongest(), fileio_fh_t::t, and target_ops::to_fileio_pwrite.
Referenced by adi_write_versions().
| LONGEST target_fileio_read_alloc | ( | struct inferior * | inf, |
| const char * | filename, | ||
| gdb_byte ** | buf_p | ||
| ) |
Definition at line 3073 of file target.c.
References target_fileio_read_alloc_1().
| gdb::unique_xmalloc_ptr<char> target_fileio_read_stralloc | ( | struct inferior * | inf, |
| const char * | filename | ||
| ) |
Definition at line 3082 of file target.c.
References _, target_fileio_read_alloc_1(), and warning().
Referenced by adi_is_addr_mapped(), linux_fill_prpsinfo(), linux_find_memory_regions_full(), linux_info_proc(), and linux_vsyscall_range_raw().
| char* target_fileio_readlink | ( | struct inferior * | inf, |
| const char * | filename, | ||
| int * | target_errno | ||
| ) |
Definition at line 2967 of file target.c.
References target_ops::beneath, default_fileio_target(), fprintf_unfiltered(), gdb_stdlog, and target_ops::to_fileio_readlink.
Referenced by linux_info_proc().
| int target_fileio_unlink | ( | struct inferior * | inf, |
| const char * | filename, | ||
| int * | target_errno | ||
| ) |
Definition at line 2938 of file target.c.
References target_ops::beneath, default_fileio_target(), fprintf_unfiltered(), gdb_stdlog, and target_ops::to_fileio_unlink.
| void target_flash_done | ( | void | ) |
Definition at line 1520 of file target.c.
References current_target, and target_ops::to_flash_done.
Referenced by flash_erase_command(), and target_write_memory_blocks().
Definition at line 1514 of file target.c.
References current_target, and target_ops::to_flash_erase.
Referenced by flash_erase_command(), and target_write_memory_blocks().
| void target_follow_exec | ( | struct inferior * | inf, |
| char * | execd_pathname | ||
| ) |
Definition at line 2285 of file target.c.
References current_target, and target_ops::to_follow_exec.
Referenced by follow_exec().
| int target_follow_fork | ( | int | follow_child, |
| int | detach_fork | ||
| ) |
Definition at line 2276 of file target.c.
References current_target, detach_fork, and target_ops::to_follow_fork.
Referenced by follow_fork_inferior().
| gdb::unique_xmalloc_ptr<char> target_get_osdata | ( | const char * | type | ) |
Definition at line 2651 of file target.c.
References target_ops::beneath, current_target, find_default_run_target(), process_stratum, TARGET_OBJECT_OSDATA, target_read_stralloc(), and target_ops::to_stratum.
Referenced by get_osdata().
| struct target_section_table* target_get_section_table | ( | struct target_ops * | target | ) |
Definition at line 974 of file target.c.
References target_ops::to_get_section_table.
Referenced by exec_xfer_partial(), memory_xfer_partial_1(), remote_xfer_live_readonly_partial(), section_table_read_available_memory(), and target_section_by_addr().
| const struct frame_unwind* target_get_tailcall_unwinder | ( | void | ) |
Definition at line 3756 of file target.c.
References current_target, and target_ops::to_get_tailcall_unwinder.
Referenced by frame_unwind_find_by_frame().
| const struct frame_unwind* target_get_unwinder | ( | void | ) |
Definition at line 3748 of file target.c.
References current_target, and target_ops::to_get_unwinder.
Referenced by frame_unwind_find_by_frame().
| void target_goto_record | ( | ULONGEST | insn | ) |
Definition at line 3690 of file target.c.
References current_target, and target_ops::to_goto_record.
Referenced by record_goto(), and recpy_bt_goto().
| void target_goto_record_begin | ( | void | ) |
Definition at line 3674 of file target.c.
References current_target, and target_ops::to_goto_record_begin.
Referenced by cmd_record_goto_begin().
| void target_goto_record_end | ( | void | ) |
Definition at line 3682 of file target.c.
References current_target, and target_ops::to_goto_record_end.
Referenced by cmd_record_goto_end(), and recpy_bt_goto().
| int target_has_all_memory_1 | ( | void | ) |
Definition at line 248 of file target.c.
References target_ops::beneath, current_target, and target_ops::to_has_all_memory.
| int target_has_execution_1 | ( | ptid_t | ) |
Definition at line 296 of file target.c.
References target_ops::beneath, current_target, and target_ops::to_has_execution.
Referenced by number_of_live_inferiors(), target_has_execution_current(), and thread_db_update_thread_list().
| int target_has_execution_current | ( | void | ) |
Definition at line 308 of file target.c.
References inferior_ptid, and target_has_execution_1().
| int target_has_memory_1 | ( | void | ) |
Definition at line 260 of file target.c.
References target_ops::beneath, current_target, and target_ops::to_has_memory.
| int target_has_registers_1 | ( | void | ) |
Definition at line 284 of file target.c.
References target_ops::beneath, current_target, and target_ops::to_has_registers.
| int target_has_stack_1 | ( | void | ) |
Definition at line 272 of file target.c.
References target_ops::beneath, current_target, and target_ops::to_has_stack.
| int target_info_proc | ( | const char * | , |
| enum | info_proc_what | ||
| ) |
Definition at line 2588 of file target.c.
References target_ops::beneath, current_target, find_default_run_target(), fprintf_unfiltered(), gdb_stdlog, process_stratum, target_ops::to_info_proc, and target_ops::to_stratum.
Referenced by info_proc_cmd_1().
| int target_insert_breakpoint | ( | struct gdbarch * | gdbarch, |
| struct bp_target_info * | bp_tgt | ||
| ) |
Definition at line 1987 of file target.c.
References _, current_target, may_insert_breakpoints, target_ops::to_insert_breakpoint, and warning().
Referenced by bkpt_insert_location(), and insert_bp_location().
Definition at line 3513 of file target.c.
References current_target, and target_ops::to_insert_mask_watchpoint.
Referenced by insert_masked_watchpoint().
| void target_insn_history | ( | int | size, |
| gdb_disassembly_flags | flags | ||
| ) |
Definition at line 3698 of file target.c.
References current_target, flags, size, and target_ops::to_insn_history.
Referenced by cmd_record_insn_history().
| void target_insn_history_from | ( | ULONGEST | from, |
| int | size, | ||
| gdb_disassembly_flags | flags | ||
| ) |
Definition at line 3706 of file target.c.
References current_target, flags, size, and target_ops::to_insn_history_from.
Referenced by cmd_record_insn_history().
Definition at line 3715 of file target.c.
References current_target, flags, and target_ops::to_insn_history_range.
Referenced by cmd_record_insn_history().
| void target_interrupt | ( | ptid_t | ptid | ) |
Definition at line 3328 of file target.c.
References _, current_target, may_stop, target_ops::to_interrupt, and warning().
Referenced by default_target_pass_ctrlc(), interrupt_target_1(), nto_handle_sigint(), remote_pass_ctrlc(), and remote_serial_quit_handler().
| int target_is_non_stop_p | ( | void | ) |
Definition at line 3917 of file target.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_TRUE, non_stop, target_always_non_stop_p(), and target_non_stop_enabled.
Referenced by adjust_pc_after_break(), attach_command(), attach_post_wait(), extended_remote_attach(), fetch_inferior_event(), finish_step_over(), for_each_just_stopped_thread(), get_detach_signal(), handle_inferior_event_1(), handle_notification(), internal_resume_ptid(), keep_going_pass_signal(), linux_nat_filter_event(), linux_nat_wait(), linux_nat_wait_1(), proceed(), putpkt_binary(), record_btrace_resume(), record_btrace_wait(), remote_async(), remote_async_get_pending_events_handler(), remote_commit_resume(), remote_interrupt(), remote_notice_new_inferior(), remote_parse_stop_reply(), remote_resume(), remote_resume_with_vcont(), remote_start_remote(), remote_stop(), remote_update_thread_list(), remote_wait(), resume_1(), select_event_lwp(), show_can_use_displaced_stepping(), start_step_over(), stop_all_threads(), stop_waiting(), switch_back_to_stepped_thread(), update_global_location_list(), and use_displaced_stepping().
| int target_is_pushed | ( | struct target_ops * | t | ) |
Definition at line 767 of file target.c.
References _, target_ops::beneath, fprintf_unfiltered(), gdb_stderr, internal_error(), OPS_MAGIC, target_ops::to_magic, and target_ops::to_shortname.
Referenced by add_target_sections(), darwin_attach_pid(), do_initial_windows_stuff(), go32_create_inferior(), inf_ptrace_attach(), inf_ptrace_create_inferior(), procfs_attach(), procfs_create_inferior(), procfs_init_inferior(), and target_close().
| void target_kill | ( | void | ) |
Definition at line 420 of file target.c.
References current_target, and target_ops::to_kill.
Referenced by attach_command(), dispose_inferior(), kill_command(), kill_if_already_running(), kill_inferior_command(), kill_or_detach(), and record_kill().
| void target_load | ( | const char * | arg, |
| int | from_tty | ||
| ) |
Definition at line 426 of file target.c.
References current_target, target_dcache_invalidate(), and target_ops::to_load.
Referenced by load_command().
Definition at line 3535 of file target.c.
References current_target, and target_ops::to_masked_watch_num_registers.
Referenced by resources_needed_masked_watchpoint(), and watch_command_1().
| std::vector<mem_region> target_memory_map | ( | void | ) |
Definition at line 1483 of file target.c.
References _, current_target, mem_region::lo, mem_region::number, and warning().
Referenced by flash_erase_command(), and require_target_regions().
| char* target_options_to_string | ( | int | target_options | ) |
Definition at line 3419 of file target.c.
References DO_TARG_OPTION, str_comma_list_concat_elem(), and TARGET_WNOHANG.
Referenced by linux_nat_wait(), and target_debug_print_options().
| void target_pass_ctrlc | ( | void | ) |
Definition at line 3342 of file target.c.
References current_target, and target_ops::to_pass_ctrlc.
Referenced by default_quit_handler(), and target_terminal::inferior().
| void target_pass_signals | ( | int | nsig, |
| unsigned char * | pass_signals | ||
| ) |
Definition at line 2251 of file target.c.
References current_target, and target_ops::to_pass_signals.
Referenced by do_target_resume(), handle_command(), record_full_resume(), and signal_catch_update().
| const char* target_pid_to_str | ( | ptid_t | ptid | ) |
Definition at line 2194 of file target.c.
References current_target, thread_info::ptid, and target_ops::to_pid_to_str.
Referenced by add_thread_with_info(), attach_proc_task_lwp_callback(), btrace_clear(), btrace_disable(), btrace_enable(), btrace_fetch(), btrace_teardown(), clear_proceed_status_thread(), context_switch(), darwin_attach(), dcache_info_1(), default_thread_address_space(), delete_checkpoint_command(), detach_checkpoint_command(), detach_one_lwp(), displaced_step_prepare_throw(), displaced_step_restore(), display_one_tib(), do_target_wait(), exit_lwp(), extended_remote_attach(), finish_step_over(), follow_exec(), follow_fork_inferior(), fprint_dummy_frames(), get_detach_signal(), gnu_fetch_registers(), gnu_resume(), gnu_store_registers(), gnu_wait(), handle_signal_stop(), inf_ptrace_attach(), inf_ptrace_files_info(), inferior_pid_to_str(), info_checkpoints_command(), keep_going_pass_signal(), linux_fork_context(), linux_fork_detach(), linux_fork_mourn_inferior(), linux_nat_filter_event(), linux_nat_resume(), linux_nat_stop_lwp(), linux_nat_wait(), linux_nat_wait_1(), maybe_clear_ignore_sigint(), normal_stop(), print_exited_reason(), print_inferior_quit_action(), print_program_space(), print_selected_thread_frame(), print_target_wait_results(), print_thread_info_1(), proceed(), proceed_after_vfork_done(), procfs_attach(), procfs_detach(), procfs_fetch_registers(), procfs_files_info(), procfs_store_registers(), procfs_wait(), push_stop_reply(), record_btrace_cancel_resume(), record_btrace_info(), record_btrace_resume(), record_btrace_resume_thread(), record_btrace_step_thread(), record_btrace_stop(), record_btrace_wait(), remote_disable_btrace(), remote_enable_btrace(), remote_notif_remove_queued_reply(), remote_stop_ns(), restart_threads(), resume_1(), resume_lwp(), resume_stopped_resumed_lwps(), save_stop_reason(), select_event_lwp(), start_step_over(), status_callback(), stop_all_threads(), stop_callback(), stop_wait_callback(), switch_back_to_stepped_thread(), target_announce_detach(), target_translate_tls_address(), thread_apply_all_command(), thread_apply_command(), thread_command(), thread_find_command(), tui_make_status_line(), wait_lwp(), windows_attach(), windows_delete_thread(), windows_files_info(), and x86_linux_enable_btrace().
| void target_pre_inferior | ( | int | ) |
Definition at line 2054 of file target.c.
References agent_capability_invalidate(), inferior::attach_flag, current_inferior(), gdbarch_has_global_solist(), inferior::highest_thread_num, invalidate_target_mem_regions(), no_shared_libraries(), target_clear_description(), and target_gdbarch().
Referenced by attach_command(), run_command_1(), and target_preopen().
| void target_preopen | ( | int | ) |
Definition at line 2121 of file target.c.
References _, dispose_inferior(), dont_repeat(), error(), file_stratum, have_inferiors(), have_live_inferiors(), iterate_over_inferiors(), pop_all_targets_above(), query(), and target_pre_inferior().
Referenced by bsd_kvm_open(), core_open(), exec_open(), inf_child_disconnect(), inf_child_open_target(), procfs_open_1(), remote_open_1(), and tfile_open().
| void target_prepare_to_generate_core | ( | void | ) |
Definition at line 3764 of file target.c.
References current_target, and target_ops::to_prepare_to_generate_core.
Referenced by write_gcore_file().
| void target_program_signals | ( | int | nsig, |
| unsigned char * | program_signals | ||
| ) |
Definition at line 2257 of file target.c.
References current_target, and target_ops::to_program_signals.
Referenced by handle_command(), and update_signals_program_target().
| int target_ranged_break_num_registers | ( | void | ) |
Definition at line 3545 of file target.c.
References current_target, and target_ops::to_ranged_break_num_registers.
Referenced by break_range_command(), and resources_needed_ranged_breakpoint().
| LONGEST target_read | ( | struct target_ops * | ops, |
| enum target_object | object, | ||
| const char * | annex, | ||
| gdb_byte * | buf, | ||
| ULONGEST | offset, | ||
| LONGEST | len | ||
| ) |
Definition at line 1562 of file target.c.
References gdbarch_addressable_memory_unit_size(), offset, 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 darwin_solib_read_all_image_info_addr(), display_one_tib(), get_target_memory(), info_spu_dma_command(), info_spu_event_command(), info_spu_mailbox_command(), info_spu_proxydma_command(), info_spu_signal_command(), linux_get_siginfo_data(), mi_cmd_data_read_memory(), ppu2spu_sniffer(), read_memory_robust(), read_whatever_is_readable(), save_infcall_suspend_state(), siginfo_value_read(), simple_search_memory(), sparc_fetch_wcookie(), spu_current_sos(), spu_fetch_registers(), spu_pseudo_register_read(), spu_pseudo_register_read_spu(), target_read_code(), target_read_memory(), target_read_raw_memory(), and target_read_stack().
| LONGEST target_read_alloc | ( | struct target_ops * | ops, |
| enum target_object | object, | ||
| const char * | annex, | ||
| gdb_byte ** | buf_p | ||
| ) |
Definition at line 1918 of file target.c.
References target_read_alloc_1().
Referenced by avr_io_reg_read_command(), dsbt_get_initial_loadmaps(), get_auxv_inferior_data(), linux_make_corefile_notes(), linux_spu_make_corefile_notes(), procfs_make_note_section(), and sdata_make_value().
| enum btrace_error target_read_btrace | ( | struct btrace_data * | , |
| struct btrace_target_info * | , | ||
| enum | btrace_read_type | ||
| ) |
Definition at line 3585 of file target.c.
References current_target, and target_ops::to_read_btrace.
Referenced by btrace_fetch().
Definition at line 1433 of file target.c.
References target_ops::beneath, current_target, TARGET_OBJECT_CODE_MEMORY, and target_read().
Referenced by amd64_analyze_stack_align(), amd64_skip_xmm_prologue(), arc_disassemble_info(), arm_adjust_breakpoint_address(), gdb_disassembler::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_main_prologue(), i386_skip_noop(), i386_skip_probe(), i386_skip_prologue(), microblaze_fetch_instruction(), or1k_fetch_instruction(), and rx_get_opcode_byte().
| const struct target_desc* target_read_description | ( | struct target_ops * | ) |
Definition at line 2313 of file target.c.
References target_ops::to_read_description.
Referenced by target_find_description().
Definition at line 1403 of file target.c.
References target_ops::beneath, current_target, TARGET_OBJECT_RAW_MEMORY, and target_read().
Referenced by dcache_read_line().
Definition at line 1418 of file target.c.
References target_ops::beneath, current_target, TARGET_OBJECT_STACK_MEMORY, and target_read().
| gdb::unique_xmalloc_ptr<char> target_read_stralloc | ( | struct target_ops * | ops, |
| enum target_object | object, | ||
| const char * | annex | ||
| ) |
Definition at line 1927 of file target.c.
References _, target_read_alloc_1(), and warning().
Referenced by btrace_read_config(), fetch_available_features_from_target(), remote_get_threads_with_qxfer(), remote_memory_map(), remote_pid_to_exec_file(), remote_read_btrace(), remote_traceframe_info(), solib_target_current_sos(), svr4_current_sos_via_xfer_libraries(), and target_get_osdata().
| int target_read_string | ( | CORE_ADDR | , |
| char ** | , | ||
| int | , | ||
| int * | |||
| ) |
Definition at line 907 of file target.c.
References gdb_assert, MIN, offset, target_read_memory(), xmalloc(), and xrealloc().
Referenced by ada_main_name(), darwin_current_sos(), dsbt_current_sos(), frv_current_sos(), handle_exception(), handle_output_debug_string(), inferior_has_bug(), open_symbol_file_object(), print_subexp_standard(), and svr4_read_so_list().
| int target_record_is_replaying | ( | ptid_t | ptid | ) |
Definition at line 3650 of file target.c.
References current_target, and target_ops::to_record_is_replaying.
Referenced by clear_proceed_status(), and cmd_record_delete().
| enum record_method target_record_method | ( | ptid_t | ptid | ) |
Definition at line 3642 of file target.c.
References current_target, and target_ops::to_record_method.
Referenced by gdbpy_current_recording().
| void target_record_stop_replaying | ( | void | ) |
Definition at line 3666 of file target.c.
References current_target, and target_ops::to_record_stop_replaying.
Referenced by clear_proceed_status().
| int target_record_will_replay | ( | ptid_t | ptid, |
| int | dir | ||
| ) |
Definition at line 3658 of file target.c.
References current_target, and target_ops::to_record_will_replay.
Referenced by clear_proceed_status(), schedlock_applies(), and user_visible_resume_ptid().
| int target_remove_breakpoint | ( | struct gdbarch * | gdbarch, |
| struct bp_target_info * | bp_tgt, | ||
| enum remove_bp_reason | reason | ||
| ) |
Definition at line 2003 of file target.c.
References _, current_target, may_insert_breakpoints, target_ops::to_remove_breakpoint, and warning().
Referenced by bkpt_remove_location(), and remove_breakpoint_1().
Definition at line 3524 of file target.c.
References current_target, and target_ops::to_remove_mask_watchpoint.
Referenced by remove_masked_watchpoint().
| void target_require_runnable | ( | void | ) |
Definition at line 2455 of file target.c.
References _, arch_stratum, target_ops::beneath, error(), internal_error(), record_stratum, thread_stratum, target_ops::to_create_inferior, target_ops::to_shortname, and target_ops::to_stratum.
Referenced by kill_if_already_running().
| void target_resume | ( | ptid_t | ptid, |
| int | step, | ||
| enum gdb_signal | signal | ||
| ) |
Definition at line 2215 of file target.c.
References clear_inline_frame_state(), current_target, thread_info::ptid, registers_changed_ptid(), set_executing(), target_dcache_invalidate(), and target_ops::to_resume.
Referenced by do_target_resume(), spu_skip_standalone_loader(), target_continue(), and target_continue_no_signal().
| void target_save_record | ( | const char * | filename | ) |
Definition at line 3611 of file target.c.
References current_target, and target_ops::to_save_record.
Referenced by cmd_record_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 2441 of file target.c.
References current_target, and target_ops::to_search_memory.
Referenced by find_command(), and infpy_search_memory().
| struct target_section* target_section_by_addr | ( | struct target_ops * | target, |
| CORE_ADDR | addr | ||
| ) |
Definition at line 982 of file target.c.
References target_section::addr, target_section::endaddr, target_section_table::sections, and target_get_section_table().
Referenced by memory_xfer_partial_1(), ppc64_convert_from_func_ptr_addr(), record_btrace_xfer_partial(), remote_xfer_live_readonly_partial(), and s390_load().
| void target_stop | ( | ptid_t | ptid | ) |
Definition at line 3316 of file target.c.
References _, current_target, may_stop, target_ops::to_stop, and warning().
Referenced by attach_command(), attach_post_wait(), interrupt_target_1(), interrupt_thread_callback(), notice_new_inferior(), stop_all_threads(), target_stop_and_wait(), and VEC().
| void target_stop_recording | ( | void | ) |
Definition at line 3603 of file target.c.
References current_target, and target_ops::to_stop_recording.
| void target_store_registers | ( | struct regcache * | regcache, |
| int | regs | ||
| ) |
Definition at line 3445 of file target.c.
References _, current_target, regcache::debug_print_register(), error(), may_write_registers, and target_ops::to_store_registers.
Referenced by ps_lsetfpregs(), ps_lsetregs(), regcache::raw_write(), rs6000_lynx178_push_dummy_call(), and rs6000_push_dummy_call().
| int target_supports_btrace | ( | enum | btrace_format | ) |
Definition at line 3553 of file target.c.
References current_target, and target_ops::to_supports_btrace.
Referenced by btrace_enable().
| int target_supports_delete_record | ( | void | ) |
Definition at line 3619 of file target.c.
References target_ops::beneath, current_target, delegate_delete_record(), tdefault_delete_record(), and target_ops::to_delete_record.
Referenced by cmd_record_delete().
| int target_supports_disable_randomization | ( | void | ) |
Definition at line 2629 of file target.c.
References target_ops::beneath, current_target, and target_ops::to_supports_disable_randomization.
Referenced by set_disable_randomization(), and show_disable_randomization().
| int target_supports_terminal_ours | ( | void | ) |
Definition at line 526 of file target.c.
References target_ops::beneath, current_target, delegate_terminal_ours(), tdefault_terminal_ours(), and target_ops::to_terminal_ours.
Referenced by ATTRIBUTE_PRINTF(), print_flush(), quit(), and vwarning().
| void target_teardown_btrace | ( | struct btrace_target_info * | btinfo | ) |
Definition at line 3577 of file target.c.
References current_target, and target_ops::to_teardown_btrace.
Referenced by btrace_teardown().
| struct address_space* target_thread_address_space | ( | ptid_t | ) |
Definition at line 2689 of file target.c.
References current_target, gdb_assert, and target_ops::to_thread_address_space.
Referenced by get_thread_arch_regcache().
| int target_thread_alive | ( | ptid_t | ptid | ) |
Definition at line 3304 of file target.c.
References current_target, and target_ops::to_thread_alive.
Referenced by keep_going_stepped_thread(), lwp_to_thread(), rw_common(), sol_thread_xfer_partial(), and thread_alive().
| void target_thread_events | ( | int | enable | ) |
Definition at line 3869 of file target.c.
References current_target, enable, and target_ops::to_thread_events.
Referenced by disable_thread_events(), and 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 2206 of file target.c.
References current_target, and target_ops::to_thread_handle_to_thread_info.
Referenced by find_thread_by_handle().
| const char* target_thread_name | ( | struct thread_info * | ) |
Definition at line 2200 of file target.c.
References current_target, and target_ops::to_thread_name.
Referenced by maybe_print_thread_hit_breakpoint(), print_signal_received_reason(), print_thread_info_1(), thpy_get_name(), and thread_find_command().
Definition at line 801 of file target.c.
References _, CATCH, current_target, END_CATCH, error(), objfile::flags, gdbarch_fetch_tls_load_module_address(), gdbarch_fetch_tls_load_module_address_p(), inferior_ptid, lm_addr(), OBJF_SHARED, objfile_name(), offset, RETURN_MASK_ALL, target_gdbarch(), target_pid_to_str(), throw_exception(), TLS_GENERIC_ERROR, TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_NOT_ALLOCATED_YET_ERROR, target_ops::to_get_thread_local_address, and TRY.
Referenced by default_read_var_value(), find_minsym_type_and_address(), and dwarf_evaluate_loc_desc::get_tls_address().
| void target_update_thread_list | ( | void | ) |
Definition at line 3310 of file target.c.
References current_target, and target_ops::to_update_thread_list.
Referenced by check_for_thread_db(), core_open(), print_ada_task_info(), remote_start_remote(), task_command_1(), and update_thread_list().
Definition at line 3503 of file target.c.
References current_target, size, and target_ops::to_verify_memory.
Referenced by compare_sections_command().
| 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 1841 of file target.c.
References offset, and target_write_with_progress().
Referenced by restore_infcall_suspend_state(), siginfo_value_write(), spu_pseudo_register_write(), spu_pseudo_register_write_spu(), spu_store_registers(), target_write_memory(), and target_write_raw_memory().
| int target_write_memory_blocks | ( | VEC(memory_write_request_s) * | requests, |
| enum flash_preserve_mode | preserve_flash_p, | ||
| void(*)(ULONGEST, void *) | progress_cb | ||
| ) |
Definition at line 315 of file target-memory.c.
References _, memory_write_request::baton, memory_write_request::begin, target_ops::beneath, cleanup_request_data(), cleanup_write_requests_vector(), compare_block_starting_address(), current_target, memory_write_request::data, do_cleanups(), memory_write_request::end, err, error(), flash_preserve, gdb_assert, make_cleanup(), null_cleanup(), qsort, split_regular_and_flash_blocks(), target_flash_done(), target_flash_erase(), TARGET_OBJECT_FLASH, TARGET_OBJECT_MEMORY, target_read_memory(), target_write_with_progress(), VEC(), VEC_address, VEC_copy, VEC_empty, VEC_iterate, VEC_length, VEC_safe_push, and xmalloc().
Referenced by generic_load().
Definition at line 1469 of file target.c.
References target_ops::beneath, current_target, 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 1795 of file target.c.
References gdbarch_addressable_memory_unit_size(), offset, 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_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 | ||
| ) |
| const char* target_xfer_status_to_string | ( | enum target_xfer_status | status | ) |
Definition at line 883 of file target.c.
References CASE, status, TARGET_XFER_E_IO, and TARGET_XFER_UNAVAILABLE.
Referenced by memory_error_message().
| int unpush_target | ( | struct target_ops * | ) |
Definition at line 689 of file target.c.
References _, target_ops::beneath, dummy_stratum, internal_error(), target_close(), target_ops::to_stratum, and update_current_target().
Referenced by bsd_kvm_open(), bsd_uthread_deactivate(), core_detach(), core_open(), do_unpush_target(), gdbsim_detach(), gdbsim_open(), inf_child_maybe_unpush_target(), pd_disable(), ravenscar_mourn_inferior(), record_btrace_disconnect(), record_full_core_kill(), record_unpush(), remote_disconnect(), remote_mourn(), remove_target_sections(), sol_thread_detach(), sol_thread_mourn_inferior(), spu_multiarch_deactivate(), tfile_open(), thread_db_detach(), thread_db_mourn_inferior(), thread_db_wait(), and unpush_target_and_assert().
| void update_target_permissions | ( | void | ) |
Definition at line 3978 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().
| int baud_rate |
Definition at line 639 of file serial.c.
Referenced by _initialize_serial(), captured_main_1(), and remote_open_1().
| struct target_ops current_target |
Referenced by adi_available(), advance_command(), avr_io_reg_read_command(), btrace_read_config(), check_for_thread_db(), check_pid_namespace_match(), check_stopped_by_watchpoint(), continue_command(), create_exception_master_breakpoint(), darwin_solib_read_all_image_info_addr(), default_fileio_target(), default_search_memory(), default_verify_memory(), display_one_tib(), dsbt_get_initial_loadmaps(), elf_gnu_ifunc_resolve_addr(), elf_gnu_ifunc_resolve_by_got(), elf_gnu_ifunc_resolver_return_stop(), enable_break(), evaluate_subexp_standard(), exec_continue(), find_attach_target(), find_function_addr(), find_minsym_type_and_address(), find_run_target(), find_solib_trampoline_target(), find_target_at(), finish_command(), gnuv3_skip_trampoline(), handle_signal_stop(), target_terminal::inferior(), target_terminal::info(), info_auxv_command(), info_spu_dma_command(), info_spu_event_command(), info_spu_mailbox_command(), info_spu_proxydma_command(), info_spu_signal_command(), target_terminal::init(), init_entry_point_info(), inside_main_func(), jump_command(), linux_displaced_step_location(), linux_get_siginfo_data(), linux_is_uclinux(), linux_make_corefile_notes(), linux_spu_make_corefile_notes(), linux_vsyscall_range_raw(), mi_cmd_data_read_memory(), mi_cmd_data_read_memory_bytes(), msymbol_is_function(), target_terminal::ours(), target_terminal::ours_for_output(), pop_all_targets_above(), pop_all_targets_at_and_above(), ppc_linux_get_hwcap(), ppc_linux_spe_context(), ppc_process_record_op31(), ppu2spu_sniffer(), print_function_pointer_address(), procfs_make_note_section(), read_memory_object(), read_program_header(), read_value_memory(), remote_check_symbols(), remote_memory_map(), remote_pid_to_exec_file(), remote_read_btrace(), remote_traceframe_info(), restore_infcall_suspend_state(), run_command_1(), s390_load(), s390_read_description(), save_infcall_suspend_state(), sdata_make_value(), setup_inferior(), setup_target_debug(), siginfo_value_read(), siginfo_value_write(), signal_command(), sol_get_ada_task_ptid(), solib_target_current_sos(), sparc_fetch_wcookie(), spu_current_sos(), spu_enable_break(), spu_pseudo_register_read(), spu_pseudo_register_read_spu(), spu_pseudo_register_write(), spu_pseudo_register_write_spu(), start_remote(), step_1(), svr4_current_sos_via_xfer_libraries(), svr4_exec_displacement(), target_always_non_stop_p(), target_async(), target_auxv_parse(), target_btrace_conf(), target_call_history(), target_call_history_from(), target_call_history_range(), target_commit_resume(), target_core_of_thread(), target_delete_record(), target_detach(), target_disable_btrace(), target_disconnect(), target_done_generating_core(), target_enable_btrace(), target_fetch_registers(), target_find_description(), target_flash_done(), target_flash_erase(), target_follow_exec(), target_follow_fork(), target_get_osdata(), target_get_tailcall_unwinder(), target_get_unwinder(), target_goto_record(), target_goto_record_begin(), target_goto_record_end(), target_has_all_memory_1(), target_has_execution_1(), target_has_memory_1(), target_has_registers_1(), target_has_stack_1(), target_info_proc(), target_insert_breakpoint(), target_insert_mask_watchpoint(), target_insn_history(), target_insn_history_from(), target_insn_history_range(), target_interrupt(), target_kill(), target_load(), target_masked_watch_num_registers(), target_memory_map(), target_mourn_inferior(), target_pass_ctrlc(), target_pass_signals(), target_pid_to_str(), target_prepare_to_generate_core(), target_program_signals(), target_ranged_break_num_registers(), target_read_btrace(), target_read_code(), target_read_memory(), target_read_raw_memory(), target_read_stack(), target_record_is_replaying(), target_record_method(), target_record_stop_replaying(), target_record_will_replay(), target_remove_breakpoint(), target_remove_mask_watchpoint(), target_resume(), target_save_record(), target_search_memory(), target_stop(), target_stop_recording(), target_store_registers(), target_supports_btrace(), target_supports_delete_record(), target_supports_disable_randomization(), target_supports_multi_process(), target_supports_terminal_ours(), target_teardown_btrace(), target_thread_address_space(), target_thread_alive(), target_thread_events(), target_thread_handle_to_thread_info(), target_thread_name(), target_translate_tls_address(), target_update_thread_list(), target_verify_memory(), target_wait(), target_write_memory(), target_write_memory_blocks(), target_write_raw_memory(), tcomplain(), tfile_write_tdesc(), thread_db_load(), until_command(), update_current_target(), value_assign(), value_fn_field(), and watchpoints_triggered().
| int may_insert_breakpoints |
| int may_insert_fast_tracepoints |
| int may_insert_tracepoints |
| int may_stop |
| int may_write_memory |
| int may_write_registers |
| int remote_debug |
Definition at line 171 of file top.c.
Referenced by _initialize_cli_cmds(), check_binary_download(), gdbsim_close(), gdbsim_create_inferior(), gdbsim_detach(), gdbsim_fetch_register(), gdbsim_files_info(), gdbsim_kill(), gdbsim_load(), gdbsim_mourn_inferior(), gdbsim_open(), gdbsim_resume_inferior(), gdbsim_store_register(), gdbsim_wait(), gdbsim_xfer_memory(), getpkt_or_notif_sane_1(), packet_ok(), process_initial_stop_replies(), putpkt_binary(), read_frame(), remote_current_thread(), remote_hostio_pread(), remote_interrupt(), remote_pass_ctrlc(), remote_set_syscall_catchpoint(), remote_start_remote(), remote_stop(), and send_g_packet().
| int remote_timeout |
Definition at line 167 of file top.c.
Referenced by _initialize_cli_cmds(), captured_main_1(), getpkt_or_notif_sane_1(), putpkt_binary(), read_frame(), remote_flash_done(), remote_flash_erase(), remote_flash_write(), and skip_frame().
| int serial_parity |
Definition at line 651 of file serial.c.
Referenced by remote_open_1(), and set_parity().
| int target_async_permitted |
Definition at line 3876 of file target.c.
Referenced by linux_nat_can_async_p(), maint_set_target_async_command(), remote_can_async_p(), remote_is_async_p(), and remote_open_1().
| enum auto_boolean target_non_stop_enabled |
Definition at line 3927 of file target.c.
Referenced by maint_set_target_non_stop_command(), maint_show_target_non_stop_command(), and target_is_non_stop_p().
| target_xfer_partial_ftype target_xfer_partial |
Referenced by read_memory_object(), and read_value_memory().
1.8.14