Multi-target support
[deliverable/binutils-gdb.git] / gdb / target-delegates.c
CommitLineData
1101cb7b
TT
1/* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
2/* vi:set ro: */
3
4/* To regenerate this file, run:*/
5/* make-target-delegates target.h > target-delegates.c */
bebd3233 6
f6ac5f3d
PA
7struct dummy_target : public target_ops
8{
d9f719f1 9 const target_info &info () const override;
f6ac5f3d 10
66b4deae
PA
11 strata stratum () const override;
12
f6ac5f3d
PA
13 void post_attach (int arg0) override;
14 void detach (inferior *arg0, int arg1) override;
15 void disconnect (const char *arg0, int arg1) override;
16 void resume (ptid_t arg0, int arg1, enum gdb_signal arg2) override;
17 void commit_resume () override;
18 ptid_t wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2) override;
19 void fetch_registers (struct regcache *arg0, int arg1) override;
20 void store_registers (struct regcache *arg0, int arg1) override;
21 void prepare_to_store (struct regcache *arg0) override;
22 void files_info () override;
23 int insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
24 int remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2) override;
57810aa7
PA
25 bool stopped_by_sw_breakpoint () override;
26 bool supports_stopped_by_sw_breakpoint () override;
27 bool stopped_by_hw_breakpoint () override;
28 bool supports_stopped_by_hw_breakpoint () override;
f6ac5f3d
PA
29 int can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2) override;
30 int ranged_break_num_registers () override;
31 int insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
32 int remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
33 int remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
34 int insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
35 int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
36 int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
57810aa7 37 bool stopped_by_watchpoint () override;
c2a6c5da 38 bool have_steppable_watchpoint () override;
57810aa7
PA
39 bool stopped_data_address (CORE_ADDR *arg0) override;
40 bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override;
f6ac5f3d 41 int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override;
57810aa7 42 bool can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override;
f6ac5f3d
PA
43 int masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1) override;
44 int can_do_single_step () override;
45 bool supports_terminal_ours () override;
46 void terminal_init () override;
47 void terminal_inferior () override;
48 void terminal_save_inferior () override;
49 void terminal_ours_for_output () override;
50 void terminal_ours () override;
51 void terminal_info (const char *arg0, int arg1) override;
52 void kill () override;
53 void load (const char *arg0, int arg1) override;
54 void post_startup_inferior (ptid_t arg0) override;
55 int insert_fork_catchpoint (int arg0) override;
56 int remove_fork_catchpoint (int arg0) override;
57 int insert_vfork_catchpoint (int arg0) override;
58 int remove_vfork_catchpoint (int arg0) override;
59 int follow_fork (int arg0, int arg1) override;
60 int insert_exec_catchpoint (int arg0) override;
61 int remove_exec_catchpoint (int arg0) override;
4ca51187 62 void follow_exec (struct inferior *arg0, const char *arg1) override;
f6ac5f3d
PA
63 int set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3) override;
64 void mourn_inferior () override;
adc6a863
PA
65 void pass_signals (gdb::array_view<const unsigned char> arg0) override;
66 void program_signals (gdb::array_view<const unsigned char> arg0) override;
57810aa7 67 bool thread_alive (ptid_t arg0) override;
f6ac5f3d 68 void update_thread_list () override;
a068643d 69 std::string pid_to_str (ptid_t arg0) override;
f6ac5f3d
PA
70 const char *extra_thread_info (thread_info *arg0) override;
71 const char *thread_name (thread_info *arg0) override;
72 thread_info *thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2) override;
3d6c6204 73 gdb::byte_vector thread_info_to_thread_handle (struct thread_info *arg0) override;
f6ac5f3d
PA
74 void stop (ptid_t arg0) override;
75 void interrupt () override;
76 void pass_ctrlc () override;
77 void rcmd (const char *arg0, struct ui_file *arg1) override;
78 char *pid_to_exec_file (int arg0) override;
79 void log_command (const char *arg0) override;
80 struct target_section_table *get_section_table () override;
81 thread_control_capabilities get_thread_control_capabilities () override;
82 bool attach_no_wait () override;
57810aa7
PA
83 bool can_async_p () override;
84 bool is_async_p () override;
f6ac5f3d 85 void async (int arg0) override;
5b6d1e4f 86 int async_wait_fd () override;
f6ac5f3d 87 void thread_events (int arg0) override;
57810aa7
PA
88 bool supports_non_stop () override;
89 bool always_non_stop_p () override;
f6ac5f3d
PA
90 int find_memory_regions (find_memory_region_ftype arg0, void *arg1) override;
91 char *make_corefile_notes (bfd *arg0, int *arg1) override;
92 gdb_byte *get_bookmark (const char *arg0, int arg1) override;
93 void goto_bookmark (const gdb_byte *arg0, int arg1) override;
94 CORE_ADDR get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2) override;
95 enum target_xfer_status xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6) override;
96 ULONGEST get_memory_xfer_limit () override;
97 std::vector<mem_region> memory_map () override;
98 void flash_erase (ULONGEST arg0, LONGEST arg1) override;
99 void flash_done () override;
100 const struct target_desc *read_description () override;
101 ptid_t get_ada_task_ptid (long arg0, long arg1) override;
102 int auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3) override;
103 int search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4) override;
57810aa7 104 bool can_execute_reverse () override;
f6ac5f3d 105 enum exec_direction_kind execution_direction () override;
57810aa7
PA
106 bool supports_multi_process () override;
107 bool supports_enable_disable_tracepoint () override;
108 bool supports_disable_randomization () override;
109 bool supports_string_tracing () override;
110 bool supports_evaluation_of_breakpoint_conditions () override;
111 bool can_run_breakpoint_commands () override;
f6ac5f3d
PA
112 struct gdbarch *thread_architecture (ptid_t arg0) override;
113 struct address_space *thread_address_space (ptid_t arg0) override;
57810aa7 114 bool filesystem_is_local () override;
f6ac5f3d
PA
115 void trace_init () override;
116 void download_tracepoint (struct bp_location *arg0) override;
57810aa7 117 bool can_download_tracepoint () override;
f6ac5f3d
PA
118 void download_trace_state_variable (const trace_state_variable &arg0) override;
119 void enable_tracepoint (struct bp_location *arg0) override;
120 void disable_tracepoint (struct bp_location *arg0) override;
121 void trace_set_readonly_regions () override;
122 void trace_start () override;
123 int get_trace_status (struct trace_status *arg0) override;
124 void get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1) override;
125 void trace_stop () override;
126 int trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4) override;
57810aa7 127 bool get_trace_state_variable_value (int arg0, LONGEST *arg1) override;
f6ac5f3d
PA
128 int save_trace_data (const char *arg0) override;
129 int upload_tracepoints (struct uploaded_tp **arg0) override;
130 int upload_trace_state_variables (struct uploaded_tsv **arg0) override;
131 LONGEST get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2) override;
132 int get_min_fast_tracepoint_insn_len () override;
133 void set_disconnected_tracing (int arg0) override;
134 void set_circular_trace_buffer (int arg0) override;
135 void set_trace_buffer_size (LONGEST arg0) override;
57810aa7 136 bool set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override;
f6ac5f3d
PA
137 int core_of_thread (ptid_t arg0) override;
138 int verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2) override;
57810aa7 139 bool get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override;
f6ac5f3d
PA
140 void set_permissions () override;
141 bool static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1) override;
142 std::vector<static_tracepoint_marker> static_tracepoint_markers_by_strid (const char *arg0) override;
143 traceframe_info_up traceframe_info () override;
57810aa7
PA
144 bool use_agent (bool arg0) override;
145 bool can_use_agent () override;
f6ac5f3d
PA
146 struct btrace_target_info *enable_btrace (ptid_t arg0, const struct btrace_config *arg1) override;
147 void disable_btrace (struct btrace_target_info *arg0) override;
148 void teardown_btrace (struct btrace_target_info *arg0) override;
149 enum btrace_error read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2) override;
150 const struct btrace_config *btrace_conf (const struct btrace_target_info *arg0) override;
151 enum record_method record_method (ptid_t arg0) override;
152 void stop_recording () override;
153 void info_record () override;
154 void save_record (const char *arg0) override;
155 bool supports_delete_record () override;
156 void delete_record () override;
57810aa7
PA
157 bool record_is_replaying (ptid_t arg0) override;
158 bool record_will_replay (ptid_t arg0, int arg1) override;
f6ac5f3d
PA
159 void record_stop_replaying () override;
160 void goto_record_begin () override;
161 void goto_record_end () override;
162 void goto_record (ULONGEST arg0) override;
163 void insn_history (int arg0, gdb_disassembly_flags arg1) override;
164 void insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2) override;
165 void insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2) override;
166 void call_history (int arg0, record_print_flags arg1) override;
167 void call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2) override;
168 void call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2) override;
57810aa7 169 bool augmented_libraries_svr4_read () override;
f6ac5f3d
PA
170 const struct frame_unwind *get_unwinder () override;
171 const struct frame_unwind *get_tailcall_unwinder () override;
172 void prepare_to_generate_core () override;
173 void done_generating_core () override;
174};
175
176struct debug_target : public target_ops
177{
d9f719f1 178 const target_info &info () const override;
f6ac5f3d 179
66b4deae
PA
180 strata stratum () const override;
181
f6ac5f3d
PA
182 void post_attach (int arg0) override;
183 void detach (inferior *arg0, int arg1) override;
184 void disconnect (const char *arg0, int arg1) override;
185 void resume (ptid_t arg0, int arg1, enum gdb_signal arg2) override;
186 void commit_resume () override;
187 ptid_t wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2) override;
188 void fetch_registers (struct regcache *arg0, int arg1) override;
189 void store_registers (struct regcache *arg0, int arg1) override;
190 void prepare_to_store (struct regcache *arg0) override;
191 void files_info () override;
192 int insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
193 int remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2) override;
57810aa7
PA
194 bool stopped_by_sw_breakpoint () override;
195 bool supports_stopped_by_sw_breakpoint () override;
196 bool stopped_by_hw_breakpoint () override;
197 bool supports_stopped_by_hw_breakpoint () override;
f6ac5f3d
PA
198 int can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2) override;
199 int ranged_break_num_registers () override;
200 int insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
201 int remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1) override;
202 int remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
203 int insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3) override;
204 int insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
205 int remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2) override;
57810aa7 206 bool stopped_by_watchpoint () override;
c2a6c5da 207 bool have_steppable_watchpoint () override;
57810aa7
PA
208 bool stopped_data_address (CORE_ADDR *arg0) override;
209 bool watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) override;
f6ac5f3d 210 int region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) override;
57810aa7 211 bool can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) override;
f6ac5f3d
PA
212 int masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1) override;
213 int can_do_single_step () override;
214 bool supports_terminal_ours () override;
215 void terminal_init () override;
216 void terminal_inferior () override;
217 void terminal_save_inferior () override;
218 void terminal_ours_for_output () override;
219 void terminal_ours () override;
220 void terminal_info (const char *arg0, int arg1) override;
221 void kill () override;
222 void load (const char *arg0, int arg1) override;
223 void post_startup_inferior (ptid_t arg0) override;
224 int insert_fork_catchpoint (int arg0) override;
225 int remove_fork_catchpoint (int arg0) override;
226 int insert_vfork_catchpoint (int arg0) override;
227 int remove_vfork_catchpoint (int arg0) override;
228 int follow_fork (int arg0, int arg1) override;
229 int insert_exec_catchpoint (int arg0) override;
230 int remove_exec_catchpoint (int arg0) override;
4ca51187 231 void follow_exec (struct inferior *arg0, const char *arg1) override;
f6ac5f3d
PA
232 int set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3) override;
233 void mourn_inferior () override;
adc6a863
PA
234 void pass_signals (gdb::array_view<const unsigned char> arg0) override;
235 void program_signals (gdb::array_view<const unsigned char> arg0) override;
57810aa7 236 bool thread_alive (ptid_t arg0) override;
f6ac5f3d 237 void update_thread_list () override;
a068643d 238 std::string pid_to_str (ptid_t arg0) override;
f6ac5f3d
PA
239 const char *extra_thread_info (thread_info *arg0) override;
240 const char *thread_name (thread_info *arg0) override;
241 thread_info *thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2) override;
3d6c6204 242 gdb::byte_vector thread_info_to_thread_handle (struct thread_info *arg0) override;
f6ac5f3d
PA
243 void stop (ptid_t arg0) override;
244 void interrupt () override;
245 void pass_ctrlc () override;
246 void rcmd (const char *arg0, struct ui_file *arg1) override;
247 char *pid_to_exec_file (int arg0) override;
248 void log_command (const char *arg0) override;
249 struct target_section_table *get_section_table () override;
250 thread_control_capabilities get_thread_control_capabilities () override;
251 bool attach_no_wait () override;
57810aa7
PA
252 bool can_async_p () override;
253 bool is_async_p () override;
f6ac5f3d 254 void async (int arg0) override;
5b6d1e4f 255 int async_wait_fd () override;
f6ac5f3d 256 void thread_events (int arg0) override;
57810aa7
PA
257 bool supports_non_stop () override;
258 bool always_non_stop_p () override;
f6ac5f3d
PA
259 int find_memory_regions (find_memory_region_ftype arg0, void *arg1) override;
260 char *make_corefile_notes (bfd *arg0, int *arg1) override;
261 gdb_byte *get_bookmark (const char *arg0, int arg1) override;
262 void goto_bookmark (const gdb_byte *arg0, int arg1) override;
263 CORE_ADDR get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2) override;
264 enum target_xfer_status xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6) override;
265 ULONGEST get_memory_xfer_limit () override;
266 std::vector<mem_region> memory_map () override;
267 void flash_erase (ULONGEST arg0, LONGEST arg1) override;
268 void flash_done () override;
269 const struct target_desc *read_description () override;
270 ptid_t get_ada_task_ptid (long arg0, long arg1) override;
271 int auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3) override;
272 int search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4) override;
57810aa7 273 bool can_execute_reverse () override;
f6ac5f3d 274 enum exec_direction_kind execution_direction () override;
57810aa7
PA
275 bool supports_multi_process () override;
276 bool supports_enable_disable_tracepoint () override;
277 bool supports_disable_randomization () override;
278 bool supports_string_tracing () override;
279 bool supports_evaluation_of_breakpoint_conditions () override;
280 bool can_run_breakpoint_commands () override;
f6ac5f3d
PA
281 struct gdbarch *thread_architecture (ptid_t arg0) override;
282 struct address_space *thread_address_space (ptid_t arg0) override;
57810aa7 283 bool filesystem_is_local () override;
f6ac5f3d
PA
284 void trace_init () override;
285 void download_tracepoint (struct bp_location *arg0) override;
57810aa7 286 bool can_download_tracepoint () override;
f6ac5f3d
PA
287 void download_trace_state_variable (const trace_state_variable &arg0) override;
288 void enable_tracepoint (struct bp_location *arg0) override;
289 void disable_tracepoint (struct bp_location *arg0) override;
290 void trace_set_readonly_regions () override;
291 void trace_start () override;
292 int get_trace_status (struct trace_status *arg0) override;
293 void get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1) override;
294 void trace_stop () override;
295 int trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4) override;
57810aa7 296 bool get_trace_state_variable_value (int arg0, LONGEST *arg1) override;
f6ac5f3d
PA
297 int save_trace_data (const char *arg0) override;
298 int upload_tracepoints (struct uploaded_tp **arg0) override;
299 int upload_trace_state_variables (struct uploaded_tsv **arg0) override;
300 LONGEST get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2) override;
301 int get_min_fast_tracepoint_insn_len () override;
302 void set_disconnected_tracing (int arg0) override;
303 void set_circular_trace_buffer (int arg0) override;
304 void set_trace_buffer_size (LONGEST arg0) override;
57810aa7 305 bool set_trace_notes (const char *arg0, const char *arg1, const char *arg2) override;
f6ac5f3d
PA
306 int core_of_thread (ptid_t arg0) override;
307 int verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2) override;
57810aa7 308 bool get_tib_address (ptid_t arg0, CORE_ADDR *arg1) override;
f6ac5f3d
PA
309 void set_permissions () override;
310 bool static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1) override;
311 std::vector<static_tracepoint_marker> static_tracepoint_markers_by_strid (const char *arg0) override;
312 traceframe_info_up traceframe_info () override;
57810aa7
PA
313 bool use_agent (bool arg0) override;
314 bool can_use_agent () override;
f6ac5f3d
PA
315 struct btrace_target_info *enable_btrace (ptid_t arg0, const struct btrace_config *arg1) override;
316 void disable_btrace (struct btrace_target_info *arg0) override;
317 void teardown_btrace (struct btrace_target_info *arg0) override;
318 enum btrace_error read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2) override;
319 const struct btrace_config *btrace_conf (const struct btrace_target_info *arg0) override;
320 enum record_method record_method (ptid_t arg0) override;
321 void stop_recording () override;
322 void info_record () override;
323 void save_record (const char *arg0) override;
324 bool supports_delete_record () override;
325 void delete_record () override;
57810aa7
PA
326 bool record_is_replaying (ptid_t arg0) override;
327 bool record_will_replay (ptid_t arg0, int arg1) override;
f6ac5f3d
PA
328 void record_stop_replaying () override;
329 void goto_record_begin () override;
330 void goto_record_end () override;
331 void goto_record (ULONGEST arg0) override;
332 void insn_history (int arg0, gdb_disassembly_flags arg1) override;
333 void insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2) override;
334 void insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2) override;
335 void call_history (int arg0, record_print_flags arg1) override;
336 void call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2) override;
337 void call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2) override;
57810aa7 338 bool augmented_libraries_svr4_read () override;
f6ac5f3d
PA
339 const struct frame_unwind *get_unwinder () override;
340 const struct frame_unwind *get_tailcall_unwinder () override;
341 void prepare_to_generate_core () override;
342 void done_generating_core () override;
343};
344
345void
346target_ops::post_attach (int arg0)
347{
b6a8c27b 348 this->beneath ()->post_attach (arg0);
f6ac5f3d
PA
349}
350
351void
352dummy_target::post_attach (int arg0)
353{
354}
355
356void
357debug_target::post_attach (int arg0)
358{
b6a8c27b
PA
359 fprintf_unfiltered (gdb_stdlog, "-> %s->post_attach (...)\n", this->beneath ()->shortname ());
360 this->beneath ()->post_attach (arg0);
361 fprintf_unfiltered (gdb_stdlog, "<- %s->post_attach (", this->beneath ()->shortname ());
f6ac5f3d 362 target_debug_print_int (arg0);
a7068b60
TT
363 fputs_unfiltered (")\n", gdb_stdlog);
364}
365
f6ac5f3d
PA
366void
367target_ops::detach (inferior *arg0, int arg1)
09da0d0a 368{
b6a8c27b 369 this->beneath ()->detach (arg0, arg1);
09da0d0a
TT
370}
371
f6ac5f3d
PA
372void
373dummy_target::detach (inferior *arg0, int arg1)
09da0d0a
TT
374{
375}
376
f6ac5f3d
PA
377void
378debug_target::detach (inferior *arg0, int arg1)
a7068b60 379{
b6a8c27b
PA
380 fprintf_unfiltered (gdb_stdlog, "-> %s->detach (...)\n", this->beneath ()->shortname ());
381 this->beneath ()->detach (arg0, arg1);
382 fprintf_unfiltered (gdb_stdlog, "<- %s->detach (", this->beneath ()->shortname ());
f6ac5f3d 383 target_debug_print_inferior_p (arg0);
6e1e1966 384 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 385 target_debug_print_int (arg1);
a7068b60
TT
386 fputs_unfiltered (")\n", gdb_stdlog);
387}
388
f6ac5f3d
PA
389void
390target_ops::disconnect (const char *arg0, int arg1)
86a0854a 391{
b6a8c27b 392 this->beneath ()->disconnect (arg0, arg1);
86a0854a
TT
393}
394
f6ac5f3d
PA
395void
396dummy_target::disconnect (const char *arg0, int arg1)
86a0854a
TT
397{
398 tcomplain ();
399}
400
f6ac5f3d
PA
401void
402debug_target::disconnect (const char *arg0, int arg1)
a7068b60 403{
b6a8c27b
PA
404 fprintf_unfiltered (gdb_stdlog, "-> %s->disconnect (...)\n", this->beneath ()->shortname ());
405 this->beneath ()->disconnect (arg0, arg1);
406 fprintf_unfiltered (gdb_stdlog, "<- %s->disconnect (", this->beneath ()->shortname ());
f6ac5f3d 407 target_debug_print_const_char_p (arg0);
a7068b60 408 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 409 target_debug_print_int (arg1);
a7068b60
TT
410 fputs_unfiltered (")\n", gdb_stdlog);
411}
412
f6ac5f3d
PA
413void
414target_ops::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
6b84065d 415{
b6a8c27b 416 this->beneath ()->resume (arg0, arg1, arg2);
6b84065d
TT
417}
418
f6ac5f3d
PA
419void
420dummy_target::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
6b84065d
TT
421{
422 noprocess ();
423}
424
f6ac5f3d
PA
425void
426debug_target::resume (ptid_t arg0, int arg1, enum gdb_signal arg2)
a7068b60 427{
b6a8c27b
PA
428 fprintf_unfiltered (gdb_stdlog, "-> %s->resume (...)\n", this->beneath ()->shortname ());
429 this->beneath ()->resume (arg0, arg1, arg2);
430 fprintf_unfiltered (gdb_stdlog, "<- %s->resume (", this->beneath ()->shortname ());
f6ac5f3d 431 target_debug_print_ptid_t (arg0);
a7068b60 432 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 433 target_debug_print_step (arg1);
a7068b60 434 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 435 target_debug_print_enum_gdb_signal (arg2);
a7068b60
TT
436 fputs_unfiltered (")\n", gdb_stdlog);
437}
438
f6ac5f3d
PA
439void
440target_ops::commit_resume ()
85ad3aaf 441{
b6a8c27b 442 this->beneath ()->commit_resume ();
85ad3aaf
PA
443}
444
f6ac5f3d
PA
445void
446dummy_target::commit_resume ()
85ad3aaf
PA
447{
448}
449
f6ac5f3d
PA
450void
451debug_target::commit_resume ()
85ad3aaf 452{
b6a8c27b
PA
453 fprintf_unfiltered (gdb_stdlog, "-> %s->commit_resume (...)\n", this->beneath ()->shortname ());
454 this->beneath ()->commit_resume ();
455 fprintf_unfiltered (gdb_stdlog, "<- %s->commit_resume (", this->beneath ()->shortname ());
85ad3aaf
PA
456 fputs_unfiltered (")\n", gdb_stdlog);
457}
458
f6ac5f3d
PA
459ptid_t
460target_ops::wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2)
461{
b6a8c27b 462 return this->beneath ()->wait (arg0, arg1, arg2);
f6ac5f3d
PA
463}
464
465ptid_t
466dummy_target::wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2)
6b84065d 467{
f6ac5f3d 468 return default_target_wait (this, arg0, arg1, arg2);
6b84065d
TT
469}
470
f6ac5f3d
PA
471ptid_t
472debug_target::wait (ptid_t arg0, struct target_waitstatus *arg1, int arg2)
a7068b60
TT
473{
474 ptid_t result;
b6a8c27b
PA
475 fprintf_unfiltered (gdb_stdlog, "-> %s->wait (...)\n", this->beneath ()->shortname ());
476 result = this->beneath ()->wait (arg0, arg1, arg2);
477 fprintf_unfiltered (gdb_stdlog, "<- %s->wait (", this->beneath ()->shortname ());
f6ac5f3d 478 target_debug_print_ptid_t (arg0);
a7068b60 479 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 480 target_debug_print_struct_target_waitstatus_p (arg1);
a7068b60 481 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 482 target_debug_print_options (arg2);
a7068b60
TT
483 fputs_unfiltered (") = ", gdb_stdlog);
484 target_debug_print_ptid_t (result);
485 fputs_unfiltered ("\n", gdb_stdlog);
486 return result;
487}
488
f6ac5f3d
PA
489void
490target_ops::fetch_registers (struct regcache *arg0, int arg1)
ad5989bd 491{
b6a8c27b 492 this->beneath ()->fetch_registers (arg0, arg1);
ad5989bd
TT
493}
494
f6ac5f3d
PA
495void
496dummy_target::fetch_registers (struct regcache *arg0, int arg1)
ad5989bd
TT
497{
498}
499
f6ac5f3d
PA
500void
501debug_target::fetch_registers (struct regcache *arg0, int arg1)
a7068b60 502{
b6a8c27b
PA
503 fprintf_unfiltered (gdb_stdlog, "-> %s->fetch_registers (...)\n", this->beneath ()->shortname ());
504 this->beneath ()->fetch_registers (arg0, arg1);
505 fprintf_unfiltered (gdb_stdlog, "<- %s->fetch_registers (", this->beneath ()->shortname ());
f6ac5f3d 506 target_debug_print_struct_regcache_p (arg0);
a7068b60 507 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 508 target_debug_print_int (arg1);
a7068b60
TT
509 fputs_unfiltered (")\n", gdb_stdlog);
510}
511
f6ac5f3d
PA
512void
513target_ops::store_registers (struct regcache *arg0, int arg1)
6b84065d 514{
b6a8c27b 515 this->beneath ()->store_registers (arg0, arg1);
6b84065d
TT
516}
517
f6ac5f3d
PA
518void
519dummy_target::store_registers (struct regcache *arg0, int arg1)
6b84065d
TT
520{
521 noprocess ();
522}
523
f6ac5f3d
PA
524void
525debug_target::store_registers (struct regcache *arg0, int arg1)
a7068b60 526{
b6a8c27b
PA
527 fprintf_unfiltered (gdb_stdlog, "-> %s->store_registers (...)\n", this->beneath ()->shortname ());
528 this->beneath ()->store_registers (arg0, arg1);
529 fprintf_unfiltered (gdb_stdlog, "<- %s->store_registers (", this->beneath ()->shortname ());
f6ac5f3d 530 target_debug_print_struct_regcache_p (arg0);
a7068b60 531 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 532 target_debug_print_int (arg1);
a7068b60
TT
533 fputs_unfiltered (")\n", gdb_stdlog);
534}
535
f6ac5f3d
PA
536void
537target_ops::prepare_to_store (struct regcache *arg0)
6c628163 538{
b6a8c27b 539 this->beneath ()->prepare_to_store (arg0);
6c628163
TT
540}
541
f6ac5f3d
PA
542void
543dummy_target::prepare_to_store (struct regcache *arg0)
6c628163
TT
544{
545 noprocess ();
546}
547
f6ac5f3d
PA
548void
549debug_target::prepare_to_store (struct regcache *arg0)
a7068b60 550{
b6a8c27b
PA
551 fprintf_unfiltered (gdb_stdlog, "-> %s->prepare_to_store (...)\n", this->beneath ()->shortname ());
552 this->beneath ()->prepare_to_store (arg0);
553 fprintf_unfiltered (gdb_stdlog, "<- %s->prepare_to_store (", this->beneath ()->shortname ());
f6ac5f3d 554 target_debug_print_struct_regcache_p (arg0);
a7068b60
TT
555 fputs_unfiltered (")\n", gdb_stdlog);
556}
557
f6ac5f3d
PA
558void
559target_ops::files_info ()
f86e59b2 560{
b6a8c27b 561 this->beneath ()->files_info ();
f86e59b2
TT
562}
563
f6ac5f3d
PA
564void
565dummy_target::files_info ()
f86e59b2
TT
566{
567}
568
f6ac5f3d
PA
569void
570debug_target::files_info ()
a7068b60 571{
b6a8c27b
PA
572 fprintf_unfiltered (gdb_stdlog, "-> %s->files_info (...)\n", this->beneath ()->shortname ());
573 this->beneath ()->files_info ();
574 fprintf_unfiltered (gdb_stdlog, "<- %s->files_info (", this->beneath ()->shortname ());
a7068b60
TT
575 fputs_unfiltered (")\n", gdb_stdlog);
576}
577
f6ac5f3d
PA
578int
579target_ops::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
6b84065d 580{
b6a8c27b 581 return this->beneath ()->insert_breakpoint (arg0, arg1);
6b84065d
TT
582}
583
f6ac5f3d
PA
584int
585dummy_target::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
586{
587 noprocess ();
588}
589
590int
591debug_target::insert_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
a7068b60
TT
592{
593 int result;
b6a8c27b
PA
594 fprintf_unfiltered (gdb_stdlog, "-> %s->insert_breakpoint (...)\n", this->beneath ()->shortname ());
595 result = this->beneath ()->insert_breakpoint (arg0, arg1);
596 fprintf_unfiltered (gdb_stdlog, "<- %s->insert_breakpoint (", this->beneath ()->shortname ());
f6ac5f3d 597 target_debug_print_struct_gdbarch_p (arg0);
a7068b60 598 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 599 target_debug_print_struct_bp_target_info_p (arg1);
a7068b60
TT
600 fputs_unfiltered (") = ", gdb_stdlog);
601 target_debug_print_int (result);
602 fputs_unfiltered ("\n", gdb_stdlog);
603 return result;
604}
605
f6ac5f3d
PA
606int
607target_ops::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
6b84065d 608{
b6a8c27b 609 return this->beneath ()->remove_breakpoint (arg0, arg1, arg2);
6b84065d
TT
610}
611
f6ac5f3d
PA
612int
613dummy_target::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
614{
615 noprocess ();
616}
617
618int
619debug_target::remove_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1, enum remove_bp_reason arg2)
a7068b60
TT
620{
621 int result;
b6a8c27b
PA
622 fprintf_unfiltered (gdb_stdlog, "-> %s->remove_breakpoint (...)\n", this->beneath ()->shortname ());
623 result = this->beneath ()->remove_breakpoint (arg0, arg1, arg2);
624 fprintf_unfiltered (gdb_stdlog, "<- %s->remove_breakpoint (", this->beneath ()->shortname ());
f6ac5f3d 625 target_debug_print_struct_gdbarch_p (arg0);
a7068b60 626 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 627 target_debug_print_struct_bp_target_info_p (arg1);
73971819 628 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 629 target_debug_print_enum_remove_bp_reason (arg2);
a7068b60
TT
630 fputs_unfiltered (") = ", gdb_stdlog);
631 target_debug_print_int (result);
632 fputs_unfiltered ("\n", gdb_stdlog);
633 return result;
634}
635
57810aa7 636bool
f6ac5f3d 637target_ops::stopped_by_sw_breakpoint ()
1cf4d951 638{
b6a8c27b 639 return this->beneath ()->stopped_by_sw_breakpoint ();
1cf4d951
PA
640}
641
57810aa7 642bool
f6ac5f3d 643dummy_target::stopped_by_sw_breakpoint ()
1cf4d951 644{
57810aa7 645 return false;
1cf4d951
PA
646}
647
57810aa7 648bool
f6ac5f3d 649debug_target::stopped_by_sw_breakpoint ()
1cf4d951 650{
57810aa7 651 bool result;
b6a8c27b
PA
652 fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_sw_breakpoint (...)\n", this->beneath ()->shortname ());
653 result = this->beneath ()->stopped_by_sw_breakpoint ();
654 fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_sw_breakpoint (", this->beneath ()->shortname ());
1cf4d951 655 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 656 target_debug_print_bool (result);
1cf4d951
PA
657 fputs_unfiltered ("\n", gdb_stdlog);
658 return result;
659}
660
57810aa7 661bool
f6ac5f3d 662target_ops::supports_stopped_by_sw_breakpoint ()
1cf4d951 663{
b6a8c27b 664 return this->beneath ()->supports_stopped_by_sw_breakpoint ();
1cf4d951
PA
665}
666
57810aa7 667bool
f6ac5f3d 668dummy_target::supports_stopped_by_sw_breakpoint ()
1cf4d951 669{
57810aa7 670 return false;
1cf4d951
PA
671}
672
57810aa7 673bool
f6ac5f3d 674debug_target::supports_stopped_by_sw_breakpoint ()
1cf4d951 675{
57810aa7 676 bool result;
b6a8c27b
PA
677 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_stopped_by_sw_breakpoint (...)\n", this->beneath ()->shortname ());
678 result = this->beneath ()->supports_stopped_by_sw_breakpoint ();
679 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_stopped_by_sw_breakpoint (", this->beneath ()->shortname ());
1cf4d951 680 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 681 target_debug_print_bool (result);
1cf4d951
PA
682 fputs_unfiltered ("\n", gdb_stdlog);
683 return result;
684}
685
57810aa7 686bool
f6ac5f3d 687target_ops::stopped_by_hw_breakpoint ()
1cf4d951 688{
b6a8c27b 689 return this->beneath ()->stopped_by_hw_breakpoint ();
1cf4d951
PA
690}
691
57810aa7 692bool
f6ac5f3d 693dummy_target::stopped_by_hw_breakpoint ()
1cf4d951 694{
57810aa7 695 return false;
1cf4d951
PA
696}
697
57810aa7 698bool
f6ac5f3d 699debug_target::stopped_by_hw_breakpoint ()
1cf4d951 700{
57810aa7 701 bool result;
b6a8c27b
PA
702 fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_hw_breakpoint (...)\n", this->beneath ()->shortname ());
703 result = this->beneath ()->stopped_by_hw_breakpoint ();
704 fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_hw_breakpoint (", this->beneath ()->shortname ());
1cf4d951 705 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 706 target_debug_print_bool (result);
1cf4d951
PA
707 fputs_unfiltered ("\n", gdb_stdlog);
708 return result;
709}
710
57810aa7 711bool
f6ac5f3d 712target_ops::supports_stopped_by_hw_breakpoint ()
1cf4d951 713{
b6a8c27b 714 return this->beneath ()->supports_stopped_by_hw_breakpoint ();
1cf4d951
PA
715}
716
57810aa7 717bool
f6ac5f3d 718dummy_target::supports_stopped_by_hw_breakpoint ()
1cf4d951 719{
57810aa7 720 return false;
1cf4d951
PA
721}
722
57810aa7 723bool
f6ac5f3d 724debug_target::supports_stopped_by_hw_breakpoint ()
1cf4d951 725{
57810aa7 726 bool result;
b6a8c27b
PA
727 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_stopped_by_hw_breakpoint (...)\n", this->beneath ()->shortname ());
728 result = this->beneath ()->supports_stopped_by_hw_breakpoint ();
729 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_stopped_by_hw_breakpoint (", this->beneath ()->shortname ());
1cf4d951 730 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 731 target_debug_print_bool (result);
1cf4d951
PA
732 fputs_unfiltered ("\n", gdb_stdlog);
733 return result;
734}
735
f6ac5f3d
PA
736int
737target_ops::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
52b51d06 738{
b6a8c27b 739 return this->beneath ()->can_use_hw_breakpoint (arg0, arg1, arg2);
52b51d06
TT
740}
741
f6ac5f3d
PA
742int
743dummy_target::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
52b51d06
TT
744{
745 return 0;
746}
747
f6ac5f3d
PA
748int
749debug_target::can_use_hw_breakpoint (enum bptype arg0, int arg1, int arg2)
a7068b60
TT
750{
751 int result;
b6a8c27b
PA
752 fprintf_unfiltered (gdb_stdlog, "-> %s->can_use_hw_breakpoint (...)\n", this->beneath ()->shortname ());
753 result = this->beneath ()->can_use_hw_breakpoint (arg0, arg1, arg2);
754 fprintf_unfiltered (gdb_stdlog, "<- %s->can_use_hw_breakpoint (", this->beneath ()->shortname ());
f6ac5f3d 755 target_debug_print_enum_bptype (arg0);
a7068b60 756 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 757 target_debug_print_int (arg1);
a7068b60
TT
758 fputs_unfiltered (", ", gdb_stdlog);
759 target_debug_print_int (arg2);
a7068b60
TT
760 fputs_unfiltered (") = ", gdb_stdlog);
761 target_debug_print_int (result);
762 fputs_unfiltered ("\n", gdb_stdlog);
763 return result;
764}
765
f6ac5f3d
PA
766int
767target_ops::ranged_break_num_registers ()
a134316b 768{
b6a8c27b 769 return this->beneath ()->ranged_break_num_registers ();
a134316b
TT
770}
771
f6ac5f3d
PA
772int
773dummy_target::ranged_break_num_registers ()
a134316b
TT
774{
775 return -1;
776}
777
f6ac5f3d
PA
778int
779debug_target::ranged_break_num_registers ()
a7068b60
TT
780{
781 int result;
b6a8c27b
PA
782 fprintf_unfiltered (gdb_stdlog, "-> %s->ranged_break_num_registers (...)\n", this->beneath ()->shortname ());
783 result = this->beneath ()->ranged_break_num_registers ();
784 fprintf_unfiltered (gdb_stdlog, "<- %s->ranged_break_num_registers (", this->beneath ()->shortname ());
a7068b60
TT
785 fputs_unfiltered (") = ", gdb_stdlog);
786 target_debug_print_int (result);
787 fputs_unfiltered ("\n", gdb_stdlog);
788 return result;
789}
790
f6ac5f3d
PA
791int
792target_ops::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
61b371f9 793{
b6a8c27b 794 return this->beneath ()->insert_hw_breakpoint (arg0, arg1);
61b371f9
TT
795}
796
f6ac5f3d
PA
797int
798dummy_target::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
61b371f9
TT
799{
800 return -1;
801}
802
f6ac5f3d
PA
803int
804debug_target::insert_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
a7068b60
TT
805{
806 int result;
b6a8c27b
PA
807 fprintf_unfiltered (gdb_stdlog, "-> %s->insert_hw_breakpoint (...)\n", this->beneath ()->shortname ());
808 result = this->beneath ()->insert_hw_breakpoint (arg0, arg1);
809 fprintf_unfiltered (gdb_stdlog, "<- %s->insert_hw_breakpoint (", this->beneath ()->shortname ());
f6ac5f3d 810 target_debug_print_struct_gdbarch_p (arg0);
a7068b60 811 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 812 target_debug_print_struct_bp_target_info_p (arg1);
a7068b60
TT
813 fputs_unfiltered (") = ", gdb_stdlog);
814 target_debug_print_int (result);
815 fputs_unfiltered ("\n", gdb_stdlog);
816 return result;
817}
818
f6ac5f3d
PA
819int
820target_ops::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
418dabac 821{
b6a8c27b 822 return this->beneath ()->remove_hw_breakpoint (arg0, arg1);
418dabac
TT
823}
824
f6ac5f3d
PA
825int
826dummy_target::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
418dabac
TT
827{
828 return -1;
829}
830
f6ac5f3d
PA
831int
832debug_target::remove_hw_breakpoint (struct gdbarch *arg0, struct bp_target_info *arg1)
a7068b60
TT
833{
834 int result;
b6a8c27b
PA
835 fprintf_unfiltered (gdb_stdlog, "-> %s->remove_hw_breakpoint (...)\n", this->beneath ()->shortname ());
836 result = this->beneath ()->remove_hw_breakpoint (arg0, arg1);
837 fprintf_unfiltered (gdb_stdlog, "<- %s->remove_hw_breakpoint (", this->beneath ()->shortname ());
f6ac5f3d 838 target_debug_print_struct_gdbarch_p (arg0);
a7068b60 839 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 840 target_debug_print_struct_bp_target_info_p (arg1);
a7068b60
TT
841 fputs_unfiltered (") = ", gdb_stdlog);
842 target_debug_print_int (result);
843 fputs_unfiltered ("\n", gdb_stdlog);
844 return result;
845}
846
f6ac5f3d
PA
847int
848target_ops::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
61dd109f 849{
b6a8c27b 850 return this->beneath ()->remove_watchpoint (arg0, arg1, arg2, arg3);
61dd109f
TT
851}
852
f6ac5f3d
PA
853int
854dummy_target::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
61dd109f
TT
855{
856 return -1;
857}
858
f6ac5f3d
PA
859int
860debug_target::remove_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
a7068b60
TT
861{
862 int result;
b6a8c27b
PA
863 fprintf_unfiltered (gdb_stdlog, "-> %s->remove_watchpoint (...)\n", this->beneath ()->shortname ());
864 result = this->beneath ()->remove_watchpoint (arg0, arg1, arg2, arg3);
865 fprintf_unfiltered (gdb_stdlog, "<- %s->remove_watchpoint (", this->beneath ()->shortname ());
f6ac5f3d 866 target_debug_print_CORE_ADDR (arg0);
a7068b60 867 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 868 target_debug_print_int (arg1);
a7068b60 869 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 870 target_debug_print_enum_target_hw_bp_type (arg2);
a7068b60 871 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 872 target_debug_print_struct_expression_p (arg3);
a7068b60
TT
873 fputs_unfiltered (") = ", gdb_stdlog);
874 target_debug_print_int (result);
875 fputs_unfiltered ("\n", gdb_stdlog);
876 return result;
877}
878
f6ac5f3d
PA
879int
880target_ops::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
016facd4 881{
b6a8c27b 882 return this->beneath ()->insert_watchpoint (arg0, arg1, arg2, arg3);
016facd4
TT
883}
884
f6ac5f3d
PA
885int
886dummy_target::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
016facd4
TT
887{
888 return -1;
889}
890
f6ac5f3d
PA
891int
892debug_target::insert_watchpoint (CORE_ADDR arg0, int arg1, enum target_hw_bp_type arg2, struct expression *arg3)
a7068b60
TT
893{
894 int result;
b6a8c27b
PA
895 fprintf_unfiltered (gdb_stdlog, "-> %s->insert_watchpoint (...)\n", this->beneath ()->shortname ());
896 result = this->beneath ()->insert_watchpoint (arg0, arg1, arg2, arg3);
897 fprintf_unfiltered (gdb_stdlog, "<- %s->insert_watchpoint (", this->beneath ()->shortname ());
f6ac5f3d 898 target_debug_print_CORE_ADDR (arg0);
a7068b60 899 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 900 target_debug_print_int (arg1);
a7068b60 901 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 902 target_debug_print_enum_target_hw_bp_type (arg2);
a7068b60 903 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 904 target_debug_print_struct_expression_p (arg3);
a7068b60
TT
905 fputs_unfiltered (") = ", gdb_stdlog);
906 target_debug_print_int (result);
907 fputs_unfiltered ("\n", gdb_stdlog);
908 return result;
909}
910
f6ac5f3d
PA
911int
912target_ops::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
cd4ae029 913{
b6a8c27b 914 return this->beneath ()->insert_mask_watchpoint (arg0, arg1, arg2);
cd4ae029
TT
915}
916
f6ac5f3d
PA
917int
918dummy_target::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
cd4ae029
TT
919{
920 return 1;
921}
922
f6ac5f3d
PA
923int
924debug_target::insert_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
a7068b60
TT
925{
926 int result;
b6a8c27b
PA
927 fprintf_unfiltered (gdb_stdlog, "-> %s->insert_mask_watchpoint (...)\n", this->beneath ()->shortname ());
928 result = this->beneath ()->insert_mask_watchpoint (arg0, arg1, arg2);
929 fprintf_unfiltered (gdb_stdlog, "<- %s->insert_mask_watchpoint (", this->beneath ()->shortname ());
f6ac5f3d 930 target_debug_print_CORE_ADDR (arg0);
a7068b60
TT
931 fputs_unfiltered (", ", gdb_stdlog);
932 target_debug_print_CORE_ADDR (arg1);
933 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 934 target_debug_print_enum_target_hw_bp_type (arg2);
a7068b60
TT
935 fputs_unfiltered (") = ", gdb_stdlog);
936 target_debug_print_int (result);
937 fputs_unfiltered ("\n", gdb_stdlog);
938 return result;
939}
940
f6ac5f3d
PA
941int
942target_ops::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
8b1c364c 943{
b6a8c27b 944 return this->beneath ()->remove_mask_watchpoint (arg0, arg1, arg2);
8b1c364c
TT
945}
946
f6ac5f3d
PA
947int
948dummy_target::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
8b1c364c
TT
949{
950 return 1;
951}
952
f6ac5f3d
PA
953int
954debug_target::remove_mask_watchpoint (CORE_ADDR arg0, CORE_ADDR arg1, enum target_hw_bp_type arg2)
a7068b60
TT
955{
956 int result;
b6a8c27b
PA
957 fprintf_unfiltered (gdb_stdlog, "-> %s->remove_mask_watchpoint (...)\n", this->beneath ()->shortname ());
958 result = this->beneath ()->remove_mask_watchpoint (arg0, arg1, arg2);
959 fprintf_unfiltered (gdb_stdlog, "<- %s->remove_mask_watchpoint (", this->beneath ()->shortname ());
f6ac5f3d 960 target_debug_print_CORE_ADDR (arg0);
a7068b60
TT
961 fputs_unfiltered (", ", gdb_stdlog);
962 target_debug_print_CORE_ADDR (arg1);
963 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 964 target_debug_print_enum_target_hw_bp_type (arg2);
a7068b60
TT
965 fputs_unfiltered (") = ", gdb_stdlog);
966 target_debug_print_int (result);
967 fputs_unfiltered ("\n", gdb_stdlog);
968 return result;
969}
970
57810aa7 971bool
f6ac5f3d 972target_ops::stopped_by_watchpoint ()
6b84065d 973{
b6a8c27b 974 return this->beneath ()->stopped_by_watchpoint ();
6b84065d
TT
975}
976
57810aa7 977bool
f6ac5f3d 978dummy_target::stopped_by_watchpoint ()
6b84065d 979{
57810aa7 980 return false;
6b84065d
TT
981}
982
57810aa7 983bool
f6ac5f3d 984debug_target::stopped_by_watchpoint ()
a7068b60 985{
57810aa7 986 bool result;
b6a8c27b
PA
987 fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_by_watchpoint (...)\n", this->beneath ()->shortname ());
988 result = this->beneath ()->stopped_by_watchpoint ();
989 fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_by_watchpoint (", this->beneath ()->shortname ());
a7068b60 990 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 991 target_debug_print_bool (result);
a7068b60
TT
992 fputs_unfiltered ("\n", gdb_stdlog);
993 return result;
994}
995
c2a6c5da 996bool
f6ac5f3d 997target_ops::have_steppable_watchpoint ()
6b84065d 998{
b6a8c27b 999 return this->beneath ()->have_steppable_watchpoint ();
6b84065d
TT
1000}
1001
c2a6c5da 1002bool
f6ac5f3d 1003dummy_target::have_steppable_watchpoint ()
6b84065d 1004{
57810aa7 1005 return false;
6b84065d
TT
1006}
1007
c2a6c5da 1008bool
f6ac5f3d 1009debug_target::have_steppable_watchpoint ()
a7068b60 1010{
c2a6c5da 1011 bool result;
b6a8c27b
PA
1012 fprintf_unfiltered (gdb_stdlog, "-> %s->have_steppable_watchpoint (...)\n", this->beneath ()->shortname ());
1013 result = this->beneath ()->have_steppable_watchpoint ();
1014 fprintf_unfiltered (gdb_stdlog, "<- %s->have_steppable_watchpoint (", this->beneath ()->shortname ());
a7068b60 1015 fputs_unfiltered (") = ", gdb_stdlog);
c2a6c5da 1016 target_debug_print_bool (result);
a7068b60
TT
1017 fputs_unfiltered ("\n", gdb_stdlog);
1018 return result;
1019}
1020
57810aa7 1021bool
f6ac5f3d
PA
1022target_ops::stopped_data_address (CORE_ADDR *arg0)
1023{
b6a8c27b 1024 return this->beneath ()->stopped_data_address (arg0);
f6ac5f3d
PA
1025}
1026
57810aa7 1027bool
f6ac5f3d
PA
1028dummy_target::stopped_data_address (CORE_ADDR *arg0)
1029{
57810aa7 1030 return false;
f6ac5f3d
PA
1031}
1032
57810aa7 1033bool
f6ac5f3d 1034debug_target::stopped_data_address (CORE_ADDR *arg0)
a7068b60 1035{
57810aa7 1036 bool result;
b6a8c27b
PA
1037 fprintf_unfiltered (gdb_stdlog, "-> %s->stopped_data_address (...)\n", this->beneath ()->shortname ());
1038 result = this->beneath ()->stopped_data_address (arg0);
1039 fprintf_unfiltered (gdb_stdlog, "<- %s->stopped_data_address (", this->beneath ()->shortname ());
f6ac5f3d 1040 target_debug_print_CORE_ADDR_p (arg0);
a7068b60 1041 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 1042 target_debug_print_bool (result);
a7068b60
TT
1043 fputs_unfiltered ("\n", gdb_stdlog);
1044 return result;
1045}
1046
57810aa7 1047bool
f6ac5f3d
PA
1048target_ops::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
1049{
b6a8c27b 1050 return this->beneath ()->watchpoint_addr_within_range (arg0, arg1, arg2);
f6ac5f3d
PA
1051}
1052
57810aa7 1053bool
f6ac5f3d 1054dummy_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
d03655e4 1055{
f6ac5f3d 1056 return default_watchpoint_addr_within_range (this, arg0, arg1, arg2);
d03655e4
TT
1057}
1058
57810aa7 1059bool
f6ac5f3d 1060debug_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2)
a7068b60 1061{
57810aa7 1062 bool result;
b6a8c27b
PA
1063 fprintf_unfiltered (gdb_stdlog, "-> %s->watchpoint_addr_within_range (...)\n", this->beneath ()->shortname ());
1064 result = this->beneath ()->watchpoint_addr_within_range (arg0, arg1, arg2);
1065 fprintf_unfiltered (gdb_stdlog, "<- %s->watchpoint_addr_within_range (", this->beneath ()->shortname ());
f6ac5f3d 1066 target_debug_print_CORE_ADDR (arg0);
a7068b60
TT
1067 fputs_unfiltered (", ", gdb_stdlog);
1068 target_debug_print_CORE_ADDR (arg1);
1069 fputs_unfiltered (", ", gdb_stdlog);
1070 target_debug_print_int (arg2);
1071 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 1072 target_debug_print_bool (result);
a7068b60
TT
1073 fputs_unfiltered ("\n", gdb_stdlog);
1074 return result;
1075}
1076
f6ac5f3d
PA
1077int
1078target_ops::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
77cdffe9 1079{
b6a8c27b 1080 return this->beneath ()->region_ok_for_hw_watchpoint (arg0, arg1);
77cdffe9
TT
1081}
1082
f6ac5f3d
PA
1083int
1084dummy_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
1085{
1086 return default_region_ok_for_hw_watchpoint (this, arg0, arg1);
1087}
1088
1089int
1090debug_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1)
1091{
1092 int result;
b6a8c27b
PA
1093 fprintf_unfiltered (gdb_stdlog, "-> %s->region_ok_for_hw_watchpoint (...)\n", this->beneath ()->shortname ());
1094 result = this->beneath ()->region_ok_for_hw_watchpoint (arg0, arg1);
1095 fprintf_unfiltered (gdb_stdlog, "<- %s->region_ok_for_hw_watchpoint (", this->beneath ()->shortname ());
f6ac5f3d
PA
1096 target_debug_print_CORE_ADDR (arg0);
1097 fputs_unfiltered (", ", gdb_stdlog);
1098 target_debug_print_int (arg1);
1099 fputs_unfiltered (") = ", gdb_stdlog);
1100 target_debug_print_int (result);
1101 fputs_unfiltered ("\n", gdb_stdlog);
1102 return result;
1103}
1104
57810aa7 1105bool
f6ac5f3d
PA
1106target_ops::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
1107{
b6a8c27b 1108 return this->beneath ()->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3);
f6ac5f3d
PA
1109}
1110
57810aa7 1111bool
f6ac5f3d 1112dummy_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
77cdffe9 1113{
57810aa7 1114 return false;
77cdffe9
TT
1115}
1116
57810aa7 1117bool
f6ac5f3d 1118debug_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3)
a7068b60 1119{
57810aa7 1120 bool result;
b6a8c27b
PA
1121 fprintf_unfiltered (gdb_stdlog, "-> %s->can_accel_watchpoint_condition (...)\n", this->beneath ()->shortname ());
1122 result = this->beneath ()->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3);
1123 fprintf_unfiltered (gdb_stdlog, "<- %s->can_accel_watchpoint_condition (", this->beneath ()->shortname ());
f6ac5f3d 1124 target_debug_print_CORE_ADDR (arg0);
a7068b60 1125 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1126 target_debug_print_int (arg1);
a7068b60
TT
1127 fputs_unfiltered (", ", gdb_stdlog);
1128 target_debug_print_int (arg2);
1129 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1130 target_debug_print_struct_expression_p (arg3);
a7068b60 1131 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 1132 target_debug_print_bool (result);
a7068b60
TT
1133 fputs_unfiltered ("\n", gdb_stdlog);
1134 return result;
1135}
1136
f6ac5f3d
PA
1137int
1138target_ops::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
6c7e5e5c 1139{
b6a8c27b 1140 return this->beneath ()->masked_watch_num_registers (arg0, arg1);
6c7e5e5c
TT
1141}
1142
f6ac5f3d
PA
1143int
1144dummy_target::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
6c7e5e5c
TT
1145{
1146 return -1;
1147}
1148
f6ac5f3d
PA
1149int
1150debug_target::masked_watch_num_registers (CORE_ADDR arg0, CORE_ADDR arg1)
a7068b60
TT
1151{
1152 int result;
b6a8c27b
PA
1153 fprintf_unfiltered (gdb_stdlog, "-> %s->masked_watch_num_registers (...)\n", this->beneath ()->shortname ());
1154 result = this->beneath ()->masked_watch_num_registers (arg0, arg1);
1155 fprintf_unfiltered (gdb_stdlog, "<- %s->masked_watch_num_registers (", this->beneath ()->shortname ());
f6ac5f3d 1156 target_debug_print_CORE_ADDR (arg0);
a7068b60
TT
1157 fputs_unfiltered (", ", gdb_stdlog);
1158 target_debug_print_CORE_ADDR (arg1);
a7068b60
TT
1159 fputs_unfiltered (") = ", gdb_stdlog);
1160 target_debug_print_int (result);
1161 fputs_unfiltered ("\n", gdb_stdlog);
1162 return result;
1163}
1164
f6ac5f3d
PA
1165int
1166target_ops::can_do_single_step ()
750ce8d1 1167{
b6a8c27b 1168 return this->beneath ()->can_do_single_step ();
750ce8d1
YQ
1169}
1170
f6ac5f3d
PA
1171int
1172dummy_target::can_do_single_step ()
750ce8d1
YQ
1173{
1174 return -1;
1175}
1176
f6ac5f3d
PA
1177int
1178debug_target::can_do_single_step ()
750ce8d1
YQ
1179{
1180 int result;
b6a8c27b
PA
1181 fprintf_unfiltered (gdb_stdlog, "-> %s->can_do_single_step (...)\n", this->beneath ()->shortname ());
1182 result = this->beneath ()->can_do_single_step ();
1183 fprintf_unfiltered (gdb_stdlog, "<- %s->can_do_single_step (", this->beneath ()->shortname ());
750ce8d1
YQ
1184 fputs_unfiltered (") = ", gdb_stdlog);
1185 target_debug_print_int (result);
1186 fputs_unfiltered ("\n", gdb_stdlog);
1187 return result;
1188}
1189
f6ac5f3d
PA
1190bool
1191target_ops::supports_terminal_ours ()
0343661d 1192{
b6a8c27b 1193 return this->beneath ()->supports_terminal_ours ();
0343661d
TT
1194}
1195
f6ac5f3d
PA
1196bool
1197dummy_target::supports_terminal_ours ()
0343661d 1198{
57810aa7 1199 return false;
0343661d
TT
1200}
1201
f6ac5f3d
PA
1202bool
1203debug_target::supports_terminal_ours ()
a7068b60 1204{
f6ac5f3d 1205 bool result;
b6a8c27b
PA
1206 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_terminal_ours (...)\n", this->beneath ()->shortname ());
1207 result = this->beneath ()->supports_terminal_ours ();
1208 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_terminal_ours (", this->beneath ()->shortname ());
f6ac5f3d
PA
1209 fputs_unfiltered (") = ", gdb_stdlog);
1210 target_debug_print_bool (result);
1211 fputs_unfiltered ("\n", gdb_stdlog);
1212 return result;
1213}
1214
1215void
1216target_ops::terminal_init ()
1217{
b6a8c27b 1218 this->beneath ()->terminal_init ();
f6ac5f3d
PA
1219}
1220
1221void
1222dummy_target::terminal_init ()
1223{
1224}
1225
1226void
1227debug_target::terminal_init ()
1228{
b6a8c27b
PA
1229 fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_init (...)\n", this->beneath ()->shortname ());
1230 this->beneath ()->terminal_init ();
1231 fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_init (", this->beneath ()->shortname ());
a7068b60
TT
1232 fputs_unfiltered (")\n", gdb_stdlog);
1233}
1234
f6ac5f3d
PA
1235void
1236target_ops::terminal_inferior ()
ddeaacc9 1237{
b6a8c27b 1238 this->beneath ()->terminal_inferior ();
ddeaacc9
TT
1239}
1240
f6ac5f3d
PA
1241void
1242dummy_target::terminal_inferior ()
ddeaacc9
TT
1243{
1244}
1245
f6ac5f3d
PA
1246void
1247debug_target::terminal_inferior ()
a7068b60 1248{
b6a8c27b
PA
1249 fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_inferior (...)\n", this->beneath ()->shortname ());
1250 this->beneath ()->terminal_inferior ();
1251 fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_inferior (", this->beneath ()->shortname ());
a7068b60
TT
1252 fputs_unfiltered (")\n", gdb_stdlog);
1253}
1254
f6ac5f3d
PA
1255void
1256target_ops::terminal_save_inferior ()
e671cd59 1257{
b6a8c27b 1258 this->beneath ()->terminal_save_inferior ();
e671cd59
PA
1259}
1260
f6ac5f3d
PA
1261void
1262dummy_target::terminal_save_inferior ()
e671cd59
PA
1263{
1264}
1265
f6ac5f3d
PA
1266void
1267debug_target::terminal_save_inferior ()
e671cd59 1268{
b6a8c27b
PA
1269 fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_save_inferior (...)\n", this->beneath ()->shortname ());
1270 this->beneath ()->terminal_save_inferior ();
1271 fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_save_inferior (", this->beneath ()->shortname ());
e671cd59
PA
1272 fputs_unfiltered (")\n", gdb_stdlog);
1273}
1274
f6ac5f3d
PA
1275void
1276target_ops::terminal_ours_for_output ()
74fcbef9 1277{
b6a8c27b 1278 this->beneath ()->terminal_ours_for_output ();
74fcbef9
TT
1279}
1280
f6ac5f3d
PA
1281void
1282dummy_target::terminal_ours_for_output ()
74fcbef9
TT
1283{
1284}
1285
f6ac5f3d
PA
1286void
1287debug_target::terminal_ours_for_output ()
a7068b60 1288{
b6a8c27b
PA
1289 fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_ours_for_output (...)\n", this->beneath ()->shortname ());
1290 this->beneath ()->terminal_ours_for_output ();
1291 fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_ours_for_output (", this->beneath ()->shortname ());
a7068b60
TT
1292 fputs_unfiltered (")\n", gdb_stdlog);
1293}
1294
f6ac5f3d
PA
1295void
1296target_ops::terminal_ours ()
e4a733f1 1297{
b6a8c27b 1298 this->beneath ()->terminal_ours ();
e4a733f1
TT
1299}
1300
f6ac5f3d
PA
1301void
1302dummy_target::terminal_ours ()
e4a733f1
TT
1303{
1304}
1305
f6ac5f3d
PA
1306void
1307debug_target::terminal_ours ()
a7068b60 1308{
b6a8c27b
PA
1309 fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_ours (...)\n", this->beneath ()->shortname ());
1310 this->beneath ()->terminal_ours ();
1311 fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_ours (", this->beneath ()->shortname ());
a7068b60
TT
1312 fputs_unfiltered (")\n", gdb_stdlog);
1313}
1314
f6ac5f3d
PA
1315void
1316target_ops::terminal_info (const char *arg0, int arg1)
e19e919f 1317{
b6a8c27b 1318 this->beneath ()->terminal_info (arg0, arg1);
e19e919f
TT
1319}
1320
f6ac5f3d
PA
1321void
1322dummy_target::terminal_info (const char *arg0, int arg1)
a7068b60 1323{
f6ac5f3d
PA
1324 default_terminal_info (this, arg0, arg1);
1325}
1326
1327void
1328debug_target::terminal_info (const char *arg0, int arg1)
1329{
b6a8c27b
PA
1330 fprintf_unfiltered (gdb_stdlog, "-> %s->terminal_info (...)\n", this->beneath ()->shortname ());
1331 this->beneath ()->terminal_info (arg0, arg1);
1332 fprintf_unfiltered (gdb_stdlog, "<- %s->terminal_info (", this->beneath ()->shortname ());
f6ac5f3d 1333 target_debug_print_const_char_p (arg0);
a7068b60 1334 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1335 target_debug_print_int (arg1);
a7068b60
TT
1336 fputs_unfiltered (")\n", gdb_stdlog);
1337}
1338
f6ac5f3d
PA
1339void
1340target_ops::kill ()
423a4807 1341{
b6a8c27b 1342 this->beneath ()->kill ();
423a4807
TT
1343}
1344
f6ac5f3d
PA
1345void
1346dummy_target::kill ()
423a4807
TT
1347{
1348 noprocess ();
1349}
1350
f6ac5f3d
PA
1351void
1352debug_target::kill ()
a7068b60 1353{
b6a8c27b
PA
1354 fprintf_unfiltered (gdb_stdlog, "-> %s->kill (...)\n", this->beneath ()->shortname ());
1355 this->beneath ()->kill ();
1356 fprintf_unfiltered (gdb_stdlog, "<- %s->kill (", this->beneath ()->shortname ());
a7068b60
TT
1357 fputs_unfiltered (")\n", gdb_stdlog);
1358}
1359
f6ac5f3d
PA
1360void
1361target_ops::load (const char *arg0, int arg1)
7634da87 1362{
b6a8c27b 1363 this->beneath ()->load (arg0, arg1);
7634da87
TT
1364}
1365
f6ac5f3d
PA
1366void
1367dummy_target::load (const char *arg0, int arg1)
7634da87
TT
1368{
1369 tcomplain ();
1370}
1371
f6ac5f3d
PA
1372void
1373debug_target::load (const char *arg0, int arg1)
a7068b60 1374{
b6a8c27b
PA
1375 fprintf_unfiltered (gdb_stdlog, "-> %s->load (...)\n", this->beneath ()->shortname ());
1376 this->beneath ()->load (arg0, arg1);
1377 fprintf_unfiltered (gdb_stdlog, "<- %s->load (", this->beneath ()->shortname ());
f6ac5f3d 1378 target_debug_print_const_char_p (arg0);
a7068b60 1379 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1380 target_debug_print_int (arg1);
a7068b60
TT
1381 fputs_unfiltered (")\n", gdb_stdlog);
1382}
1383
f6ac5f3d
PA
1384void
1385target_ops::post_startup_inferior (ptid_t arg0)
340ba4bf 1386{
b6a8c27b 1387 this->beneath ()->post_startup_inferior (arg0);
340ba4bf
TT
1388}
1389
f6ac5f3d
PA
1390void
1391dummy_target::post_startup_inferior (ptid_t arg0)
340ba4bf
TT
1392{
1393}
1394
f6ac5f3d
PA
1395void
1396debug_target::post_startup_inferior (ptid_t arg0)
a7068b60 1397{
b6a8c27b
PA
1398 fprintf_unfiltered (gdb_stdlog, "-> %s->post_startup_inferior (...)\n", this->beneath ()->shortname ());
1399 this->beneath ()->post_startup_inferior (arg0);
1400 fprintf_unfiltered (gdb_stdlog, "<- %s->post_startup_inferior (", this->beneath ()->shortname ());
f6ac5f3d 1401 target_debug_print_ptid_t (arg0);
a7068b60
TT
1402 fputs_unfiltered (")\n", gdb_stdlog);
1403}
1404
f6ac5f3d
PA
1405int
1406target_ops::insert_fork_catchpoint (int arg0)
5958ebeb 1407{
b6a8c27b 1408 return this->beneath ()->insert_fork_catchpoint (arg0);
5958ebeb
TT
1409}
1410
f6ac5f3d
PA
1411int
1412dummy_target::insert_fork_catchpoint (int arg0)
5958ebeb
TT
1413{
1414 return 1;
1415}
1416
f6ac5f3d
PA
1417int
1418debug_target::insert_fork_catchpoint (int arg0)
a7068b60
TT
1419{
1420 int result;
b6a8c27b
PA
1421 fprintf_unfiltered (gdb_stdlog, "-> %s->insert_fork_catchpoint (...)\n", this->beneath ()->shortname ());
1422 result = this->beneath ()->insert_fork_catchpoint (arg0);
1423 fprintf_unfiltered (gdb_stdlog, "<- %s->insert_fork_catchpoint (", this->beneath ()->shortname ());
f6ac5f3d 1424 target_debug_print_int (arg0);
a7068b60
TT
1425 fputs_unfiltered (") = ", gdb_stdlog);
1426 target_debug_print_int (result);
1427 fputs_unfiltered ("\n", gdb_stdlog);
1428 return result;
1429}
1430
f6ac5f3d
PA
1431int
1432target_ops::remove_fork_catchpoint (int arg0)
e1a21fb7 1433{
b6a8c27b 1434 return this->beneath ()->remove_fork_catchpoint (arg0);
e1a21fb7
TT
1435}
1436
f6ac5f3d
PA
1437int
1438dummy_target::remove_fork_catchpoint (int arg0)
e1a21fb7
TT
1439{
1440 return 1;
1441}
1442
f6ac5f3d
PA
1443int
1444debug_target::remove_fork_catchpoint (int arg0)
a7068b60
TT
1445{
1446 int result;
b6a8c27b
PA
1447 fprintf_unfiltered (gdb_stdlog, "-> %s->remove_fork_catchpoint (...)\n", this->beneath ()->shortname ());
1448 result = this->beneath ()->remove_fork_catchpoint (arg0);
1449 fprintf_unfiltered (gdb_stdlog, "<- %s->remove_fork_catchpoint (", this->beneath ()->shortname ());
f6ac5f3d 1450 target_debug_print_int (arg0);
a7068b60
TT
1451 fputs_unfiltered (") = ", gdb_stdlog);
1452 target_debug_print_int (result);
1453 fputs_unfiltered ("\n", gdb_stdlog);
1454 return result;
1455}
1456
f6ac5f3d
PA
1457int
1458target_ops::insert_vfork_catchpoint (int arg0)
7e18a8dc 1459{
b6a8c27b 1460 return this->beneath ()->insert_vfork_catchpoint (arg0);
7e18a8dc
TT
1461}
1462
f6ac5f3d
PA
1463int
1464dummy_target::insert_vfork_catchpoint (int arg0)
7e18a8dc
TT
1465{
1466 return 1;
1467}
1468
f6ac5f3d
PA
1469int
1470debug_target::insert_vfork_catchpoint (int arg0)
a7068b60
TT
1471{
1472 int result;
b6a8c27b
PA
1473 fprintf_unfiltered (gdb_stdlog, "-> %s->insert_vfork_catchpoint (...)\n", this->beneath ()->shortname ());
1474 result = this->beneath ()->insert_vfork_catchpoint (arg0);
1475 fprintf_unfiltered (gdb_stdlog, "<- %s->insert_vfork_catchpoint (", this->beneath ()->shortname ());
f6ac5f3d 1476 target_debug_print_int (arg0);
a7068b60
TT
1477 fputs_unfiltered (") = ", gdb_stdlog);
1478 target_debug_print_int (result);
1479 fputs_unfiltered ("\n", gdb_stdlog);
1480 return result;
1481}
1482
f6ac5f3d
PA
1483int
1484target_ops::remove_vfork_catchpoint (int arg0)
95c3375e 1485{
b6a8c27b 1486 return this->beneath ()->remove_vfork_catchpoint (arg0);
95c3375e
TT
1487}
1488
f6ac5f3d
PA
1489int
1490dummy_target::remove_vfork_catchpoint (int arg0)
95c3375e
TT
1491{
1492 return 1;
1493}
1494
f6ac5f3d
PA
1495int
1496debug_target::remove_vfork_catchpoint (int arg0)
a7068b60
TT
1497{
1498 int result;
b6a8c27b
PA
1499 fprintf_unfiltered (gdb_stdlog, "-> %s->remove_vfork_catchpoint (...)\n", this->beneath ()->shortname ());
1500 result = this->beneath ()->remove_vfork_catchpoint (arg0);
1501 fprintf_unfiltered (gdb_stdlog, "<- %s->remove_vfork_catchpoint (", this->beneath ()->shortname ());
f6ac5f3d 1502 target_debug_print_int (arg0);
a7068b60
TT
1503 fputs_unfiltered (") = ", gdb_stdlog);
1504 target_debug_print_int (result);
1505 fputs_unfiltered ("\n", gdb_stdlog);
1506 return result;
1507}
1508
f6ac5f3d
PA
1509int
1510target_ops::follow_fork (int arg0, int arg1)
098dba18 1511{
b6a8c27b 1512 return this->beneath ()->follow_fork (arg0, arg1);
098dba18
TT
1513}
1514
f6ac5f3d
PA
1515int
1516dummy_target::follow_fork (int arg0, int arg1)
1517{
1518 return default_follow_fork (this, arg0, arg1);
1519}
1520
1521int
1522debug_target::follow_fork (int arg0, int arg1)
a7068b60
TT
1523{
1524 int result;
b6a8c27b
PA
1525 fprintf_unfiltered (gdb_stdlog, "-> %s->follow_fork (...)\n", this->beneath ()->shortname ());
1526 result = this->beneath ()->follow_fork (arg0, arg1);
1527 fprintf_unfiltered (gdb_stdlog, "<- %s->follow_fork (", this->beneath ()->shortname ());
f6ac5f3d 1528 target_debug_print_int (arg0);
a7068b60
TT
1529 fputs_unfiltered (", ", gdb_stdlog);
1530 target_debug_print_int (arg1);
a7068b60
TT
1531 fputs_unfiltered (") = ", gdb_stdlog);
1532 target_debug_print_int (result);
1533 fputs_unfiltered ("\n", gdb_stdlog);
1534 return result;
1535}
1536
f6ac5f3d
PA
1537int
1538target_ops::insert_exec_catchpoint (int arg0)
62f64d7a 1539{
b6a8c27b 1540 return this->beneath ()->insert_exec_catchpoint (arg0);
62f64d7a
TT
1541}
1542
f6ac5f3d
PA
1543int
1544dummy_target::insert_exec_catchpoint (int arg0)
62f64d7a
TT
1545{
1546 return 1;
1547}
1548
f6ac5f3d
PA
1549int
1550debug_target::insert_exec_catchpoint (int arg0)
a7068b60
TT
1551{
1552 int result;
b6a8c27b
PA
1553 fprintf_unfiltered (gdb_stdlog, "-> %s->insert_exec_catchpoint (...)\n", this->beneath ()->shortname ());
1554 result = this->beneath ()->insert_exec_catchpoint (arg0);
1555 fprintf_unfiltered (gdb_stdlog, "<- %s->insert_exec_catchpoint (", this->beneath ()->shortname ());
f6ac5f3d 1556 target_debug_print_int (arg0);
a7068b60
TT
1557 fputs_unfiltered (") = ", gdb_stdlog);
1558 target_debug_print_int (result);
1559 fputs_unfiltered ("\n", gdb_stdlog);
1560 return result;
1561}
1562
f6ac5f3d
PA
1563int
1564target_ops::remove_exec_catchpoint (int arg0)
cda0f38c 1565{
b6a8c27b 1566 return this->beneath ()->remove_exec_catchpoint (arg0);
cda0f38c
TT
1567}
1568
f6ac5f3d
PA
1569int
1570dummy_target::remove_exec_catchpoint (int arg0)
cda0f38c
TT
1571{
1572 return 1;
1573}
1574
f6ac5f3d
PA
1575int
1576debug_target::remove_exec_catchpoint (int arg0)
a7068b60
TT
1577{
1578 int result;
b6a8c27b
PA
1579 fprintf_unfiltered (gdb_stdlog, "-> %s->remove_exec_catchpoint (...)\n", this->beneath ()->shortname ());
1580 result = this->beneath ()->remove_exec_catchpoint (arg0);
1581 fprintf_unfiltered (gdb_stdlog, "<- %s->remove_exec_catchpoint (", this->beneath ()->shortname ());
f6ac5f3d 1582 target_debug_print_int (arg0);
a7068b60
TT
1583 fputs_unfiltered (") = ", gdb_stdlog);
1584 target_debug_print_int (result);
1585 fputs_unfiltered ("\n", gdb_stdlog);
1586 return result;
1587}
1588
f6ac5f3d 1589void
4ca51187 1590target_ops::follow_exec (struct inferior *arg0, const char *arg1)
94585166 1591{
b6a8c27b 1592 this->beneath ()->follow_exec (arg0, arg1);
94585166
DB
1593}
1594
f6ac5f3d 1595void
4ca51187 1596dummy_target::follow_exec (struct inferior *arg0, const char *arg1)
94585166
DB
1597{
1598}
1599
f6ac5f3d 1600void
4ca51187 1601debug_target::follow_exec (struct inferior *arg0, const char *arg1)
94585166 1602{
b6a8c27b
PA
1603 fprintf_unfiltered (gdb_stdlog, "-> %s->follow_exec (...)\n", this->beneath ()->shortname ());
1604 this->beneath ()->follow_exec (arg0, arg1);
1605 fprintf_unfiltered (gdb_stdlog, "<- %s->follow_exec (", this->beneath ()->shortname ());
f6ac5f3d 1606 target_debug_print_struct_inferior_p (arg0);
94585166 1607 fputs_unfiltered (", ", gdb_stdlog);
4ca51187 1608 target_debug_print_const_char_p (arg1);
94585166
DB
1609 fputs_unfiltered (")\n", gdb_stdlog);
1610}
1611
f6ac5f3d
PA
1612int
1613target_ops::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
6a9fa051 1614{
b6a8c27b 1615 return this->beneath ()->set_syscall_catchpoint (arg0, arg1, arg2, arg3);
6a9fa051
TT
1616}
1617
f6ac5f3d
PA
1618int
1619dummy_target::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
6a9fa051
TT
1620{
1621 return 1;
1622}
1623
f6ac5f3d
PA
1624int
1625debug_target::set_syscall_catchpoint (int arg0, bool arg1, int arg2, gdb::array_view<const int> arg3)
a7068b60
TT
1626{
1627 int result;
b6a8c27b
PA
1628 fprintf_unfiltered (gdb_stdlog, "-> %s->set_syscall_catchpoint (...)\n", this->beneath ()->shortname ());
1629 result = this->beneath ()->set_syscall_catchpoint (arg0, arg1, arg2, arg3);
1630 fprintf_unfiltered (gdb_stdlog, "<- %s->set_syscall_catchpoint (", this->beneath ()->shortname ());
f6ac5f3d 1631 target_debug_print_int (arg0);
a7068b60 1632 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1633 target_debug_print_bool (arg1);
a7068b60 1634 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1635 target_debug_print_int (arg2);
a7068b60 1636 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1637 target_debug_print_gdb_array_view_const_int (arg3);
a7068b60
TT
1638 fputs_unfiltered (") = ", gdb_stdlog);
1639 target_debug_print_int (result);
1640 fputs_unfiltered ("\n", gdb_stdlog);
1641 return result;
1642}
1643
f6ac5f3d
PA
1644void
1645target_ops::mourn_inferior ()
8d657035 1646{
b6a8c27b 1647 this->beneath ()->mourn_inferior ();
8d657035
TT
1648}
1649
f6ac5f3d
PA
1650void
1651dummy_target::mourn_inferior ()
a7068b60 1652{
f6ac5f3d 1653 default_mourn_inferior (this);
a7068b60
TT
1654}
1655
f6ac5f3d
PA
1656void
1657debug_target::mourn_inferior ()
e88ef65c 1658{
b6a8c27b
PA
1659 fprintf_unfiltered (gdb_stdlog, "-> %s->mourn_inferior (...)\n", this->beneath ()->shortname ());
1660 this->beneath ()->mourn_inferior ();
1661 fprintf_unfiltered (gdb_stdlog, "<- %s->mourn_inferior (", this->beneath ()->shortname ());
f6ac5f3d 1662 fputs_unfiltered (")\n", gdb_stdlog);
a7068b60
TT
1663}
1664
f6ac5f3d 1665void
adc6a863 1666target_ops::pass_signals (gdb::array_view<const unsigned char> arg0)
035cad7f 1667{
adc6a863 1668 this->beneath ()->pass_signals (arg0);
035cad7f
TT
1669}
1670
f6ac5f3d 1671void
adc6a863 1672dummy_target::pass_signals (gdb::array_view<const unsigned char> arg0)
a7068b60
TT
1673{
1674}
1675
f6ac5f3d 1676void
adc6a863 1677debug_target::pass_signals (gdb::array_view<const unsigned char> arg0)
035cad7f 1678{
b6a8c27b 1679 fprintf_unfiltered (gdb_stdlog, "-> %s->pass_signals (...)\n", this->beneath ()->shortname ());
adc6a863 1680 this->beneath ()->pass_signals (arg0);
b6a8c27b 1681 fprintf_unfiltered (gdb_stdlog, "<- %s->pass_signals (", this->beneath ()->shortname ());
adc6a863 1682 target_debug_print_signals (arg0);
a7068b60 1683 fputs_unfiltered (")\n", gdb_stdlog);
035cad7f
TT
1684}
1685
f6ac5f3d 1686void
adc6a863 1687target_ops::program_signals (gdb::array_view<const unsigned char> arg0)
7d4f8efa 1688{
adc6a863 1689 this->beneath ()->program_signals (arg0);
7d4f8efa
TT
1690}
1691
f6ac5f3d 1692void
adc6a863 1693dummy_target::program_signals (gdb::array_view<const unsigned char> arg0)
a7068b60
TT
1694{
1695}
1696
f6ac5f3d 1697void
adc6a863 1698debug_target::program_signals (gdb::array_view<const unsigned char> arg0)
7d4f8efa 1699{
b6a8c27b 1700 fprintf_unfiltered (gdb_stdlog, "-> %s->program_signals (...)\n", this->beneath ()->shortname ());
adc6a863 1701 this->beneath ()->program_signals (arg0);
b6a8c27b 1702 fprintf_unfiltered (gdb_stdlog, "<- %s->program_signals (", this->beneath ()->shortname ());
adc6a863 1703 target_debug_print_signals (arg0);
a7068b60 1704 fputs_unfiltered (")\n", gdb_stdlog);
7d4f8efa
TT
1705}
1706
57810aa7 1707bool
f6ac5f3d 1708target_ops::thread_alive (ptid_t arg0)
cbffc065 1709{
b6a8c27b 1710 return this->beneath ()->thread_alive (arg0);
cbffc065
TT
1711}
1712
57810aa7 1713bool
f6ac5f3d 1714dummy_target::thread_alive (ptid_t arg0)
cbffc065 1715{
57810aa7 1716 return false;
cbffc065
TT
1717}
1718
57810aa7 1719bool
f6ac5f3d 1720debug_target::thread_alive (ptid_t arg0)
a7068b60 1721{
57810aa7 1722 bool result;
b6a8c27b
PA
1723 fprintf_unfiltered (gdb_stdlog, "-> %s->thread_alive (...)\n", this->beneath ()->shortname ());
1724 result = this->beneath ()->thread_alive (arg0);
1725 fprintf_unfiltered (gdb_stdlog, "<- %s->thread_alive (", this->beneath ()->shortname ());
f6ac5f3d 1726 target_debug_print_ptid_t (arg0);
a7068b60 1727 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 1728 target_debug_print_bool (result);
a7068b60
TT
1729 fputs_unfiltered ("\n", gdb_stdlog);
1730 return result;
1731}
1732
f6ac5f3d
PA
1733void
1734target_ops::update_thread_list ()
09b0dc2b 1735{
b6a8c27b 1736 this->beneath ()->update_thread_list ();
09b0dc2b
TT
1737}
1738
f6ac5f3d
PA
1739void
1740dummy_target::update_thread_list ()
09b0dc2b
TT
1741{
1742}
1743
f6ac5f3d
PA
1744void
1745debug_target::update_thread_list ()
a7068b60 1746{
b6a8c27b
PA
1747 fprintf_unfiltered (gdb_stdlog, "-> %s->update_thread_list (...)\n", this->beneath ()->shortname ());
1748 this->beneath ()->update_thread_list ();
1749 fprintf_unfiltered (gdb_stdlog, "<- %s->update_thread_list (", this->beneath ()->shortname ());
a7068b60
TT
1750 fputs_unfiltered (")\n", gdb_stdlog);
1751}
1752
a068643d 1753std::string
f6ac5f3d
PA
1754target_ops::pid_to_str (ptid_t arg0)
1755{
b6a8c27b 1756 return this->beneath ()->pid_to_str (arg0);
f6ac5f3d
PA
1757}
1758
a068643d 1759std::string
f6ac5f3d 1760dummy_target::pid_to_str (ptid_t arg0)
770234d3 1761{
f6ac5f3d 1762 return default_pid_to_str (this, arg0);
770234d3
TT
1763}
1764
a068643d 1765std::string
f6ac5f3d 1766debug_target::pid_to_str (ptid_t arg0)
a7068b60 1767{
a068643d 1768 std::string result;
b6a8c27b
PA
1769 fprintf_unfiltered (gdb_stdlog, "-> %s->pid_to_str (...)\n", this->beneath ()->shortname ());
1770 result = this->beneath ()->pid_to_str (arg0);
1771 fprintf_unfiltered (gdb_stdlog, "<- %s->pid_to_str (", this->beneath ()->shortname ());
f6ac5f3d 1772 target_debug_print_ptid_t (arg0);
a7068b60 1773 fputs_unfiltered (") = ", gdb_stdlog);
a068643d 1774 target_debug_print_std_string (result);
a7068b60
TT
1775 fputs_unfiltered ("\n", gdb_stdlog);
1776 return result;
1777}
1778
f6ac5f3d
PA
1779const char *
1780target_ops::extra_thread_info (thread_info *arg0)
4a7e6dda 1781{
b6a8c27b 1782 return this->beneath ()->extra_thread_info (arg0);
4a7e6dda
TT
1783}
1784
f6ac5f3d
PA
1785const char *
1786dummy_target::extra_thread_info (thread_info *arg0)
4a7e6dda 1787{
9b144037 1788 return NULL;
4a7e6dda
TT
1789}
1790
f6ac5f3d
PA
1791const char *
1792debug_target::extra_thread_info (thread_info *arg0)
a7068b60 1793{
7a114964 1794 const char * result;
b6a8c27b
PA
1795 fprintf_unfiltered (gdb_stdlog, "-> %s->extra_thread_info (...)\n", this->beneath ()->shortname ());
1796 result = this->beneath ()->extra_thread_info (arg0);
1797 fprintf_unfiltered (gdb_stdlog, "<- %s->extra_thread_info (", this->beneath ()->shortname ());
f6ac5f3d 1798 target_debug_print_thread_info_p (arg0);
a7068b60 1799 fputs_unfiltered (") = ", gdb_stdlog);
7a114964 1800 target_debug_print_const_char_p (result);
a7068b60
TT
1801 fputs_unfiltered ("\n", gdb_stdlog);
1802 return result;
1803}
1804
f6ac5f3d
PA
1805const char *
1806target_ops::thread_name (thread_info *arg0)
825828fc 1807{
b6a8c27b 1808 return this->beneath ()->thread_name (arg0);
825828fc
TT
1809}
1810
f6ac5f3d
PA
1811const char *
1812dummy_target::thread_name (thread_info *arg0)
825828fc 1813{
9b144037 1814 return NULL;
825828fc
TT
1815}
1816
f6ac5f3d
PA
1817const char *
1818debug_target::thread_name (thread_info *arg0)
a7068b60 1819{
73ede765 1820 const char * result;
b6a8c27b
PA
1821 fprintf_unfiltered (gdb_stdlog, "-> %s->thread_name (...)\n", this->beneath ()->shortname ());
1822 result = this->beneath ()->thread_name (arg0);
1823 fprintf_unfiltered (gdb_stdlog, "<- %s->thread_name (", this->beneath ()->shortname ());
f6ac5f3d 1824 target_debug_print_thread_info_p (arg0);
a7068b60 1825 fputs_unfiltered (") = ", gdb_stdlog);
73ede765 1826 target_debug_print_const_char_p (result);
a7068b60
TT
1827 fputs_unfiltered ("\n", gdb_stdlog);
1828 return result;
1829}
1830
f6ac5f3d
PA
1831thread_info *
1832target_ops::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
e04ee09e 1833{
b6a8c27b 1834 return this->beneath ()->thread_handle_to_thread_info (arg0, arg1, arg2);
e04ee09e
KB
1835}
1836
f6ac5f3d
PA
1837thread_info *
1838dummy_target::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
e04ee09e
KB
1839{
1840 return NULL;
1841}
1842
f6ac5f3d
PA
1843thread_info *
1844debug_target::thread_handle_to_thread_info (const gdb_byte *arg0, int arg1, inferior *arg2)
e04ee09e 1845{
f6ac5f3d 1846 thread_info * result;
b6a8c27b
PA
1847 fprintf_unfiltered (gdb_stdlog, "-> %s->thread_handle_to_thread_info (...)\n", this->beneath ()->shortname ());
1848 result = this->beneath ()->thread_handle_to_thread_info (arg0, arg1, arg2);
1849 fprintf_unfiltered (gdb_stdlog, "<- %s->thread_handle_to_thread_info (", this->beneath ()->shortname ());
f6ac5f3d 1850 target_debug_print_const_gdb_byte_p (arg0);
e04ee09e 1851 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1852 target_debug_print_int (arg1);
e04ee09e 1853 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1854 target_debug_print_inferior_p (arg2);
e04ee09e 1855 fputs_unfiltered (") = ", gdb_stdlog);
f6ac5f3d 1856 target_debug_print_thread_info_p (result);
e04ee09e
KB
1857 fputs_unfiltered ("\n", gdb_stdlog);
1858 return result;
1859}
1860
3d6c6204
KB
1861gdb::byte_vector
1862target_ops::thread_info_to_thread_handle (struct thread_info *arg0)
1863{
1864 return this->beneath ()->thread_info_to_thread_handle (arg0);
1865}
1866
1867gdb::byte_vector
1868dummy_target::thread_info_to_thread_handle (struct thread_info *arg0)
1869{
1870 return gdb::byte_vector ();
1871}
1872
1873gdb::byte_vector
1874debug_target::thread_info_to_thread_handle (struct thread_info *arg0)
1875{
1876 gdb::byte_vector result;
1877 fprintf_unfiltered (gdb_stdlog, "-> %s->thread_info_to_thread_handle (...)\n", this->beneath ()->shortname ());
1878 result = this->beneath ()->thread_info_to_thread_handle (arg0);
1879 fprintf_unfiltered (gdb_stdlog, "<- %s->thread_info_to_thread_handle (", this->beneath ()->shortname ());
1880 target_debug_print_struct_thread_info_p (arg0);
1881 fputs_unfiltered (") = ", gdb_stdlog);
1882 target_debug_print_gdb_byte_vector (result);
1883 fputs_unfiltered ("\n", gdb_stdlog);
1884 return result;
1885}
1886
f6ac5f3d
PA
1887void
1888target_ops::stop (ptid_t arg0)
46ee7e8d 1889{
b6a8c27b 1890 this->beneath ()->stop (arg0);
46ee7e8d
TT
1891}
1892
f6ac5f3d
PA
1893void
1894dummy_target::stop (ptid_t arg0)
46ee7e8d
TT
1895{
1896}
1897
f6ac5f3d
PA
1898void
1899debug_target::stop (ptid_t arg0)
a7068b60 1900{
b6a8c27b
PA
1901 fprintf_unfiltered (gdb_stdlog, "-> %s->stop (...)\n", this->beneath ()->shortname ());
1902 this->beneath ()->stop (arg0);
1903 fprintf_unfiltered (gdb_stdlog, "<- %s->stop (", this->beneath ()->shortname ());
f6ac5f3d 1904 target_debug_print_ptid_t (arg0);
a7068b60
TT
1905 fputs_unfiltered (")\n", gdb_stdlog);
1906}
1907
f6ac5f3d
PA
1908void
1909target_ops::interrupt ()
bfedc46a 1910{
b6a8c27b 1911 this->beneath ()->interrupt ();
bfedc46a
PA
1912}
1913
f6ac5f3d
PA
1914void
1915dummy_target::interrupt ()
bfedc46a
PA
1916{
1917}
1918
f6ac5f3d
PA
1919void
1920debug_target::interrupt ()
bfedc46a 1921{
b6a8c27b
PA
1922 fprintf_unfiltered (gdb_stdlog, "-> %s->interrupt (...)\n", this->beneath ()->shortname ());
1923 this->beneath ()->interrupt ();
1924 fprintf_unfiltered (gdb_stdlog, "<- %s->interrupt (", this->beneath ()->shortname ());
bfedc46a
PA
1925 fputs_unfiltered (")\n", gdb_stdlog);
1926}
1927
f6ac5f3d
PA
1928void
1929target_ops::pass_ctrlc ()
93692b58 1930{
b6a8c27b 1931 this->beneath ()->pass_ctrlc ();
93692b58
PA
1932}
1933
f6ac5f3d
PA
1934void
1935dummy_target::pass_ctrlc ()
93692b58 1936{
f6ac5f3d
PA
1937 default_target_pass_ctrlc (this);
1938}
1939
1940void
1941debug_target::pass_ctrlc ()
1942{
b6a8c27b
PA
1943 fprintf_unfiltered (gdb_stdlog, "-> %s->pass_ctrlc (...)\n", this->beneath ()->shortname ());
1944 this->beneath ()->pass_ctrlc ();
1945 fprintf_unfiltered (gdb_stdlog, "<- %s->pass_ctrlc (", this->beneath ()->shortname ());
93692b58
PA
1946 fputs_unfiltered (")\n", gdb_stdlog);
1947}
1948
f6ac5f3d
PA
1949void
1950target_ops::rcmd (const char *arg0, struct ui_file *arg1)
a53f3625 1951{
b6a8c27b 1952 this->beneath ()->rcmd (arg0, arg1);
a53f3625
TT
1953}
1954
f6ac5f3d
PA
1955void
1956dummy_target::rcmd (const char *arg0, struct ui_file *arg1)
a7068b60 1957{
f6ac5f3d
PA
1958 default_rcmd (this, arg0, arg1);
1959}
1960
1961void
1962debug_target::rcmd (const char *arg0, struct ui_file *arg1)
1963{
b6a8c27b
PA
1964 fprintf_unfiltered (gdb_stdlog, "-> %s->rcmd (...)\n", this->beneath ()->shortname ());
1965 this->beneath ()->rcmd (arg0, arg1);
1966 fprintf_unfiltered (gdb_stdlog, "<- %s->rcmd (", this->beneath ()->shortname ());
f6ac5f3d 1967 target_debug_print_const_char_p (arg0);
a7068b60 1968 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 1969 target_debug_print_struct_ui_file_p (arg1);
a7068b60
TT
1970 fputs_unfiltered (")\n", gdb_stdlog);
1971}
1972
f6ac5f3d
PA
1973char *
1974target_ops::pid_to_exec_file (int arg0)
830ca330 1975{
b6a8c27b 1976 return this->beneath ()->pid_to_exec_file (arg0);
830ca330
TT
1977}
1978
f6ac5f3d
PA
1979char *
1980dummy_target::pid_to_exec_file (int arg0)
830ca330 1981{
9b144037 1982 return NULL;
830ca330
TT
1983}
1984
f6ac5f3d
PA
1985char *
1986debug_target::pid_to_exec_file (int arg0)
a7068b60
TT
1987{
1988 char * result;
b6a8c27b
PA
1989 fprintf_unfiltered (gdb_stdlog, "-> %s->pid_to_exec_file (...)\n", this->beneath ()->shortname ());
1990 result = this->beneath ()->pid_to_exec_file (arg0);
1991 fprintf_unfiltered (gdb_stdlog, "<- %s->pid_to_exec_file (", this->beneath ()->shortname ());
f6ac5f3d 1992 target_debug_print_int (arg0);
a7068b60
TT
1993 fputs_unfiltered (") = ", gdb_stdlog);
1994 target_debug_print_char_p (result);
1995 fputs_unfiltered ("\n", gdb_stdlog);
1996 return result;
1997}
1998
f6ac5f3d
PA
1999void
2000target_ops::log_command (const char *arg0)
d9cb0195 2001{
b6a8c27b 2002 this->beneath ()->log_command (arg0);
d9cb0195
TT
2003}
2004
f6ac5f3d
PA
2005void
2006dummy_target::log_command (const char *arg0)
d9cb0195
TT
2007{
2008}
2009
f6ac5f3d
PA
2010void
2011debug_target::log_command (const char *arg0)
a7068b60 2012{
b6a8c27b
PA
2013 fprintf_unfiltered (gdb_stdlog, "-> %s->log_command (...)\n", this->beneath ()->shortname ());
2014 this->beneath ()->log_command (arg0);
2015 fprintf_unfiltered (gdb_stdlog, "<- %s->log_command (", this->beneath ()->shortname ());
f6ac5f3d 2016 target_debug_print_const_char_p (arg0);
a7068b60
TT
2017 fputs_unfiltered (")\n", gdb_stdlog);
2018}
2019
f6ac5f3d
PA
2020struct target_section_table *
2021target_ops::get_section_table ()
7e35c012 2022{
b6a8c27b 2023 return this->beneath ()->get_section_table ();
7e35c012
TT
2024}
2025
f6ac5f3d
PA
2026struct target_section_table *
2027dummy_target::get_section_table ()
7e35c012 2028{
9b144037 2029 return NULL;
7e35c012
TT
2030}
2031
f6ac5f3d
PA
2032struct target_section_table *
2033debug_target::get_section_table ()
a7068b60
TT
2034{
2035 struct target_section_table * result;
b6a8c27b
PA
2036 fprintf_unfiltered (gdb_stdlog, "-> %s->get_section_table (...)\n", this->beneath ()->shortname ());
2037 result = this->beneath ()->get_section_table ();
2038 fprintf_unfiltered (gdb_stdlog, "<- %s->get_section_table (", this->beneath ()->shortname ());
a7068b60
TT
2039 fputs_unfiltered (") = ", gdb_stdlog);
2040 target_debug_print_struct_target_section_table_p (result);
2041 fputs_unfiltered ("\n", gdb_stdlog);
2042 return result;
2043}
2044
f6ac5f3d
PA
2045thread_control_capabilities
2046target_ops::get_thread_control_capabilities ()
2047{
b6a8c27b 2048 return this->beneath ()->get_thread_control_capabilities ();
f6ac5f3d
PA
2049}
2050
2051thread_control_capabilities
2052dummy_target::get_thread_control_capabilities ()
2053{
2054 return tc_none;
2055}
2056
2057thread_control_capabilities
2058debug_target::get_thread_control_capabilities ()
2059{
2060 thread_control_capabilities result;
b6a8c27b
PA
2061 fprintf_unfiltered (gdb_stdlog, "-> %s->get_thread_control_capabilities (...)\n", this->beneath ()->shortname ());
2062 result = this->beneath ()->get_thread_control_capabilities ();
2063 fprintf_unfiltered (gdb_stdlog, "<- %s->get_thread_control_capabilities (", this->beneath ()->shortname ());
f6ac5f3d
PA
2064 fputs_unfiltered (") = ", gdb_stdlog);
2065 target_debug_print_thread_control_capabilities (result);
2066 fputs_unfiltered ("\n", gdb_stdlog);
2067 return result;
2068}
2069
2070bool
2071target_ops::attach_no_wait ()
6b84065d 2072{
b6a8c27b 2073 return this->beneath ()->attach_no_wait ();
6b84065d
TT
2074}
2075
f6ac5f3d
PA
2076bool
2077dummy_target::attach_no_wait ()
b3ccfe11
TT
2078{
2079 return 0;
2080}
2081
f6ac5f3d
PA
2082bool
2083debug_target::attach_no_wait ()
2084{
2085 bool result;
b6a8c27b
PA
2086 fprintf_unfiltered (gdb_stdlog, "-> %s->attach_no_wait (...)\n", this->beneath ()->shortname ());
2087 result = this->beneath ()->attach_no_wait ();
2088 fprintf_unfiltered (gdb_stdlog, "<- %s->attach_no_wait (", this->beneath ()->shortname ());
f6ac5f3d
PA
2089 fputs_unfiltered (") = ", gdb_stdlog);
2090 target_debug_print_bool (result);
2091 fputs_unfiltered ("\n", gdb_stdlog);
2092 return result;
2093}
2094
57810aa7 2095bool
f6ac5f3d
PA
2096target_ops::can_async_p ()
2097{
b6a8c27b 2098 return this->beneath ()->can_async_p ();
f6ac5f3d
PA
2099}
2100
57810aa7 2101bool
f6ac5f3d
PA
2102dummy_target::can_async_p ()
2103{
57810aa7 2104 return false;
f6ac5f3d
PA
2105}
2106
57810aa7 2107bool
f6ac5f3d 2108debug_target::can_async_p ()
a7068b60 2109{
57810aa7 2110 bool result;
b6a8c27b
PA
2111 fprintf_unfiltered (gdb_stdlog, "-> %s->can_async_p (...)\n", this->beneath ()->shortname ());
2112 result = this->beneath ()->can_async_p ();
2113 fprintf_unfiltered (gdb_stdlog, "<- %s->can_async_p (", this->beneath ()->shortname ());
a7068b60 2114 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2115 target_debug_print_bool (result);
a7068b60
TT
2116 fputs_unfiltered ("\n", gdb_stdlog);
2117 return result;
2118}
2119
57810aa7 2120bool
f6ac5f3d 2121target_ops::is_async_p ()
6b84065d 2122{
b6a8c27b 2123 return this->beneath ()->is_async_p ();
6b84065d
TT
2124}
2125
57810aa7 2126bool
f6ac5f3d 2127dummy_target::is_async_p ()
b3ccfe11 2128{
57810aa7 2129 return false;
b3ccfe11
TT
2130}
2131
57810aa7 2132bool
f6ac5f3d 2133debug_target::is_async_p ()
a7068b60 2134{
57810aa7 2135 bool result;
b6a8c27b
PA
2136 fprintf_unfiltered (gdb_stdlog, "-> %s->is_async_p (...)\n", this->beneath ()->shortname ());
2137 result = this->beneath ()->is_async_p ();
2138 fprintf_unfiltered (gdb_stdlog, "<- %s->is_async_p (", this->beneath ()->shortname ());
a7068b60 2139 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2140 target_debug_print_bool (result);
a7068b60
TT
2141 fputs_unfiltered ("\n", gdb_stdlog);
2142 return result;
2143}
2144
f6ac5f3d
PA
2145void
2146target_ops::async (int arg0)
6b84065d 2147{
b6a8c27b 2148 this->beneath ()->async (arg0);
6b84065d
TT
2149}
2150
f6ac5f3d
PA
2151void
2152dummy_target::async (int arg0)
6b84065d
TT
2153{
2154 tcomplain ();
2155}
2156
f6ac5f3d
PA
2157void
2158debug_target::async (int arg0)
a7068b60 2159{
b6a8c27b
PA
2160 fprintf_unfiltered (gdb_stdlog, "-> %s->async (...)\n", this->beneath ()->shortname ());
2161 this->beneath ()->async (arg0);
2162 fprintf_unfiltered (gdb_stdlog, "<- %s->async (", this->beneath ()->shortname ());
f6ac5f3d 2163 target_debug_print_int (arg0);
a7068b60
TT
2164 fputs_unfiltered (")\n", gdb_stdlog);
2165}
2166
5b6d1e4f
PA
2167int
2168target_ops::async_wait_fd ()
2169{
2170 return this->beneath ()->async_wait_fd ();
2171}
2172
2173int
2174dummy_target::async_wait_fd ()
2175{
2176 noprocess ();
2177}
2178
2179int
2180debug_target::async_wait_fd ()
2181{
2182 int result;
2183 fprintf_unfiltered (gdb_stdlog, "-> %s->async_wait_fd (...)\n", this->beneath ()->shortname ());
2184 result = this->beneath ()->async_wait_fd ();
2185 fprintf_unfiltered (gdb_stdlog, "<- %s->async_wait_fd (", this->beneath ()->shortname ());
2186 fputs_unfiltered (") = ", gdb_stdlog);
2187 target_debug_print_int (result);
2188 fputs_unfiltered ("\n", gdb_stdlog);
2189 return result;
2190}
2191
f6ac5f3d
PA
2192void
2193target_ops::thread_events (int arg0)
65706a29 2194{
b6a8c27b 2195 this->beneath ()->thread_events (arg0);
65706a29
PA
2196}
2197
f6ac5f3d
PA
2198void
2199dummy_target::thread_events (int arg0)
65706a29
PA
2200{
2201}
2202
f6ac5f3d
PA
2203void
2204debug_target::thread_events (int arg0)
65706a29 2205{
b6a8c27b
PA
2206 fprintf_unfiltered (gdb_stdlog, "-> %s->thread_events (...)\n", this->beneath ()->shortname ());
2207 this->beneath ()->thread_events (arg0);
2208 fprintf_unfiltered (gdb_stdlog, "<- %s->thread_events (", this->beneath ()->shortname ());
f6ac5f3d 2209 target_debug_print_int (arg0);
65706a29
PA
2210 fputs_unfiltered (")\n", gdb_stdlog);
2211}
2212
57810aa7 2213bool
f6ac5f3d 2214target_ops::supports_non_stop ()
b3ccfe11 2215{
b6a8c27b 2216 return this->beneath ()->supports_non_stop ();
b3ccfe11
TT
2217}
2218
57810aa7 2219bool
f6ac5f3d 2220dummy_target::supports_non_stop ()
b3ccfe11 2221{
57810aa7 2222 return false;
b3ccfe11
TT
2223}
2224
57810aa7 2225bool
f6ac5f3d 2226debug_target::supports_non_stop ()
a7068b60 2227{
57810aa7 2228 bool result;
b6a8c27b
PA
2229 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_non_stop (...)\n", this->beneath ()->shortname ());
2230 result = this->beneath ()->supports_non_stop ();
2231 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_non_stop (", this->beneath ()->shortname ());
a7068b60 2232 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2233 target_debug_print_bool (result);
a7068b60
TT
2234 fputs_unfiltered ("\n", gdb_stdlog);
2235 return result;
2236}
2237
57810aa7 2238bool
f6ac5f3d 2239target_ops::always_non_stop_p ()
fbea99ea 2240{
b6a8c27b 2241 return this->beneath ()->always_non_stop_p ();
fbea99ea
PA
2242}
2243
57810aa7 2244bool
f6ac5f3d 2245dummy_target::always_non_stop_p ()
fbea99ea 2246{
57810aa7 2247 return false;
fbea99ea
PA
2248}
2249
57810aa7 2250bool
f6ac5f3d 2251debug_target::always_non_stop_p ()
fbea99ea 2252{
57810aa7 2253 bool result;
b6a8c27b
PA
2254 fprintf_unfiltered (gdb_stdlog, "-> %s->always_non_stop_p (...)\n", this->beneath ()->shortname ());
2255 result = this->beneath ()->always_non_stop_p ();
2256 fprintf_unfiltered (gdb_stdlog, "<- %s->always_non_stop_p (", this->beneath ()->shortname ());
fbea99ea 2257 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2258 target_debug_print_bool (result);
fbea99ea
PA
2259 fputs_unfiltered ("\n", gdb_stdlog);
2260 return result;
2261}
2262
f6ac5f3d
PA
2263int
2264target_ops::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
2265{
b6a8c27b 2266 return this->beneath ()->find_memory_regions (arg0, arg1);
f6ac5f3d
PA
2267}
2268
2269int
2270dummy_target::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
0b5a2719 2271{
f6ac5f3d 2272 return dummy_find_memory_regions (this, arg0, arg1);
0b5a2719
TT
2273}
2274
f6ac5f3d
PA
2275int
2276debug_target::find_memory_regions (find_memory_region_ftype arg0, void *arg1)
a7068b60
TT
2277{
2278 int result;
b6a8c27b
PA
2279 fprintf_unfiltered (gdb_stdlog, "-> %s->find_memory_regions (...)\n", this->beneath ()->shortname ());
2280 result = this->beneath ()->find_memory_regions (arg0, arg1);
2281 fprintf_unfiltered (gdb_stdlog, "<- %s->find_memory_regions (", this->beneath ()->shortname ());
f6ac5f3d 2282 target_debug_print_find_memory_region_ftype (arg0);
a7068b60 2283 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2284 target_debug_print_void_p (arg1);
a7068b60
TT
2285 fputs_unfiltered (") = ", gdb_stdlog);
2286 target_debug_print_int (result);
2287 fputs_unfiltered ("\n", gdb_stdlog);
2288 return result;
2289}
2290
f6ac5f3d
PA
2291char *
2292target_ops::make_corefile_notes (bfd *arg0, int *arg1)
16f796b1 2293{
b6a8c27b 2294 return this->beneath ()->make_corefile_notes (arg0, arg1);
16f796b1
TT
2295}
2296
f6ac5f3d
PA
2297char *
2298dummy_target::make_corefile_notes (bfd *arg0, int *arg1)
2299{
2300 return dummy_make_corefile_notes (this, arg0, arg1);
2301}
2302
2303char *
2304debug_target::make_corefile_notes (bfd *arg0, int *arg1)
a7068b60
TT
2305{
2306 char * result;
b6a8c27b
PA
2307 fprintf_unfiltered (gdb_stdlog, "-> %s->make_corefile_notes (...)\n", this->beneath ()->shortname ());
2308 result = this->beneath ()->make_corefile_notes (arg0, arg1);
2309 fprintf_unfiltered (gdb_stdlog, "<- %s->make_corefile_notes (", this->beneath ()->shortname ());
f6ac5f3d 2310 target_debug_print_bfd_p (arg0);
a7068b60 2311 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2312 target_debug_print_int_p (arg1);
a7068b60
TT
2313 fputs_unfiltered (") = ", gdb_stdlog);
2314 target_debug_print_char_p (result);
2315 fputs_unfiltered ("\n", gdb_stdlog);
2316 return result;
2317}
2318
f6ac5f3d
PA
2319gdb_byte *
2320target_ops::get_bookmark (const char *arg0, int arg1)
3dbafbbb 2321{
b6a8c27b 2322 return this->beneath ()->get_bookmark (arg0, arg1);
3dbafbbb
TT
2323}
2324
f6ac5f3d
PA
2325gdb_byte *
2326dummy_target::get_bookmark (const char *arg0, int arg1)
3dbafbbb
TT
2327{
2328 tcomplain ();
2329}
2330
f6ac5f3d
PA
2331gdb_byte *
2332debug_target::get_bookmark (const char *arg0, int arg1)
a7068b60
TT
2333{
2334 gdb_byte * result;
b6a8c27b
PA
2335 fprintf_unfiltered (gdb_stdlog, "-> %s->get_bookmark (...)\n", this->beneath ()->shortname ());
2336 result = this->beneath ()->get_bookmark (arg0, arg1);
2337 fprintf_unfiltered (gdb_stdlog, "<- %s->get_bookmark (", this->beneath ()->shortname ());
f6ac5f3d 2338 target_debug_print_const_char_p (arg0);
a7068b60 2339 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2340 target_debug_print_int (arg1);
a7068b60
TT
2341 fputs_unfiltered (") = ", gdb_stdlog);
2342 target_debug_print_gdb_byte_p (result);
2343 fputs_unfiltered ("\n", gdb_stdlog);
2344 return result;
2345}
2346
f6ac5f3d
PA
2347void
2348target_ops::goto_bookmark (const gdb_byte *arg0, int arg1)
9bb9d61d 2349{
b6a8c27b 2350 this->beneath ()->goto_bookmark (arg0, arg1);
9bb9d61d
TT
2351}
2352
f6ac5f3d
PA
2353void
2354dummy_target::goto_bookmark (const gdb_byte *arg0, int arg1)
9bb9d61d
TT
2355{
2356 tcomplain ();
2357}
2358
f6ac5f3d
PA
2359void
2360debug_target::goto_bookmark (const gdb_byte *arg0, int arg1)
a7068b60 2361{
b6a8c27b
PA
2362 fprintf_unfiltered (gdb_stdlog, "-> %s->goto_bookmark (...)\n", this->beneath ()->shortname ());
2363 this->beneath ()->goto_bookmark (arg0, arg1);
2364 fprintf_unfiltered (gdb_stdlog, "<- %s->goto_bookmark (", this->beneath ()->shortname ());
f6ac5f3d 2365 target_debug_print_const_gdb_byte_p (arg0);
a7068b60 2366 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2367 target_debug_print_int (arg1);
a7068b60
TT
2368 fputs_unfiltered (")\n", gdb_stdlog);
2369}
2370
f6ac5f3d
PA
2371CORE_ADDR
2372target_ops::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
f0f9ff95 2373{
b6a8c27b 2374 return this->beneath ()->get_thread_local_address (arg0, arg1, arg2);
f0f9ff95
TT
2375}
2376
f6ac5f3d
PA
2377CORE_ADDR
2378dummy_target::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
f0f9ff95
TT
2379{
2380 generic_tls_error ();
2381}
2382
f6ac5f3d
PA
2383CORE_ADDR
2384debug_target::get_thread_local_address (ptid_t arg0, CORE_ADDR arg1, CORE_ADDR arg2)
a7068b60
TT
2385{
2386 CORE_ADDR result;
b6a8c27b
PA
2387 fprintf_unfiltered (gdb_stdlog, "-> %s->get_thread_local_address (...)\n", this->beneath ()->shortname ());
2388 result = this->beneath ()->get_thread_local_address (arg0, arg1, arg2);
2389 fprintf_unfiltered (gdb_stdlog, "<- %s->get_thread_local_address (", this->beneath ()->shortname ());
f6ac5f3d 2390 target_debug_print_ptid_t (arg0);
a7068b60 2391 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2392 target_debug_print_CORE_ADDR (arg1);
a7068b60
TT
2393 fputs_unfiltered (", ", gdb_stdlog);
2394 target_debug_print_CORE_ADDR (arg2);
a7068b60
TT
2395 fputs_unfiltered (") = ", gdb_stdlog);
2396 target_debug_print_CORE_ADDR (result);
2397 fputs_unfiltered ("\n", gdb_stdlog);
2398 return result;
2399}
2400
f6ac5f3d
PA
2401enum target_xfer_status
2402target_ops::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
6b84065d 2403{
b6a8c27b 2404 return this->beneath ()->xfer_partial (arg0, arg1, arg2, arg3, arg4, arg5, arg6);
6b84065d
TT
2405}
2406
f6ac5f3d
PA
2407enum target_xfer_status
2408dummy_target::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
6b84065d
TT
2409{
2410 return TARGET_XFER_E_IO;
2411}
2412
f6ac5f3d
PA
2413enum target_xfer_status
2414debug_target::xfer_partial (enum target_object arg0, const char *arg1, gdb_byte *arg2, const gdb_byte *arg3, ULONGEST arg4, ULONGEST arg5, ULONGEST *arg6)
a7068b60
TT
2415{
2416 enum target_xfer_status result;
b6a8c27b
PA
2417 fprintf_unfiltered (gdb_stdlog, "-> %s->xfer_partial (...)\n", this->beneath ()->shortname ());
2418 result = this->beneath ()->xfer_partial (arg0, arg1, arg2, arg3, arg4, arg5, arg6);
2419 fprintf_unfiltered (gdb_stdlog, "<- %s->xfer_partial (", this->beneath ()->shortname ());
f6ac5f3d 2420 target_debug_print_enum_target_object (arg0);
a7068b60 2421 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2422 target_debug_print_const_char_p (arg1);
a7068b60 2423 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2424 target_debug_print_gdb_byte_p (arg2);
a7068b60 2425 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2426 target_debug_print_const_gdb_byte_p (arg3);
a7068b60 2427 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2428 target_debug_print_ULONGEST (arg4);
a7068b60
TT
2429 fputs_unfiltered (", ", gdb_stdlog);
2430 target_debug_print_ULONGEST (arg5);
2431 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2432 target_debug_print_ULONGEST_p (arg6);
a7068b60
TT
2433 fputs_unfiltered (") = ", gdb_stdlog);
2434 target_debug_print_enum_target_xfer_status (result);
2435 fputs_unfiltered ("\n", gdb_stdlog);
2436 return result;
2437}
2438
f6ac5f3d
PA
2439ULONGEST
2440target_ops::get_memory_xfer_limit ()
09c98b44 2441{
b6a8c27b 2442 return this->beneath ()->get_memory_xfer_limit ();
09c98b44
DB
2443}
2444
f6ac5f3d
PA
2445ULONGEST
2446dummy_target::get_memory_xfer_limit ()
09c98b44
DB
2447{
2448 return ULONGEST_MAX;
2449}
2450
f6ac5f3d
PA
2451ULONGEST
2452debug_target::get_memory_xfer_limit ()
09c98b44
DB
2453{
2454 ULONGEST result;
b6a8c27b
PA
2455 fprintf_unfiltered (gdb_stdlog, "-> %s->get_memory_xfer_limit (...)\n", this->beneath ()->shortname ());
2456 result = this->beneath ()->get_memory_xfer_limit ();
2457 fprintf_unfiltered (gdb_stdlog, "<- %s->get_memory_xfer_limit (", this->beneath ()->shortname ());
09c98b44
DB
2458 fputs_unfiltered (") = ", gdb_stdlog);
2459 target_debug_print_ULONGEST (result);
2460 fputs_unfiltered ("\n", gdb_stdlog);
2461 return result;
2462}
2463
f6ac5f3d
PA
2464std::vector<mem_region>
2465target_ops::memory_map ()
6b2c5a57 2466{
b6a8c27b 2467 return this->beneath ()->memory_map ();
6b2c5a57
TT
2468}
2469
f6ac5f3d
PA
2470std::vector<mem_region>
2471dummy_target::memory_map ()
6b2c5a57 2472{
a664f67e 2473 return std::vector<mem_region> ();
6b2c5a57
TT
2474}
2475
f6ac5f3d
PA
2476std::vector<mem_region>
2477debug_target::memory_map ()
a7068b60 2478{
1e97a227 2479 std::vector<mem_region> result;
b6a8c27b
PA
2480 fprintf_unfiltered (gdb_stdlog, "-> %s->memory_map (...)\n", this->beneath ()->shortname ());
2481 result = this->beneath ()->memory_map ();
2482 fprintf_unfiltered (gdb_stdlog, "<- %s->memory_map (", this->beneath ()->shortname ());
a7068b60 2483 fputs_unfiltered (") = ", gdb_stdlog);
1e97a227 2484 target_debug_print_std_vector_mem_region (result);
a7068b60
TT
2485 fputs_unfiltered ("\n", gdb_stdlog);
2486 return result;
2487}
2488
f6ac5f3d
PA
2489void
2490target_ops::flash_erase (ULONGEST arg0, LONGEST arg1)
e8a6c6ac 2491{
b6a8c27b 2492 this->beneath ()->flash_erase (arg0, arg1);
e8a6c6ac
TT
2493}
2494
f6ac5f3d
PA
2495void
2496dummy_target::flash_erase (ULONGEST arg0, LONGEST arg1)
e8a6c6ac
TT
2497{
2498 tcomplain ();
2499}
2500
f6ac5f3d
PA
2501void
2502debug_target::flash_erase (ULONGEST arg0, LONGEST arg1)
a7068b60 2503{
b6a8c27b
PA
2504 fprintf_unfiltered (gdb_stdlog, "-> %s->flash_erase (...)\n", this->beneath ()->shortname ());
2505 this->beneath ()->flash_erase (arg0, arg1);
2506 fprintf_unfiltered (gdb_stdlog, "<- %s->flash_erase (", this->beneath ()->shortname ());
f6ac5f3d 2507 target_debug_print_ULONGEST (arg0);
a7068b60 2508 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2509 target_debug_print_LONGEST (arg1);
a7068b60
TT
2510 fputs_unfiltered (")\n", gdb_stdlog);
2511}
2512
f6ac5f3d
PA
2513void
2514target_ops::flash_done ()
f6fb2925 2515{
b6a8c27b 2516 this->beneath ()->flash_done ();
f6fb2925
TT
2517}
2518
f6ac5f3d
PA
2519void
2520dummy_target::flash_done ()
f6fb2925
TT
2521{
2522 tcomplain ();
2523}
2524
f6ac5f3d
PA
2525void
2526debug_target::flash_done ()
a7068b60 2527{
b6a8c27b
PA
2528 fprintf_unfiltered (gdb_stdlog, "-> %s->flash_done (...)\n", this->beneath ()->shortname ());
2529 this->beneath ()->flash_done ();
2530 fprintf_unfiltered (gdb_stdlog, "<- %s->flash_done (", this->beneath ()->shortname ());
a7068b60
TT
2531 fputs_unfiltered (")\n", gdb_stdlog);
2532}
2533
f6ac5f3d
PA
2534const struct target_desc *
2535target_ops::read_description ()
2117c711 2536{
b6a8c27b 2537 return this->beneath ()->read_description ();
2117c711
TT
2538}
2539
f6ac5f3d
PA
2540const struct target_desc *
2541dummy_target::read_description ()
2117c711 2542{
9b144037 2543 return NULL;
2117c711
TT
2544}
2545
f6ac5f3d
PA
2546const struct target_desc *
2547debug_target::read_description ()
a7068b60
TT
2548{
2549 const struct target_desc * result;
b6a8c27b
PA
2550 fprintf_unfiltered (gdb_stdlog, "-> %s->read_description (...)\n", this->beneath ()->shortname ());
2551 result = this->beneath ()->read_description ();
2552 fprintf_unfiltered (gdb_stdlog, "<- %s->read_description (", this->beneath ()->shortname ());
a7068b60
TT
2553 fputs_unfiltered (") = ", gdb_stdlog);
2554 target_debug_print_const_struct_target_desc_p (result);
2555 fputs_unfiltered ("\n", gdb_stdlog);
2556 return result;
2557}
2558
f6ac5f3d
PA
2559ptid_t
2560target_ops::get_ada_task_ptid (long arg0, long arg1)
2561{
b6a8c27b 2562 return this->beneath ()->get_ada_task_ptid (arg0, arg1);
f6ac5f3d
PA
2563}
2564
2565ptid_t
2566dummy_target::get_ada_task_ptid (long arg0, long arg1)
4229b31d 2567{
f6ac5f3d 2568 return default_get_ada_task_ptid (this, arg0, arg1);
4229b31d
TT
2569}
2570
f6ac5f3d
PA
2571ptid_t
2572debug_target::get_ada_task_ptid (long arg0, long arg1)
a7068b60
TT
2573{
2574 ptid_t result;
b6a8c27b
PA
2575 fprintf_unfiltered (gdb_stdlog, "-> %s->get_ada_task_ptid (...)\n", this->beneath ()->shortname ());
2576 result = this->beneath ()->get_ada_task_ptid (arg0, arg1);
2577 fprintf_unfiltered (gdb_stdlog, "<- %s->get_ada_task_ptid (", this->beneath ()->shortname ());
f6ac5f3d 2578 target_debug_print_long (arg0);
a7068b60
TT
2579 fputs_unfiltered (", ", gdb_stdlog);
2580 target_debug_print_long (arg1);
a7068b60
TT
2581 fputs_unfiltered (") = ", gdb_stdlog);
2582 target_debug_print_ptid_t (result);
2583 fputs_unfiltered ("\n", gdb_stdlog);
2584 return result;
2585}
2586
f6ac5f3d
PA
2587int
2588target_ops::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
8de71aab 2589{
b6a8c27b 2590 return this->beneath ()->auxv_parse (arg0, arg1, arg2, arg3);
8de71aab
TT
2591}
2592
f6ac5f3d
PA
2593int
2594dummy_target::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
2595{
2596 return default_auxv_parse (this, arg0, arg1, arg2, arg3);
2597}
2598
2599int
2600debug_target::auxv_parse (gdb_byte **arg0, gdb_byte *arg1, CORE_ADDR *arg2, CORE_ADDR *arg3)
a7068b60
TT
2601{
2602 int result;
b6a8c27b
PA
2603 fprintf_unfiltered (gdb_stdlog, "-> %s->auxv_parse (...)\n", this->beneath ()->shortname ());
2604 result = this->beneath ()->auxv_parse (arg0, arg1, arg2, arg3);
2605 fprintf_unfiltered (gdb_stdlog, "<- %s->auxv_parse (", this->beneath ()->shortname ());
f6ac5f3d 2606 target_debug_print_gdb_byte_pp (arg0);
a7068b60 2607 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2608 target_debug_print_gdb_byte_p (arg1);
a7068b60 2609 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2610 target_debug_print_CORE_ADDR_p (arg2);
a7068b60
TT
2611 fputs_unfiltered (", ", gdb_stdlog);
2612 target_debug_print_CORE_ADDR_p (arg3);
a7068b60
TT
2613 fputs_unfiltered (") = ", gdb_stdlog);
2614 target_debug_print_int (result);
2615 fputs_unfiltered ("\n", gdb_stdlog);
2616 return result;
2617}
2618
f6ac5f3d
PA
2619int
2620target_ops::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
58a5184e 2621{
b6a8c27b 2622 return this->beneath ()->search_memory (arg0, arg1, arg2, arg3, arg4);
58a5184e
TT
2623}
2624
f6ac5f3d
PA
2625int
2626dummy_target::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
2627{
2628 return default_search_memory (this, arg0, arg1, arg2, arg3, arg4);
2629}
2630
2631int
2632debug_target::search_memory (CORE_ADDR arg0, ULONGEST arg1, const gdb_byte *arg2, ULONGEST arg3, CORE_ADDR *arg4)
a7068b60
TT
2633{
2634 int result;
b6a8c27b
PA
2635 fprintf_unfiltered (gdb_stdlog, "-> %s->search_memory (...)\n", this->beneath ()->shortname ());
2636 result = this->beneath ()->search_memory (arg0, arg1, arg2, arg3, arg4);
2637 fprintf_unfiltered (gdb_stdlog, "<- %s->search_memory (", this->beneath ()->shortname ());
f6ac5f3d 2638 target_debug_print_CORE_ADDR (arg0);
a7068b60 2639 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2640 target_debug_print_ULONGEST (arg1);
a7068b60 2641 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2642 target_debug_print_const_gdb_byte_p (arg2);
a7068b60 2643 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2644 target_debug_print_ULONGEST (arg3);
a7068b60 2645 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 2646 target_debug_print_CORE_ADDR_p (arg4);
a7068b60
TT
2647 fputs_unfiltered (") = ", gdb_stdlog);
2648 target_debug_print_int (result);
2649 fputs_unfiltered ("\n", gdb_stdlog);
2650 return result;
2651}
2652
57810aa7 2653bool
f6ac5f3d 2654target_ops::can_execute_reverse ()
53e1cfc7 2655{
b6a8c27b 2656 return this->beneath ()->can_execute_reverse ();
53e1cfc7
TT
2657}
2658
57810aa7 2659bool
f6ac5f3d 2660dummy_target::can_execute_reverse ()
53e1cfc7 2661{
57810aa7 2662 return false;
53e1cfc7
TT
2663}
2664
57810aa7 2665bool
f6ac5f3d 2666debug_target::can_execute_reverse ()
a7068b60 2667{
57810aa7 2668 bool result;
b6a8c27b
PA
2669 fprintf_unfiltered (gdb_stdlog, "-> %s->can_execute_reverse (...)\n", this->beneath ()->shortname ());
2670 result = this->beneath ()->can_execute_reverse ();
2671 fprintf_unfiltered (gdb_stdlog, "<- %s->can_execute_reverse (", this->beneath ()->shortname ());
a7068b60 2672 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2673 target_debug_print_bool (result);
a7068b60
TT
2674 fputs_unfiltered ("\n", gdb_stdlog);
2675 return result;
2676}
2677
f6ac5f3d
PA
2678enum exec_direction_kind
2679target_ops::execution_direction ()
2680{
b6a8c27b 2681 return this->beneath ()->execution_direction ();
f6ac5f3d
PA
2682}
2683
2684enum exec_direction_kind
2685dummy_target::execution_direction ()
fe31bf5b 2686{
f6ac5f3d 2687 return default_execution_direction (this);
fe31bf5b
TT
2688}
2689
f6ac5f3d
PA
2690enum exec_direction_kind
2691debug_target::execution_direction ()
a7068b60
TT
2692{
2693 enum exec_direction_kind result;
b6a8c27b
PA
2694 fprintf_unfiltered (gdb_stdlog, "-> %s->execution_direction (...)\n", this->beneath ()->shortname ());
2695 result = this->beneath ()->execution_direction ();
2696 fprintf_unfiltered (gdb_stdlog, "<- %s->execution_direction (", this->beneath ()->shortname ());
a7068b60
TT
2697 fputs_unfiltered (") = ", gdb_stdlog);
2698 target_debug_print_enum_exec_direction_kind (result);
2699 fputs_unfiltered ("\n", gdb_stdlog);
2700 return result;
2701}
2702
57810aa7 2703bool
f6ac5f3d 2704target_ops::supports_multi_process ()
a7304748 2705{
b6a8c27b 2706 return this->beneath ()->supports_multi_process ();
a7304748
TT
2707}
2708
57810aa7 2709bool
f6ac5f3d 2710dummy_target::supports_multi_process ()
a7304748 2711{
57810aa7 2712 return false;
a7304748
TT
2713}
2714
57810aa7 2715bool
f6ac5f3d 2716debug_target::supports_multi_process ()
a7068b60 2717{
57810aa7 2718 bool result;
b6a8c27b
PA
2719 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_multi_process (...)\n", this->beneath ()->shortname ());
2720 result = this->beneath ()->supports_multi_process ();
2721 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_multi_process (", this->beneath ()->shortname ());
a7068b60 2722 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2723 target_debug_print_bool (result);
a7068b60
TT
2724 fputs_unfiltered ("\n", gdb_stdlog);
2725 return result;
2726}
2727
57810aa7 2728bool
f6ac5f3d 2729target_ops::supports_enable_disable_tracepoint ()
aab1b22d 2730{
b6a8c27b 2731 return this->beneath ()->supports_enable_disable_tracepoint ();
aab1b22d
TT
2732}
2733
57810aa7 2734bool
f6ac5f3d 2735dummy_target::supports_enable_disable_tracepoint ()
aab1b22d 2736{
57810aa7 2737 return false;
aab1b22d
TT
2738}
2739
57810aa7 2740bool
f6ac5f3d 2741debug_target::supports_enable_disable_tracepoint ()
a7068b60 2742{
57810aa7 2743 bool result;
b6a8c27b
PA
2744 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_enable_disable_tracepoint (...)\n", this->beneath ()->shortname ());
2745 result = this->beneath ()->supports_enable_disable_tracepoint ();
2746 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_enable_disable_tracepoint (", this->beneath ()->shortname ());
a7068b60 2747 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2748 target_debug_print_bool (result);
a7068b60
TT
2749 fputs_unfiltered ("\n", gdb_stdlog);
2750 return result;
2751}
2752
57810aa7 2753bool
f6ac5f3d 2754target_ops::supports_disable_randomization ()
9409d39e 2755{
b6a8c27b 2756 return this->beneath ()->supports_disable_randomization ();
f6ac5f3d
PA
2757}
2758
57810aa7 2759bool
f6ac5f3d
PA
2760dummy_target::supports_disable_randomization ()
2761{
2762 return find_default_supports_disable_randomization (this);
2763}
2764
57810aa7 2765bool
f6ac5f3d
PA
2766debug_target::supports_disable_randomization ()
2767{
57810aa7 2768 bool result;
b6a8c27b
PA
2769 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_disable_randomization (...)\n", this->beneath ()->shortname ());
2770 result = this->beneath ()->supports_disable_randomization ();
2771 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_disable_randomization (", this->beneath ()->shortname ());
f6ac5f3d 2772 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2773 target_debug_print_bool (result);
f6ac5f3d
PA
2774 fputs_unfiltered ("\n", gdb_stdlog);
2775 return result;
9409d39e
TT
2776}
2777
57810aa7 2778bool
f6ac5f3d
PA
2779target_ops::supports_string_tracing ()
2780{
b6a8c27b 2781 return this->beneath ()->supports_string_tracing ();
f6ac5f3d
PA
2782}
2783
57810aa7 2784bool
f6ac5f3d 2785dummy_target::supports_string_tracing ()
9409d39e 2786{
57810aa7 2787 return false;
9409d39e
TT
2788}
2789
57810aa7 2790bool
f6ac5f3d 2791debug_target::supports_string_tracing ()
a7068b60 2792{
57810aa7 2793 bool result;
b6a8c27b
PA
2794 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_string_tracing (...)\n", this->beneath ()->shortname ());
2795 result = this->beneath ()->supports_string_tracing ();
2796 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_string_tracing (", this->beneath ()->shortname ());
a7068b60 2797 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2798 target_debug_print_bool (result);
a7068b60
TT
2799 fputs_unfiltered ("\n", gdb_stdlog);
2800 return result;
2801}
2802
57810aa7 2803bool
f6ac5f3d 2804target_ops::supports_evaluation_of_breakpoint_conditions ()
ccfde2a0 2805{
b6a8c27b 2806 return this->beneath ()->supports_evaluation_of_breakpoint_conditions ();
ccfde2a0
TT
2807}
2808
57810aa7 2809bool
f6ac5f3d 2810dummy_target::supports_evaluation_of_breakpoint_conditions ()
ccfde2a0 2811{
57810aa7 2812 return false;
ccfde2a0
TT
2813}
2814
57810aa7 2815bool
f6ac5f3d 2816debug_target::supports_evaluation_of_breakpoint_conditions ()
a7068b60 2817{
57810aa7 2818 bool result;
b6a8c27b
PA
2819 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_evaluation_of_breakpoint_conditions (...)\n", this->beneath ()->shortname ());
2820 result = this->beneath ()->supports_evaluation_of_breakpoint_conditions ();
2821 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_evaluation_of_breakpoint_conditions (", this->beneath ()->shortname ());
a7068b60 2822 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2823 target_debug_print_bool (result);
a7068b60
TT
2824 fputs_unfiltered ("\n", gdb_stdlog);
2825 return result;
2826}
2827
57810aa7 2828bool
f6ac5f3d 2829target_ops::can_run_breakpoint_commands ()
843f59ed 2830{
b6a8c27b 2831 return this->beneath ()->can_run_breakpoint_commands ();
843f59ed
TT
2832}
2833
57810aa7 2834bool
f6ac5f3d 2835dummy_target::can_run_breakpoint_commands ()
843f59ed 2836{
57810aa7 2837 return false;
843f59ed
TT
2838}
2839
57810aa7 2840bool
f6ac5f3d 2841debug_target::can_run_breakpoint_commands ()
a7068b60 2842{
57810aa7 2843 bool result;
b6a8c27b
PA
2844 fprintf_unfiltered (gdb_stdlog, "-> %s->can_run_breakpoint_commands (...)\n", this->beneath ()->shortname ());
2845 result = this->beneath ()->can_run_breakpoint_commands ();
2846 fprintf_unfiltered (gdb_stdlog, "<- %s->can_run_breakpoint_commands (", this->beneath ()->shortname ());
a7068b60 2847 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2848 target_debug_print_bool (result);
a7068b60
TT
2849 fputs_unfiltered ("\n", gdb_stdlog);
2850 return result;
2851}
2852
f6ac5f3d
PA
2853struct gdbarch *
2854target_ops::thread_architecture (ptid_t arg0)
2855{
b6a8c27b 2856 return this->beneath ()->thread_architecture (arg0);
f6ac5f3d
PA
2857}
2858
2859struct gdbarch *
2860dummy_target::thread_architecture (ptid_t arg0)
43eba180 2861{
3b3dac9b 2862 return NULL;
43eba180
TT
2863}
2864
f6ac5f3d
PA
2865struct gdbarch *
2866debug_target::thread_architecture (ptid_t arg0)
a7068b60
TT
2867{
2868 struct gdbarch * result;
b6a8c27b
PA
2869 fprintf_unfiltered (gdb_stdlog, "-> %s->thread_architecture (...)\n", this->beneath ()->shortname ());
2870 result = this->beneath ()->thread_architecture (arg0);
2871 fprintf_unfiltered (gdb_stdlog, "<- %s->thread_architecture (", this->beneath ()->shortname ());
f6ac5f3d 2872 target_debug_print_ptid_t (arg0);
a7068b60
TT
2873 fputs_unfiltered (") = ", gdb_stdlog);
2874 target_debug_print_struct_gdbarch_p (result);
2875 fputs_unfiltered ("\n", gdb_stdlog);
2876 return result;
2877}
2878
f6ac5f3d
PA
2879struct address_space *
2880target_ops::thread_address_space (ptid_t arg0)
2881{
b6a8c27b 2882 return this->beneath ()->thread_address_space (arg0);
f6ac5f3d
PA
2883}
2884
2885struct address_space *
2886dummy_target::thread_address_space (ptid_t arg0)
8eaff7cd 2887{
3b3dac9b 2888 return NULL;
8eaff7cd
TT
2889}
2890
f6ac5f3d
PA
2891struct address_space *
2892debug_target::thread_address_space (ptid_t arg0)
a7068b60
TT
2893{
2894 struct address_space * result;
b6a8c27b
PA
2895 fprintf_unfiltered (gdb_stdlog, "-> %s->thread_address_space (...)\n", this->beneath ()->shortname ());
2896 result = this->beneath ()->thread_address_space (arg0);
2897 fprintf_unfiltered (gdb_stdlog, "<- %s->thread_address_space (", this->beneath ()->shortname ());
f6ac5f3d 2898 target_debug_print_ptid_t (arg0);
a7068b60
TT
2899 fputs_unfiltered (") = ", gdb_stdlog);
2900 target_debug_print_struct_address_space_p (result);
2901 fputs_unfiltered ("\n", gdb_stdlog);
2902 return result;
2903}
2904
57810aa7 2905bool
f6ac5f3d 2906target_ops::filesystem_is_local ()
4bd7dc42 2907{
b6a8c27b 2908 return this->beneath ()->filesystem_is_local ();
4bd7dc42
GB
2909}
2910
57810aa7 2911bool
f6ac5f3d 2912dummy_target::filesystem_is_local ()
4bd7dc42 2913{
57810aa7 2914 return true;
4bd7dc42
GB
2915}
2916
57810aa7 2917bool
f6ac5f3d 2918debug_target::filesystem_is_local ()
4bd7dc42 2919{
57810aa7 2920 bool result;
b6a8c27b
PA
2921 fprintf_unfiltered (gdb_stdlog, "-> %s->filesystem_is_local (...)\n", this->beneath ()->shortname ());
2922 result = this->beneath ()->filesystem_is_local ();
2923 fprintf_unfiltered (gdb_stdlog, "<- %s->filesystem_is_local (", this->beneath ()->shortname ());
4bd7dc42 2924 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2925 target_debug_print_bool (result);
4bd7dc42
GB
2926 fputs_unfiltered ("\n", gdb_stdlog);
2927 return result;
2928}
2929
f6ac5f3d
PA
2930void
2931target_ops::trace_init ()
5536135b 2932{
b6a8c27b 2933 this->beneath ()->trace_init ();
5536135b
TT
2934}
2935
f6ac5f3d
PA
2936void
2937dummy_target::trace_init ()
5536135b
TT
2938{
2939 tcomplain ();
2940}
2941
f6ac5f3d
PA
2942void
2943debug_target::trace_init ()
a7068b60 2944{
b6a8c27b
PA
2945 fprintf_unfiltered (gdb_stdlog, "-> %s->trace_init (...)\n", this->beneath ()->shortname ());
2946 this->beneath ()->trace_init ();
2947 fprintf_unfiltered (gdb_stdlog, "<- %s->trace_init (", this->beneath ()->shortname ());
a7068b60
TT
2948 fputs_unfiltered (")\n", gdb_stdlog);
2949}
2950
f6ac5f3d
PA
2951void
2952target_ops::download_tracepoint (struct bp_location *arg0)
9a980a22 2953{
b6a8c27b 2954 this->beneath ()->download_tracepoint (arg0);
9a980a22
TT
2955}
2956
f6ac5f3d
PA
2957void
2958dummy_target::download_tracepoint (struct bp_location *arg0)
9a980a22
TT
2959{
2960 tcomplain ();
2961}
2962
f6ac5f3d
PA
2963void
2964debug_target::download_tracepoint (struct bp_location *arg0)
a7068b60 2965{
b6a8c27b
PA
2966 fprintf_unfiltered (gdb_stdlog, "-> %s->download_tracepoint (...)\n", this->beneath ()->shortname ());
2967 this->beneath ()->download_tracepoint (arg0);
2968 fprintf_unfiltered (gdb_stdlog, "<- %s->download_tracepoint (", this->beneath ()->shortname ());
f6ac5f3d 2969 target_debug_print_struct_bp_location_p (arg0);
a7068b60
TT
2970 fputs_unfiltered (")\n", gdb_stdlog);
2971}
2972
57810aa7 2973bool
f6ac5f3d 2974target_ops::can_download_tracepoint ()
719acc4a 2975{
b6a8c27b 2976 return this->beneath ()->can_download_tracepoint ();
719acc4a
TT
2977}
2978
57810aa7 2979bool
f6ac5f3d 2980dummy_target::can_download_tracepoint ()
719acc4a 2981{
57810aa7 2982 return false;
719acc4a
TT
2983}
2984
57810aa7 2985bool
f6ac5f3d 2986debug_target::can_download_tracepoint ()
a7068b60 2987{
57810aa7 2988 bool result;
b6a8c27b
PA
2989 fprintf_unfiltered (gdb_stdlog, "-> %s->can_download_tracepoint (...)\n", this->beneath ()->shortname ());
2990 result = this->beneath ()->can_download_tracepoint ();
2991 fprintf_unfiltered (gdb_stdlog, "<- %s->can_download_tracepoint (", this->beneath ()->shortname ());
a7068b60 2992 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 2993 target_debug_print_bool (result);
a7068b60
TT
2994 fputs_unfiltered ("\n", gdb_stdlog);
2995 return result;
2996}
2997
f6ac5f3d
PA
2998void
2999target_ops::download_trace_state_variable (const trace_state_variable &arg0)
94eb98b9 3000{
b6a8c27b 3001 this->beneath ()->download_trace_state_variable (arg0);
94eb98b9
TT
3002}
3003
f6ac5f3d
PA
3004void
3005dummy_target::download_trace_state_variable (const trace_state_variable &arg0)
94eb98b9
TT
3006{
3007 tcomplain ();
3008}
3009
f6ac5f3d
PA
3010void
3011debug_target::download_trace_state_variable (const trace_state_variable &arg0)
a7068b60 3012{
b6a8c27b
PA
3013 fprintf_unfiltered (gdb_stdlog, "-> %s->download_trace_state_variable (...)\n", this->beneath ()->shortname ());
3014 this->beneath ()->download_trace_state_variable (arg0);
3015 fprintf_unfiltered (gdb_stdlog, "<- %s->download_trace_state_variable (", this->beneath ()->shortname ());
f6ac5f3d 3016 target_debug_print_const_trace_state_variable_r (arg0);
a7068b60
TT
3017 fputs_unfiltered (")\n", gdb_stdlog);
3018}
3019
f6ac5f3d
PA
3020void
3021target_ops::enable_tracepoint (struct bp_location *arg0)
151f70f1 3022{
b6a8c27b 3023 this->beneath ()->enable_tracepoint (arg0);
151f70f1
TT
3024}
3025
f6ac5f3d
PA
3026void
3027dummy_target::enable_tracepoint (struct bp_location *arg0)
151f70f1
TT
3028{
3029 tcomplain ();
3030}
3031
f6ac5f3d
PA
3032void
3033debug_target::enable_tracepoint (struct bp_location *arg0)
a7068b60 3034{
b6a8c27b
PA
3035 fprintf_unfiltered (gdb_stdlog, "-> %s->enable_tracepoint (...)\n", this->beneath ()->shortname ());
3036 this->beneath ()->enable_tracepoint (arg0);
3037 fprintf_unfiltered (gdb_stdlog, "<- %s->enable_tracepoint (", this->beneath ()->shortname ());
f6ac5f3d 3038 target_debug_print_struct_bp_location_p (arg0);
a7068b60
TT
3039 fputs_unfiltered (")\n", gdb_stdlog);
3040}
3041
f6ac5f3d
PA
3042void
3043target_ops::disable_tracepoint (struct bp_location *arg0)
05c41993 3044{
b6a8c27b 3045 this->beneath ()->disable_tracepoint (arg0);
05c41993
TT
3046}
3047
f6ac5f3d
PA
3048void
3049dummy_target::disable_tracepoint (struct bp_location *arg0)
05c41993
TT
3050{
3051 tcomplain ();
3052}
3053
f6ac5f3d
PA
3054void
3055debug_target::disable_tracepoint (struct bp_location *arg0)
a7068b60 3056{
b6a8c27b
PA
3057 fprintf_unfiltered (gdb_stdlog, "-> %s->disable_tracepoint (...)\n", this->beneath ()->shortname ());
3058 this->beneath ()->disable_tracepoint (arg0);
3059 fprintf_unfiltered (gdb_stdlog, "<- %s->disable_tracepoint (", this->beneath ()->shortname ());
f6ac5f3d 3060 target_debug_print_struct_bp_location_p (arg0);
a7068b60
TT
3061 fputs_unfiltered (")\n", gdb_stdlog);
3062}
3063
f6ac5f3d
PA
3064void
3065target_ops::trace_set_readonly_regions ()
86dd181d 3066{
b6a8c27b 3067 this->beneath ()->trace_set_readonly_regions ();
86dd181d
TT
3068}
3069
f6ac5f3d
PA
3070void
3071dummy_target::trace_set_readonly_regions ()
86dd181d
TT
3072{
3073 tcomplain ();
3074}
3075
f6ac5f3d
PA
3076void
3077debug_target::trace_set_readonly_regions ()
a7068b60 3078{
b6a8c27b
PA
3079 fprintf_unfiltered (gdb_stdlog, "-> %s->trace_set_readonly_regions (...)\n", this->beneath ()->shortname ());
3080 this->beneath ()->trace_set_readonly_regions ();
3081 fprintf_unfiltered (gdb_stdlog, "<- %s->trace_set_readonly_regions (", this->beneath ()->shortname ());
a7068b60
TT
3082 fputs_unfiltered (")\n", gdb_stdlog);
3083}
3084
f6ac5f3d
PA
3085void
3086target_ops::trace_start ()
25da2e80 3087{
b6a8c27b 3088 this->beneath ()->trace_start ();
25da2e80
TT
3089}
3090
f6ac5f3d
PA
3091void
3092dummy_target::trace_start ()
25da2e80
TT
3093{
3094 tcomplain ();
3095}
3096
f6ac5f3d
PA
3097void
3098debug_target::trace_start ()
a7068b60 3099{
b6a8c27b
PA
3100 fprintf_unfiltered (gdb_stdlog, "-> %s->trace_start (...)\n", this->beneath ()->shortname ());
3101 this->beneath ()->trace_start ();
3102 fprintf_unfiltered (gdb_stdlog, "<- %s->trace_start (", this->beneath ()->shortname ());
a7068b60
TT
3103 fputs_unfiltered (")\n", gdb_stdlog);
3104}
3105
f6ac5f3d
PA
3106int
3107target_ops::get_trace_status (struct trace_status *arg0)
4072d4ff 3108{
b6a8c27b 3109 return this->beneath ()->get_trace_status (arg0);
4072d4ff
TT
3110}
3111
f6ac5f3d
PA
3112int
3113dummy_target::get_trace_status (struct trace_status *arg0)
4072d4ff
TT
3114{
3115 return -1;
3116}
3117
f6ac5f3d
PA
3118int
3119debug_target::get_trace_status (struct trace_status *arg0)
a7068b60
TT
3120{
3121 int result;
b6a8c27b
PA
3122 fprintf_unfiltered (gdb_stdlog, "-> %s->get_trace_status (...)\n", this->beneath ()->shortname ());
3123 result = this->beneath ()->get_trace_status (arg0);
3124 fprintf_unfiltered (gdb_stdlog, "<- %s->get_trace_status (", this->beneath ()->shortname ());
f6ac5f3d 3125 target_debug_print_struct_trace_status_p (arg0);
a7068b60
TT
3126 fputs_unfiltered (") = ", gdb_stdlog);
3127 target_debug_print_int (result);
3128 fputs_unfiltered ("\n", gdb_stdlog);
3129 return result;
3130}
3131
f6ac5f3d
PA
3132void
3133target_ops::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
6fea14cd 3134{
b6a8c27b 3135 this->beneath ()->get_tracepoint_status (arg0, arg1);
6fea14cd
TT
3136}
3137
f6ac5f3d
PA
3138void
3139dummy_target::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
6fea14cd
TT
3140{
3141 tcomplain ();
3142}
3143
f6ac5f3d
PA
3144void
3145debug_target::get_tracepoint_status (struct breakpoint *arg0, struct uploaded_tp *arg1)
a7068b60 3146{
b6a8c27b
PA
3147 fprintf_unfiltered (gdb_stdlog, "-> %s->get_tracepoint_status (...)\n", this->beneath ()->shortname ());
3148 this->beneath ()->get_tracepoint_status (arg0, arg1);
3149 fprintf_unfiltered (gdb_stdlog, "<- %s->get_tracepoint_status (", this->beneath ()->shortname ());
f6ac5f3d 3150 target_debug_print_struct_breakpoint_p (arg0);
a7068b60 3151 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3152 target_debug_print_struct_uploaded_tp_p (arg1);
a7068b60
TT
3153 fputs_unfiltered (")\n", gdb_stdlog);
3154}
3155
f6ac5f3d
PA
3156void
3157target_ops::trace_stop ()
e51c07ea 3158{
b6a8c27b 3159 this->beneath ()->trace_stop ();
e51c07ea
TT
3160}
3161
f6ac5f3d
PA
3162void
3163dummy_target::trace_stop ()
e51c07ea
TT
3164{
3165 tcomplain ();
3166}
3167
f6ac5f3d
PA
3168void
3169debug_target::trace_stop ()
a7068b60 3170{
b6a8c27b
PA
3171 fprintf_unfiltered (gdb_stdlog, "-> %s->trace_stop (...)\n", this->beneath ()->shortname ());
3172 this->beneath ()->trace_stop ();
3173 fprintf_unfiltered (gdb_stdlog, "<- %s->trace_stop (", this->beneath ()->shortname ());
a7068b60
TT
3174 fputs_unfiltered (")\n", gdb_stdlog);
3175}
3176
f6ac5f3d
PA
3177int
3178target_ops::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
afc94e66 3179{
b6a8c27b 3180 return this->beneath ()->trace_find (arg0, arg1, arg2, arg3, arg4);
afc94e66
TT
3181}
3182
f6ac5f3d
PA
3183int
3184dummy_target::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
afc94e66
TT
3185{
3186 return -1;
3187}
3188
f6ac5f3d
PA
3189int
3190debug_target::trace_find (enum trace_find_type arg0, int arg1, CORE_ADDR arg2, CORE_ADDR arg3, int *arg4)
a7068b60
TT
3191{
3192 int result;
b6a8c27b
PA
3193 fprintf_unfiltered (gdb_stdlog, "-> %s->trace_find (...)\n", this->beneath ()->shortname ());
3194 result = this->beneath ()->trace_find (arg0, arg1, arg2, arg3, arg4);
3195 fprintf_unfiltered (gdb_stdlog, "<- %s->trace_find (", this->beneath ()->shortname ());
f6ac5f3d 3196 target_debug_print_enum_trace_find_type (arg0);
a7068b60 3197 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3198 target_debug_print_int (arg1);
a7068b60 3199 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3200 target_debug_print_CORE_ADDR (arg2);
a7068b60
TT
3201 fputs_unfiltered (", ", gdb_stdlog);
3202 target_debug_print_CORE_ADDR (arg3);
3203 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3204 target_debug_print_int_p (arg4);
a7068b60
TT
3205 fputs_unfiltered (") = ", gdb_stdlog);
3206 target_debug_print_int (result);
3207 fputs_unfiltered ("\n", gdb_stdlog);
3208 return result;
3209}
3210
57810aa7 3211bool
f6ac5f3d 3212target_ops::get_trace_state_variable_value (int arg0, LONGEST *arg1)
959bcd0b 3213{
b6a8c27b 3214 return this->beneath ()->get_trace_state_variable_value (arg0, arg1);
959bcd0b
TT
3215}
3216
57810aa7 3217bool
f6ac5f3d 3218dummy_target::get_trace_state_variable_value (int arg0, LONGEST *arg1)
959bcd0b 3219{
57810aa7 3220 return false;
959bcd0b
TT
3221}
3222
57810aa7 3223bool
f6ac5f3d 3224debug_target::get_trace_state_variable_value (int arg0, LONGEST *arg1)
a7068b60 3225{
57810aa7 3226 bool result;
b6a8c27b
PA
3227 fprintf_unfiltered (gdb_stdlog, "-> %s->get_trace_state_variable_value (...)\n", this->beneath ()->shortname ());
3228 result = this->beneath ()->get_trace_state_variable_value (arg0, arg1);
3229 fprintf_unfiltered (gdb_stdlog, "<- %s->get_trace_state_variable_value (", this->beneath ()->shortname ());
f6ac5f3d 3230 target_debug_print_int (arg0);
a7068b60 3231 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3232 target_debug_print_LONGEST_p (arg1);
a7068b60 3233 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 3234 target_debug_print_bool (result);
a7068b60
TT
3235 fputs_unfiltered ("\n", gdb_stdlog);
3236 return result;
3237}
3238
f6ac5f3d
PA
3239int
3240target_ops::save_trace_data (const char *arg0)
a2e6c147 3241{
b6a8c27b 3242 return this->beneath ()->save_trace_data (arg0);
a2e6c147
TT
3243}
3244
f6ac5f3d
PA
3245int
3246dummy_target::save_trace_data (const char *arg0)
a2e6c147
TT
3247{
3248 tcomplain ();
3249}
3250
f6ac5f3d
PA
3251int
3252debug_target::save_trace_data (const char *arg0)
a7068b60
TT
3253{
3254 int result;
b6a8c27b
PA
3255 fprintf_unfiltered (gdb_stdlog, "-> %s->save_trace_data (...)\n", this->beneath ()->shortname ());
3256 result = this->beneath ()->save_trace_data (arg0);
3257 fprintf_unfiltered (gdb_stdlog, "<- %s->save_trace_data (", this->beneath ()->shortname ());
f6ac5f3d 3258 target_debug_print_const_char_p (arg0);
a7068b60
TT
3259 fputs_unfiltered (") = ", gdb_stdlog);
3260 target_debug_print_int (result);
3261 fputs_unfiltered ("\n", gdb_stdlog);
3262 return result;
3263}
3264
f6ac5f3d
PA
3265int
3266target_ops::upload_tracepoints (struct uploaded_tp **arg0)
1e949b00 3267{
b6a8c27b 3268 return this->beneath ()->upload_tracepoints (arg0);
1e949b00
TT
3269}
3270
f6ac5f3d
PA
3271int
3272dummy_target::upload_tracepoints (struct uploaded_tp **arg0)
1e949b00
TT
3273{
3274 return 0;
3275}
3276
f6ac5f3d
PA
3277int
3278debug_target::upload_tracepoints (struct uploaded_tp **arg0)
a7068b60
TT
3279{
3280 int result;
b6a8c27b
PA
3281 fprintf_unfiltered (gdb_stdlog, "-> %s->upload_tracepoints (...)\n", this->beneath ()->shortname ());
3282 result = this->beneath ()->upload_tracepoints (arg0);
3283 fprintf_unfiltered (gdb_stdlog, "<- %s->upload_tracepoints (", this->beneath ()->shortname ());
f6ac5f3d 3284 target_debug_print_struct_uploaded_tp_pp (arg0);
a7068b60
TT
3285 fputs_unfiltered (") = ", gdb_stdlog);
3286 target_debug_print_int (result);
3287 fputs_unfiltered ("\n", gdb_stdlog);
3288 return result;
3289}
3290
f6ac5f3d
PA
3291int
3292target_ops::upload_trace_state_variables (struct uploaded_tsv **arg0)
08120467 3293{
b6a8c27b 3294 return this->beneath ()->upload_trace_state_variables (arg0);
08120467
TT
3295}
3296
f6ac5f3d
PA
3297int
3298dummy_target::upload_trace_state_variables (struct uploaded_tsv **arg0)
08120467
TT
3299{
3300 return 0;
3301}
3302
f6ac5f3d
PA
3303int
3304debug_target::upload_trace_state_variables (struct uploaded_tsv **arg0)
a7068b60
TT
3305{
3306 int result;
b6a8c27b
PA
3307 fprintf_unfiltered (gdb_stdlog, "-> %s->upload_trace_state_variables (...)\n", this->beneath ()->shortname ());
3308 result = this->beneath ()->upload_trace_state_variables (arg0);
3309 fprintf_unfiltered (gdb_stdlog, "<- %s->upload_trace_state_variables (", this->beneath ()->shortname ());
f6ac5f3d 3310 target_debug_print_struct_uploaded_tsv_pp (arg0);
a7068b60
TT
3311 fputs_unfiltered (") = ", gdb_stdlog);
3312 target_debug_print_int (result);
3313 fputs_unfiltered ("\n", gdb_stdlog);
3314 return result;
3315}
3316
f6ac5f3d
PA
3317LONGEST
3318target_ops::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
ace92e7d 3319{
b6a8c27b 3320 return this->beneath ()->get_raw_trace_data (arg0, arg1, arg2);
ace92e7d
TT
3321}
3322
f6ac5f3d
PA
3323LONGEST
3324dummy_target::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
ace92e7d
TT
3325{
3326 tcomplain ();
3327}
3328
f6ac5f3d
PA
3329LONGEST
3330debug_target::get_raw_trace_data (gdb_byte *arg0, ULONGEST arg1, LONGEST arg2)
a7068b60
TT
3331{
3332 LONGEST result;
b6a8c27b
PA
3333 fprintf_unfiltered (gdb_stdlog, "-> %s->get_raw_trace_data (...)\n", this->beneath ()->shortname ());
3334 result = this->beneath ()->get_raw_trace_data (arg0, arg1, arg2);
3335 fprintf_unfiltered (gdb_stdlog, "<- %s->get_raw_trace_data (", this->beneath ()->shortname ());
f6ac5f3d 3336 target_debug_print_gdb_byte_p (arg0);
a7068b60 3337 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3338 target_debug_print_ULONGEST (arg1);
a7068b60 3339 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3340 target_debug_print_LONGEST (arg2);
a7068b60
TT
3341 fputs_unfiltered (") = ", gdb_stdlog);
3342 target_debug_print_LONGEST (result);
3343 fputs_unfiltered ("\n", gdb_stdlog);
3344 return result;
3345}
3346
f6ac5f3d
PA
3347int
3348target_ops::get_min_fast_tracepoint_insn_len ()
9249843f 3349{
b6a8c27b 3350 return this->beneath ()->get_min_fast_tracepoint_insn_len ();
9249843f
TT
3351}
3352
f6ac5f3d
PA
3353int
3354dummy_target::get_min_fast_tracepoint_insn_len ()
9249843f
TT
3355{
3356 return -1;
3357}
3358
f6ac5f3d
PA
3359int
3360debug_target::get_min_fast_tracepoint_insn_len ()
a7068b60
TT
3361{
3362 int result;
b6a8c27b
PA
3363 fprintf_unfiltered (gdb_stdlog, "-> %s->get_min_fast_tracepoint_insn_len (...)\n", this->beneath ()->shortname ());
3364 result = this->beneath ()->get_min_fast_tracepoint_insn_len ();
3365 fprintf_unfiltered (gdb_stdlog, "<- %s->get_min_fast_tracepoint_insn_len (", this->beneath ()->shortname ());
a7068b60
TT
3366 fputs_unfiltered (") = ", gdb_stdlog);
3367 target_debug_print_int (result);
3368 fputs_unfiltered ("\n", gdb_stdlog);
3369 return result;
3370}
3371
f6ac5f3d
PA
3372void
3373target_ops::set_disconnected_tracing (int arg0)
0bcfeddf 3374{
b6a8c27b 3375 this->beneath ()->set_disconnected_tracing (arg0);
0bcfeddf
TT
3376}
3377
f6ac5f3d
PA
3378void
3379dummy_target::set_disconnected_tracing (int arg0)
0bcfeddf
TT
3380{
3381}
3382
f6ac5f3d
PA
3383void
3384debug_target::set_disconnected_tracing (int arg0)
a7068b60 3385{
b6a8c27b
PA
3386 fprintf_unfiltered (gdb_stdlog, "-> %s->set_disconnected_tracing (...)\n", this->beneath ()->shortname ());
3387 this->beneath ()->set_disconnected_tracing (arg0);
3388 fprintf_unfiltered (gdb_stdlog, "<- %s->set_disconnected_tracing (", this->beneath ()->shortname ());
f6ac5f3d 3389 target_debug_print_int (arg0);
a7068b60
TT
3390 fputs_unfiltered (")\n", gdb_stdlog);
3391}
3392
f6ac5f3d
PA
3393void
3394target_ops::set_circular_trace_buffer (int arg0)
8d526939 3395{
b6a8c27b 3396 this->beneath ()->set_circular_trace_buffer (arg0);
8d526939
TT
3397}
3398
f6ac5f3d
PA
3399void
3400dummy_target::set_circular_trace_buffer (int arg0)
8d526939
TT
3401{
3402}
3403
f6ac5f3d
PA
3404void
3405debug_target::set_circular_trace_buffer (int arg0)
a7068b60 3406{
b6a8c27b
PA
3407 fprintf_unfiltered (gdb_stdlog, "-> %s->set_circular_trace_buffer (...)\n", this->beneath ()->shortname ());
3408 this->beneath ()->set_circular_trace_buffer (arg0);
3409 fprintf_unfiltered (gdb_stdlog, "<- %s->set_circular_trace_buffer (", this->beneath ()->shortname ());
f6ac5f3d 3410 target_debug_print_int (arg0);
a7068b60
TT
3411 fputs_unfiltered (")\n", gdb_stdlog);
3412}
3413
f6ac5f3d
PA
3414void
3415target_ops::set_trace_buffer_size (LONGEST arg0)
91df8d1d 3416{
b6a8c27b 3417 this->beneath ()->set_trace_buffer_size (arg0);
91df8d1d
TT
3418}
3419
f6ac5f3d
PA
3420void
3421dummy_target::set_trace_buffer_size (LONGEST arg0)
91df8d1d
TT
3422{
3423}
3424
f6ac5f3d
PA
3425void
3426debug_target::set_trace_buffer_size (LONGEST arg0)
a7068b60 3427{
b6a8c27b
PA
3428 fprintf_unfiltered (gdb_stdlog, "-> %s->set_trace_buffer_size (...)\n", this->beneath ()->shortname ());
3429 this->beneath ()->set_trace_buffer_size (arg0);
3430 fprintf_unfiltered (gdb_stdlog, "<- %s->set_trace_buffer_size (", this->beneath ()->shortname ());
f6ac5f3d 3431 target_debug_print_LONGEST (arg0);
a7068b60
TT
3432 fputs_unfiltered (")\n", gdb_stdlog);
3433}
3434
57810aa7 3435bool
f6ac5f3d 3436target_ops::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
8586ccaa 3437{
b6a8c27b 3438 return this->beneath ()->set_trace_notes (arg0, arg1, arg2);
8586ccaa
TT
3439}
3440
57810aa7 3441bool
f6ac5f3d 3442dummy_target::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
8586ccaa 3443{
57810aa7 3444 return false;
8586ccaa
TT
3445}
3446
57810aa7 3447bool
f6ac5f3d 3448debug_target::set_trace_notes (const char *arg0, const char *arg1, const char *arg2)
a7068b60 3449{
57810aa7 3450 bool result;
b6a8c27b
PA
3451 fprintf_unfiltered (gdb_stdlog, "-> %s->set_trace_notes (...)\n", this->beneath ()->shortname ());
3452 result = this->beneath ()->set_trace_notes (arg0, arg1, arg2);
3453 fprintf_unfiltered (gdb_stdlog, "<- %s->set_trace_notes (", this->beneath ()->shortname ());
f6ac5f3d 3454 target_debug_print_const_char_p (arg0);
a7068b60
TT
3455 fputs_unfiltered (", ", gdb_stdlog);
3456 target_debug_print_const_char_p (arg1);
3457 fputs_unfiltered (", ", gdb_stdlog);
3458 target_debug_print_const_char_p (arg2);
a7068b60 3459 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 3460 target_debug_print_bool (result);
a7068b60
TT
3461 fputs_unfiltered ("\n", gdb_stdlog);
3462 return result;
3463}
3464
f6ac5f3d
PA
3465int
3466target_ops::core_of_thread (ptid_t arg0)
9e538d0d 3467{
b6a8c27b 3468 return this->beneath ()->core_of_thread (arg0);
9e538d0d
TT
3469}
3470
f6ac5f3d
PA
3471int
3472dummy_target::core_of_thread (ptid_t arg0)
9e538d0d
TT
3473{
3474 return -1;
3475}
3476
f6ac5f3d
PA
3477int
3478debug_target::core_of_thread (ptid_t arg0)
a7068b60
TT
3479{
3480 int result;
b6a8c27b
PA
3481 fprintf_unfiltered (gdb_stdlog, "-> %s->core_of_thread (...)\n", this->beneath ()->shortname ());
3482 result = this->beneath ()->core_of_thread (arg0);
3483 fprintf_unfiltered (gdb_stdlog, "<- %s->core_of_thread (", this->beneath ()->shortname ());
f6ac5f3d 3484 target_debug_print_ptid_t (arg0);
a7068b60
TT
3485 fputs_unfiltered (") = ", gdb_stdlog);
3486 target_debug_print_int (result);
3487 fputs_unfiltered ("\n", gdb_stdlog);
3488 return result;
3489}
3490
f6ac5f3d
PA
3491int
3492target_ops::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
eb276a6b 3493{
b6a8c27b 3494 return this->beneath ()->verify_memory (arg0, arg1, arg2);
eb276a6b
TT
3495}
3496
f6ac5f3d
PA
3497int
3498dummy_target::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
3499{
3500 return default_verify_memory (this, arg0, arg1, arg2);
3501}
3502
3503int
3504debug_target::verify_memory (const gdb_byte *arg0, CORE_ADDR arg1, ULONGEST arg2)
a7068b60
TT
3505{
3506 int result;
b6a8c27b
PA
3507 fprintf_unfiltered (gdb_stdlog, "-> %s->verify_memory (...)\n", this->beneath ()->shortname ());
3508 result = this->beneath ()->verify_memory (arg0, arg1, arg2);
3509 fprintf_unfiltered (gdb_stdlog, "<- %s->verify_memory (", this->beneath ()->shortname ());
f6ac5f3d 3510 target_debug_print_const_gdb_byte_p (arg0);
a7068b60 3511 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3512 target_debug_print_CORE_ADDR (arg1);
a7068b60 3513 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3514 target_debug_print_ULONGEST (arg2);
a7068b60
TT
3515 fputs_unfiltered (") = ", gdb_stdlog);
3516 target_debug_print_int (result);
3517 fputs_unfiltered ("\n", gdb_stdlog);
3518 return result;
3519}
3520
57810aa7 3521bool
f6ac5f3d 3522target_ops::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
22bcceee 3523{
b6a8c27b 3524 return this->beneath ()->get_tib_address (arg0, arg1);
22bcceee
TT
3525}
3526
57810aa7 3527bool
f6ac5f3d 3528dummy_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
22bcceee
TT
3529{
3530 tcomplain ();
3531}
3532
57810aa7 3533bool
f6ac5f3d 3534debug_target::get_tib_address (ptid_t arg0, CORE_ADDR *arg1)
a7068b60 3535{
57810aa7 3536 bool result;
b6a8c27b
PA
3537 fprintf_unfiltered (gdb_stdlog, "-> %s->get_tib_address (...)\n", this->beneath ()->shortname ());
3538 result = this->beneath ()->get_tib_address (arg0, arg1);
3539 fprintf_unfiltered (gdb_stdlog, "<- %s->get_tib_address (", this->beneath ()->shortname ());
f6ac5f3d 3540 target_debug_print_ptid_t (arg0);
a7068b60 3541 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3542 target_debug_print_CORE_ADDR_p (arg1);
a7068b60 3543 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 3544 target_debug_print_bool (result);
a7068b60
TT
3545 fputs_unfiltered ("\n", gdb_stdlog);
3546 return result;
3547}
3548
f6ac5f3d
PA
3549void
3550target_ops::set_permissions ()
dcd6917f 3551{
b6a8c27b 3552 this->beneath ()->set_permissions ();
dcd6917f
TT
3553}
3554
f6ac5f3d
PA
3555void
3556dummy_target::set_permissions ()
dcd6917f
TT
3557{
3558}
3559
f6ac5f3d
PA
3560void
3561debug_target::set_permissions ()
a7068b60 3562{
b6a8c27b
PA
3563 fprintf_unfiltered (gdb_stdlog, "-> %s->set_permissions (...)\n", this->beneath ()->shortname ());
3564 this->beneath ()->set_permissions ();
3565 fprintf_unfiltered (gdb_stdlog, "<- %s->set_permissions (", this->beneath ()->shortname ());
a7068b60
TT
3566 fputs_unfiltered (")\n", gdb_stdlog);
3567}
3568
f6ac5f3d
PA
3569bool
3570target_ops::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
4c3e4425 3571{
b6a8c27b 3572 return this->beneath ()->static_tracepoint_marker_at (arg0, arg1);
4c3e4425
TT
3573}
3574
f6ac5f3d
PA
3575bool
3576dummy_target::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
4c3e4425 3577{
5d9310c4 3578 return false;
4c3e4425
TT
3579}
3580
f6ac5f3d
PA
3581bool
3582debug_target::static_tracepoint_marker_at (CORE_ADDR arg0, static_tracepoint_marker *arg1)
a7068b60 3583{
5d9310c4 3584 bool result;
b6a8c27b
PA
3585 fprintf_unfiltered (gdb_stdlog, "-> %s->static_tracepoint_marker_at (...)\n", this->beneath ()->shortname ());
3586 result = this->beneath ()->static_tracepoint_marker_at (arg0, arg1);
3587 fprintf_unfiltered (gdb_stdlog, "<- %s->static_tracepoint_marker_at (", this->beneath ()->shortname ());
f6ac5f3d 3588 target_debug_print_CORE_ADDR (arg0);
a7068b60 3589 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3590 target_debug_print_static_tracepoint_marker_p (arg1);
a7068b60 3591 fputs_unfiltered (") = ", gdb_stdlog);
5d9310c4 3592 target_debug_print_bool (result);
a7068b60
TT
3593 fputs_unfiltered ("\n", gdb_stdlog);
3594 return result;
3595}
3596
f6ac5f3d
PA
3597std::vector<static_tracepoint_marker>
3598target_ops::static_tracepoint_markers_by_strid (const char *arg0)
d6522a22 3599{
b6a8c27b 3600 return this->beneath ()->static_tracepoint_markers_by_strid (arg0);
d6522a22
TT
3601}
3602
f6ac5f3d
PA
3603std::vector<static_tracepoint_marker>
3604dummy_target::static_tracepoint_markers_by_strid (const char *arg0)
d6522a22
TT
3605{
3606 tcomplain ();
3607}
3608
f6ac5f3d
PA
3609std::vector<static_tracepoint_marker>
3610debug_target::static_tracepoint_markers_by_strid (const char *arg0)
a7068b60 3611{
5d9310c4 3612 std::vector<static_tracepoint_marker> result;
b6a8c27b
PA
3613 fprintf_unfiltered (gdb_stdlog, "-> %s->static_tracepoint_markers_by_strid (...)\n", this->beneath ()->shortname ());
3614 result = this->beneath ()->static_tracepoint_markers_by_strid (arg0);
3615 fprintf_unfiltered (gdb_stdlog, "<- %s->static_tracepoint_markers_by_strid (", this->beneath ()->shortname ());
f6ac5f3d 3616 target_debug_print_const_char_p (arg0);
a7068b60 3617 fputs_unfiltered (") = ", gdb_stdlog);
5d9310c4 3618 target_debug_print_std_vector_static_tracepoint_marker (result);
a7068b60
TT
3619 fputs_unfiltered ("\n", gdb_stdlog);
3620 return result;
3621}
3622
f6ac5f3d
PA
3623traceframe_info_up
3624target_ops::traceframe_info ()
92155eeb 3625{
b6a8c27b 3626 return this->beneath ()->traceframe_info ();
92155eeb
TT
3627}
3628
f6ac5f3d
PA
3629traceframe_info_up
3630dummy_target::traceframe_info ()
92155eeb 3631{
6a5f844b 3632 tcomplain ();
92155eeb
TT
3633}
3634
f6ac5f3d
PA
3635traceframe_info_up
3636debug_target::traceframe_info ()
a7068b60 3637{
2098b393 3638 traceframe_info_up result;
b6a8c27b
PA
3639 fprintf_unfiltered (gdb_stdlog, "-> %s->traceframe_info (...)\n", this->beneath ()->shortname ());
3640 result = this->beneath ()->traceframe_info ();
3641 fprintf_unfiltered (gdb_stdlog, "<- %s->traceframe_info (", this->beneath ()->shortname ());
a7068b60 3642 fputs_unfiltered (") = ", gdb_stdlog);
2098b393 3643 target_debug_print_traceframe_info_up (result);
a7068b60
TT
3644 fputs_unfiltered ("\n", gdb_stdlog);
3645 return result;
3646}
3647
57810aa7
PA
3648bool
3649target_ops::use_agent (bool arg0)
d9db5b21 3650{
b6a8c27b 3651 return this->beneath ()->use_agent (arg0);
d9db5b21
TT
3652}
3653
57810aa7
PA
3654bool
3655dummy_target::use_agent (bool arg0)
d9db5b21
TT
3656{
3657 tcomplain ();
3658}
3659
57810aa7
PA
3660bool
3661debug_target::use_agent (bool arg0)
a7068b60 3662{
57810aa7 3663 bool result;
b6a8c27b
PA
3664 fprintf_unfiltered (gdb_stdlog, "-> %s->use_agent (...)\n", this->beneath ()->shortname ());
3665 result = this->beneath ()->use_agent (arg0);
3666 fprintf_unfiltered (gdb_stdlog, "<- %s->use_agent (", this->beneath ()->shortname ());
57810aa7 3667 target_debug_print_bool (arg0);
a7068b60 3668 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 3669 target_debug_print_bool (result);
a7068b60
TT
3670 fputs_unfiltered ("\n", gdb_stdlog);
3671 return result;
3672}
3673
57810aa7 3674bool
f6ac5f3d 3675target_ops::can_use_agent ()
9a7d8b48 3676{
b6a8c27b 3677 return this->beneath ()->can_use_agent ();
9a7d8b48
TT
3678}
3679
57810aa7 3680bool
f6ac5f3d 3681dummy_target::can_use_agent ()
9a7d8b48 3682{
57810aa7 3683 return false;
9a7d8b48
TT
3684}
3685
57810aa7 3686bool
f6ac5f3d 3687debug_target::can_use_agent ()
a7068b60 3688{
57810aa7 3689 bool result;
b6a8c27b
PA
3690 fprintf_unfiltered (gdb_stdlog, "-> %s->can_use_agent (...)\n", this->beneath ()->shortname ());
3691 result = this->beneath ()->can_use_agent ();
3692 fprintf_unfiltered (gdb_stdlog, "<- %s->can_use_agent (", this->beneath ()->shortname ());
a7068b60 3693 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 3694 target_debug_print_bool (result);
a7068b60
TT
3695 fputs_unfiltered ("\n", gdb_stdlog);
3696 return result;
3697}
3698
f6ac5f3d
PA
3699struct btrace_target_info *
3700target_ops::enable_btrace (ptid_t arg0, const struct btrace_config *arg1)
6dc7fcf4 3701{
b6a8c27b 3702 return this->beneath ()->enable_btrace (arg0, arg1);
6dc7fcf4
TT
3703}
3704
f6ac5f3d
PA
3705struct btrace_target_info *
3706dummy_target::enable_btrace (ptid_t arg0, const struct btrace_config *arg1)
6dc7fcf4
TT
3707{
3708 tcomplain ();
3709}
3710
f6ac5f3d
PA
3711struct btrace_target_info *
3712debug_target::enable_btrace (ptid_t arg0, const struct btrace_config *arg1)
a7068b60
TT
3713{
3714 struct btrace_target_info * result;
b6a8c27b
PA
3715 fprintf_unfiltered (gdb_stdlog, "-> %s->enable_btrace (...)\n", this->beneath ()->shortname ());
3716 result = this->beneath ()->enable_btrace (arg0, arg1);
3717 fprintf_unfiltered (gdb_stdlog, "<- %s->enable_btrace (", this->beneath ()->shortname ());
f6ac5f3d 3718 target_debug_print_ptid_t (arg0);
f4abbc16 3719 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3720 target_debug_print_const_struct_btrace_config_p (arg1);
a7068b60
TT
3721 fputs_unfiltered (") = ", gdb_stdlog);
3722 target_debug_print_struct_btrace_target_info_p (result);
3723 fputs_unfiltered ("\n", gdb_stdlog);
3724 return result;
3725}
3726
f6ac5f3d
PA
3727void
3728target_ops::disable_btrace (struct btrace_target_info *arg0)
8dc292d3 3729{
b6a8c27b 3730 this->beneath ()->disable_btrace (arg0);
8dc292d3
TT
3731}
3732
f6ac5f3d
PA
3733void
3734dummy_target::disable_btrace (struct btrace_target_info *arg0)
8dc292d3
TT
3735{
3736 tcomplain ();
3737}
3738
f6ac5f3d
PA
3739void
3740debug_target::disable_btrace (struct btrace_target_info *arg0)
a7068b60 3741{
b6a8c27b
PA
3742 fprintf_unfiltered (gdb_stdlog, "-> %s->disable_btrace (...)\n", this->beneath ()->shortname ());
3743 this->beneath ()->disable_btrace (arg0);
3744 fprintf_unfiltered (gdb_stdlog, "<- %s->disable_btrace (", this->beneath ()->shortname ());
f6ac5f3d 3745 target_debug_print_struct_btrace_target_info_p (arg0);
a7068b60
TT
3746 fputs_unfiltered (")\n", gdb_stdlog);
3747}
3748
f6ac5f3d
PA
3749void
3750target_ops::teardown_btrace (struct btrace_target_info *arg0)
9ace480d 3751{
b6a8c27b 3752 this->beneath ()->teardown_btrace (arg0);
9ace480d
TT
3753}
3754
f6ac5f3d
PA
3755void
3756dummy_target::teardown_btrace (struct btrace_target_info *arg0)
9ace480d
TT
3757{
3758 tcomplain ();
3759}
3760
f6ac5f3d
PA
3761void
3762debug_target::teardown_btrace (struct btrace_target_info *arg0)
a7068b60 3763{
b6a8c27b
PA
3764 fprintf_unfiltered (gdb_stdlog, "-> %s->teardown_btrace (...)\n", this->beneath ()->shortname ());
3765 this->beneath ()->teardown_btrace (arg0);
3766 fprintf_unfiltered (gdb_stdlog, "<- %s->teardown_btrace (", this->beneath ()->shortname ());
f6ac5f3d 3767 target_debug_print_struct_btrace_target_info_p (arg0);
a7068b60
TT
3768 fputs_unfiltered (")\n", gdb_stdlog);
3769}
3770
f6ac5f3d
PA
3771enum btrace_error
3772target_ops::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
eb5b20d4 3773{
b6a8c27b 3774 return this->beneath ()->read_btrace (arg0, arg1, arg2);
eb5b20d4
TT
3775}
3776
f6ac5f3d
PA
3777enum btrace_error
3778dummy_target::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
eb5b20d4
TT
3779{
3780 tcomplain ();
3781}
3782
f6ac5f3d
PA
3783enum btrace_error
3784debug_target::read_btrace (struct btrace_data *arg0, struct btrace_target_info *arg1, enum btrace_read_type arg2)
a7068b60
TT
3785{
3786 enum btrace_error result;
b6a8c27b
PA
3787 fprintf_unfiltered (gdb_stdlog, "-> %s->read_btrace (...)\n", this->beneath ()->shortname ());
3788 result = this->beneath ()->read_btrace (arg0, arg1, arg2);
3789 fprintf_unfiltered (gdb_stdlog, "<- %s->read_btrace (", this->beneath ()->shortname ());
f6ac5f3d 3790 target_debug_print_struct_btrace_data_p (arg0);
a7068b60 3791 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3792 target_debug_print_struct_btrace_target_info_p (arg1);
a7068b60 3793 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 3794 target_debug_print_enum_btrace_read_type (arg2);
a7068b60
TT
3795 fputs_unfiltered (") = ", gdb_stdlog);
3796 target_debug_print_enum_btrace_error (result);
3797 fputs_unfiltered ("\n", gdb_stdlog);
3798 return result;
3799}
3800
f6ac5f3d
PA
3801const struct btrace_config *
3802target_ops::btrace_conf (const struct btrace_target_info *arg0)
f4abbc16 3803{
b6a8c27b 3804 return this->beneath ()->btrace_conf (arg0);
f4abbc16
MM
3805}
3806
f6ac5f3d
PA
3807const struct btrace_config *
3808dummy_target::btrace_conf (const struct btrace_target_info *arg0)
f4abbc16
MM
3809{
3810 return NULL;
3811}
3812
f6ac5f3d
PA
3813const struct btrace_config *
3814debug_target::btrace_conf (const struct btrace_target_info *arg0)
f4abbc16
MM
3815{
3816 const struct btrace_config * result;
b6a8c27b
PA
3817 fprintf_unfiltered (gdb_stdlog, "-> %s->btrace_conf (...)\n", this->beneath ()->shortname ());
3818 result = this->beneath ()->btrace_conf (arg0);
3819 fprintf_unfiltered (gdb_stdlog, "<- %s->btrace_conf (", this->beneath ()->shortname ());
f6ac5f3d 3820 target_debug_print_const_struct_btrace_target_info_p (arg0);
f4abbc16
MM
3821 fputs_unfiltered (") = ", gdb_stdlog);
3822 target_debug_print_const_struct_btrace_config_p (result);
3823 fputs_unfiltered ("\n", gdb_stdlog);
3824 return result;
3825}
3826
f6ac5f3d
PA
3827enum record_method
3828target_ops::record_method (ptid_t arg0)
b158a20f 3829{
b6a8c27b 3830 return this->beneath ()->record_method (arg0);
b158a20f
TW
3831}
3832
f6ac5f3d
PA
3833enum record_method
3834dummy_target::record_method (ptid_t arg0)
b158a20f
TW
3835{
3836 return RECORD_METHOD_NONE;
3837}
3838
f6ac5f3d
PA
3839enum record_method
3840debug_target::record_method (ptid_t arg0)
b158a20f
TW
3841{
3842 enum record_method result;
b6a8c27b
PA
3843 fprintf_unfiltered (gdb_stdlog, "-> %s->record_method (...)\n", this->beneath ()->shortname ());
3844 result = this->beneath ()->record_method (arg0);
3845 fprintf_unfiltered (gdb_stdlog, "<- %s->record_method (", this->beneath ()->shortname ());
f6ac5f3d 3846 target_debug_print_ptid_t (arg0);
b158a20f
TW
3847 fputs_unfiltered (") = ", gdb_stdlog);
3848 target_debug_print_enum_record_method (result);
3849 fputs_unfiltered ("\n", gdb_stdlog);
3850 return result;
3851}
3852
f6ac5f3d
PA
3853void
3854target_ops::stop_recording ()
ee97f592 3855{
b6a8c27b 3856 this->beneath ()->stop_recording ();
ee97f592
TT
3857}
3858
f6ac5f3d
PA
3859void
3860dummy_target::stop_recording ()
ee97f592
TT
3861{
3862}
3863
f6ac5f3d
PA
3864void
3865debug_target::stop_recording ()
a7068b60 3866{
b6a8c27b
PA
3867 fprintf_unfiltered (gdb_stdlog, "-> %s->stop_recording (...)\n", this->beneath ()->shortname ());
3868 this->beneath ()->stop_recording ();
3869 fprintf_unfiltered (gdb_stdlog, "<- %s->stop_recording (", this->beneath ()->shortname ());
a7068b60
TT
3870 fputs_unfiltered (")\n", gdb_stdlog);
3871}
3872
f6ac5f3d
PA
3873void
3874target_ops::info_record ()
a432721e 3875{
b6a8c27b 3876 this->beneath ()->info_record ();
a432721e
TT
3877}
3878
f6ac5f3d
PA
3879void
3880dummy_target::info_record ()
a432721e
TT
3881{
3882}
3883
f6ac5f3d
PA
3884void
3885debug_target::info_record ()
a7068b60 3886{
b6a8c27b
PA
3887 fprintf_unfiltered (gdb_stdlog, "-> %s->info_record (...)\n", this->beneath ()->shortname ());
3888 this->beneath ()->info_record ();
3889 fprintf_unfiltered (gdb_stdlog, "<- %s->info_record (", this->beneath ()->shortname ());
a7068b60
TT
3890 fputs_unfiltered (")\n", gdb_stdlog);
3891}
3892
f6ac5f3d
PA
3893void
3894target_ops::save_record (const char *arg0)
f09e2107 3895{
b6a8c27b 3896 this->beneath ()->save_record (arg0);
f09e2107
TT
3897}
3898
f6ac5f3d
PA
3899void
3900dummy_target::save_record (const char *arg0)
f09e2107
TT
3901{
3902 tcomplain ();
3903}
3904
f6ac5f3d
PA
3905void
3906debug_target::save_record (const char *arg0)
a7068b60 3907{
b6a8c27b
PA
3908 fprintf_unfiltered (gdb_stdlog, "-> %s->save_record (...)\n", this->beneath ()->shortname ());
3909 this->beneath ()->save_record (arg0);
3910 fprintf_unfiltered (gdb_stdlog, "<- %s->save_record (", this->beneath ()->shortname ());
f6ac5f3d 3911 target_debug_print_const_char_p (arg0);
a7068b60
TT
3912 fputs_unfiltered (")\n", gdb_stdlog);
3913}
3914
f6ac5f3d
PA
3915bool
3916target_ops::supports_delete_record ()
07366925 3917{
b6a8c27b 3918 return this->beneath ()->supports_delete_record ();
07366925
TT
3919}
3920
f6ac5f3d
PA
3921bool
3922dummy_target::supports_delete_record ()
3923{
3924 return false;
3925}
3926
3927bool
3928debug_target::supports_delete_record ()
3929{
3930 bool result;
b6a8c27b
PA
3931 fprintf_unfiltered (gdb_stdlog, "-> %s->supports_delete_record (...)\n", this->beneath ()->shortname ());
3932 result = this->beneath ()->supports_delete_record ();
3933 fprintf_unfiltered (gdb_stdlog, "<- %s->supports_delete_record (", this->beneath ()->shortname ());
f6ac5f3d
PA
3934 fputs_unfiltered (") = ", gdb_stdlog);
3935 target_debug_print_bool (result);
3936 fputs_unfiltered ("\n", gdb_stdlog);
3937 return result;
3938}
3939
3940void
3941target_ops::delete_record ()
3942{
b6a8c27b 3943 this->beneath ()->delete_record ();
f6ac5f3d
PA
3944}
3945
3946void
3947dummy_target::delete_record ()
07366925
TT
3948{
3949 tcomplain ();
3950}
3951
f6ac5f3d
PA
3952void
3953debug_target::delete_record ()
a7068b60 3954{
b6a8c27b
PA
3955 fprintf_unfiltered (gdb_stdlog, "-> %s->delete_record (...)\n", this->beneath ()->shortname ());
3956 this->beneath ()->delete_record ();
3957 fprintf_unfiltered (gdb_stdlog, "<- %s->delete_record (", this->beneath ()->shortname ());
a7068b60
TT
3958 fputs_unfiltered (")\n", gdb_stdlog);
3959}
3960
57810aa7 3961bool
f6ac5f3d 3962target_ops::record_is_replaying (ptid_t arg0)
dd2e9d25 3963{
b6a8c27b 3964 return this->beneath ()->record_is_replaying (arg0);
dd2e9d25
TT
3965}
3966
57810aa7 3967bool
f6ac5f3d 3968dummy_target::record_is_replaying (ptid_t arg0)
dd2e9d25 3969{
57810aa7 3970 return false;
dd2e9d25
TT
3971}
3972
57810aa7 3973bool
f6ac5f3d 3974debug_target::record_is_replaying (ptid_t arg0)
a7068b60 3975{
57810aa7 3976 bool result;
b6a8c27b
PA
3977 fprintf_unfiltered (gdb_stdlog, "-> %s->record_is_replaying (...)\n", this->beneath ()->shortname ());
3978 result = this->beneath ()->record_is_replaying (arg0);
3979 fprintf_unfiltered (gdb_stdlog, "<- %s->record_is_replaying (", this->beneath ()->shortname ());
f6ac5f3d 3980 target_debug_print_ptid_t (arg0);
a7068b60 3981 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 3982 target_debug_print_bool (result);
a7068b60
TT
3983 fputs_unfiltered ("\n", gdb_stdlog);
3984 return result;
3985}
3986
57810aa7 3987bool
f6ac5f3d 3988target_ops::record_will_replay (ptid_t arg0, int arg1)
7ff27e9b 3989{
b6a8c27b 3990 return this->beneath ()->record_will_replay (arg0, arg1);
7ff27e9b
MM
3991}
3992
57810aa7 3993bool
f6ac5f3d 3994dummy_target::record_will_replay (ptid_t arg0, int arg1)
7ff27e9b 3995{
57810aa7 3996 return false;
7ff27e9b
MM
3997}
3998
57810aa7 3999bool
f6ac5f3d 4000debug_target::record_will_replay (ptid_t arg0, int arg1)
7ff27e9b 4001{
57810aa7 4002 bool result;
b6a8c27b
PA
4003 fprintf_unfiltered (gdb_stdlog, "-> %s->record_will_replay (...)\n", this->beneath ()->shortname ());
4004 result = this->beneath ()->record_will_replay (arg0, arg1);
4005 fprintf_unfiltered (gdb_stdlog, "<- %s->record_will_replay (", this->beneath ()->shortname ());
f6ac5f3d 4006 target_debug_print_ptid_t (arg0);
7ff27e9b 4007 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4008 target_debug_print_int (arg1);
7ff27e9b 4009 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 4010 target_debug_print_bool (result);
7ff27e9b
MM
4011 fputs_unfiltered ("\n", gdb_stdlog);
4012 return result;
4013}
4014
f6ac5f3d
PA
4015void
4016target_ops::record_stop_replaying ()
797094dd 4017{
b6a8c27b 4018 this->beneath ()->record_stop_replaying ();
797094dd
MM
4019}
4020
f6ac5f3d
PA
4021void
4022dummy_target::record_stop_replaying ()
797094dd
MM
4023{
4024}
4025
f6ac5f3d
PA
4026void
4027debug_target::record_stop_replaying ()
797094dd 4028{
b6a8c27b
PA
4029 fprintf_unfiltered (gdb_stdlog, "-> %s->record_stop_replaying (...)\n", this->beneath ()->shortname ());
4030 this->beneath ()->record_stop_replaying ();
4031 fprintf_unfiltered (gdb_stdlog, "<- %s->record_stop_replaying (", this->beneath ()->shortname ());
797094dd
MM
4032 fputs_unfiltered (")\n", gdb_stdlog);
4033}
4034
f6ac5f3d
PA
4035void
4036target_ops::goto_record_begin ()
671e76cc 4037{
b6a8c27b 4038 this->beneath ()->goto_record_begin ();
671e76cc
TT
4039}
4040
f6ac5f3d
PA
4041void
4042dummy_target::goto_record_begin ()
671e76cc
TT
4043{
4044 tcomplain ();
4045}
4046
f6ac5f3d
PA
4047void
4048debug_target::goto_record_begin ()
a7068b60 4049{
b6a8c27b
PA
4050 fprintf_unfiltered (gdb_stdlog, "-> %s->goto_record_begin (...)\n", this->beneath ()->shortname ());
4051 this->beneath ()->goto_record_begin ();
4052 fprintf_unfiltered (gdb_stdlog, "<- %s->goto_record_begin (", this->beneath ()->shortname ());
a7068b60
TT
4053 fputs_unfiltered (")\n", gdb_stdlog);
4054}
4055
f6ac5f3d
PA
4056void
4057target_ops::goto_record_end ()
e9179bb3 4058{
b6a8c27b 4059 this->beneath ()->goto_record_end ();
e9179bb3
TT
4060}
4061
f6ac5f3d
PA
4062void
4063dummy_target::goto_record_end ()
e9179bb3
TT
4064{
4065 tcomplain ();
4066}
4067
f6ac5f3d
PA
4068void
4069debug_target::goto_record_end ()
a7068b60 4070{
b6a8c27b
PA
4071 fprintf_unfiltered (gdb_stdlog, "-> %s->goto_record_end (...)\n", this->beneath ()->shortname ());
4072 this->beneath ()->goto_record_end ();
4073 fprintf_unfiltered (gdb_stdlog, "<- %s->goto_record_end (", this->beneath ()->shortname ());
a7068b60
TT
4074 fputs_unfiltered (")\n", gdb_stdlog);
4075}
4076
f6ac5f3d
PA
4077void
4078target_ops::goto_record (ULONGEST arg0)
05969c84 4079{
b6a8c27b 4080 this->beneath ()->goto_record (arg0);
05969c84
TT
4081}
4082
f6ac5f3d
PA
4083void
4084dummy_target::goto_record (ULONGEST arg0)
05969c84
TT
4085{
4086 tcomplain ();
4087}
4088
f6ac5f3d
PA
4089void
4090debug_target::goto_record (ULONGEST arg0)
a7068b60 4091{
b6a8c27b
PA
4092 fprintf_unfiltered (gdb_stdlog, "-> %s->goto_record (...)\n", this->beneath ()->shortname ());
4093 this->beneath ()->goto_record (arg0);
4094 fprintf_unfiltered (gdb_stdlog, "<- %s->goto_record (", this->beneath ()->shortname ());
f6ac5f3d 4095 target_debug_print_ULONGEST (arg0);
a7068b60
TT
4096 fputs_unfiltered (")\n", gdb_stdlog);
4097}
4098
f6ac5f3d
PA
4099void
4100target_ops::insn_history (int arg0, gdb_disassembly_flags arg1)
3679abfa 4101{
b6a8c27b 4102 this->beneath ()->insn_history (arg0, arg1);
3679abfa
TT
4103}
4104
f6ac5f3d
PA
4105void
4106dummy_target::insn_history (int arg0, gdb_disassembly_flags arg1)
3679abfa
TT
4107{
4108 tcomplain ();
4109}
4110
f6ac5f3d
PA
4111void
4112debug_target::insn_history (int arg0, gdb_disassembly_flags arg1)
a7068b60 4113{
b6a8c27b
PA
4114 fprintf_unfiltered (gdb_stdlog, "-> %s->insn_history (...)\n", this->beneath ()->shortname ());
4115 this->beneath ()->insn_history (arg0, arg1);
4116 fprintf_unfiltered (gdb_stdlog, "<- %s->insn_history (", this->beneath ()->shortname ());
f6ac5f3d 4117 target_debug_print_int (arg0);
a7068b60 4118 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4119 target_debug_print_gdb_disassembly_flags (arg1);
a7068b60
TT
4120 fputs_unfiltered (")\n", gdb_stdlog);
4121}
4122
f6ac5f3d
PA
4123void
4124target_ops::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
8444ab58 4125{
b6a8c27b 4126 this->beneath ()->insn_history_from (arg0, arg1, arg2);
8444ab58
TT
4127}
4128
f6ac5f3d
PA
4129void
4130dummy_target::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
8444ab58
TT
4131{
4132 tcomplain ();
4133}
4134
f6ac5f3d
PA
4135void
4136debug_target::insn_history_from (ULONGEST arg0, int arg1, gdb_disassembly_flags arg2)
a7068b60 4137{
b6a8c27b
PA
4138 fprintf_unfiltered (gdb_stdlog, "-> %s->insn_history_from (...)\n", this->beneath ()->shortname ());
4139 this->beneath ()->insn_history_from (arg0, arg1, arg2);
4140 fprintf_unfiltered (gdb_stdlog, "<- %s->insn_history_from (", this->beneath ()->shortname ());
f6ac5f3d 4141 target_debug_print_ULONGEST (arg0);
a7068b60 4142 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4143 target_debug_print_int (arg1);
a7068b60 4144 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4145 target_debug_print_gdb_disassembly_flags (arg2);
a7068b60
TT
4146 fputs_unfiltered (")\n", gdb_stdlog);
4147}
4148
f6ac5f3d
PA
4149void
4150target_ops::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
c29302cc 4151{
b6a8c27b 4152 this->beneath ()->insn_history_range (arg0, arg1, arg2);
c29302cc
TT
4153}
4154
f6ac5f3d
PA
4155void
4156dummy_target::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
c29302cc
TT
4157{
4158 tcomplain ();
4159}
4160
f6ac5f3d
PA
4161void
4162debug_target::insn_history_range (ULONGEST arg0, ULONGEST arg1, gdb_disassembly_flags arg2)
a7068b60 4163{
b6a8c27b
PA
4164 fprintf_unfiltered (gdb_stdlog, "-> %s->insn_history_range (...)\n", this->beneath ()->shortname ());
4165 this->beneath ()->insn_history_range (arg0, arg1, arg2);
4166 fprintf_unfiltered (gdb_stdlog, "<- %s->insn_history_range (", this->beneath ()->shortname ());
f6ac5f3d 4167 target_debug_print_ULONGEST (arg0);
a7068b60
TT
4168 fputs_unfiltered (", ", gdb_stdlog);
4169 target_debug_print_ULONGEST (arg1);
4170 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4171 target_debug_print_gdb_disassembly_flags (arg2);
a7068b60
TT
4172 fputs_unfiltered (")\n", gdb_stdlog);
4173}
4174
f6ac5f3d
PA
4175void
4176target_ops::call_history (int arg0, record_print_flags arg1)
170049d4 4177{
b6a8c27b 4178 this->beneath ()->call_history (arg0, arg1);
170049d4
TT
4179}
4180
f6ac5f3d
PA
4181void
4182dummy_target::call_history (int arg0, record_print_flags arg1)
170049d4
TT
4183{
4184 tcomplain ();
4185}
4186
f6ac5f3d
PA
4187void
4188debug_target::call_history (int arg0, record_print_flags arg1)
a7068b60 4189{
b6a8c27b
PA
4190 fprintf_unfiltered (gdb_stdlog, "-> %s->call_history (...)\n", this->beneath ()->shortname ());
4191 this->beneath ()->call_history (arg0, arg1);
4192 fprintf_unfiltered (gdb_stdlog, "<- %s->call_history (", this->beneath ()->shortname ());
f6ac5f3d 4193 target_debug_print_int (arg0);
a7068b60 4194 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4195 target_debug_print_record_print_flags (arg1);
a7068b60
TT
4196 fputs_unfiltered (")\n", gdb_stdlog);
4197}
4198
f6ac5f3d
PA
4199void
4200target_ops::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
16fc27d6 4201{
b6a8c27b 4202 this->beneath ()->call_history_from (arg0, arg1, arg2);
16fc27d6
TT
4203}
4204
f6ac5f3d
PA
4205void
4206dummy_target::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
16fc27d6
TT
4207{
4208 tcomplain ();
4209}
4210
f6ac5f3d
PA
4211void
4212debug_target::call_history_from (ULONGEST arg0, int arg1, record_print_flags arg2)
a7068b60 4213{
b6a8c27b
PA
4214 fprintf_unfiltered (gdb_stdlog, "-> %s->call_history_from (...)\n", this->beneath ()->shortname ());
4215 this->beneath ()->call_history_from (arg0, arg1, arg2);
4216 fprintf_unfiltered (gdb_stdlog, "<- %s->call_history_from (", this->beneath ()->shortname ());
f6ac5f3d 4217 target_debug_print_ULONGEST (arg0);
a7068b60 4218 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4219 target_debug_print_int (arg1);
a7068b60 4220 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4221 target_debug_print_record_print_flags (arg2);
a7068b60
TT
4222 fputs_unfiltered (")\n", gdb_stdlog);
4223}
4224
f6ac5f3d
PA
4225void
4226target_ops::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
115d9817 4227{
b6a8c27b 4228 this->beneath ()->call_history_range (arg0, arg1, arg2);
115d9817
TT
4229}
4230
f6ac5f3d
PA
4231void
4232dummy_target::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
115d9817
TT
4233{
4234 tcomplain ();
4235}
4236
f6ac5f3d
PA
4237void
4238debug_target::call_history_range (ULONGEST arg0, ULONGEST arg1, record_print_flags arg2)
a7068b60 4239{
b6a8c27b
PA
4240 fprintf_unfiltered (gdb_stdlog, "-> %s->call_history_range (...)\n", this->beneath ()->shortname ());
4241 this->beneath ()->call_history_range (arg0, arg1, arg2);
4242 fprintf_unfiltered (gdb_stdlog, "<- %s->call_history_range (", this->beneath ()->shortname ());
f6ac5f3d 4243 target_debug_print_ULONGEST (arg0);
a7068b60
TT
4244 fputs_unfiltered (", ", gdb_stdlog);
4245 target_debug_print_ULONGEST (arg1);
4246 fputs_unfiltered (", ", gdb_stdlog);
f6ac5f3d 4247 target_debug_print_record_print_flags (arg2);
a7068b60
TT
4248 fputs_unfiltered (")\n", gdb_stdlog);
4249}
4250
57810aa7 4251bool
f6ac5f3d 4252target_ops::augmented_libraries_svr4_read ()
0de91722 4253{
b6a8c27b 4254 return this->beneath ()->augmented_libraries_svr4_read ();
0de91722
TT
4255}
4256
57810aa7 4257bool
f6ac5f3d 4258dummy_target::augmented_libraries_svr4_read ()
0de91722 4259{
57810aa7 4260 return false;
0de91722
TT
4261}
4262
57810aa7 4263bool
f6ac5f3d 4264debug_target::augmented_libraries_svr4_read ()
a7068b60 4265{
57810aa7 4266 bool result;
b6a8c27b
PA
4267 fprintf_unfiltered (gdb_stdlog, "-> %s->augmented_libraries_svr4_read (...)\n", this->beneath ()->shortname ());
4268 result = this->beneath ()->augmented_libraries_svr4_read ();
4269 fprintf_unfiltered (gdb_stdlog, "<- %s->augmented_libraries_svr4_read (", this->beneath ()->shortname ());
a7068b60 4270 fputs_unfiltered (") = ", gdb_stdlog);
57810aa7 4271 target_debug_print_bool (result);
a7068b60
TT
4272 fputs_unfiltered ("\n", gdb_stdlog);
4273 return result;
4274}
4275
f6ac5f3d
PA
4276const struct frame_unwind *
4277target_ops::get_unwinder ()
ac01945b 4278{
b6a8c27b 4279 return this->beneath ()->get_unwinder ();
ac01945b
TT
4280}
4281
f6ac5f3d
PA
4282const struct frame_unwind *
4283dummy_target::get_unwinder ()
ac01945b
TT
4284{
4285 return NULL;
4286}
4287
f6ac5f3d
PA
4288const struct frame_unwind *
4289debug_target::get_unwinder ()
a7068b60
TT
4290{
4291 const struct frame_unwind * result;
b6a8c27b
PA
4292 fprintf_unfiltered (gdb_stdlog, "-> %s->get_unwinder (...)\n", this->beneath ()->shortname ());
4293 result = this->beneath ()->get_unwinder ();
4294 fprintf_unfiltered (gdb_stdlog, "<- %s->get_unwinder (", this->beneath ()->shortname ());
a7068b60
TT
4295 fputs_unfiltered (") = ", gdb_stdlog);
4296 target_debug_print_const_struct_frame_unwind_p (result);
4297 fputs_unfiltered ("\n", gdb_stdlog);
4298 return result;
4299}
4300
f6ac5f3d
PA
4301const struct frame_unwind *
4302target_ops::get_tailcall_unwinder ()
ac01945b 4303{
b6a8c27b 4304 return this->beneath ()->get_tailcall_unwinder ();
ac01945b
TT
4305}
4306
f6ac5f3d
PA
4307const struct frame_unwind *
4308dummy_target::get_tailcall_unwinder ()
ac01945b
TT
4309{
4310 return NULL;
4311}
4312
f6ac5f3d
PA
4313const struct frame_unwind *
4314debug_target::get_tailcall_unwinder ()
a7068b60
TT
4315{
4316 const struct frame_unwind * result;
b6a8c27b
PA
4317 fprintf_unfiltered (gdb_stdlog, "-> %s->get_tailcall_unwinder (...)\n", this->beneath ()->shortname ());
4318 result = this->beneath ()->get_tailcall_unwinder ();
4319 fprintf_unfiltered (gdb_stdlog, "<- %s->get_tailcall_unwinder (", this->beneath ()->shortname ());
a7068b60
TT
4320 fputs_unfiltered (") = ", gdb_stdlog);
4321 target_debug_print_const_struct_frame_unwind_p (result);
4322 fputs_unfiltered ("\n", gdb_stdlog);
4323 return result;
4324}
4325
f6ac5f3d
PA
4326void
4327target_ops::prepare_to_generate_core ()
5fff78c4 4328{
b6a8c27b 4329 this->beneath ()->prepare_to_generate_core ();
5fff78c4
MM
4330}
4331
f6ac5f3d
PA
4332void
4333dummy_target::prepare_to_generate_core ()
5fff78c4
MM
4334{
4335}
4336
f6ac5f3d
PA
4337void
4338debug_target::prepare_to_generate_core ()
a7068b60 4339{
b6a8c27b
PA
4340 fprintf_unfiltered (gdb_stdlog, "-> %s->prepare_to_generate_core (...)\n", this->beneath ()->shortname ());
4341 this->beneath ()->prepare_to_generate_core ();
4342 fprintf_unfiltered (gdb_stdlog, "<- %s->prepare_to_generate_core (", this->beneath ()->shortname ());
a7068b60
TT
4343 fputs_unfiltered (")\n", gdb_stdlog);
4344}
4345
f6ac5f3d
PA
4346void
4347target_ops::done_generating_core ()
5fff78c4 4348{
b6a8c27b 4349 this->beneath ()->done_generating_core ();
5fff78c4
MM
4350}
4351
f6ac5f3d
PA
4352void
4353dummy_target::done_generating_core ()
5fff78c4
MM
4354{
4355}
4356
f6ac5f3d
PA
4357void
4358debug_target::done_generating_core ()
a7068b60 4359{
b6a8c27b
PA
4360 fprintf_unfiltered (gdb_stdlog, "-> %s->done_generating_core (...)\n", this->beneath ()->shortname ());
4361 this->beneath ()->done_generating_core ();
4362 fprintf_unfiltered (gdb_stdlog, "<- %s->done_generating_core (", this->beneath ()->shortname ());
a7068b60
TT
4363 fputs_unfiltered (")\n", gdb_stdlog);
4364}
4365
This page took 1.40689 seconds and 4 git commands to generate.