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