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