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