-static void
-delegate_prepare_to_generate_core (struct target_ops *self)
-{
- self = self->beneath;
- self->to_prepare_to_generate_core (self);
-}
-
-static void
-tdefault_prepare_to_generate_core (struct target_ops *self)
-{
-}
-
-static void
-debug_prepare_to_generate_core (struct target_ops *self)
-{
- fprintf_unfiltered (gdb_stdlog, "-> %s->to_prepare_to_generate_core (...)\n", debug_target.to_shortname);
- debug_target.to_prepare_to_generate_core (&debug_target);
- fprintf_unfiltered (gdb_stdlog, "<- %s->to_prepare_to_generate_core (", debug_target.to_shortname);
- target_debug_print_struct_target_ops_p (&debug_target);
- fputs_unfiltered (")\n", gdb_stdlog);
-}
-
-static void
-delegate_done_generating_core (struct target_ops *self)
-{
- self = self->beneath;
- self->to_done_generating_core (self);
-}
-
-static void
-tdefault_done_generating_core (struct target_ops *self)
-{
-}
-
-static void
-debug_done_generating_core (struct target_ops *self)
-{
- fprintf_unfiltered (gdb_stdlog, "-> %s->to_done_generating_core (...)\n", debug_target.to_shortname);
- debug_target.to_done_generating_core (&debug_target);
- fprintf_unfiltered (gdb_stdlog, "<- %s->to_done_generating_core (", debug_target.to_shortname);
- target_debug_print_struct_target_ops_p (&debug_target);
- fputs_unfiltered (")\n", gdb_stdlog);
-}
-
-static void
-install_delegators (struct target_ops *ops)
-{
- if (ops->to_post_attach == NULL)
- ops->to_post_attach = delegate_post_attach;
- if (ops->to_detach == NULL)
- ops->to_detach = delegate_detach;
- if (ops->to_disconnect == NULL)
- ops->to_disconnect = delegate_disconnect;
- if (ops->to_resume == NULL)
- ops->to_resume = delegate_resume;
- if (ops->to_commit_resume == NULL)
- ops->to_commit_resume = delegate_commit_resume;
- if (ops->to_wait == NULL)
- ops->to_wait = delegate_wait;
- if (ops->to_fetch_registers == NULL)
- ops->to_fetch_registers = delegate_fetch_registers;
- if (ops->to_store_registers == NULL)
- ops->to_store_registers = delegate_store_registers;
- if (ops->to_prepare_to_store == NULL)
- ops->to_prepare_to_store = delegate_prepare_to_store;
- if (ops->to_files_info == NULL)
- ops->to_files_info = delegate_files_info;
- if (ops->to_insert_breakpoint == NULL)
- ops->to_insert_breakpoint = delegate_insert_breakpoint;
- if (ops->to_remove_breakpoint == NULL)
- ops->to_remove_breakpoint = delegate_remove_breakpoint;
- if (ops->to_stopped_by_sw_breakpoint == NULL)
- ops->to_stopped_by_sw_breakpoint = delegate_stopped_by_sw_breakpoint;
- if (ops->to_supports_stopped_by_sw_breakpoint == NULL)
- ops->to_supports_stopped_by_sw_breakpoint = delegate_supports_stopped_by_sw_breakpoint;
- if (ops->to_stopped_by_hw_breakpoint == NULL)
- ops->to_stopped_by_hw_breakpoint = delegate_stopped_by_hw_breakpoint;
- if (ops->to_supports_stopped_by_hw_breakpoint == NULL)
- ops->to_supports_stopped_by_hw_breakpoint = delegate_supports_stopped_by_hw_breakpoint;
- if (ops->to_can_use_hw_breakpoint == NULL)
- ops->to_can_use_hw_breakpoint = delegate_can_use_hw_breakpoint;
- if (ops->to_ranged_break_num_registers == NULL)
- ops->to_ranged_break_num_registers = delegate_ranged_break_num_registers;
- if (ops->to_insert_hw_breakpoint == NULL)
- ops->to_insert_hw_breakpoint = delegate_insert_hw_breakpoint;
- if (ops->to_remove_hw_breakpoint == NULL)
- ops->to_remove_hw_breakpoint = delegate_remove_hw_breakpoint;
- if (ops->to_remove_watchpoint == NULL)
- ops->to_remove_watchpoint = delegate_remove_watchpoint;
- if (ops->to_insert_watchpoint == NULL)
- ops->to_insert_watchpoint = delegate_insert_watchpoint;
- if (ops->to_insert_mask_watchpoint == NULL)
- ops->to_insert_mask_watchpoint = delegate_insert_mask_watchpoint;
- if (ops->to_remove_mask_watchpoint == NULL)
- ops->to_remove_mask_watchpoint = delegate_remove_mask_watchpoint;
- if (ops->to_stopped_by_watchpoint == NULL)
- ops->to_stopped_by_watchpoint = delegate_stopped_by_watchpoint;
- if (ops->to_stopped_data_address == NULL)
- ops->to_stopped_data_address = delegate_stopped_data_address;
- if (ops->to_watchpoint_addr_within_range == NULL)
- ops->to_watchpoint_addr_within_range = delegate_watchpoint_addr_within_range;
- if (ops->to_region_ok_for_hw_watchpoint == NULL)
- ops->to_region_ok_for_hw_watchpoint = delegate_region_ok_for_hw_watchpoint;
- if (ops->to_can_accel_watchpoint_condition == NULL)
- ops->to_can_accel_watchpoint_condition = delegate_can_accel_watchpoint_condition;
- if (ops->to_masked_watch_num_registers == NULL)
- ops->to_masked_watch_num_registers = delegate_masked_watch_num_registers;
- if (ops->to_can_do_single_step == NULL)
- ops->to_can_do_single_step = delegate_can_do_single_step;
- if (ops->to_terminal_init == NULL)
- ops->to_terminal_init = delegate_terminal_init;
- if (ops->to_terminal_inferior == NULL)
- ops->to_terminal_inferior = delegate_terminal_inferior;
- if (ops->to_terminal_ours_for_output == NULL)
- ops->to_terminal_ours_for_output = delegate_terminal_ours_for_output;
- if (ops->to_terminal_ours == NULL)
- ops->to_terminal_ours = delegate_terminal_ours;
- if (ops->to_terminal_info == NULL)
- ops->to_terminal_info = delegate_terminal_info;
- if (ops->to_kill == NULL)
- ops->to_kill = delegate_kill;
- if (ops->to_load == NULL)
- ops->to_load = delegate_load;
- if (ops->to_post_startup_inferior == NULL)
- ops->to_post_startup_inferior = delegate_post_startup_inferior;
- if (ops->to_insert_fork_catchpoint == NULL)
- ops->to_insert_fork_catchpoint = delegate_insert_fork_catchpoint;
- if (ops->to_remove_fork_catchpoint == NULL)
- ops->to_remove_fork_catchpoint = delegate_remove_fork_catchpoint;
- if (ops->to_insert_vfork_catchpoint == NULL)
- ops->to_insert_vfork_catchpoint = delegate_insert_vfork_catchpoint;
- if (ops->to_remove_vfork_catchpoint == NULL)
- ops->to_remove_vfork_catchpoint = delegate_remove_vfork_catchpoint;
- if (ops->to_follow_fork == NULL)
- ops->to_follow_fork = delegate_follow_fork;
- if (ops->to_insert_exec_catchpoint == NULL)
- ops->to_insert_exec_catchpoint = delegate_insert_exec_catchpoint;
- if (ops->to_remove_exec_catchpoint == NULL)
- ops->to_remove_exec_catchpoint = delegate_remove_exec_catchpoint;
- if (ops->to_follow_exec == NULL)
- ops->to_follow_exec = delegate_follow_exec;
- if (ops->to_set_syscall_catchpoint == NULL)
- ops->to_set_syscall_catchpoint = delegate_set_syscall_catchpoint;
- if (ops->to_has_exited == NULL)
- ops->to_has_exited = delegate_has_exited;
- if (ops->to_mourn_inferior == NULL)
- ops->to_mourn_inferior = delegate_mourn_inferior;
- if (ops->to_can_run == NULL)
- ops->to_can_run = delegate_can_run;
- if (ops->to_pass_signals == NULL)
- ops->to_pass_signals = delegate_pass_signals;
- if (ops->to_program_signals == NULL)
- ops->to_program_signals = delegate_program_signals;
- if (ops->to_thread_alive == NULL)
- ops->to_thread_alive = delegate_thread_alive;
- if (ops->to_update_thread_list == NULL)
- ops->to_update_thread_list = delegate_update_thread_list;
- if (ops->to_pid_to_str == NULL)
- ops->to_pid_to_str = delegate_pid_to_str;
- if (ops->to_extra_thread_info == NULL)
- ops->to_extra_thread_info = delegate_extra_thread_info;
- if (ops->to_thread_name == NULL)
- ops->to_thread_name = delegate_thread_name;
- if (ops->to_thread_handle_to_thread_info == NULL)
- ops->to_thread_handle_to_thread_info = delegate_thread_handle_to_thread_info;
- if (ops->to_stop == NULL)
- ops->to_stop = delegate_stop;
- if (ops->to_interrupt == NULL)
- ops->to_interrupt = delegate_interrupt;
- if (ops->to_pass_ctrlc == NULL)
- ops->to_pass_ctrlc = delegate_pass_ctrlc;
- if (ops->to_rcmd == NULL)
- ops->to_rcmd = delegate_rcmd;
- if (ops->to_pid_to_exec_file == NULL)
- ops->to_pid_to_exec_file = delegate_pid_to_exec_file;
- if (ops->to_log_command == NULL)
- ops->to_log_command = delegate_log_command;
- if (ops->to_get_section_table == NULL)
- ops->to_get_section_table = delegate_get_section_table;
- if (ops->to_can_async_p == NULL)
- ops->to_can_async_p = delegate_can_async_p;
- if (ops->to_is_async_p == NULL)
- ops->to_is_async_p = delegate_is_async_p;
- if (ops->to_async == NULL)
- ops->to_async = delegate_async;
- if (ops->to_thread_events == NULL)
- ops->to_thread_events = delegate_thread_events;
- if (ops->to_supports_non_stop == NULL)
- ops->to_supports_non_stop = delegate_supports_non_stop;
- if (ops->to_always_non_stop_p == NULL)
- ops->to_always_non_stop_p = delegate_always_non_stop_p;
- if (ops->to_find_memory_regions == NULL)
- ops->to_find_memory_regions = delegate_find_memory_regions;
- if (ops->to_make_corefile_notes == NULL)
- ops->to_make_corefile_notes = delegate_make_corefile_notes;
- if (ops->to_get_bookmark == NULL)
- ops->to_get_bookmark = delegate_get_bookmark;
- if (ops->to_goto_bookmark == NULL)
- ops->to_goto_bookmark = delegate_goto_bookmark;
- if (ops->to_get_thread_local_address == NULL)
- ops->to_get_thread_local_address = delegate_get_thread_local_address;
- if (ops->to_xfer_partial == NULL)
- ops->to_xfer_partial = delegate_xfer_partial;
- if (ops->to_get_memory_xfer_limit == NULL)
- ops->to_get_memory_xfer_limit = delegate_get_memory_xfer_limit;
- if (ops->to_memory_map == NULL)
- ops->to_memory_map = delegate_memory_map;
- if (ops->to_flash_erase == NULL)
- ops->to_flash_erase = delegate_flash_erase;
- if (ops->to_flash_done == NULL)
- ops->to_flash_done = delegate_flash_done;
- if (ops->to_read_description == NULL)
- ops->to_read_description = delegate_read_description;
- if (ops->to_get_ada_task_ptid == NULL)
- ops->to_get_ada_task_ptid = delegate_get_ada_task_ptid;
- if (ops->to_auxv_parse == NULL)
- ops->to_auxv_parse = delegate_auxv_parse;
- if (ops->to_search_memory == NULL)
- ops->to_search_memory = delegate_search_memory;
- if (ops->to_can_execute_reverse == NULL)
- ops->to_can_execute_reverse = delegate_can_execute_reverse;
- if (ops->to_execution_direction == NULL)
- ops->to_execution_direction = delegate_execution_direction;
- if (ops->to_supports_multi_process == NULL)
- ops->to_supports_multi_process = delegate_supports_multi_process;
- if (ops->to_supports_enable_disable_tracepoint == NULL)
- ops->to_supports_enable_disable_tracepoint = delegate_supports_enable_disable_tracepoint;
- if (ops->to_supports_string_tracing == NULL)
- ops->to_supports_string_tracing = delegate_supports_string_tracing;
- if (ops->to_supports_evaluation_of_breakpoint_conditions == NULL)
- ops->to_supports_evaluation_of_breakpoint_conditions = delegate_supports_evaluation_of_breakpoint_conditions;
- if (ops->to_can_run_breakpoint_commands == NULL)
- ops->to_can_run_breakpoint_commands = delegate_can_run_breakpoint_commands;
- if (ops->to_thread_architecture == NULL)
- ops->to_thread_architecture = delegate_thread_architecture;
- if (ops->to_thread_address_space == NULL)
- ops->to_thread_address_space = delegate_thread_address_space;
- if (ops->to_filesystem_is_local == NULL)
- ops->to_filesystem_is_local = delegate_filesystem_is_local;
- if (ops->to_trace_init == NULL)
- ops->to_trace_init = delegate_trace_init;
- if (ops->to_download_tracepoint == NULL)
- ops->to_download_tracepoint = delegate_download_tracepoint;
- if (ops->to_can_download_tracepoint == NULL)
- ops->to_can_download_tracepoint = delegate_can_download_tracepoint;
- if (ops->to_download_trace_state_variable == NULL)
- ops->to_download_trace_state_variable = delegate_download_trace_state_variable;
- if (ops->to_enable_tracepoint == NULL)
- ops->to_enable_tracepoint = delegate_enable_tracepoint;
- if (ops->to_disable_tracepoint == NULL)
- ops->to_disable_tracepoint = delegate_disable_tracepoint;
- if (ops->to_trace_set_readonly_regions == NULL)
- ops->to_trace_set_readonly_regions = delegate_trace_set_readonly_regions;
- if (ops->to_trace_start == NULL)
- ops->to_trace_start = delegate_trace_start;
- if (ops->to_get_trace_status == NULL)
- ops->to_get_trace_status = delegate_get_trace_status;
- if (ops->to_get_tracepoint_status == NULL)
- ops->to_get_tracepoint_status = delegate_get_tracepoint_status;
- if (ops->to_trace_stop == NULL)
- ops->to_trace_stop = delegate_trace_stop;
- if (ops->to_trace_find == NULL)
- ops->to_trace_find = delegate_trace_find;
- if (ops->to_get_trace_state_variable_value == NULL)
- ops->to_get_trace_state_variable_value = delegate_get_trace_state_variable_value;
- if (ops->to_save_trace_data == NULL)
- ops->to_save_trace_data = delegate_save_trace_data;
- if (ops->to_upload_tracepoints == NULL)
- ops->to_upload_tracepoints = delegate_upload_tracepoints;
- if (ops->to_upload_trace_state_variables == NULL)
- ops->to_upload_trace_state_variables = delegate_upload_trace_state_variables;
- if (ops->to_get_raw_trace_data == NULL)
- ops->to_get_raw_trace_data = delegate_get_raw_trace_data;
- if (ops->to_get_min_fast_tracepoint_insn_len == NULL)
- ops->to_get_min_fast_tracepoint_insn_len = delegate_get_min_fast_tracepoint_insn_len;
- if (ops->to_set_disconnected_tracing == NULL)
- ops->to_set_disconnected_tracing = delegate_set_disconnected_tracing;
- if (ops->to_set_circular_trace_buffer == NULL)
- ops->to_set_circular_trace_buffer = delegate_set_circular_trace_buffer;
- if (ops->to_set_trace_buffer_size == NULL)
- ops->to_set_trace_buffer_size = delegate_set_trace_buffer_size;
- if (ops->to_set_trace_notes == NULL)
- ops->to_set_trace_notes = delegate_set_trace_notes;
- if (ops->to_core_of_thread == NULL)
- ops->to_core_of_thread = delegate_core_of_thread;
- if (ops->to_verify_memory == NULL)
- ops->to_verify_memory = delegate_verify_memory;
- if (ops->to_get_tib_address == NULL)
- ops->to_get_tib_address = delegate_get_tib_address;
- if (ops->to_set_permissions == NULL)
- ops->to_set_permissions = delegate_set_permissions;
- if (ops->to_static_tracepoint_marker_at == NULL)
- ops->to_static_tracepoint_marker_at = delegate_static_tracepoint_marker_at;
- if (ops->to_static_tracepoint_markers_by_strid == NULL)
- ops->to_static_tracepoint_markers_by_strid = delegate_static_tracepoint_markers_by_strid;
- if (ops->to_traceframe_info == NULL)
- ops->to_traceframe_info = delegate_traceframe_info;
- if (ops->to_use_agent == NULL)
- ops->to_use_agent = delegate_use_agent;
- if (ops->to_can_use_agent == NULL)
- ops->to_can_use_agent = delegate_can_use_agent;
- if (ops->to_supports_btrace == NULL)
- ops->to_supports_btrace = delegate_supports_btrace;
- if (ops->to_enable_btrace == NULL)
- ops->to_enable_btrace = delegate_enable_btrace;
- if (ops->to_disable_btrace == NULL)
- ops->to_disable_btrace = delegate_disable_btrace;
- if (ops->to_teardown_btrace == NULL)
- ops->to_teardown_btrace = delegate_teardown_btrace;
- if (ops->to_read_btrace == NULL)
- ops->to_read_btrace = delegate_read_btrace;
- if (ops->to_btrace_conf == NULL)
- ops->to_btrace_conf = delegate_btrace_conf;
- if (ops->to_record_method == NULL)
- ops->to_record_method = delegate_record_method;
- if (ops->to_stop_recording == NULL)
- ops->to_stop_recording = delegate_stop_recording;
- if (ops->to_info_record == NULL)
- ops->to_info_record = delegate_info_record;
- if (ops->to_save_record == NULL)
- ops->to_save_record = delegate_save_record;
- if (ops->to_delete_record == NULL)
- ops->to_delete_record = delegate_delete_record;
- if (ops->to_record_is_replaying == NULL)
- ops->to_record_is_replaying = delegate_record_is_replaying;
- if (ops->to_record_will_replay == NULL)
- ops->to_record_will_replay = delegate_record_will_replay;
- if (ops->to_record_stop_replaying == NULL)
- ops->to_record_stop_replaying = delegate_record_stop_replaying;
- if (ops->to_goto_record_begin == NULL)
- ops->to_goto_record_begin = delegate_goto_record_begin;
- if (ops->to_goto_record_end == NULL)
- ops->to_goto_record_end = delegate_goto_record_end;
- if (ops->to_goto_record == NULL)
- ops->to_goto_record = delegate_goto_record;
- if (ops->to_insn_history == NULL)
- ops->to_insn_history = delegate_insn_history;
- if (ops->to_insn_history_from == NULL)
- ops->to_insn_history_from = delegate_insn_history_from;
- if (ops->to_insn_history_range == NULL)
- ops->to_insn_history_range = delegate_insn_history_range;
- if (ops->to_call_history == NULL)
- ops->to_call_history = delegate_call_history;
- if (ops->to_call_history_from == NULL)
- ops->to_call_history_from = delegate_call_history_from;
- if (ops->to_call_history_range == NULL)
- ops->to_call_history_range = delegate_call_history_range;
- if (ops->to_augmented_libraries_svr4_read == NULL)
- ops->to_augmented_libraries_svr4_read = delegate_augmented_libraries_svr4_read;
- if (ops->to_get_unwinder == NULL)
- ops->to_get_unwinder = delegate_get_unwinder;
- if (ops->to_get_tailcall_unwinder == NULL)
- ops->to_get_tailcall_unwinder = delegate_get_tailcall_unwinder;
- if (ops->to_prepare_to_generate_core == NULL)
- ops->to_prepare_to_generate_core = delegate_prepare_to_generate_core;
- if (ops->to_done_generating_core == NULL)
- ops->to_done_generating_core = delegate_done_generating_core;
-}
-
-static void
-install_dummy_methods (struct target_ops *ops)
-{
- ops->to_post_attach = tdefault_post_attach;
- ops->to_detach = tdefault_detach;
- ops->to_disconnect = tdefault_disconnect;
- ops->to_resume = tdefault_resume;
- ops->to_commit_resume = tdefault_commit_resume;
- ops->to_wait = default_target_wait;
- ops->to_fetch_registers = tdefault_fetch_registers;
- ops->to_store_registers = tdefault_store_registers;
- ops->to_prepare_to_store = tdefault_prepare_to_store;
- ops->to_files_info = tdefault_files_info;
- ops->to_insert_breakpoint = memory_insert_breakpoint;
- ops->to_remove_breakpoint = memory_remove_breakpoint;
- ops->to_stopped_by_sw_breakpoint = tdefault_stopped_by_sw_breakpoint;
- ops->to_supports_stopped_by_sw_breakpoint = tdefault_supports_stopped_by_sw_breakpoint;
- ops->to_stopped_by_hw_breakpoint = tdefault_stopped_by_hw_breakpoint;
- ops->to_supports_stopped_by_hw_breakpoint = tdefault_supports_stopped_by_hw_breakpoint;
- ops->to_can_use_hw_breakpoint = tdefault_can_use_hw_breakpoint;
- ops->to_ranged_break_num_registers = tdefault_ranged_break_num_registers;
- ops->to_insert_hw_breakpoint = tdefault_insert_hw_breakpoint;
- ops->to_remove_hw_breakpoint = tdefault_remove_hw_breakpoint;
- ops->to_remove_watchpoint = tdefault_remove_watchpoint;
- ops->to_insert_watchpoint = tdefault_insert_watchpoint;
- ops->to_insert_mask_watchpoint = tdefault_insert_mask_watchpoint;
- ops->to_remove_mask_watchpoint = tdefault_remove_mask_watchpoint;
- ops->to_stopped_by_watchpoint = tdefault_stopped_by_watchpoint;
- ops->to_stopped_data_address = tdefault_stopped_data_address;
- ops->to_watchpoint_addr_within_range = default_watchpoint_addr_within_range;
- ops->to_region_ok_for_hw_watchpoint = default_region_ok_for_hw_watchpoint;
- ops->to_can_accel_watchpoint_condition = tdefault_can_accel_watchpoint_condition;
- ops->to_masked_watch_num_registers = tdefault_masked_watch_num_registers;
- ops->to_can_do_single_step = tdefault_can_do_single_step;
- ops->to_terminal_init = tdefault_terminal_init;
- ops->to_terminal_inferior = tdefault_terminal_inferior;
- ops->to_terminal_ours_for_output = tdefault_terminal_ours_for_output;
- ops->to_terminal_ours = tdefault_terminal_ours;
- ops->to_terminal_info = default_terminal_info;
- ops->to_kill = tdefault_kill;
- ops->to_load = tdefault_load;
- ops->to_post_startup_inferior = tdefault_post_startup_inferior;
- ops->to_insert_fork_catchpoint = tdefault_insert_fork_catchpoint;
- ops->to_remove_fork_catchpoint = tdefault_remove_fork_catchpoint;
- ops->to_insert_vfork_catchpoint = tdefault_insert_vfork_catchpoint;
- ops->to_remove_vfork_catchpoint = tdefault_remove_vfork_catchpoint;
- ops->to_follow_fork = default_follow_fork;
- ops->to_insert_exec_catchpoint = tdefault_insert_exec_catchpoint;
- ops->to_remove_exec_catchpoint = tdefault_remove_exec_catchpoint;
- ops->to_follow_exec = tdefault_follow_exec;
- ops->to_set_syscall_catchpoint = tdefault_set_syscall_catchpoint;
- ops->to_has_exited = tdefault_has_exited;
- ops->to_mourn_inferior = default_mourn_inferior;
- ops->to_can_run = tdefault_can_run;
- ops->to_pass_signals = tdefault_pass_signals;
- ops->to_program_signals = tdefault_program_signals;
- ops->to_thread_alive = tdefault_thread_alive;
- ops->to_update_thread_list = tdefault_update_thread_list;
- ops->to_pid_to_str = default_pid_to_str;
- ops->to_extra_thread_info = tdefault_extra_thread_info;
- ops->to_thread_name = tdefault_thread_name;
- ops->to_thread_handle_to_thread_info = tdefault_thread_handle_to_thread_info;
- ops->to_stop = tdefault_stop;
- ops->to_interrupt = tdefault_interrupt;
- ops->to_pass_ctrlc = default_target_pass_ctrlc;
- ops->to_rcmd = default_rcmd;
- ops->to_pid_to_exec_file = tdefault_pid_to_exec_file;
- ops->to_log_command = tdefault_log_command;
- ops->to_get_section_table = tdefault_get_section_table;
- ops->to_can_async_p = tdefault_can_async_p;
- ops->to_is_async_p = tdefault_is_async_p;
- ops->to_async = tdefault_async;
- ops->to_thread_events = tdefault_thread_events;
- ops->to_supports_non_stop = tdefault_supports_non_stop;
- ops->to_always_non_stop_p = tdefault_always_non_stop_p;
- ops->to_find_memory_regions = dummy_find_memory_regions;
- ops->to_make_corefile_notes = dummy_make_corefile_notes;
- ops->to_get_bookmark = tdefault_get_bookmark;
- ops->to_goto_bookmark = tdefault_goto_bookmark;
- ops->to_get_thread_local_address = tdefault_get_thread_local_address;
- ops->to_xfer_partial = tdefault_xfer_partial;
- ops->to_get_memory_xfer_limit = tdefault_get_memory_xfer_limit;
- ops->to_memory_map = tdefault_memory_map;
- ops->to_flash_erase = tdefault_flash_erase;
- ops->to_flash_done = tdefault_flash_done;
- ops->to_read_description = tdefault_read_description;
- ops->to_get_ada_task_ptid = default_get_ada_task_ptid;
- ops->to_auxv_parse = default_auxv_parse;
- ops->to_search_memory = default_search_memory;
- ops->to_can_execute_reverse = tdefault_can_execute_reverse;
- ops->to_execution_direction = default_execution_direction;
- ops->to_supports_multi_process = tdefault_supports_multi_process;
- ops->to_supports_enable_disable_tracepoint = tdefault_supports_enable_disable_tracepoint;
- ops->to_supports_string_tracing = tdefault_supports_string_tracing;
- ops->to_supports_evaluation_of_breakpoint_conditions = tdefault_supports_evaluation_of_breakpoint_conditions;
- ops->to_can_run_breakpoint_commands = tdefault_can_run_breakpoint_commands;
- ops->to_thread_architecture = default_thread_architecture;
- ops->to_thread_address_space = default_thread_address_space;
- ops->to_filesystem_is_local = tdefault_filesystem_is_local;
- ops->to_trace_init = tdefault_trace_init;
- ops->to_download_tracepoint = tdefault_download_tracepoint;
- ops->to_can_download_tracepoint = tdefault_can_download_tracepoint;
- ops->to_download_trace_state_variable = tdefault_download_trace_state_variable;
- ops->to_enable_tracepoint = tdefault_enable_tracepoint;
- ops->to_disable_tracepoint = tdefault_disable_tracepoint;
- ops->to_trace_set_readonly_regions = tdefault_trace_set_readonly_regions;
- ops->to_trace_start = tdefault_trace_start;
- ops->to_get_trace_status = tdefault_get_trace_status;
- ops->to_get_tracepoint_status = tdefault_get_tracepoint_status;
- ops->to_trace_stop = tdefault_trace_stop;
- ops->to_trace_find = tdefault_trace_find;
- ops->to_get_trace_state_variable_value = tdefault_get_trace_state_variable_value;
- ops->to_save_trace_data = tdefault_save_trace_data;
- ops->to_upload_tracepoints = tdefault_upload_tracepoints;
- ops->to_upload_trace_state_variables = tdefault_upload_trace_state_variables;
- ops->to_get_raw_trace_data = tdefault_get_raw_trace_data;
- ops->to_get_min_fast_tracepoint_insn_len = tdefault_get_min_fast_tracepoint_insn_len;
- ops->to_set_disconnected_tracing = tdefault_set_disconnected_tracing;
- ops->to_set_circular_trace_buffer = tdefault_set_circular_trace_buffer;
- ops->to_set_trace_buffer_size = tdefault_set_trace_buffer_size;
- ops->to_set_trace_notes = tdefault_set_trace_notes;
- ops->to_core_of_thread = tdefault_core_of_thread;
- ops->to_verify_memory = default_verify_memory;
- ops->to_get_tib_address = tdefault_get_tib_address;
- ops->to_set_permissions = tdefault_set_permissions;
- ops->to_static_tracepoint_marker_at = tdefault_static_tracepoint_marker_at;
- ops->to_static_tracepoint_markers_by_strid = tdefault_static_tracepoint_markers_by_strid;
- ops->to_traceframe_info = tdefault_traceframe_info;
- ops->to_use_agent = tdefault_use_agent;
- ops->to_can_use_agent = tdefault_can_use_agent;
- ops->to_supports_btrace = tdefault_supports_btrace;
- ops->to_enable_btrace = tdefault_enable_btrace;
- ops->to_disable_btrace = tdefault_disable_btrace;
- ops->to_teardown_btrace = tdefault_teardown_btrace;
- ops->to_read_btrace = tdefault_read_btrace;
- ops->to_btrace_conf = tdefault_btrace_conf;
- ops->to_record_method = tdefault_record_method;
- ops->to_stop_recording = tdefault_stop_recording;
- ops->to_info_record = tdefault_info_record;
- ops->to_save_record = tdefault_save_record;
- ops->to_delete_record = tdefault_delete_record;
- ops->to_record_is_replaying = tdefault_record_is_replaying;
- ops->to_record_will_replay = tdefault_record_will_replay;
- ops->to_record_stop_replaying = tdefault_record_stop_replaying;
- ops->to_goto_record_begin = tdefault_goto_record_begin;
- ops->to_goto_record_end = tdefault_goto_record_end;
- ops->to_goto_record = tdefault_goto_record;
- ops->to_insn_history = tdefault_insn_history;
- ops->to_insn_history_from = tdefault_insn_history_from;
- ops->to_insn_history_range = tdefault_insn_history_range;
- ops->to_call_history = tdefault_call_history;
- ops->to_call_history_from = tdefault_call_history_from;
- ops->to_call_history_range = tdefault_call_history_range;
- ops->to_augmented_libraries_svr4_read = tdefault_augmented_libraries_svr4_read;
- ops->to_get_unwinder = tdefault_get_unwinder;
- ops->to_get_tailcall_unwinder = tdefault_get_tailcall_unwinder;
- ops->to_prepare_to_generate_core = tdefault_prepare_to_generate_core;
- ops->to_done_generating_core = tdefault_done_generating_core;
-}
-
-static void
-init_debug_target (struct target_ops *ops)
-{
- ops->to_post_attach = debug_post_attach;
- ops->to_detach = debug_detach;
- ops->to_disconnect = debug_disconnect;
- ops->to_resume = debug_resume;
- ops->to_commit_resume = debug_commit_resume;
- ops->to_wait = debug_wait;
- ops->to_fetch_registers = debug_fetch_registers;
- ops->to_store_registers = debug_store_registers;
- ops->to_prepare_to_store = debug_prepare_to_store;
- ops->to_files_info = debug_files_info;
- ops->to_insert_breakpoint = debug_insert_breakpoint;
- ops->to_remove_breakpoint = debug_remove_breakpoint;
- ops->to_stopped_by_sw_breakpoint = debug_stopped_by_sw_breakpoint;
- ops->to_supports_stopped_by_sw_breakpoint = debug_supports_stopped_by_sw_breakpoint;
- ops->to_stopped_by_hw_breakpoint = debug_stopped_by_hw_breakpoint;
- ops->to_supports_stopped_by_hw_breakpoint = debug_supports_stopped_by_hw_breakpoint;
- ops->to_can_use_hw_breakpoint = debug_can_use_hw_breakpoint;
- ops->to_ranged_break_num_registers = debug_ranged_break_num_registers;
- ops->to_insert_hw_breakpoint = debug_insert_hw_breakpoint;
- ops->to_remove_hw_breakpoint = debug_remove_hw_breakpoint;
- ops->to_remove_watchpoint = debug_remove_watchpoint;
- ops->to_insert_watchpoint = debug_insert_watchpoint;
- ops->to_insert_mask_watchpoint = debug_insert_mask_watchpoint;
- ops->to_remove_mask_watchpoint = debug_remove_mask_watchpoint;
- ops->to_stopped_by_watchpoint = debug_stopped_by_watchpoint;
- ops->to_stopped_data_address = debug_stopped_data_address;
- ops->to_watchpoint_addr_within_range = debug_watchpoint_addr_within_range;
- ops->to_region_ok_for_hw_watchpoint = debug_region_ok_for_hw_watchpoint;
- ops->to_can_accel_watchpoint_condition = debug_can_accel_watchpoint_condition;
- ops->to_masked_watch_num_registers = debug_masked_watch_num_registers;
- ops->to_can_do_single_step = debug_can_do_single_step;
- ops->to_terminal_init = debug_terminal_init;
- ops->to_terminal_inferior = debug_terminal_inferior;
- ops->to_terminal_ours_for_output = debug_terminal_ours_for_output;
- ops->to_terminal_ours = debug_terminal_ours;
- ops->to_terminal_info = debug_terminal_info;
- ops->to_kill = debug_kill;
- ops->to_load = debug_load;
- ops->to_post_startup_inferior = debug_post_startup_inferior;
- ops->to_insert_fork_catchpoint = debug_insert_fork_catchpoint;
- ops->to_remove_fork_catchpoint = debug_remove_fork_catchpoint;
- ops->to_insert_vfork_catchpoint = debug_insert_vfork_catchpoint;
- ops->to_remove_vfork_catchpoint = debug_remove_vfork_catchpoint;
- ops->to_follow_fork = debug_follow_fork;
- ops->to_insert_exec_catchpoint = debug_insert_exec_catchpoint;
- ops->to_remove_exec_catchpoint = debug_remove_exec_catchpoint;
- ops->to_follow_exec = debug_follow_exec;
- ops->to_set_syscall_catchpoint = debug_set_syscall_catchpoint;
- ops->to_has_exited = debug_has_exited;
- ops->to_mourn_inferior = debug_mourn_inferior;
- ops->to_can_run = debug_can_run;
- ops->to_pass_signals = debug_pass_signals;
- ops->to_program_signals = debug_program_signals;
- ops->to_thread_alive = debug_thread_alive;
- ops->to_update_thread_list = debug_update_thread_list;
- ops->to_pid_to_str = debug_pid_to_str;
- ops->to_extra_thread_info = debug_extra_thread_info;
- ops->to_thread_name = debug_thread_name;
- ops->to_thread_handle_to_thread_info = debug_thread_handle_to_thread_info;
- ops->to_stop = debug_stop;
- ops->to_interrupt = debug_interrupt;
- ops->to_pass_ctrlc = debug_pass_ctrlc;
- ops->to_rcmd = debug_rcmd;
- ops->to_pid_to_exec_file = debug_pid_to_exec_file;
- ops->to_log_command = debug_log_command;
- ops->to_get_section_table = debug_get_section_table;
- ops->to_can_async_p = debug_can_async_p;
- ops->to_is_async_p = debug_is_async_p;
- ops->to_async = debug_async;
- ops->to_thread_events = debug_thread_events;
- ops->to_supports_non_stop = debug_supports_non_stop;
- ops->to_always_non_stop_p = debug_always_non_stop_p;
- ops->to_find_memory_regions = debug_find_memory_regions;
- ops->to_make_corefile_notes = debug_make_corefile_notes;
- ops->to_get_bookmark = debug_get_bookmark;
- ops->to_goto_bookmark = debug_goto_bookmark;
- ops->to_get_thread_local_address = debug_get_thread_local_address;
- ops->to_xfer_partial = debug_xfer_partial;
- ops->to_get_memory_xfer_limit = debug_get_memory_xfer_limit;
- ops->to_memory_map = debug_memory_map;
- ops->to_flash_erase = debug_flash_erase;
- ops->to_flash_done = debug_flash_done;
- ops->to_read_description = debug_read_description;
- ops->to_get_ada_task_ptid = debug_get_ada_task_ptid;
- ops->to_auxv_parse = debug_auxv_parse;
- ops->to_search_memory = debug_search_memory;
- ops->to_can_execute_reverse = debug_can_execute_reverse;
- ops->to_execution_direction = debug_execution_direction;
- ops->to_supports_multi_process = debug_supports_multi_process;
- ops->to_supports_enable_disable_tracepoint = debug_supports_enable_disable_tracepoint;
- ops->to_supports_string_tracing = debug_supports_string_tracing;
- ops->to_supports_evaluation_of_breakpoint_conditions = debug_supports_evaluation_of_breakpoint_conditions;
- ops->to_can_run_breakpoint_commands = debug_can_run_breakpoint_commands;
- ops->to_thread_architecture = debug_thread_architecture;
- ops->to_thread_address_space = debug_thread_address_space;
- ops->to_filesystem_is_local = debug_filesystem_is_local;
- ops->to_trace_init = debug_trace_init;
- ops->to_download_tracepoint = debug_download_tracepoint;
- ops->to_can_download_tracepoint = debug_can_download_tracepoint;
- ops->to_download_trace_state_variable = debug_download_trace_state_variable;
- ops->to_enable_tracepoint = debug_enable_tracepoint;
- ops->to_disable_tracepoint = debug_disable_tracepoint;
- ops->to_trace_set_readonly_regions = debug_trace_set_readonly_regions;
- ops->to_trace_start = debug_trace_start;
- ops->to_get_trace_status = debug_get_trace_status;
- ops->to_get_tracepoint_status = debug_get_tracepoint_status;
- ops->to_trace_stop = debug_trace_stop;
- ops->to_trace_find = debug_trace_find;
- ops->to_get_trace_state_variable_value = debug_get_trace_state_variable_value;
- ops->to_save_trace_data = debug_save_trace_data;
- ops->to_upload_tracepoints = debug_upload_tracepoints;
- ops->to_upload_trace_state_variables = debug_upload_trace_state_variables;
- ops->to_get_raw_trace_data = debug_get_raw_trace_data;
- ops->to_get_min_fast_tracepoint_insn_len = debug_get_min_fast_tracepoint_insn_len;
- ops->to_set_disconnected_tracing = debug_set_disconnected_tracing;
- ops->to_set_circular_trace_buffer = debug_set_circular_trace_buffer;
- ops->to_set_trace_buffer_size = debug_set_trace_buffer_size;
- ops->to_set_trace_notes = debug_set_trace_notes;
- ops->to_core_of_thread = debug_core_of_thread;
- ops->to_verify_memory = debug_verify_memory;
- ops->to_get_tib_address = debug_get_tib_address;
- ops->to_set_permissions = debug_set_permissions;
- ops->to_static_tracepoint_marker_at = debug_static_tracepoint_marker_at;
- ops->to_static_tracepoint_markers_by_strid = debug_static_tracepoint_markers_by_strid;
- ops->to_traceframe_info = debug_traceframe_info;
- ops->to_use_agent = debug_use_agent;
- ops->to_can_use_agent = debug_can_use_agent;
- ops->to_supports_btrace = debug_supports_btrace;
- ops->to_enable_btrace = debug_enable_btrace;
- ops->to_disable_btrace = debug_disable_btrace;
- ops->to_teardown_btrace = debug_teardown_btrace;
- ops->to_read_btrace = debug_read_btrace;
- ops->to_btrace_conf = debug_btrace_conf;
- ops->to_record_method = debug_record_method;
- ops->to_stop_recording = debug_stop_recording;
- ops->to_info_record = debug_info_record;
- ops->to_save_record = debug_save_record;
- ops->to_delete_record = debug_delete_record;
- ops->to_record_is_replaying = debug_record_is_replaying;
- ops->to_record_will_replay = debug_record_will_replay;
- ops->to_record_stop_replaying = debug_record_stop_replaying;
- ops->to_goto_record_begin = debug_goto_record_begin;
- ops->to_goto_record_end = debug_goto_record_end;
- ops->to_goto_record = debug_goto_record;
- ops->to_insn_history = debug_insn_history;
- ops->to_insn_history_from = debug_insn_history_from;
- ops->to_insn_history_range = debug_insn_history_range;
- ops->to_call_history = debug_call_history;
- ops->to_call_history_from = debug_call_history_from;
- ops->to_call_history_range = debug_call_history_range;
- ops->to_augmented_libraries_svr4_read = debug_augmented_libraries_svr4_read;
- ops->to_get_unwinder = debug_get_unwinder;
- ops->to_get_tailcall_unwinder = debug_get_tailcall_unwinder;
- ops->to_prepare_to_generate_core = debug_prepare_to_generate_core;
- ops->to_done_generating_core = debug_done_generating_core;