1 /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
4 /* To regenerate this file, run:*/
5 /* make-target-delegates target.h > target-delegates.c */
7 delegate_post_attach (struct target_ops
*self
, int arg1
)
10 self
->to_post_attach (self
, arg1
);
14 tdefault_post_attach (struct target_ops
*self
, int arg1
)
19 debug_post_attach (struct target_ops
*self
, int arg1
)
21 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_post_attach (...)\n", debug_target
.to_shortname
);
22 debug_target
.to_post_attach (&debug_target
, arg1
);
23 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_post_attach (", debug_target
.to_shortname
);
24 target_debug_print_struct_target_ops_p (&debug_target
);
25 fputs_unfiltered (", ", gdb_stdlog
);
26 target_debug_print_int (arg1
);
27 fputs_unfiltered (")\n", gdb_stdlog
);
31 delegate_detach (struct target_ops
*self
, const char *arg1
, int arg2
)
34 self
->to_detach (self
, arg1
, arg2
);
38 tdefault_detach (struct target_ops
*self
, const char *arg1
, int arg2
)
43 debug_detach (struct target_ops
*self
, const char *arg1
, int arg2
)
45 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_detach (...)\n", debug_target
.to_shortname
);
46 debug_target
.to_detach (&debug_target
, arg1
, arg2
);
47 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_detach (", debug_target
.to_shortname
);
48 target_debug_print_struct_target_ops_p (&debug_target
);
49 fputs_unfiltered (", ", gdb_stdlog
);
50 target_debug_print_const_char_p (arg1
);
51 fputs_unfiltered (", ", gdb_stdlog
);
52 target_debug_print_int (arg2
);
53 fputs_unfiltered (")\n", gdb_stdlog
);
57 delegate_disconnect (struct target_ops
*self
, const char *arg1
, int arg2
)
60 self
->to_disconnect (self
, arg1
, arg2
);
64 tdefault_disconnect (struct target_ops
*self
, const char *arg1
, int arg2
)
70 debug_disconnect (struct target_ops
*self
, const char *arg1
, int arg2
)
72 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_disconnect (...)\n", debug_target
.to_shortname
);
73 debug_target
.to_disconnect (&debug_target
, arg1
, arg2
);
74 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_disconnect (", debug_target
.to_shortname
);
75 target_debug_print_struct_target_ops_p (&debug_target
);
76 fputs_unfiltered (", ", gdb_stdlog
);
77 target_debug_print_const_char_p (arg1
);
78 fputs_unfiltered (", ", gdb_stdlog
);
79 target_debug_print_int (arg2
);
80 fputs_unfiltered (")\n", gdb_stdlog
);
84 delegate_resume (struct target_ops
*self
, ptid_t arg1
, int arg2
, enum gdb_signal arg3
)
87 self
->to_resume (self
, arg1
, arg2
, arg3
);
91 tdefault_resume (struct target_ops
*self
, ptid_t arg1
, int arg2
, enum gdb_signal arg3
)
97 debug_resume (struct target_ops
*self
, ptid_t arg1
, int arg2
, enum gdb_signal arg3
)
99 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_resume (...)\n", debug_target
.to_shortname
);
100 debug_target
.to_resume (&debug_target
, arg1
, arg2
, arg3
);
101 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_resume (", debug_target
.to_shortname
);
102 target_debug_print_struct_target_ops_p (&debug_target
);
103 fputs_unfiltered (", ", gdb_stdlog
);
104 target_debug_print_ptid_t (arg1
);
105 fputs_unfiltered (", ", gdb_stdlog
);
106 target_debug_print_step (arg2
);
107 fputs_unfiltered (", ", gdb_stdlog
);
108 target_debug_print_enum_gdb_signal (arg3
);
109 fputs_unfiltered (")\n", gdb_stdlog
);
113 delegate_commit_resume (struct target_ops
*self
)
115 self
= self
->beneath
;
116 self
->to_commit_resume (self
);
120 tdefault_commit_resume (struct target_ops
*self
)
125 debug_commit_resume (struct target_ops
*self
)
127 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_commit_resume (...)\n", debug_target
.to_shortname
);
128 debug_target
.to_commit_resume (&debug_target
);
129 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_commit_resume (", debug_target
.to_shortname
);
130 target_debug_print_struct_target_ops_p (&debug_target
);
131 fputs_unfiltered (")\n", gdb_stdlog
);
135 delegate_wait (struct target_ops
*self
, ptid_t arg1
, struct target_waitstatus
*arg2
, int arg3
)
137 self
= self
->beneath
;
138 return self
->to_wait (self
, arg1
, arg2
, arg3
);
142 debug_wait (struct target_ops
*self
, ptid_t arg1
, struct target_waitstatus
*arg2
, int arg3
)
145 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_wait (...)\n", debug_target
.to_shortname
);
146 result
= debug_target
.to_wait (&debug_target
, arg1
, arg2
, arg3
);
147 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_wait (", debug_target
.to_shortname
);
148 target_debug_print_struct_target_ops_p (&debug_target
);
149 fputs_unfiltered (", ", gdb_stdlog
);
150 target_debug_print_ptid_t (arg1
);
151 fputs_unfiltered (", ", gdb_stdlog
);
152 target_debug_print_struct_target_waitstatus_p (arg2
);
153 fputs_unfiltered (", ", gdb_stdlog
);
154 target_debug_print_options (arg3
);
155 fputs_unfiltered (") = ", gdb_stdlog
);
156 target_debug_print_ptid_t (result
);
157 fputs_unfiltered ("\n", gdb_stdlog
);
162 delegate_fetch_registers (struct target_ops
*self
, struct regcache
*arg1
, int arg2
)
164 self
= self
->beneath
;
165 self
->to_fetch_registers (self
, arg1
, arg2
);
169 tdefault_fetch_registers (struct target_ops
*self
, struct regcache
*arg1
, int arg2
)
174 debug_fetch_registers (struct target_ops
*self
, struct regcache
*arg1
, int arg2
)
176 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_fetch_registers (...)\n", debug_target
.to_shortname
);
177 debug_target
.to_fetch_registers (&debug_target
, arg1
, arg2
);
178 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_fetch_registers (", debug_target
.to_shortname
);
179 target_debug_print_struct_target_ops_p (&debug_target
);
180 fputs_unfiltered (", ", gdb_stdlog
);
181 target_debug_print_struct_regcache_p (arg1
);
182 fputs_unfiltered (", ", gdb_stdlog
);
183 target_debug_print_int (arg2
);
184 fputs_unfiltered (")\n", gdb_stdlog
);
188 delegate_store_registers (struct target_ops
*self
, struct regcache
*arg1
, int arg2
)
190 self
= self
->beneath
;
191 self
->to_store_registers (self
, arg1
, arg2
);
195 tdefault_store_registers (struct target_ops
*self
, struct regcache
*arg1
, int arg2
)
201 debug_store_registers (struct target_ops
*self
, struct regcache
*arg1
, int arg2
)
203 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_store_registers (...)\n", debug_target
.to_shortname
);
204 debug_target
.to_store_registers (&debug_target
, arg1
, arg2
);
205 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_store_registers (", debug_target
.to_shortname
);
206 target_debug_print_struct_target_ops_p (&debug_target
);
207 fputs_unfiltered (", ", gdb_stdlog
);
208 target_debug_print_struct_regcache_p (arg1
);
209 fputs_unfiltered (", ", gdb_stdlog
);
210 target_debug_print_int (arg2
);
211 fputs_unfiltered (")\n", gdb_stdlog
);
215 delegate_prepare_to_store (struct target_ops
*self
, struct regcache
*arg1
)
217 self
= self
->beneath
;
218 self
->to_prepare_to_store (self
, arg1
);
222 tdefault_prepare_to_store (struct target_ops
*self
, struct regcache
*arg1
)
228 debug_prepare_to_store (struct target_ops
*self
, struct regcache
*arg1
)
230 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_prepare_to_store (...)\n", debug_target
.to_shortname
);
231 debug_target
.to_prepare_to_store (&debug_target
, arg1
);
232 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_prepare_to_store (", debug_target
.to_shortname
);
233 target_debug_print_struct_target_ops_p (&debug_target
);
234 fputs_unfiltered (", ", gdb_stdlog
);
235 target_debug_print_struct_regcache_p (arg1
);
236 fputs_unfiltered (")\n", gdb_stdlog
);
240 delegate_files_info (struct target_ops
*self
)
242 self
= self
->beneath
;
243 self
->to_files_info (self
);
247 tdefault_files_info (struct target_ops
*self
)
252 debug_files_info (struct target_ops
*self
)
254 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_files_info (...)\n", debug_target
.to_shortname
);
255 debug_target
.to_files_info (&debug_target
);
256 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_files_info (", debug_target
.to_shortname
);
257 target_debug_print_struct_target_ops_p (&debug_target
);
258 fputs_unfiltered (")\n", gdb_stdlog
);
262 delegate_insert_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
264 self
= self
->beneath
;
265 return self
->to_insert_breakpoint (self
, arg1
, arg2
);
269 debug_insert_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
272 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insert_breakpoint (...)\n", debug_target
.to_shortname
);
273 result
= debug_target
.to_insert_breakpoint (&debug_target
, arg1
, arg2
);
274 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insert_breakpoint (", debug_target
.to_shortname
);
275 target_debug_print_struct_target_ops_p (&debug_target
);
276 fputs_unfiltered (", ", gdb_stdlog
);
277 target_debug_print_struct_gdbarch_p (arg1
);
278 fputs_unfiltered (", ", gdb_stdlog
);
279 target_debug_print_struct_bp_target_info_p (arg2
);
280 fputs_unfiltered (") = ", gdb_stdlog
);
281 target_debug_print_int (result
);
282 fputs_unfiltered ("\n", gdb_stdlog
);
287 delegate_remove_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
, enum remove_bp_reason arg3
)
289 self
= self
->beneath
;
290 return self
->to_remove_breakpoint (self
, arg1
, arg2
, arg3
);
294 debug_remove_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
, enum remove_bp_reason arg3
)
297 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_remove_breakpoint (...)\n", debug_target
.to_shortname
);
298 result
= debug_target
.to_remove_breakpoint (&debug_target
, arg1
, arg2
, arg3
);
299 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_remove_breakpoint (", debug_target
.to_shortname
);
300 target_debug_print_struct_target_ops_p (&debug_target
);
301 fputs_unfiltered (", ", gdb_stdlog
);
302 target_debug_print_struct_gdbarch_p (arg1
);
303 fputs_unfiltered (", ", gdb_stdlog
);
304 target_debug_print_struct_bp_target_info_p (arg2
);
305 fputs_unfiltered (", ", gdb_stdlog
);
306 target_debug_print_enum_remove_bp_reason (arg3
);
307 fputs_unfiltered (") = ", gdb_stdlog
);
308 target_debug_print_int (result
);
309 fputs_unfiltered ("\n", gdb_stdlog
);
314 delegate_stopped_by_sw_breakpoint (struct target_ops
*self
)
316 self
= self
->beneath
;
317 return self
->to_stopped_by_sw_breakpoint (self
);
321 tdefault_stopped_by_sw_breakpoint (struct target_ops
*self
)
327 debug_stopped_by_sw_breakpoint (struct target_ops
*self
)
330 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_stopped_by_sw_breakpoint (...)\n", debug_target
.to_shortname
);
331 result
= debug_target
.to_stopped_by_sw_breakpoint (&debug_target
);
332 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_stopped_by_sw_breakpoint (", debug_target
.to_shortname
);
333 target_debug_print_struct_target_ops_p (&debug_target
);
334 fputs_unfiltered (") = ", gdb_stdlog
);
335 target_debug_print_int (result
);
336 fputs_unfiltered ("\n", gdb_stdlog
);
341 delegate_supports_stopped_by_sw_breakpoint (struct target_ops
*self
)
343 self
= self
->beneath
;
344 return self
->to_supports_stopped_by_sw_breakpoint (self
);
348 tdefault_supports_stopped_by_sw_breakpoint (struct target_ops
*self
)
354 debug_supports_stopped_by_sw_breakpoint (struct target_ops
*self
)
357 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_supports_stopped_by_sw_breakpoint (...)\n", debug_target
.to_shortname
);
358 result
= debug_target
.to_supports_stopped_by_sw_breakpoint (&debug_target
);
359 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_supports_stopped_by_sw_breakpoint (", debug_target
.to_shortname
);
360 target_debug_print_struct_target_ops_p (&debug_target
);
361 fputs_unfiltered (") = ", gdb_stdlog
);
362 target_debug_print_int (result
);
363 fputs_unfiltered ("\n", gdb_stdlog
);
368 delegate_stopped_by_hw_breakpoint (struct target_ops
*self
)
370 self
= self
->beneath
;
371 return self
->to_stopped_by_hw_breakpoint (self
);
375 tdefault_stopped_by_hw_breakpoint (struct target_ops
*self
)
381 debug_stopped_by_hw_breakpoint (struct target_ops
*self
)
384 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_stopped_by_hw_breakpoint (...)\n", debug_target
.to_shortname
);
385 result
= debug_target
.to_stopped_by_hw_breakpoint (&debug_target
);
386 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_stopped_by_hw_breakpoint (", debug_target
.to_shortname
);
387 target_debug_print_struct_target_ops_p (&debug_target
);
388 fputs_unfiltered (") = ", gdb_stdlog
);
389 target_debug_print_int (result
);
390 fputs_unfiltered ("\n", gdb_stdlog
);
395 delegate_supports_stopped_by_hw_breakpoint (struct target_ops
*self
)
397 self
= self
->beneath
;
398 return self
->to_supports_stopped_by_hw_breakpoint (self
);
402 tdefault_supports_stopped_by_hw_breakpoint (struct target_ops
*self
)
408 debug_supports_stopped_by_hw_breakpoint (struct target_ops
*self
)
411 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_supports_stopped_by_hw_breakpoint (...)\n", debug_target
.to_shortname
);
412 result
= debug_target
.to_supports_stopped_by_hw_breakpoint (&debug_target
);
413 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_supports_stopped_by_hw_breakpoint (", debug_target
.to_shortname
);
414 target_debug_print_struct_target_ops_p (&debug_target
);
415 fputs_unfiltered (") = ", gdb_stdlog
);
416 target_debug_print_int (result
);
417 fputs_unfiltered ("\n", gdb_stdlog
);
422 delegate_can_use_hw_breakpoint (struct target_ops
*self
, enum bptype arg1
, int arg2
, int arg3
)
424 self
= self
->beneath
;
425 return self
->to_can_use_hw_breakpoint (self
, arg1
, arg2
, arg3
);
429 tdefault_can_use_hw_breakpoint (struct target_ops
*self
, enum bptype arg1
, int arg2
, int arg3
)
435 debug_can_use_hw_breakpoint (struct target_ops
*self
, enum bptype arg1
, int arg2
, int arg3
)
438 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_use_hw_breakpoint (...)\n", debug_target
.to_shortname
);
439 result
= debug_target
.to_can_use_hw_breakpoint (&debug_target
, arg1
, arg2
, arg3
);
440 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_use_hw_breakpoint (", debug_target
.to_shortname
);
441 target_debug_print_struct_target_ops_p (&debug_target
);
442 fputs_unfiltered (", ", gdb_stdlog
);
443 target_debug_print_enum_bptype (arg1
);
444 fputs_unfiltered (", ", gdb_stdlog
);
445 target_debug_print_int (arg2
);
446 fputs_unfiltered (", ", gdb_stdlog
);
447 target_debug_print_int (arg3
);
448 fputs_unfiltered (") = ", gdb_stdlog
);
449 target_debug_print_int (result
);
450 fputs_unfiltered ("\n", gdb_stdlog
);
455 delegate_ranged_break_num_registers (struct target_ops
*self
)
457 self
= self
->beneath
;
458 return self
->to_ranged_break_num_registers (self
);
462 tdefault_ranged_break_num_registers (struct target_ops
*self
)
468 debug_ranged_break_num_registers (struct target_ops
*self
)
471 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_ranged_break_num_registers (...)\n", debug_target
.to_shortname
);
472 result
= debug_target
.to_ranged_break_num_registers (&debug_target
);
473 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_ranged_break_num_registers (", debug_target
.to_shortname
);
474 target_debug_print_struct_target_ops_p (&debug_target
);
475 fputs_unfiltered (") = ", gdb_stdlog
);
476 target_debug_print_int (result
);
477 fputs_unfiltered ("\n", gdb_stdlog
);
482 delegate_insert_hw_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
484 self
= self
->beneath
;
485 return self
->to_insert_hw_breakpoint (self
, arg1
, arg2
);
489 tdefault_insert_hw_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
495 debug_insert_hw_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
498 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insert_hw_breakpoint (...)\n", debug_target
.to_shortname
);
499 result
= debug_target
.to_insert_hw_breakpoint (&debug_target
, arg1
, arg2
);
500 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insert_hw_breakpoint (", debug_target
.to_shortname
);
501 target_debug_print_struct_target_ops_p (&debug_target
);
502 fputs_unfiltered (", ", gdb_stdlog
);
503 target_debug_print_struct_gdbarch_p (arg1
);
504 fputs_unfiltered (", ", gdb_stdlog
);
505 target_debug_print_struct_bp_target_info_p (arg2
);
506 fputs_unfiltered (") = ", gdb_stdlog
);
507 target_debug_print_int (result
);
508 fputs_unfiltered ("\n", gdb_stdlog
);
513 delegate_remove_hw_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
515 self
= self
->beneath
;
516 return self
->to_remove_hw_breakpoint (self
, arg1
, arg2
);
520 tdefault_remove_hw_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
526 debug_remove_hw_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
529 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_remove_hw_breakpoint (...)\n", debug_target
.to_shortname
);
530 result
= debug_target
.to_remove_hw_breakpoint (&debug_target
, arg1
, arg2
);
531 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_remove_hw_breakpoint (", debug_target
.to_shortname
);
532 target_debug_print_struct_target_ops_p (&debug_target
);
533 fputs_unfiltered (", ", gdb_stdlog
);
534 target_debug_print_struct_gdbarch_p (arg1
);
535 fputs_unfiltered (", ", gdb_stdlog
);
536 target_debug_print_struct_bp_target_info_p (arg2
);
537 fputs_unfiltered (") = ", gdb_stdlog
);
538 target_debug_print_int (result
);
539 fputs_unfiltered ("\n", gdb_stdlog
);
544 delegate_remove_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, enum target_hw_bp_type arg3
, struct expression
*arg4
)
546 self
= self
->beneath
;
547 return self
->to_remove_watchpoint (self
, arg1
, arg2
, arg3
, arg4
);
551 tdefault_remove_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, enum target_hw_bp_type arg3
, struct expression
*arg4
)
557 debug_remove_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, enum target_hw_bp_type arg3
, struct expression
*arg4
)
560 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_remove_watchpoint (...)\n", debug_target
.to_shortname
);
561 result
= debug_target
.to_remove_watchpoint (&debug_target
, arg1
, arg2
, arg3
, arg4
);
562 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_remove_watchpoint (", debug_target
.to_shortname
);
563 target_debug_print_struct_target_ops_p (&debug_target
);
564 fputs_unfiltered (", ", gdb_stdlog
);
565 target_debug_print_CORE_ADDR (arg1
);
566 fputs_unfiltered (", ", gdb_stdlog
);
567 target_debug_print_int (arg2
);
568 fputs_unfiltered (", ", gdb_stdlog
);
569 target_debug_print_enum_target_hw_bp_type (arg3
);
570 fputs_unfiltered (", ", gdb_stdlog
);
571 target_debug_print_struct_expression_p (arg4
);
572 fputs_unfiltered (") = ", gdb_stdlog
);
573 target_debug_print_int (result
);
574 fputs_unfiltered ("\n", gdb_stdlog
);
579 delegate_insert_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, enum target_hw_bp_type arg3
, struct expression
*arg4
)
581 self
= self
->beneath
;
582 return self
->to_insert_watchpoint (self
, arg1
, arg2
, arg3
, arg4
);
586 tdefault_insert_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, enum target_hw_bp_type arg3
, struct expression
*arg4
)
592 debug_insert_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, enum target_hw_bp_type arg3
, struct expression
*arg4
)
595 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insert_watchpoint (...)\n", debug_target
.to_shortname
);
596 result
= debug_target
.to_insert_watchpoint (&debug_target
, arg1
, arg2
, arg3
, arg4
);
597 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insert_watchpoint (", debug_target
.to_shortname
);
598 target_debug_print_struct_target_ops_p (&debug_target
);
599 fputs_unfiltered (", ", gdb_stdlog
);
600 target_debug_print_CORE_ADDR (arg1
);
601 fputs_unfiltered (", ", gdb_stdlog
);
602 target_debug_print_int (arg2
);
603 fputs_unfiltered (", ", gdb_stdlog
);
604 target_debug_print_enum_target_hw_bp_type (arg3
);
605 fputs_unfiltered (", ", gdb_stdlog
);
606 target_debug_print_struct_expression_p (arg4
);
607 fputs_unfiltered (") = ", gdb_stdlog
);
608 target_debug_print_int (result
);
609 fputs_unfiltered ("\n", gdb_stdlog
);
614 delegate_insert_mask_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
, enum target_hw_bp_type arg3
)
616 self
= self
->beneath
;
617 return self
->to_insert_mask_watchpoint (self
, arg1
, arg2
, arg3
);
621 tdefault_insert_mask_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
, enum target_hw_bp_type arg3
)
627 debug_insert_mask_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
, enum target_hw_bp_type arg3
)
630 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insert_mask_watchpoint (...)\n", debug_target
.to_shortname
);
631 result
= debug_target
.to_insert_mask_watchpoint (&debug_target
, arg1
, arg2
, arg3
);
632 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insert_mask_watchpoint (", debug_target
.to_shortname
);
633 target_debug_print_struct_target_ops_p (&debug_target
);
634 fputs_unfiltered (", ", gdb_stdlog
);
635 target_debug_print_CORE_ADDR (arg1
);
636 fputs_unfiltered (", ", gdb_stdlog
);
637 target_debug_print_CORE_ADDR (arg2
);
638 fputs_unfiltered (", ", gdb_stdlog
);
639 target_debug_print_enum_target_hw_bp_type (arg3
);
640 fputs_unfiltered (") = ", gdb_stdlog
);
641 target_debug_print_int (result
);
642 fputs_unfiltered ("\n", gdb_stdlog
);
647 delegate_remove_mask_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
, enum target_hw_bp_type arg3
)
649 self
= self
->beneath
;
650 return self
->to_remove_mask_watchpoint (self
, arg1
, arg2
, arg3
);
654 tdefault_remove_mask_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
, enum target_hw_bp_type arg3
)
660 debug_remove_mask_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
, enum target_hw_bp_type arg3
)
663 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_remove_mask_watchpoint (...)\n", debug_target
.to_shortname
);
664 result
= debug_target
.to_remove_mask_watchpoint (&debug_target
, arg1
, arg2
, arg3
);
665 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_remove_mask_watchpoint (", debug_target
.to_shortname
);
666 target_debug_print_struct_target_ops_p (&debug_target
);
667 fputs_unfiltered (", ", gdb_stdlog
);
668 target_debug_print_CORE_ADDR (arg1
);
669 fputs_unfiltered (", ", gdb_stdlog
);
670 target_debug_print_CORE_ADDR (arg2
);
671 fputs_unfiltered (", ", gdb_stdlog
);
672 target_debug_print_enum_target_hw_bp_type (arg3
);
673 fputs_unfiltered (") = ", gdb_stdlog
);
674 target_debug_print_int (result
);
675 fputs_unfiltered ("\n", gdb_stdlog
);
680 delegate_stopped_by_watchpoint (struct target_ops
*self
)
682 self
= self
->beneath
;
683 return self
->to_stopped_by_watchpoint (self
);
687 tdefault_stopped_by_watchpoint (struct target_ops
*self
)
693 debug_stopped_by_watchpoint (struct target_ops
*self
)
696 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_stopped_by_watchpoint (...)\n", debug_target
.to_shortname
);
697 result
= debug_target
.to_stopped_by_watchpoint (&debug_target
);
698 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_stopped_by_watchpoint (", debug_target
.to_shortname
);
699 target_debug_print_struct_target_ops_p (&debug_target
);
700 fputs_unfiltered (") = ", gdb_stdlog
);
701 target_debug_print_int (result
);
702 fputs_unfiltered ("\n", gdb_stdlog
);
707 delegate_stopped_data_address (struct target_ops
*self
, CORE_ADDR
*arg1
)
709 self
= self
->beneath
;
710 return self
->to_stopped_data_address (self
, arg1
);
714 tdefault_stopped_data_address (struct target_ops
*self
, CORE_ADDR
*arg1
)
720 debug_stopped_data_address (struct target_ops
*self
, CORE_ADDR
*arg1
)
723 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_stopped_data_address (...)\n", debug_target
.to_shortname
);
724 result
= debug_target
.to_stopped_data_address (&debug_target
, arg1
);
725 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_stopped_data_address (", debug_target
.to_shortname
);
726 target_debug_print_struct_target_ops_p (&debug_target
);
727 fputs_unfiltered (", ", gdb_stdlog
);
728 target_debug_print_CORE_ADDR_p (arg1
);
729 fputs_unfiltered (") = ", gdb_stdlog
);
730 target_debug_print_int (result
);
731 fputs_unfiltered ("\n", gdb_stdlog
);
736 delegate_watchpoint_addr_within_range (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
, int arg3
)
738 self
= self
->beneath
;
739 return self
->to_watchpoint_addr_within_range (self
, arg1
, arg2
, arg3
);
743 debug_watchpoint_addr_within_range (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
, int arg3
)
746 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_watchpoint_addr_within_range (...)\n", debug_target
.to_shortname
);
747 result
= debug_target
.to_watchpoint_addr_within_range (&debug_target
, arg1
, arg2
, arg3
);
748 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_watchpoint_addr_within_range (", debug_target
.to_shortname
);
749 target_debug_print_struct_target_ops_p (&debug_target
);
750 fputs_unfiltered (", ", gdb_stdlog
);
751 target_debug_print_CORE_ADDR (arg1
);
752 fputs_unfiltered (", ", gdb_stdlog
);
753 target_debug_print_CORE_ADDR (arg2
);
754 fputs_unfiltered (", ", gdb_stdlog
);
755 target_debug_print_int (arg3
);
756 fputs_unfiltered (") = ", gdb_stdlog
);
757 target_debug_print_int (result
);
758 fputs_unfiltered ("\n", gdb_stdlog
);
763 delegate_region_ok_for_hw_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
)
765 self
= self
->beneath
;
766 return self
->to_region_ok_for_hw_watchpoint (self
, arg1
, arg2
);
770 debug_region_ok_for_hw_watchpoint (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
)
773 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_region_ok_for_hw_watchpoint (...)\n", debug_target
.to_shortname
);
774 result
= debug_target
.to_region_ok_for_hw_watchpoint (&debug_target
, arg1
, arg2
);
775 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_region_ok_for_hw_watchpoint (", debug_target
.to_shortname
);
776 target_debug_print_struct_target_ops_p (&debug_target
);
777 fputs_unfiltered (", ", gdb_stdlog
);
778 target_debug_print_CORE_ADDR (arg1
);
779 fputs_unfiltered (", ", gdb_stdlog
);
780 target_debug_print_int (arg2
);
781 fputs_unfiltered (") = ", gdb_stdlog
);
782 target_debug_print_int (result
);
783 fputs_unfiltered ("\n", gdb_stdlog
);
788 delegate_can_accel_watchpoint_condition (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, int arg3
, struct expression
*arg4
)
790 self
= self
->beneath
;
791 return self
->to_can_accel_watchpoint_condition (self
, arg1
, arg2
, arg3
, arg4
);
795 tdefault_can_accel_watchpoint_condition (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, int arg3
, struct expression
*arg4
)
801 debug_can_accel_watchpoint_condition (struct target_ops
*self
, CORE_ADDR arg1
, int arg2
, int arg3
, struct expression
*arg4
)
804 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_accel_watchpoint_condition (...)\n", debug_target
.to_shortname
);
805 result
= debug_target
.to_can_accel_watchpoint_condition (&debug_target
, arg1
, arg2
, arg3
, arg4
);
806 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_accel_watchpoint_condition (", debug_target
.to_shortname
);
807 target_debug_print_struct_target_ops_p (&debug_target
);
808 fputs_unfiltered (", ", gdb_stdlog
);
809 target_debug_print_CORE_ADDR (arg1
);
810 fputs_unfiltered (", ", gdb_stdlog
);
811 target_debug_print_int (arg2
);
812 fputs_unfiltered (", ", gdb_stdlog
);
813 target_debug_print_int (arg3
);
814 fputs_unfiltered (", ", gdb_stdlog
);
815 target_debug_print_struct_expression_p (arg4
);
816 fputs_unfiltered (") = ", gdb_stdlog
);
817 target_debug_print_int (result
);
818 fputs_unfiltered ("\n", gdb_stdlog
);
823 delegate_masked_watch_num_registers (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
)
825 self
= self
->beneath
;
826 return self
->to_masked_watch_num_registers (self
, arg1
, arg2
);
830 tdefault_masked_watch_num_registers (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
)
836 debug_masked_watch_num_registers (struct target_ops
*self
, CORE_ADDR arg1
, CORE_ADDR arg2
)
839 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_masked_watch_num_registers (...)\n", debug_target
.to_shortname
);
840 result
= debug_target
.to_masked_watch_num_registers (&debug_target
, arg1
, arg2
);
841 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_masked_watch_num_registers (", debug_target
.to_shortname
);
842 target_debug_print_struct_target_ops_p (&debug_target
);
843 fputs_unfiltered (", ", gdb_stdlog
);
844 target_debug_print_CORE_ADDR (arg1
);
845 fputs_unfiltered (", ", gdb_stdlog
);
846 target_debug_print_CORE_ADDR (arg2
);
847 fputs_unfiltered (") = ", gdb_stdlog
);
848 target_debug_print_int (result
);
849 fputs_unfiltered ("\n", gdb_stdlog
);
854 delegate_can_do_single_step (struct target_ops
*self
)
856 self
= self
->beneath
;
857 return self
->to_can_do_single_step (self
);
861 tdefault_can_do_single_step (struct target_ops
*self
)
867 debug_can_do_single_step (struct target_ops
*self
)
870 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_do_single_step (...)\n", debug_target
.to_shortname
);
871 result
= debug_target
.to_can_do_single_step (&debug_target
);
872 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_do_single_step (", debug_target
.to_shortname
);
873 target_debug_print_struct_target_ops_p (&debug_target
);
874 fputs_unfiltered (") = ", gdb_stdlog
);
875 target_debug_print_int (result
);
876 fputs_unfiltered ("\n", gdb_stdlog
);
881 delegate_terminal_init (struct target_ops
*self
)
883 self
= self
->beneath
;
884 self
->to_terminal_init (self
);
888 tdefault_terminal_init (struct target_ops
*self
)
893 debug_terminal_init (struct target_ops
*self
)
895 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_terminal_init (...)\n", debug_target
.to_shortname
);
896 debug_target
.to_terminal_init (&debug_target
);
897 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_terminal_init (", debug_target
.to_shortname
);
898 target_debug_print_struct_target_ops_p (&debug_target
);
899 fputs_unfiltered (")\n", gdb_stdlog
);
903 delegate_terminal_inferior (struct target_ops
*self
)
905 self
= self
->beneath
;
906 self
->to_terminal_inferior (self
);
910 tdefault_terminal_inferior (struct target_ops
*self
)
915 debug_terminal_inferior (struct target_ops
*self
)
917 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_terminal_inferior (...)\n", debug_target
.to_shortname
);
918 debug_target
.to_terminal_inferior (&debug_target
);
919 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_terminal_inferior (", debug_target
.to_shortname
);
920 target_debug_print_struct_target_ops_p (&debug_target
);
921 fputs_unfiltered (")\n", gdb_stdlog
);
925 delegate_terminal_ours_for_output (struct target_ops
*self
)
927 self
= self
->beneath
;
928 self
->to_terminal_ours_for_output (self
);
932 tdefault_terminal_ours_for_output (struct target_ops
*self
)
937 debug_terminal_ours_for_output (struct target_ops
*self
)
939 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_terminal_ours_for_output (...)\n", debug_target
.to_shortname
);
940 debug_target
.to_terminal_ours_for_output (&debug_target
);
941 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_terminal_ours_for_output (", debug_target
.to_shortname
);
942 target_debug_print_struct_target_ops_p (&debug_target
);
943 fputs_unfiltered (")\n", gdb_stdlog
);
947 delegate_terminal_ours (struct target_ops
*self
)
949 self
= self
->beneath
;
950 self
->to_terminal_ours (self
);
954 tdefault_terminal_ours (struct target_ops
*self
)
959 debug_terminal_ours (struct target_ops
*self
)
961 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_terminal_ours (...)\n", debug_target
.to_shortname
);
962 debug_target
.to_terminal_ours (&debug_target
);
963 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_terminal_ours (", debug_target
.to_shortname
);
964 target_debug_print_struct_target_ops_p (&debug_target
);
965 fputs_unfiltered (")\n", gdb_stdlog
);
969 delegate_terminal_info (struct target_ops
*self
, const char *arg1
, int arg2
)
971 self
= self
->beneath
;
972 self
->to_terminal_info (self
, arg1
, arg2
);
976 debug_terminal_info (struct target_ops
*self
, const char *arg1
, int arg2
)
978 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_terminal_info (...)\n", debug_target
.to_shortname
);
979 debug_target
.to_terminal_info (&debug_target
, arg1
, arg2
);
980 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_terminal_info (", debug_target
.to_shortname
);
981 target_debug_print_struct_target_ops_p (&debug_target
);
982 fputs_unfiltered (", ", gdb_stdlog
);
983 target_debug_print_const_char_p (arg1
);
984 fputs_unfiltered (", ", gdb_stdlog
);
985 target_debug_print_int (arg2
);
986 fputs_unfiltered (")\n", gdb_stdlog
);
990 delegate_kill (struct target_ops
*self
)
992 self
= self
->beneath
;
993 self
->to_kill (self
);
997 tdefault_kill (struct target_ops
*self
)
1003 debug_kill (struct target_ops
*self
)
1005 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_kill (...)\n", debug_target
.to_shortname
);
1006 debug_target
.to_kill (&debug_target
);
1007 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_kill (", debug_target
.to_shortname
);
1008 target_debug_print_struct_target_ops_p (&debug_target
);
1009 fputs_unfiltered (")\n", gdb_stdlog
);
1013 delegate_load (struct target_ops
*self
, const char *arg1
, int arg2
)
1015 self
= self
->beneath
;
1016 self
->to_load (self
, arg1
, arg2
);
1020 tdefault_load (struct target_ops
*self
, const char *arg1
, int arg2
)
1026 debug_load (struct target_ops
*self
, const char *arg1
, int arg2
)
1028 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_load (...)\n", debug_target
.to_shortname
);
1029 debug_target
.to_load (&debug_target
, arg1
, arg2
);
1030 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_load (", debug_target
.to_shortname
);
1031 target_debug_print_struct_target_ops_p (&debug_target
);
1032 fputs_unfiltered (", ", gdb_stdlog
);
1033 target_debug_print_const_char_p (arg1
);
1034 fputs_unfiltered (", ", gdb_stdlog
);
1035 target_debug_print_int (arg2
);
1036 fputs_unfiltered (")\n", gdb_stdlog
);
1040 delegate_post_startup_inferior (struct target_ops
*self
, ptid_t arg1
)
1042 self
= self
->beneath
;
1043 self
->to_post_startup_inferior (self
, arg1
);
1047 tdefault_post_startup_inferior (struct target_ops
*self
, ptid_t arg1
)
1052 debug_post_startup_inferior (struct target_ops
*self
, ptid_t arg1
)
1054 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_post_startup_inferior (...)\n", debug_target
.to_shortname
);
1055 debug_target
.to_post_startup_inferior (&debug_target
, arg1
);
1056 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_post_startup_inferior (", debug_target
.to_shortname
);
1057 target_debug_print_struct_target_ops_p (&debug_target
);
1058 fputs_unfiltered (", ", gdb_stdlog
);
1059 target_debug_print_ptid_t (arg1
);
1060 fputs_unfiltered (")\n", gdb_stdlog
);
1064 delegate_insert_fork_catchpoint (struct target_ops
*self
, int arg1
)
1066 self
= self
->beneath
;
1067 return self
->to_insert_fork_catchpoint (self
, arg1
);
1071 tdefault_insert_fork_catchpoint (struct target_ops
*self
, int arg1
)
1077 debug_insert_fork_catchpoint (struct target_ops
*self
, int arg1
)
1080 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insert_fork_catchpoint (...)\n", debug_target
.to_shortname
);
1081 result
= debug_target
.to_insert_fork_catchpoint (&debug_target
, arg1
);
1082 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insert_fork_catchpoint (", debug_target
.to_shortname
);
1083 target_debug_print_struct_target_ops_p (&debug_target
);
1084 fputs_unfiltered (", ", gdb_stdlog
);
1085 target_debug_print_int (arg1
);
1086 fputs_unfiltered (") = ", gdb_stdlog
);
1087 target_debug_print_int (result
);
1088 fputs_unfiltered ("\n", gdb_stdlog
);
1093 delegate_remove_fork_catchpoint (struct target_ops
*self
, int arg1
)
1095 self
= self
->beneath
;
1096 return self
->to_remove_fork_catchpoint (self
, arg1
);
1100 tdefault_remove_fork_catchpoint (struct target_ops
*self
, int arg1
)
1106 debug_remove_fork_catchpoint (struct target_ops
*self
, int arg1
)
1109 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_remove_fork_catchpoint (...)\n", debug_target
.to_shortname
);
1110 result
= debug_target
.to_remove_fork_catchpoint (&debug_target
, arg1
);
1111 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_remove_fork_catchpoint (", debug_target
.to_shortname
);
1112 target_debug_print_struct_target_ops_p (&debug_target
);
1113 fputs_unfiltered (", ", gdb_stdlog
);
1114 target_debug_print_int (arg1
);
1115 fputs_unfiltered (") = ", gdb_stdlog
);
1116 target_debug_print_int (result
);
1117 fputs_unfiltered ("\n", gdb_stdlog
);
1122 delegate_insert_vfork_catchpoint (struct target_ops
*self
, int arg1
)
1124 self
= self
->beneath
;
1125 return self
->to_insert_vfork_catchpoint (self
, arg1
);
1129 tdefault_insert_vfork_catchpoint (struct target_ops
*self
, int arg1
)
1135 debug_insert_vfork_catchpoint (struct target_ops
*self
, int arg1
)
1138 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insert_vfork_catchpoint (...)\n", debug_target
.to_shortname
);
1139 result
= debug_target
.to_insert_vfork_catchpoint (&debug_target
, arg1
);
1140 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insert_vfork_catchpoint (", debug_target
.to_shortname
);
1141 target_debug_print_struct_target_ops_p (&debug_target
);
1142 fputs_unfiltered (", ", gdb_stdlog
);
1143 target_debug_print_int (arg1
);
1144 fputs_unfiltered (") = ", gdb_stdlog
);
1145 target_debug_print_int (result
);
1146 fputs_unfiltered ("\n", gdb_stdlog
);
1151 delegate_remove_vfork_catchpoint (struct target_ops
*self
, int arg1
)
1153 self
= self
->beneath
;
1154 return self
->to_remove_vfork_catchpoint (self
, arg1
);
1158 tdefault_remove_vfork_catchpoint (struct target_ops
*self
, int arg1
)
1164 debug_remove_vfork_catchpoint (struct target_ops
*self
, int arg1
)
1167 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_remove_vfork_catchpoint (...)\n", debug_target
.to_shortname
);
1168 result
= debug_target
.to_remove_vfork_catchpoint (&debug_target
, arg1
);
1169 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_remove_vfork_catchpoint (", debug_target
.to_shortname
);
1170 target_debug_print_struct_target_ops_p (&debug_target
);
1171 fputs_unfiltered (", ", gdb_stdlog
);
1172 target_debug_print_int (arg1
);
1173 fputs_unfiltered (") = ", gdb_stdlog
);
1174 target_debug_print_int (result
);
1175 fputs_unfiltered ("\n", gdb_stdlog
);
1180 delegate_follow_fork (struct target_ops
*self
, int arg1
, int arg2
)
1182 self
= self
->beneath
;
1183 return self
->to_follow_fork (self
, arg1
, arg2
);
1187 debug_follow_fork (struct target_ops
*self
, int arg1
, int arg2
)
1190 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_follow_fork (...)\n", debug_target
.to_shortname
);
1191 result
= debug_target
.to_follow_fork (&debug_target
, arg1
, arg2
);
1192 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_follow_fork (", debug_target
.to_shortname
);
1193 target_debug_print_struct_target_ops_p (&debug_target
);
1194 fputs_unfiltered (", ", gdb_stdlog
);
1195 target_debug_print_int (arg1
);
1196 fputs_unfiltered (", ", gdb_stdlog
);
1197 target_debug_print_int (arg2
);
1198 fputs_unfiltered (") = ", gdb_stdlog
);
1199 target_debug_print_int (result
);
1200 fputs_unfiltered ("\n", gdb_stdlog
);
1205 delegate_insert_exec_catchpoint (struct target_ops
*self
, int arg1
)
1207 self
= self
->beneath
;
1208 return self
->to_insert_exec_catchpoint (self
, arg1
);
1212 tdefault_insert_exec_catchpoint (struct target_ops
*self
, int arg1
)
1218 debug_insert_exec_catchpoint (struct target_ops
*self
, int arg1
)
1221 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insert_exec_catchpoint (...)\n", debug_target
.to_shortname
);
1222 result
= debug_target
.to_insert_exec_catchpoint (&debug_target
, arg1
);
1223 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insert_exec_catchpoint (", debug_target
.to_shortname
);
1224 target_debug_print_struct_target_ops_p (&debug_target
);
1225 fputs_unfiltered (", ", gdb_stdlog
);
1226 target_debug_print_int (arg1
);
1227 fputs_unfiltered (") = ", gdb_stdlog
);
1228 target_debug_print_int (result
);
1229 fputs_unfiltered ("\n", gdb_stdlog
);
1234 delegate_remove_exec_catchpoint (struct target_ops
*self
, int arg1
)
1236 self
= self
->beneath
;
1237 return self
->to_remove_exec_catchpoint (self
, arg1
);
1241 tdefault_remove_exec_catchpoint (struct target_ops
*self
, int arg1
)
1247 debug_remove_exec_catchpoint (struct target_ops
*self
, int arg1
)
1250 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_remove_exec_catchpoint (...)\n", debug_target
.to_shortname
);
1251 result
= debug_target
.to_remove_exec_catchpoint (&debug_target
, arg1
);
1252 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_remove_exec_catchpoint (", debug_target
.to_shortname
);
1253 target_debug_print_struct_target_ops_p (&debug_target
);
1254 fputs_unfiltered (", ", gdb_stdlog
);
1255 target_debug_print_int (arg1
);
1256 fputs_unfiltered (") = ", gdb_stdlog
);
1257 target_debug_print_int (result
);
1258 fputs_unfiltered ("\n", gdb_stdlog
);
1263 delegate_follow_exec (struct target_ops
*self
, struct inferior
*arg1
, char *arg2
)
1265 self
= self
->beneath
;
1266 self
->to_follow_exec (self
, arg1
, arg2
);
1270 tdefault_follow_exec (struct target_ops
*self
, struct inferior
*arg1
, char *arg2
)
1275 debug_follow_exec (struct target_ops
*self
, struct inferior
*arg1
, char *arg2
)
1277 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_follow_exec (...)\n", debug_target
.to_shortname
);
1278 debug_target
.to_follow_exec (&debug_target
, arg1
, arg2
);
1279 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_follow_exec (", debug_target
.to_shortname
);
1280 target_debug_print_struct_target_ops_p (&debug_target
);
1281 fputs_unfiltered (", ", gdb_stdlog
);
1282 target_debug_print_struct_inferior_p (arg1
);
1283 fputs_unfiltered (", ", gdb_stdlog
);
1284 target_debug_print_char_p (arg2
);
1285 fputs_unfiltered (")\n", gdb_stdlog
);
1289 delegate_set_syscall_catchpoint (struct target_ops
*self
, int arg1
, int arg2
, int arg3
, int arg4
, int *arg5
)
1291 self
= self
->beneath
;
1292 return self
->to_set_syscall_catchpoint (self
, arg1
, arg2
, arg3
, arg4
, arg5
);
1296 tdefault_set_syscall_catchpoint (struct target_ops
*self
, int arg1
, int arg2
, int arg3
, int arg4
, int *arg5
)
1302 debug_set_syscall_catchpoint (struct target_ops
*self
, int arg1
, int arg2
, int arg3
, int arg4
, int *arg5
)
1305 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_set_syscall_catchpoint (...)\n", debug_target
.to_shortname
);
1306 result
= debug_target
.to_set_syscall_catchpoint (&debug_target
, arg1
, arg2
, arg3
, arg4
, arg5
);
1307 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_set_syscall_catchpoint (", debug_target
.to_shortname
);
1308 target_debug_print_struct_target_ops_p (&debug_target
);
1309 fputs_unfiltered (", ", gdb_stdlog
);
1310 target_debug_print_int (arg1
);
1311 fputs_unfiltered (", ", gdb_stdlog
);
1312 target_debug_print_int (arg2
);
1313 fputs_unfiltered (", ", gdb_stdlog
);
1314 target_debug_print_int (arg3
);
1315 fputs_unfiltered (", ", gdb_stdlog
);
1316 target_debug_print_int (arg4
);
1317 fputs_unfiltered (", ", gdb_stdlog
);
1318 target_debug_print_int_p (arg5
);
1319 fputs_unfiltered (") = ", gdb_stdlog
);
1320 target_debug_print_int (result
);
1321 fputs_unfiltered ("\n", gdb_stdlog
);
1326 delegate_has_exited (struct target_ops
*self
, int arg1
, int arg2
, int *arg3
)
1328 self
= self
->beneath
;
1329 return self
->to_has_exited (self
, arg1
, arg2
, arg3
);
1333 tdefault_has_exited (struct target_ops
*self
, int arg1
, int arg2
, int *arg3
)
1339 debug_has_exited (struct target_ops
*self
, int arg1
, int arg2
, int *arg3
)
1342 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_has_exited (...)\n", debug_target
.to_shortname
);
1343 result
= debug_target
.to_has_exited (&debug_target
, arg1
, arg2
, arg3
);
1344 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_has_exited (", debug_target
.to_shortname
);
1345 target_debug_print_struct_target_ops_p (&debug_target
);
1346 fputs_unfiltered (", ", gdb_stdlog
);
1347 target_debug_print_int (arg1
);
1348 fputs_unfiltered (", ", gdb_stdlog
);
1349 target_debug_print_int (arg2
);
1350 fputs_unfiltered (", ", gdb_stdlog
);
1351 target_debug_print_int_p (arg3
);
1352 fputs_unfiltered (") = ", gdb_stdlog
);
1353 target_debug_print_int (result
);
1354 fputs_unfiltered ("\n", gdb_stdlog
);
1359 delegate_mourn_inferior (struct target_ops
*self
)
1361 self
= self
->beneath
;
1362 self
->to_mourn_inferior (self
);
1366 debug_mourn_inferior (struct target_ops
*self
)
1368 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_mourn_inferior (...)\n", debug_target
.to_shortname
);
1369 debug_target
.to_mourn_inferior (&debug_target
);
1370 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_mourn_inferior (", debug_target
.to_shortname
);
1371 target_debug_print_struct_target_ops_p (&debug_target
);
1372 fputs_unfiltered (")\n", gdb_stdlog
);
1376 delegate_can_run (struct target_ops
*self
)
1378 self
= self
->beneath
;
1379 return self
->to_can_run (self
);
1383 tdefault_can_run (struct target_ops
*self
)
1389 debug_can_run (struct target_ops
*self
)
1392 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_run (...)\n", debug_target
.to_shortname
);
1393 result
= debug_target
.to_can_run (&debug_target
);
1394 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_run (", debug_target
.to_shortname
);
1395 target_debug_print_struct_target_ops_p (&debug_target
);
1396 fputs_unfiltered (") = ", gdb_stdlog
);
1397 target_debug_print_int (result
);
1398 fputs_unfiltered ("\n", gdb_stdlog
);
1403 delegate_pass_signals (struct target_ops
*self
, int arg1
, unsigned char * arg2
)
1405 self
= self
->beneath
;
1406 self
->to_pass_signals (self
, arg1
, arg2
);
1410 tdefault_pass_signals (struct target_ops
*self
, int arg1
, unsigned char * arg2
)
1415 debug_pass_signals (struct target_ops
*self
, int arg1
, unsigned char * arg2
)
1417 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_pass_signals (...)\n", debug_target
.to_shortname
);
1418 debug_target
.to_pass_signals (&debug_target
, arg1
, arg2
);
1419 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_pass_signals (", debug_target
.to_shortname
);
1420 target_debug_print_struct_target_ops_p (&debug_target
);
1421 fputs_unfiltered (", ", gdb_stdlog
);
1422 target_debug_print_int (arg1
);
1423 fputs_unfiltered (", ", gdb_stdlog
);
1424 target_debug_print_signals (arg2
);
1425 fputs_unfiltered (")\n", gdb_stdlog
);
1429 delegate_program_signals (struct target_ops
*self
, int arg1
, unsigned char * arg2
)
1431 self
= self
->beneath
;
1432 self
->to_program_signals (self
, arg1
, arg2
);
1436 tdefault_program_signals (struct target_ops
*self
, int arg1
, unsigned char * arg2
)
1441 debug_program_signals (struct target_ops
*self
, int arg1
, unsigned char * arg2
)
1443 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_program_signals (...)\n", debug_target
.to_shortname
);
1444 debug_target
.to_program_signals (&debug_target
, arg1
, arg2
);
1445 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_program_signals (", debug_target
.to_shortname
);
1446 target_debug_print_struct_target_ops_p (&debug_target
);
1447 fputs_unfiltered (", ", gdb_stdlog
);
1448 target_debug_print_int (arg1
);
1449 fputs_unfiltered (", ", gdb_stdlog
);
1450 target_debug_print_signals (arg2
);
1451 fputs_unfiltered (")\n", gdb_stdlog
);
1455 delegate_thread_alive (struct target_ops
*self
, ptid_t arg1
)
1457 self
= self
->beneath
;
1458 return self
->to_thread_alive (self
, arg1
);
1462 tdefault_thread_alive (struct target_ops
*self
, ptid_t arg1
)
1468 debug_thread_alive (struct target_ops
*self
, ptid_t arg1
)
1471 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_thread_alive (...)\n", debug_target
.to_shortname
);
1472 result
= debug_target
.to_thread_alive (&debug_target
, arg1
);
1473 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_thread_alive (", debug_target
.to_shortname
);
1474 target_debug_print_struct_target_ops_p (&debug_target
);
1475 fputs_unfiltered (", ", gdb_stdlog
);
1476 target_debug_print_ptid_t (arg1
);
1477 fputs_unfiltered (") = ", gdb_stdlog
);
1478 target_debug_print_int (result
);
1479 fputs_unfiltered ("\n", gdb_stdlog
);
1484 delegate_update_thread_list (struct target_ops
*self
)
1486 self
= self
->beneath
;
1487 self
->to_update_thread_list (self
);
1491 tdefault_update_thread_list (struct target_ops
*self
)
1496 debug_update_thread_list (struct target_ops
*self
)
1498 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_update_thread_list (...)\n", debug_target
.to_shortname
);
1499 debug_target
.to_update_thread_list (&debug_target
);
1500 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_update_thread_list (", debug_target
.to_shortname
);
1501 target_debug_print_struct_target_ops_p (&debug_target
);
1502 fputs_unfiltered (")\n", gdb_stdlog
);
1506 delegate_pid_to_str (struct target_ops
*self
, ptid_t arg1
)
1508 self
= self
->beneath
;
1509 return self
->to_pid_to_str (self
, arg1
);
1513 debug_pid_to_str (struct target_ops
*self
, ptid_t arg1
)
1516 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_pid_to_str (...)\n", debug_target
.to_shortname
);
1517 result
= debug_target
.to_pid_to_str (&debug_target
, arg1
);
1518 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_pid_to_str (", debug_target
.to_shortname
);
1519 target_debug_print_struct_target_ops_p (&debug_target
);
1520 fputs_unfiltered (", ", gdb_stdlog
);
1521 target_debug_print_ptid_t (arg1
);
1522 fputs_unfiltered (") = ", gdb_stdlog
);
1523 target_debug_print_char_p (result
);
1524 fputs_unfiltered ("\n", gdb_stdlog
);
1529 delegate_extra_thread_info (struct target_ops
*self
, struct thread_info
*arg1
)
1531 self
= self
->beneath
;
1532 return self
->to_extra_thread_info (self
, arg1
);
1536 tdefault_extra_thread_info (struct target_ops
*self
, struct thread_info
*arg1
)
1542 debug_extra_thread_info (struct target_ops
*self
, struct thread_info
*arg1
)
1545 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_extra_thread_info (...)\n", debug_target
.to_shortname
);
1546 result
= debug_target
.to_extra_thread_info (&debug_target
, arg1
);
1547 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_extra_thread_info (", debug_target
.to_shortname
);
1548 target_debug_print_struct_target_ops_p (&debug_target
);
1549 fputs_unfiltered (", ", gdb_stdlog
);
1550 target_debug_print_struct_thread_info_p (arg1
);
1551 fputs_unfiltered (") = ", gdb_stdlog
);
1552 target_debug_print_char_p (result
);
1553 fputs_unfiltered ("\n", gdb_stdlog
);
1558 delegate_thread_name (struct target_ops
*self
, struct thread_info
*arg1
)
1560 self
= self
->beneath
;
1561 return self
->to_thread_name (self
, arg1
);
1565 tdefault_thread_name (struct target_ops
*self
, struct thread_info
*arg1
)
1571 debug_thread_name (struct target_ops
*self
, struct thread_info
*arg1
)
1573 const char * result
;
1574 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_thread_name (...)\n", debug_target
.to_shortname
);
1575 result
= debug_target
.to_thread_name (&debug_target
, arg1
);
1576 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_thread_name (", debug_target
.to_shortname
);
1577 target_debug_print_struct_target_ops_p (&debug_target
);
1578 fputs_unfiltered (", ", gdb_stdlog
);
1579 target_debug_print_struct_thread_info_p (arg1
);
1580 fputs_unfiltered (") = ", gdb_stdlog
);
1581 target_debug_print_const_char_p (result
);
1582 fputs_unfiltered ("\n", gdb_stdlog
);
1587 delegate_stop (struct target_ops
*self
, ptid_t arg1
)
1589 self
= self
->beneath
;
1590 self
->to_stop (self
, arg1
);
1594 tdefault_stop (struct target_ops
*self
, ptid_t arg1
)
1599 debug_stop (struct target_ops
*self
, ptid_t arg1
)
1601 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_stop (...)\n", debug_target
.to_shortname
);
1602 debug_target
.to_stop (&debug_target
, arg1
);
1603 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_stop (", debug_target
.to_shortname
);
1604 target_debug_print_struct_target_ops_p (&debug_target
);
1605 fputs_unfiltered (", ", gdb_stdlog
);
1606 target_debug_print_ptid_t (arg1
);
1607 fputs_unfiltered (")\n", gdb_stdlog
);
1611 delegate_interrupt (struct target_ops
*self
, ptid_t arg1
)
1613 self
= self
->beneath
;
1614 self
->to_interrupt (self
, arg1
);
1618 tdefault_interrupt (struct target_ops
*self
, ptid_t arg1
)
1623 debug_interrupt (struct target_ops
*self
, ptid_t arg1
)
1625 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_interrupt (...)\n", debug_target
.to_shortname
);
1626 debug_target
.to_interrupt (&debug_target
, arg1
);
1627 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_interrupt (", debug_target
.to_shortname
);
1628 target_debug_print_struct_target_ops_p (&debug_target
);
1629 fputs_unfiltered (", ", gdb_stdlog
);
1630 target_debug_print_ptid_t (arg1
);
1631 fputs_unfiltered (")\n", gdb_stdlog
);
1635 delegate_pass_ctrlc (struct target_ops
*self
)
1637 self
= self
->beneath
;
1638 self
->to_pass_ctrlc (self
);
1642 debug_pass_ctrlc (struct target_ops
*self
)
1644 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_pass_ctrlc (...)\n", debug_target
.to_shortname
);
1645 debug_target
.to_pass_ctrlc (&debug_target
);
1646 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_pass_ctrlc (", debug_target
.to_shortname
);
1647 target_debug_print_struct_target_ops_p (&debug_target
);
1648 fputs_unfiltered (")\n", gdb_stdlog
);
1652 delegate_rcmd (struct target_ops
*self
, const char *arg1
, struct ui_file
*arg2
)
1654 self
= self
->beneath
;
1655 self
->to_rcmd (self
, arg1
, arg2
);
1659 debug_rcmd (struct target_ops
*self
, const char *arg1
, struct ui_file
*arg2
)
1661 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_rcmd (...)\n", debug_target
.to_shortname
);
1662 debug_target
.to_rcmd (&debug_target
, arg1
, arg2
);
1663 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_rcmd (", debug_target
.to_shortname
);
1664 target_debug_print_struct_target_ops_p (&debug_target
);
1665 fputs_unfiltered (", ", gdb_stdlog
);
1666 target_debug_print_const_char_p (arg1
);
1667 fputs_unfiltered (", ", gdb_stdlog
);
1668 target_debug_print_struct_ui_file_p (arg2
);
1669 fputs_unfiltered (")\n", gdb_stdlog
);
1673 delegate_pid_to_exec_file (struct target_ops
*self
, int arg1
)
1675 self
= self
->beneath
;
1676 return self
->to_pid_to_exec_file (self
, arg1
);
1680 tdefault_pid_to_exec_file (struct target_ops
*self
, int arg1
)
1686 debug_pid_to_exec_file (struct target_ops
*self
, int arg1
)
1689 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_pid_to_exec_file (...)\n", debug_target
.to_shortname
);
1690 result
= debug_target
.to_pid_to_exec_file (&debug_target
, arg1
);
1691 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_pid_to_exec_file (", debug_target
.to_shortname
);
1692 target_debug_print_struct_target_ops_p (&debug_target
);
1693 fputs_unfiltered (", ", gdb_stdlog
);
1694 target_debug_print_int (arg1
);
1695 fputs_unfiltered (") = ", gdb_stdlog
);
1696 target_debug_print_char_p (result
);
1697 fputs_unfiltered ("\n", gdb_stdlog
);
1702 delegate_log_command (struct target_ops
*self
, const char *arg1
)
1704 self
= self
->beneath
;
1705 self
->to_log_command (self
, arg1
);
1709 tdefault_log_command (struct target_ops
*self
, const char *arg1
)
1714 debug_log_command (struct target_ops
*self
, const char *arg1
)
1716 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_log_command (...)\n", debug_target
.to_shortname
);
1717 debug_target
.to_log_command (&debug_target
, arg1
);
1718 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_log_command (", debug_target
.to_shortname
);
1719 target_debug_print_struct_target_ops_p (&debug_target
);
1720 fputs_unfiltered (", ", gdb_stdlog
);
1721 target_debug_print_const_char_p (arg1
);
1722 fputs_unfiltered (")\n", gdb_stdlog
);
1725 static struct target_section_table
*
1726 delegate_get_section_table (struct target_ops
*self
)
1728 self
= self
->beneath
;
1729 return self
->to_get_section_table (self
);
1732 static struct target_section_table
*
1733 tdefault_get_section_table (struct target_ops
*self
)
1738 static struct target_section_table
*
1739 debug_get_section_table (struct target_ops
*self
)
1741 struct target_section_table
* result
;
1742 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_section_table (...)\n", debug_target
.to_shortname
);
1743 result
= debug_target
.to_get_section_table (&debug_target
);
1744 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_section_table (", debug_target
.to_shortname
);
1745 target_debug_print_struct_target_ops_p (&debug_target
);
1746 fputs_unfiltered (") = ", gdb_stdlog
);
1747 target_debug_print_struct_target_section_table_p (result
);
1748 fputs_unfiltered ("\n", gdb_stdlog
);
1753 delegate_can_async_p (struct target_ops
*self
)
1755 self
= self
->beneath
;
1756 return self
->to_can_async_p (self
);
1760 tdefault_can_async_p (struct target_ops
*self
)
1766 debug_can_async_p (struct target_ops
*self
)
1769 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_async_p (...)\n", debug_target
.to_shortname
);
1770 result
= debug_target
.to_can_async_p (&debug_target
);
1771 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_async_p (", debug_target
.to_shortname
);
1772 target_debug_print_struct_target_ops_p (&debug_target
);
1773 fputs_unfiltered (") = ", gdb_stdlog
);
1774 target_debug_print_int (result
);
1775 fputs_unfiltered ("\n", gdb_stdlog
);
1780 delegate_is_async_p (struct target_ops
*self
)
1782 self
= self
->beneath
;
1783 return self
->to_is_async_p (self
);
1787 tdefault_is_async_p (struct target_ops
*self
)
1793 debug_is_async_p (struct target_ops
*self
)
1796 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_is_async_p (...)\n", debug_target
.to_shortname
);
1797 result
= debug_target
.to_is_async_p (&debug_target
);
1798 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_is_async_p (", debug_target
.to_shortname
);
1799 target_debug_print_struct_target_ops_p (&debug_target
);
1800 fputs_unfiltered (") = ", gdb_stdlog
);
1801 target_debug_print_int (result
);
1802 fputs_unfiltered ("\n", gdb_stdlog
);
1807 delegate_async (struct target_ops
*self
, int arg1
)
1809 self
= self
->beneath
;
1810 self
->to_async (self
, arg1
);
1814 tdefault_async (struct target_ops
*self
, int arg1
)
1820 debug_async (struct target_ops
*self
, int arg1
)
1822 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_async (...)\n", debug_target
.to_shortname
);
1823 debug_target
.to_async (&debug_target
, arg1
);
1824 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_async (", debug_target
.to_shortname
);
1825 target_debug_print_struct_target_ops_p (&debug_target
);
1826 fputs_unfiltered (", ", gdb_stdlog
);
1827 target_debug_print_int (arg1
);
1828 fputs_unfiltered (")\n", gdb_stdlog
);
1832 delegate_thread_events (struct target_ops
*self
, int arg1
)
1834 self
= self
->beneath
;
1835 self
->to_thread_events (self
, arg1
);
1839 tdefault_thread_events (struct target_ops
*self
, int arg1
)
1844 debug_thread_events (struct target_ops
*self
, int arg1
)
1846 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_thread_events (...)\n", debug_target
.to_shortname
);
1847 debug_target
.to_thread_events (&debug_target
, arg1
);
1848 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_thread_events (", debug_target
.to_shortname
);
1849 target_debug_print_struct_target_ops_p (&debug_target
);
1850 fputs_unfiltered (", ", gdb_stdlog
);
1851 target_debug_print_int (arg1
);
1852 fputs_unfiltered (")\n", gdb_stdlog
);
1856 delegate_supports_non_stop (struct target_ops
*self
)
1858 self
= self
->beneath
;
1859 return self
->to_supports_non_stop (self
);
1863 tdefault_supports_non_stop (struct target_ops
*self
)
1869 debug_supports_non_stop (struct target_ops
*self
)
1872 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_supports_non_stop (...)\n", debug_target
.to_shortname
);
1873 result
= debug_target
.to_supports_non_stop (&debug_target
);
1874 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_supports_non_stop (", debug_target
.to_shortname
);
1875 target_debug_print_struct_target_ops_p (&debug_target
);
1876 fputs_unfiltered (") = ", gdb_stdlog
);
1877 target_debug_print_int (result
);
1878 fputs_unfiltered ("\n", gdb_stdlog
);
1883 delegate_always_non_stop_p (struct target_ops
*self
)
1885 self
= self
->beneath
;
1886 return self
->to_always_non_stop_p (self
);
1890 tdefault_always_non_stop_p (struct target_ops
*self
)
1896 debug_always_non_stop_p (struct target_ops
*self
)
1899 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_always_non_stop_p (...)\n", debug_target
.to_shortname
);
1900 result
= debug_target
.to_always_non_stop_p (&debug_target
);
1901 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_always_non_stop_p (", debug_target
.to_shortname
);
1902 target_debug_print_struct_target_ops_p (&debug_target
);
1903 fputs_unfiltered (") = ", gdb_stdlog
);
1904 target_debug_print_int (result
);
1905 fputs_unfiltered ("\n", gdb_stdlog
);
1910 delegate_find_memory_regions (struct target_ops
*self
, find_memory_region_ftype arg1
, void *arg2
)
1912 self
= self
->beneath
;
1913 return self
->to_find_memory_regions (self
, arg1
, arg2
);
1917 debug_find_memory_regions (struct target_ops
*self
, find_memory_region_ftype arg1
, void *arg2
)
1920 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_find_memory_regions (...)\n", debug_target
.to_shortname
);
1921 result
= debug_target
.to_find_memory_regions (&debug_target
, arg1
, arg2
);
1922 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_find_memory_regions (", debug_target
.to_shortname
);
1923 target_debug_print_struct_target_ops_p (&debug_target
);
1924 fputs_unfiltered (", ", gdb_stdlog
);
1925 target_debug_print_find_memory_region_ftype (arg1
);
1926 fputs_unfiltered (", ", gdb_stdlog
);
1927 target_debug_print_void_p (arg2
);
1928 fputs_unfiltered (") = ", gdb_stdlog
);
1929 target_debug_print_int (result
);
1930 fputs_unfiltered ("\n", gdb_stdlog
);
1935 delegate_make_corefile_notes (struct target_ops
*self
, bfd
*arg1
, int *arg2
)
1937 self
= self
->beneath
;
1938 return self
->to_make_corefile_notes (self
, arg1
, arg2
);
1942 debug_make_corefile_notes (struct target_ops
*self
, bfd
*arg1
, int *arg2
)
1945 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_make_corefile_notes (...)\n", debug_target
.to_shortname
);
1946 result
= debug_target
.to_make_corefile_notes (&debug_target
, arg1
, arg2
);
1947 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_make_corefile_notes (", debug_target
.to_shortname
);
1948 target_debug_print_struct_target_ops_p (&debug_target
);
1949 fputs_unfiltered (", ", gdb_stdlog
);
1950 target_debug_print_bfd_p (arg1
);
1951 fputs_unfiltered (", ", gdb_stdlog
);
1952 target_debug_print_int_p (arg2
);
1953 fputs_unfiltered (") = ", gdb_stdlog
);
1954 target_debug_print_char_p (result
);
1955 fputs_unfiltered ("\n", gdb_stdlog
);
1960 delegate_get_bookmark (struct target_ops
*self
, const char *arg1
, int arg2
)
1962 self
= self
->beneath
;
1963 return self
->to_get_bookmark (self
, arg1
, arg2
);
1967 tdefault_get_bookmark (struct target_ops
*self
, const char *arg1
, int arg2
)
1973 debug_get_bookmark (struct target_ops
*self
, const char *arg1
, int arg2
)
1976 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_bookmark (...)\n", debug_target
.to_shortname
);
1977 result
= debug_target
.to_get_bookmark (&debug_target
, arg1
, arg2
);
1978 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_bookmark (", debug_target
.to_shortname
);
1979 target_debug_print_struct_target_ops_p (&debug_target
);
1980 fputs_unfiltered (", ", gdb_stdlog
);
1981 target_debug_print_const_char_p (arg1
);
1982 fputs_unfiltered (", ", gdb_stdlog
);
1983 target_debug_print_int (arg2
);
1984 fputs_unfiltered (") = ", gdb_stdlog
);
1985 target_debug_print_gdb_byte_p (result
);
1986 fputs_unfiltered ("\n", gdb_stdlog
);
1991 delegate_goto_bookmark (struct target_ops
*self
, const gdb_byte
*arg1
, int arg2
)
1993 self
= self
->beneath
;
1994 self
->to_goto_bookmark (self
, arg1
, arg2
);
1998 tdefault_goto_bookmark (struct target_ops
*self
, const gdb_byte
*arg1
, int arg2
)
2004 debug_goto_bookmark (struct target_ops
*self
, const gdb_byte
*arg1
, int arg2
)
2006 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_goto_bookmark (...)\n", debug_target
.to_shortname
);
2007 debug_target
.to_goto_bookmark (&debug_target
, arg1
, arg2
);
2008 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_goto_bookmark (", debug_target
.to_shortname
);
2009 target_debug_print_struct_target_ops_p (&debug_target
);
2010 fputs_unfiltered (", ", gdb_stdlog
);
2011 target_debug_print_const_gdb_byte_p (arg1
);
2012 fputs_unfiltered (", ", gdb_stdlog
);
2013 target_debug_print_int (arg2
);
2014 fputs_unfiltered (")\n", gdb_stdlog
);
2018 delegate_get_thread_local_address (struct target_ops
*self
, ptid_t arg1
, CORE_ADDR arg2
, CORE_ADDR arg3
)
2020 self
= self
->beneath
;
2021 return self
->to_get_thread_local_address (self
, arg1
, arg2
, arg3
);
2025 tdefault_get_thread_local_address (struct target_ops
*self
, ptid_t arg1
, CORE_ADDR arg2
, CORE_ADDR arg3
)
2027 generic_tls_error ();
2031 debug_get_thread_local_address (struct target_ops
*self
, ptid_t arg1
, CORE_ADDR arg2
, CORE_ADDR arg3
)
2034 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_thread_local_address (...)\n", debug_target
.to_shortname
);
2035 result
= debug_target
.to_get_thread_local_address (&debug_target
, arg1
, arg2
, arg3
);
2036 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_thread_local_address (", debug_target
.to_shortname
);
2037 target_debug_print_struct_target_ops_p (&debug_target
);
2038 fputs_unfiltered (", ", gdb_stdlog
);
2039 target_debug_print_ptid_t (arg1
);
2040 fputs_unfiltered (", ", gdb_stdlog
);
2041 target_debug_print_CORE_ADDR (arg2
);
2042 fputs_unfiltered (", ", gdb_stdlog
);
2043 target_debug_print_CORE_ADDR (arg3
);
2044 fputs_unfiltered (") = ", gdb_stdlog
);
2045 target_debug_print_CORE_ADDR (result
);
2046 fputs_unfiltered ("\n", gdb_stdlog
);
2050 static enum target_xfer_status
2051 delegate_xfer_partial (struct target_ops
*self
, enum target_object arg1
, const char *arg2
, gdb_byte
*arg3
, const gdb_byte
*arg4
, ULONGEST arg5
, ULONGEST arg6
, ULONGEST
*arg7
)
2053 self
= self
->beneath
;
2054 return self
->to_xfer_partial (self
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
);
2057 static enum target_xfer_status
2058 tdefault_xfer_partial (struct target_ops
*self
, enum target_object arg1
, const char *arg2
, gdb_byte
*arg3
, const gdb_byte
*arg4
, ULONGEST arg5
, ULONGEST arg6
, ULONGEST
*arg7
)
2060 return TARGET_XFER_E_IO
;
2063 static enum target_xfer_status
2064 debug_xfer_partial (struct target_ops
*self
, enum target_object arg1
, const char *arg2
, gdb_byte
*arg3
, const gdb_byte
*arg4
, ULONGEST arg5
, ULONGEST arg6
, ULONGEST
*arg7
)
2066 enum target_xfer_status result
;
2067 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_xfer_partial (...)\n", debug_target
.to_shortname
);
2068 result
= debug_target
.to_xfer_partial (&debug_target
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
);
2069 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_xfer_partial (", debug_target
.to_shortname
);
2070 target_debug_print_struct_target_ops_p (&debug_target
);
2071 fputs_unfiltered (", ", gdb_stdlog
);
2072 target_debug_print_enum_target_object (arg1
);
2073 fputs_unfiltered (", ", gdb_stdlog
);
2074 target_debug_print_const_char_p (arg2
);
2075 fputs_unfiltered (", ", gdb_stdlog
);
2076 target_debug_print_gdb_byte_p (arg3
);
2077 fputs_unfiltered (", ", gdb_stdlog
);
2078 target_debug_print_const_gdb_byte_p (arg4
);
2079 fputs_unfiltered (", ", gdb_stdlog
);
2080 target_debug_print_ULONGEST (arg5
);
2081 fputs_unfiltered (", ", gdb_stdlog
);
2082 target_debug_print_ULONGEST (arg6
);
2083 fputs_unfiltered (", ", gdb_stdlog
);
2084 target_debug_print_ULONGEST_p (arg7
);
2085 fputs_unfiltered (") = ", gdb_stdlog
);
2086 target_debug_print_enum_target_xfer_status (result
);
2087 fputs_unfiltered ("\n", gdb_stdlog
);
2092 delegate_get_memory_xfer_limit (struct target_ops
*self
)
2094 self
= self
->beneath
;
2095 return self
->to_get_memory_xfer_limit (self
);
2099 tdefault_get_memory_xfer_limit (struct target_ops
*self
)
2101 return ULONGEST_MAX
;
2105 debug_get_memory_xfer_limit (struct target_ops
*self
)
2108 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_memory_xfer_limit (...)\n", debug_target
.to_shortname
);
2109 result
= debug_target
.to_get_memory_xfer_limit (&debug_target
);
2110 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_memory_xfer_limit (", debug_target
.to_shortname
);
2111 target_debug_print_struct_target_ops_p (&debug_target
);
2112 fputs_unfiltered (") = ", gdb_stdlog
);
2113 target_debug_print_ULONGEST (result
);
2114 fputs_unfiltered ("\n", gdb_stdlog
);
2118 static VEC(mem_region_s
) *
2119 delegate_memory_map (struct target_ops
*self
)
2121 self
= self
->beneath
;
2122 return self
->to_memory_map (self
);
2125 static VEC(mem_region_s
) *
2126 tdefault_memory_map (struct target_ops
*self
)
2131 static VEC(mem_region_s
) *
2132 debug_memory_map (struct target_ops
*self
)
2134 VEC(mem_region_s
) * result
;
2135 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_memory_map (...)\n", debug_target
.to_shortname
);
2136 result
= debug_target
.to_memory_map (&debug_target
);
2137 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_memory_map (", debug_target
.to_shortname
);
2138 target_debug_print_struct_target_ops_p (&debug_target
);
2139 fputs_unfiltered (") = ", gdb_stdlog
);
2140 target_debug_print_VEC_mem_region_s__p (result
);
2141 fputs_unfiltered ("\n", gdb_stdlog
);
2146 delegate_flash_erase (struct target_ops
*self
, ULONGEST arg1
, LONGEST arg2
)
2148 self
= self
->beneath
;
2149 self
->to_flash_erase (self
, arg1
, arg2
);
2153 tdefault_flash_erase (struct target_ops
*self
, ULONGEST arg1
, LONGEST arg2
)
2159 debug_flash_erase (struct target_ops
*self
, ULONGEST arg1
, LONGEST arg2
)
2161 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_flash_erase (...)\n", debug_target
.to_shortname
);
2162 debug_target
.to_flash_erase (&debug_target
, arg1
, arg2
);
2163 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_flash_erase (", debug_target
.to_shortname
);
2164 target_debug_print_struct_target_ops_p (&debug_target
);
2165 fputs_unfiltered (", ", gdb_stdlog
);
2166 target_debug_print_ULONGEST (arg1
);
2167 fputs_unfiltered (", ", gdb_stdlog
);
2168 target_debug_print_LONGEST (arg2
);
2169 fputs_unfiltered (")\n", gdb_stdlog
);
2173 delegate_flash_done (struct target_ops
*self
)
2175 self
= self
->beneath
;
2176 self
->to_flash_done (self
);
2180 tdefault_flash_done (struct target_ops
*self
)
2186 debug_flash_done (struct target_ops
*self
)
2188 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_flash_done (...)\n", debug_target
.to_shortname
);
2189 debug_target
.to_flash_done (&debug_target
);
2190 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_flash_done (", debug_target
.to_shortname
);
2191 target_debug_print_struct_target_ops_p (&debug_target
);
2192 fputs_unfiltered (")\n", gdb_stdlog
);
2195 static const struct target_desc
*
2196 delegate_read_description (struct target_ops
*self
)
2198 self
= self
->beneath
;
2199 return self
->to_read_description (self
);
2202 static const struct target_desc
*
2203 tdefault_read_description (struct target_ops
*self
)
2208 static const struct target_desc
*
2209 debug_read_description (struct target_ops
*self
)
2211 const struct target_desc
* result
;
2212 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_read_description (...)\n", debug_target
.to_shortname
);
2213 result
= debug_target
.to_read_description (&debug_target
);
2214 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_read_description (", debug_target
.to_shortname
);
2215 target_debug_print_struct_target_ops_p (&debug_target
);
2216 fputs_unfiltered (") = ", gdb_stdlog
);
2217 target_debug_print_const_struct_target_desc_p (result
);
2218 fputs_unfiltered ("\n", gdb_stdlog
);
2223 delegate_get_ada_task_ptid (struct target_ops
*self
, long arg1
, long arg2
)
2225 self
= self
->beneath
;
2226 return self
->to_get_ada_task_ptid (self
, arg1
, arg2
);
2230 debug_get_ada_task_ptid (struct target_ops
*self
, long arg1
, long arg2
)
2233 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_ada_task_ptid (...)\n", debug_target
.to_shortname
);
2234 result
= debug_target
.to_get_ada_task_ptid (&debug_target
, arg1
, arg2
);
2235 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_ada_task_ptid (", debug_target
.to_shortname
);
2236 target_debug_print_struct_target_ops_p (&debug_target
);
2237 fputs_unfiltered (", ", gdb_stdlog
);
2238 target_debug_print_long (arg1
);
2239 fputs_unfiltered (", ", gdb_stdlog
);
2240 target_debug_print_long (arg2
);
2241 fputs_unfiltered (") = ", gdb_stdlog
);
2242 target_debug_print_ptid_t (result
);
2243 fputs_unfiltered ("\n", gdb_stdlog
);
2248 delegate_auxv_parse (struct target_ops
*self
, gdb_byte
**arg1
, gdb_byte
*arg2
, CORE_ADDR
*arg3
, CORE_ADDR
*arg4
)
2250 self
= self
->beneath
;
2251 return self
->to_auxv_parse (self
, arg1
, arg2
, arg3
, arg4
);
2255 debug_auxv_parse (struct target_ops
*self
, gdb_byte
**arg1
, gdb_byte
*arg2
, CORE_ADDR
*arg3
, CORE_ADDR
*arg4
)
2258 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_auxv_parse (...)\n", debug_target
.to_shortname
);
2259 result
= debug_target
.to_auxv_parse (&debug_target
, arg1
, arg2
, arg3
, arg4
);
2260 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_auxv_parse (", debug_target
.to_shortname
);
2261 target_debug_print_struct_target_ops_p (&debug_target
);
2262 fputs_unfiltered (", ", gdb_stdlog
);
2263 target_debug_print_gdb_byte_pp (arg1
);
2264 fputs_unfiltered (", ", gdb_stdlog
);
2265 target_debug_print_gdb_byte_p (arg2
);
2266 fputs_unfiltered (", ", gdb_stdlog
);
2267 target_debug_print_CORE_ADDR_p (arg3
);
2268 fputs_unfiltered (", ", gdb_stdlog
);
2269 target_debug_print_CORE_ADDR_p (arg4
);
2270 fputs_unfiltered (") = ", gdb_stdlog
);
2271 target_debug_print_int (result
);
2272 fputs_unfiltered ("\n", gdb_stdlog
);
2277 delegate_search_memory (struct target_ops
*self
, CORE_ADDR arg1
, ULONGEST arg2
, const gdb_byte
*arg3
, ULONGEST arg4
, CORE_ADDR
*arg5
)
2279 self
= self
->beneath
;
2280 return self
->to_search_memory (self
, arg1
, arg2
, arg3
, arg4
, arg5
);
2284 debug_search_memory (struct target_ops
*self
, CORE_ADDR arg1
, ULONGEST arg2
, const gdb_byte
*arg3
, ULONGEST arg4
, CORE_ADDR
*arg5
)
2287 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_search_memory (...)\n", debug_target
.to_shortname
);
2288 result
= debug_target
.to_search_memory (&debug_target
, arg1
, arg2
, arg3
, arg4
, arg5
);
2289 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_search_memory (", debug_target
.to_shortname
);
2290 target_debug_print_struct_target_ops_p (&debug_target
);
2291 fputs_unfiltered (", ", gdb_stdlog
);
2292 target_debug_print_CORE_ADDR (arg1
);
2293 fputs_unfiltered (", ", gdb_stdlog
);
2294 target_debug_print_ULONGEST (arg2
);
2295 fputs_unfiltered (", ", gdb_stdlog
);
2296 target_debug_print_const_gdb_byte_p (arg3
);
2297 fputs_unfiltered (", ", gdb_stdlog
);
2298 target_debug_print_ULONGEST (arg4
);
2299 fputs_unfiltered (", ", gdb_stdlog
);
2300 target_debug_print_CORE_ADDR_p (arg5
);
2301 fputs_unfiltered (") = ", gdb_stdlog
);
2302 target_debug_print_int (result
);
2303 fputs_unfiltered ("\n", gdb_stdlog
);
2308 delegate_can_execute_reverse (struct target_ops
*self
)
2310 self
= self
->beneath
;
2311 return self
->to_can_execute_reverse (self
);
2315 tdefault_can_execute_reverse (struct target_ops
*self
)
2321 debug_can_execute_reverse (struct target_ops
*self
)
2324 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_execute_reverse (...)\n", debug_target
.to_shortname
);
2325 result
= debug_target
.to_can_execute_reverse (&debug_target
);
2326 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_execute_reverse (", debug_target
.to_shortname
);
2327 target_debug_print_struct_target_ops_p (&debug_target
);
2328 fputs_unfiltered (") = ", gdb_stdlog
);
2329 target_debug_print_int (result
);
2330 fputs_unfiltered ("\n", gdb_stdlog
);
2334 static enum exec_direction_kind
2335 delegate_execution_direction (struct target_ops
*self
)
2337 self
= self
->beneath
;
2338 return self
->to_execution_direction (self
);
2341 static enum exec_direction_kind
2342 debug_execution_direction (struct target_ops
*self
)
2344 enum exec_direction_kind result
;
2345 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_execution_direction (...)\n", debug_target
.to_shortname
);
2346 result
= debug_target
.to_execution_direction (&debug_target
);
2347 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_execution_direction (", debug_target
.to_shortname
);
2348 target_debug_print_struct_target_ops_p (&debug_target
);
2349 fputs_unfiltered (") = ", gdb_stdlog
);
2350 target_debug_print_enum_exec_direction_kind (result
);
2351 fputs_unfiltered ("\n", gdb_stdlog
);
2356 delegate_supports_multi_process (struct target_ops
*self
)
2358 self
= self
->beneath
;
2359 return self
->to_supports_multi_process (self
);
2363 tdefault_supports_multi_process (struct target_ops
*self
)
2369 debug_supports_multi_process (struct target_ops
*self
)
2372 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_supports_multi_process (...)\n", debug_target
.to_shortname
);
2373 result
= debug_target
.to_supports_multi_process (&debug_target
);
2374 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_supports_multi_process (", debug_target
.to_shortname
);
2375 target_debug_print_struct_target_ops_p (&debug_target
);
2376 fputs_unfiltered (") = ", gdb_stdlog
);
2377 target_debug_print_int (result
);
2378 fputs_unfiltered ("\n", gdb_stdlog
);
2383 delegate_supports_enable_disable_tracepoint (struct target_ops
*self
)
2385 self
= self
->beneath
;
2386 return self
->to_supports_enable_disable_tracepoint (self
);
2390 tdefault_supports_enable_disable_tracepoint (struct target_ops
*self
)
2396 debug_supports_enable_disable_tracepoint (struct target_ops
*self
)
2399 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_supports_enable_disable_tracepoint (...)\n", debug_target
.to_shortname
);
2400 result
= debug_target
.to_supports_enable_disable_tracepoint (&debug_target
);
2401 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_supports_enable_disable_tracepoint (", debug_target
.to_shortname
);
2402 target_debug_print_struct_target_ops_p (&debug_target
);
2403 fputs_unfiltered (") = ", gdb_stdlog
);
2404 target_debug_print_int (result
);
2405 fputs_unfiltered ("\n", gdb_stdlog
);
2410 delegate_supports_string_tracing (struct target_ops
*self
)
2412 self
= self
->beneath
;
2413 return self
->to_supports_string_tracing (self
);
2417 tdefault_supports_string_tracing (struct target_ops
*self
)
2423 debug_supports_string_tracing (struct target_ops
*self
)
2426 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_supports_string_tracing (...)\n", debug_target
.to_shortname
);
2427 result
= debug_target
.to_supports_string_tracing (&debug_target
);
2428 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_supports_string_tracing (", debug_target
.to_shortname
);
2429 target_debug_print_struct_target_ops_p (&debug_target
);
2430 fputs_unfiltered (") = ", gdb_stdlog
);
2431 target_debug_print_int (result
);
2432 fputs_unfiltered ("\n", gdb_stdlog
);
2437 delegate_supports_evaluation_of_breakpoint_conditions (struct target_ops
*self
)
2439 self
= self
->beneath
;
2440 return self
->to_supports_evaluation_of_breakpoint_conditions (self
);
2444 tdefault_supports_evaluation_of_breakpoint_conditions (struct target_ops
*self
)
2450 debug_supports_evaluation_of_breakpoint_conditions (struct target_ops
*self
)
2453 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_supports_evaluation_of_breakpoint_conditions (...)\n", debug_target
.to_shortname
);
2454 result
= debug_target
.to_supports_evaluation_of_breakpoint_conditions (&debug_target
);
2455 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_supports_evaluation_of_breakpoint_conditions (", debug_target
.to_shortname
);
2456 target_debug_print_struct_target_ops_p (&debug_target
);
2457 fputs_unfiltered (") = ", gdb_stdlog
);
2458 target_debug_print_int (result
);
2459 fputs_unfiltered ("\n", gdb_stdlog
);
2464 delegate_can_run_breakpoint_commands (struct target_ops
*self
)
2466 self
= self
->beneath
;
2467 return self
->to_can_run_breakpoint_commands (self
);
2471 tdefault_can_run_breakpoint_commands (struct target_ops
*self
)
2477 debug_can_run_breakpoint_commands (struct target_ops
*self
)
2480 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_run_breakpoint_commands (...)\n", debug_target
.to_shortname
);
2481 result
= debug_target
.to_can_run_breakpoint_commands (&debug_target
);
2482 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_run_breakpoint_commands (", debug_target
.to_shortname
);
2483 target_debug_print_struct_target_ops_p (&debug_target
);
2484 fputs_unfiltered (") = ", gdb_stdlog
);
2485 target_debug_print_int (result
);
2486 fputs_unfiltered ("\n", gdb_stdlog
);
2490 static struct gdbarch
*
2491 delegate_thread_architecture (struct target_ops
*self
, ptid_t arg1
)
2493 self
= self
->beneath
;
2494 return self
->to_thread_architecture (self
, arg1
);
2497 static struct gdbarch
*
2498 debug_thread_architecture (struct target_ops
*self
, ptid_t arg1
)
2500 struct gdbarch
* result
;
2501 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_thread_architecture (...)\n", debug_target
.to_shortname
);
2502 result
= debug_target
.to_thread_architecture (&debug_target
, arg1
);
2503 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_thread_architecture (", debug_target
.to_shortname
);
2504 target_debug_print_struct_target_ops_p (&debug_target
);
2505 fputs_unfiltered (", ", gdb_stdlog
);
2506 target_debug_print_ptid_t (arg1
);
2507 fputs_unfiltered (") = ", gdb_stdlog
);
2508 target_debug_print_struct_gdbarch_p (result
);
2509 fputs_unfiltered ("\n", gdb_stdlog
);
2513 static struct address_space
*
2514 delegate_thread_address_space (struct target_ops
*self
, ptid_t arg1
)
2516 self
= self
->beneath
;
2517 return self
->to_thread_address_space (self
, arg1
);
2520 static struct address_space
*
2521 debug_thread_address_space (struct target_ops
*self
, ptid_t arg1
)
2523 struct address_space
* result
;
2524 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_thread_address_space (...)\n", debug_target
.to_shortname
);
2525 result
= debug_target
.to_thread_address_space (&debug_target
, arg1
);
2526 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_thread_address_space (", debug_target
.to_shortname
);
2527 target_debug_print_struct_target_ops_p (&debug_target
);
2528 fputs_unfiltered (", ", gdb_stdlog
);
2529 target_debug_print_ptid_t (arg1
);
2530 fputs_unfiltered (") = ", gdb_stdlog
);
2531 target_debug_print_struct_address_space_p (result
);
2532 fputs_unfiltered ("\n", gdb_stdlog
);
2537 delegate_filesystem_is_local (struct target_ops
*self
)
2539 self
= self
->beneath
;
2540 return self
->to_filesystem_is_local (self
);
2544 tdefault_filesystem_is_local (struct target_ops
*self
)
2550 debug_filesystem_is_local (struct target_ops
*self
)
2553 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_filesystem_is_local (...)\n", debug_target
.to_shortname
);
2554 result
= debug_target
.to_filesystem_is_local (&debug_target
);
2555 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_filesystem_is_local (", debug_target
.to_shortname
);
2556 target_debug_print_struct_target_ops_p (&debug_target
);
2557 fputs_unfiltered (") = ", gdb_stdlog
);
2558 target_debug_print_int (result
);
2559 fputs_unfiltered ("\n", gdb_stdlog
);
2564 delegate_trace_init (struct target_ops
*self
)
2566 self
= self
->beneath
;
2567 self
->to_trace_init (self
);
2571 tdefault_trace_init (struct target_ops
*self
)
2577 debug_trace_init (struct target_ops
*self
)
2579 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_trace_init (...)\n", debug_target
.to_shortname
);
2580 debug_target
.to_trace_init (&debug_target
);
2581 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_trace_init (", debug_target
.to_shortname
);
2582 target_debug_print_struct_target_ops_p (&debug_target
);
2583 fputs_unfiltered (")\n", gdb_stdlog
);
2587 delegate_download_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2589 self
= self
->beneath
;
2590 self
->to_download_tracepoint (self
, arg1
);
2594 tdefault_download_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2600 debug_download_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2602 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_download_tracepoint (...)\n", debug_target
.to_shortname
);
2603 debug_target
.to_download_tracepoint (&debug_target
, arg1
);
2604 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_download_tracepoint (", debug_target
.to_shortname
);
2605 target_debug_print_struct_target_ops_p (&debug_target
);
2606 fputs_unfiltered (", ", gdb_stdlog
);
2607 target_debug_print_struct_bp_location_p (arg1
);
2608 fputs_unfiltered (")\n", gdb_stdlog
);
2612 delegate_can_download_tracepoint (struct target_ops
*self
)
2614 self
= self
->beneath
;
2615 return self
->to_can_download_tracepoint (self
);
2619 tdefault_can_download_tracepoint (struct target_ops
*self
)
2625 debug_can_download_tracepoint (struct target_ops
*self
)
2628 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_download_tracepoint (...)\n", debug_target
.to_shortname
);
2629 result
= debug_target
.to_can_download_tracepoint (&debug_target
);
2630 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_download_tracepoint (", debug_target
.to_shortname
);
2631 target_debug_print_struct_target_ops_p (&debug_target
);
2632 fputs_unfiltered (") = ", gdb_stdlog
);
2633 target_debug_print_int (result
);
2634 fputs_unfiltered ("\n", gdb_stdlog
);
2639 delegate_download_trace_state_variable (struct target_ops
*self
, struct trace_state_variable
*arg1
)
2641 self
= self
->beneath
;
2642 self
->to_download_trace_state_variable (self
, arg1
);
2646 tdefault_download_trace_state_variable (struct target_ops
*self
, struct trace_state_variable
*arg1
)
2652 debug_download_trace_state_variable (struct target_ops
*self
, struct trace_state_variable
*arg1
)
2654 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_download_trace_state_variable (...)\n", debug_target
.to_shortname
);
2655 debug_target
.to_download_trace_state_variable (&debug_target
, arg1
);
2656 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_download_trace_state_variable (", debug_target
.to_shortname
);
2657 target_debug_print_struct_target_ops_p (&debug_target
);
2658 fputs_unfiltered (", ", gdb_stdlog
);
2659 target_debug_print_struct_trace_state_variable_p (arg1
);
2660 fputs_unfiltered (")\n", gdb_stdlog
);
2664 delegate_enable_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2666 self
= self
->beneath
;
2667 self
->to_enable_tracepoint (self
, arg1
);
2671 tdefault_enable_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2677 debug_enable_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2679 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_enable_tracepoint (...)\n", debug_target
.to_shortname
);
2680 debug_target
.to_enable_tracepoint (&debug_target
, arg1
);
2681 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_enable_tracepoint (", debug_target
.to_shortname
);
2682 target_debug_print_struct_target_ops_p (&debug_target
);
2683 fputs_unfiltered (", ", gdb_stdlog
);
2684 target_debug_print_struct_bp_location_p (arg1
);
2685 fputs_unfiltered (")\n", gdb_stdlog
);
2689 delegate_disable_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2691 self
= self
->beneath
;
2692 self
->to_disable_tracepoint (self
, arg1
);
2696 tdefault_disable_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2702 debug_disable_tracepoint (struct target_ops
*self
, struct bp_location
*arg1
)
2704 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_disable_tracepoint (...)\n", debug_target
.to_shortname
);
2705 debug_target
.to_disable_tracepoint (&debug_target
, arg1
);
2706 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_disable_tracepoint (", debug_target
.to_shortname
);
2707 target_debug_print_struct_target_ops_p (&debug_target
);
2708 fputs_unfiltered (", ", gdb_stdlog
);
2709 target_debug_print_struct_bp_location_p (arg1
);
2710 fputs_unfiltered (")\n", gdb_stdlog
);
2714 delegate_trace_set_readonly_regions (struct target_ops
*self
)
2716 self
= self
->beneath
;
2717 self
->to_trace_set_readonly_regions (self
);
2721 tdefault_trace_set_readonly_regions (struct target_ops
*self
)
2727 debug_trace_set_readonly_regions (struct target_ops
*self
)
2729 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_trace_set_readonly_regions (...)\n", debug_target
.to_shortname
);
2730 debug_target
.to_trace_set_readonly_regions (&debug_target
);
2731 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_trace_set_readonly_regions (", debug_target
.to_shortname
);
2732 target_debug_print_struct_target_ops_p (&debug_target
);
2733 fputs_unfiltered (")\n", gdb_stdlog
);
2737 delegate_trace_start (struct target_ops
*self
)
2739 self
= self
->beneath
;
2740 self
->to_trace_start (self
);
2744 tdefault_trace_start (struct target_ops
*self
)
2750 debug_trace_start (struct target_ops
*self
)
2752 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_trace_start (...)\n", debug_target
.to_shortname
);
2753 debug_target
.to_trace_start (&debug_target
);
2754 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_trace_start (", debug_target
.to_shortname
);
2755 target_debug_print_struct_target_ops_p (&debug_target
);
2756 fputs_unfiltered (")\n", gdb_stdlog
);
2760 delegate_get_trace_status (struct target_ops
*self
, struct trace_status
*arg1
)
2762 self
= self
->beneath
;
2763 return self
->to_get_trace_status (self
, arg1
);
2767 tdefault_get_trace_status (struct target_ops
*self
, struct trace_status
*arg1
)
2773 debug_get_trace_status (struct target_ops
*self
, struct trace_status
*arg1
)
2776 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_trace_status (...)\n", debug_target
.to_shortname
);
2777 result
= debug_target
.to_get_trace_status (&debug_target
, arg1
);
2778 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_trace_status (", debug_target
.to_shortname
);
2779 target_debug_print_struct_target_ops_p (&debug_target
);
2780 fputs_unfiltered (", ", gdb_stdlog
);
2781 target_debug_print_struct_trace_status_p (arg1
);
2782 fputs_unfiltered (") = ", gdb_stdlog
);
2783 target_debug_print_int (result
);
2784 fputs_unfiltered ("\n", gdb_stdlog
);
2789 delegate_get_tracepoint_status (struct target_ops
*self
, struct breakpoint
*arg1
, struct uploaded_tp
*arg2
)
2791 self
= self
->beneath
;
2792 self
->to_get_tracepoint_status (self
, arg1
, arg2
);
2796 tdefault_get_tracepoint_status (struct target_ops
*self
, struct breakpoint
*arg1
, struct uploaded_tp
*arg2
)
2802 debug_get_tracepoint_status (struct target_ops
*self
, struct breakpoint
*arg1
, struct uploaded_tp
*arg2
)
2804 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_tracepoint_status (...)\n", debug_target
.to_shortname
);
2805 debug_target
.to_get_tracepoint_status (&debug_target
, arg1
, arg2
);
2806 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_tracepoint_status (", debug_target
.to_shortname
);
2807 target_debug_print_struct_target_ops_p (&debug_target
);
2808 fputs_unfiltered (", ", gdb_stdlog
);
2809 target_debug_print_struct_breakpoint_p (arg1
);
2810 fputs_unfiltered (", ", gdb_stdlog
);
2811 target_debug_print_struct_uploaded_tp_p (arg2
);
2812 fputs_unfiltered (")\n", gdb_stdlog
);
2816 delegate_trace_stop (struct target_ops
*self
)
2818 self
= self
->beneath
;
2819 self
->to_trace_stop (self
);
2823 tdefault_trace_stop (struct target_ops
*self
)
2829 debug_trace_stop (struct target_ops
*self
)
2831 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_trace_stop (...)\n", debug_target
.to_shortname
);
2832 debug_target
.to_trace_stop (&debug_target
);
2833 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_trace_stop (", debug_target
.to_shortname
);
2834 target_debug_print_struct_target_ops_p (&debug_target
);
2835 fputs_unfiltered (")\n", gdb_stdlog
);
2839 delegate_trace_find (struct target_ops
*self
, enum trace_find_type arg1
, int arg2
, CORE_ADDR arg3
, CORE_ADDR arg4
, int *arg5
)
2841 self
= self
->beneath
;
2842 return self
->to_trace_find (self
, arg1
, arg2
, arg3
, arg4
, arg5
);
2846 tdefault_trace_find (struct target_ops
*self
, enum trace_find_type arg1
, int arg2
, CORE_ADDR arg3
, CORE_ADDR arg4
, int *arg5
)
2852 debug_trace_find (struct target_ops
*self
, enum trace_find_type arg1
, int arg2
, CORE_ADDR arg3
, CORE_ADDR arg4
, int *arg5
)
2855 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_trace_find (...)\n", debug_target
.to_shortname
);
2856 result
= debug_target
.to_trace_find (&debug_target
, arg1
, arg2
, arg3
, arg4
, arg5
);
2857 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_trace_find (", debug_target
.to_shortname
);
2858 target_debug_print_struct_target_ops_p (&debug_target
);
2859 fputs_unfiltered (", ", gdb_stdlog
);
2860 target_debug_print_enum_trace_find_type (arg1
);
2861 fputs_unfiltered (", ", gdb_stdlog
);
2862 target_debug_print_int (arg2
);
2863 fputs_unfiltered (", ", gdb_stdlog
);
2864 target_debug_print_CORE_ADDR (arg3
);
2865 fputs_unfiltered (", ", gdb_stdlog
);
2866 target_debug_print_CORE_ADDR (arg4
);
2867 fputs_unfiltered (", ", gdb_stdlog
);
2868 target_debug_print_int_p (arg5
);
2869 fputs_unfiltered (") = ", gdb_stdlog
);
2870 target_debug_print_int (result
);
2871 fputs_unfiltered ("\n", gdb_stdlog
);
2876 delegate_get_trace_state_variable_value (struct target_ops
*self
, int arg1
, LONGEST
*arg2
)
2878 self
= self
->beneath
;
2879 return self
->to_get_trace_state_variable_value (self
, arg1
, arg2
);
2883 tdefault_get_trace_state_variable_value (struct target_ops
*self
, int arg1
, LONGEST
*arg2
)
2889 debug_get_trace_state_variable_value (struct target_ops
*self
, int arg1
, LONGEST
*arg2
)
2892 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_trace_state_variable_value (...)\n", debug_target
.to_shortname
);
2893 result
= debug_target
.to_get_trace_state_variable_value (&debug_target
, arg1
, arg2
);
2894 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_trace_state_variable_value (", debug_target
.to_shortname
);
2895 target_debug_print_struct_target_ops_p (&debug_target
);
2896 fputs_unfiltered (", ", gdb_stdlog
);
2897 target_debug_print_int (arg1
);
2898 fputs_unfiltered (", ", gdb_stdlog
);
2899 target_debug_print_LONGEST_p (arg2
);
2900 fputs_unfiltered (") = ", gdb_stdlog
);
2901 target_debug_print_int (result
);
2902 fputs_unfiltered ("\n", gdb_stdlog
);
2907 delegate_save_trace_data (struct target_ops
*self
, const char *arg1
)
2909 self
= self
->beneath
;
2910 return self
->to_save_trace_data (self
, arg1
);
2914 tdefault_save_trace_data (struct target_ops
*self
, const char *arg1
)
2920 debug_save_trace_data (struct target_ops
*self
, const char *arg1
)
2923 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_save_trace_data (...)\n", debug_target
.to_shortname
);
2924 result
= debug_target
.to_save_trace_data (&debug_target
, arg1
);
2925 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_save_trace_data (", debug_target
.to_shortname
);
2926 target_debug_print_struct_target_ops_p (&debug_target
);
2927 fputs_unfiltered (", ", gdb_stdlog
);
2928 target_debug_print_const_char_p (arg1
);
2929 fputs_unfiltered (") = ", gdb_stdlog
);
2930 target_debug_print_int (result
);
2931 fputs_unfiltered ("\n", gdb_stdlog
);
2936 delegate_upload_tracepoints (struct target_ops
*self
, struct uploaded_tp
**arg1
)
2938 self
= self
->beneath
;
2939 return self
->to_upload_tracepoints (self
, arg1
);
2943 tdefault_upload_tracepoints (struct target_ops
*self
, struct uploaded_tp
**arg1
)
2949 debug_upload_tracepoints (struct target_ops
*self
, struct uploaded_tp
**arg1
)
2952 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_upload_tracepoints (...)\n", debug_target
.to_shortname
);
2953 result
= debug_target
.to_upload_tracepoints (&debug_target
, arg1
);
2954 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_upload_tracepoints (", debug_target
.to_shortname
);
2955 target_debug_print_struct_target_ops_p (&debug_target
);
2956 fputs_unfiltered (", ", gdb_stdlog
);
2957 target_debug_print_struct_uploaded_tp_pp (arg1
);
2958 fputs_unfiltered (") = ", gdb_stdlog
);
2959 target_debug_print_int (result
);
2960 fputs_unfiltered ("\n", gdb_stdlog
);
2965 delegate_upload_trace_state_variables (struct target_ops
*self
, struct uploaded_tsv
**arg1
)
2967 self
= self
->beneath
;
2968 return self
->to_upload_trace_state_variables (self
, arg1
);
2972 tdefault_upload_trace_state_variables (struct target_ops
*self
, struct uploaded_tsv
**arg1
)
2978 debug_upload_trace_state_variables (struct target_ops
*self
, struct uploaded_tsv
**arg1
)
2981 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_upload_trace_state_variables (...)\n", debug_target
.to_shortname
);
2982 result
= debug_target
.to_upload_trace_state_variables (&debug_target
, arg1
);
2983 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_upload_trace_state_variables (", debug_target
.to_shortname
);
2984 target_debug_print_struct_target_ops_p (&debug_target
);
2985 fputs_unfiltered (", ", gdb_stdlog
);
2986 target_debug_print_struct_uploaded_tsv_pp (arg1
);
2987 fputs_unfiltered (") = ", gdb_stdlog
);
2988 target_debug_print_int (result
);
2989 fputs_unfiltered ("\n", gdb_stdlog
);
2994 delegate_get_raw_trace_data (struct target_ops
*self
, gdb_byte
*arg1
, ULONGEST arg2
, LONGEST arg3
)
2996 self
= self
->beneath
;
2997 return self
->to_get_raw_trace_data (self
, arg1
, arg2
, arg3
);
3001 tdefault_get_raw_trace_data (struct target_ops
*self
, gdb_byte
*arg1
, ULONGEST arg2
, LONGEST arg3
)
3007 debug_get_raw_trace_data (struct target_ops
*self
, gdb_byte
*arg1
, ULONGEST arg2
, LONGEST arg3
)
3010 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_raw_trace_data (...)\n", debug_target
.to_shortname
);
3011 result
= debug_target
.to_get_raw_trace_data (&debug_target
, arg1
, arg2
, arg3
);
3012 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_raw_trace_data (", debug_target
.to_shortname
);
3013 target_debug_print_struct_target_ops_p (&debug_target
);
3014 fputs_unfiltered (", ", gdb_stdlog
);
3015 target_debug_print_gdb_byte_p (arg1
);
3016 fputs_unfiltered (", ", gdb_stdlog
);
3017 target_debug_print_ULONGEST (arg2
);
3018 fputs_unfiltered (", ", gdb_stdlog
);
3019 target_debug_print_LONGEST (arg3
);
3020 fputs_unfiltered (") = ", gdb_stdlog
);
3021 target_debug_print_LONGEST (result
);
3022 fputs_unfiltered ("\n", gdb_stdlog
);
3027 delegate_get_min_fast_tracepoint_insn_len (struct target_ops
*self
)
3029 self
= self
->beneath
;
3030 return self
->to_get_min_fast_tracepoint_insn_len (self
);
3034 tdefault_get_min_fast_tracepoint_insn_len (struct target_ops
*self
)
3040 debug_get_min_fast_tracepoint_insn_len (struct target_ops
*self
)
3043 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_min_fast_tracepoint_insn_len (...)\n", debug_target
.to_shortname
);
3044 result
= debug_target
.to_get_min_fast_tracepoint_insn_len (&debug_target
);
3045 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_min_fast_tracepoint_insn_len (", debug_target
.to_shortname
);
3046 target_debug_print_struct_target_ops_p (&debug_target
);
3047 fputs_unfiltered (") = ", gdb_stdlog
);
3048 target_debug_print_int (result
);
3049 fputs_unfiltered ("\n", gdb_stdlog
);
3054 delegate_set_disconnected_tracing (struct target_ops
*self
, int arg1
)
3056 self
= self
->beneath
;
3057 self
->to_set_disconnected_tracing (self
, arg1
);
3061 tdefault_set_disconnected_tracing (struct target_ops
*self
, int arg1
)
3066 debug_set_disconnected_tracing (struct target_ops
*self
, int arg1
)
3068 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_set_disconnected_tracing (...)\n", debug_target
.to_shortname
);
3069 debug_target
.to_set_disconnected_tracing (&debug_target
, arg1
);
3070 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_set_disconnected_tracing (", debug_target
.to_shortname
);
3071 target_debug_print_struct_target_ops_p (&debug_target
);
3072 fputs_unfiltered (", ", gdb_stdlog
);
3073 target_debug_print_int (arg1
);
3074 fputs_unfiltered (")\n", gdb_stdlog
);
3078 delegate_set_circular_trace_buffer (struct target_ops
*self
, int arg1
)
3080 self
= self
->beneath
;
3081 self
->to_set_circular_trace_buffer (self
, arg1
);
3085 tdefault_set_circular_trace_buffer (struct target_ops
*self
, int arg1
)
3090 debug_set_circular_trace_buffer (struct target_ops
*self
, int arg1
)
3092 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_set_circular_trace_buffer (...)\n", debug_target
.to_shortname
);
3093 debug_target
.to_set_circular_trace_buffer (&debug_target
, arg1
);
3094 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_set_circular_trace_buffer (", debug_target
.to_shortname
);
3095 target_debug_print_struct_target_ops_p (&debug_target
);
3096 fputs_unfiltered (", ", gdb_stdlog
);
3097 target_debug_print_int (arg1
);
3098 fputs_unfiltered (")\n", gdb_stdlog
);
3102 delegate_set_trace_buffer_size (struct target_ops
*self
, LONGEST arg1
)
3104 self
= self
->beneath
;
3105 self
->to_set_trace_buffer_size (self
, arg1
);
3109 tdefault_set_trace_buffer_size (struct target_ops
*self
, LONGEST arg1
)
3114 debug_set_trace_buffer_size (struct target_ops
*self
, LONGEST arg1
)
3116 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_set_trace_buffer_size (...)\n", debug_target
.to_shortname
);
3117 debug_target
.to_set_trace_buffer_size (&debug_target
, arg1
);
3118 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_set_trace_buffer_size (", debug_target
.to_shortname
);
3119 target_debug_print_struct_target_ops_p (&debug_target
);
3120 fputs_unfiltered (", ", gdb_stdlog
);
3121 target_debug_print_LONGEST (arg1
);
3122 fputs_unfiltered (")\n", gdb_stdlog
);
3126 delegate_set_trace_notes (struct target_ops
*self
, const char *arg1
, const char *arg2
, const char *arg3
)
3128 self
= self
->beneath
;
3129 return self
->to_set_trace_notes (self
, arg1
, arg2
, arg3
);
3133 tdefault_set_trace_notes (struct target_ops
*self
, const char *arg1
, const char *arg2
, const char *arg3
)
3139 debug_set_trace_notes (struct target_ops
*self
, const char *arg1
, const char *arg2
, const char *arg3
)
3142 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_set_trace_notes (...)\n", debug_target
.to_shortname
);
3143 result
= debug_target
.to_set_trace_notes (&debug_target
, arg1
, arg2
, arg3
);
3144 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_set_trace_notes (", debug_target
.to_shortname
);
3145 target_debug_print_struct_target_ops_p (&debug_target
);
3146 fputs_unfiltered (", ", gdb_stdlog
);
3147 target_debug_print_const_char_p (arg1
);
3148 fputs_unfiltered (", ", gdb_stdlog
);
3149 target_debug_print_const_char_p (arg2
);
3150 fputs_unfiltered (", ", gdb_stdlog
);
3151 target_debug_print_const_char_p (arg3
);
3152 fputs_unfiltered (") = ", gdb_stdlog
);
3153 target_debug_print_int (result
);
3154 fputs_unfiltered ("\n", gdb_stdlog
);
3159 delegate_core_of_thread (struct target_ops
*self
, ptid_t arg1
)
3161 self
= self
->beneath
;
3162 return self
->to_core_of_thread (self
, arg1
);
3166 tdefault_core_of_thread (struct target_ops
*self
, ptid_t arg1
)
3172 debug_core_of_thread (struct target_ops
*self
, ptid_t arg1
)
3175 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_core_of_thread (...)\n", debug_target
.to_shortname
);
3176 result
= debug_target
.to_core_of_thread (&debug_target
, arg1
);
3177 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_core_of_thread (", debug_target
.to_shortname
);
3178 target_debug_print_struct_target_ops_p (&debug_target
);
3179 fputs_unfiltered (", ", gdb_stdlog
);
3180 target_debug_print_ptid_t (arg1
);
3181 fputs_unfiltered (") = ", gdb_stdlog
);
3182 target_debug_print_int (result
);
3183 fputs_unfiltered ("\n", gdb_stdlog
);
3188 delegate_verify_memory (struct target_ops
*self
, const gdb_byte
*arg1
, CORE_ADDR arg2
, ULONGEST arg3
)
3190 self
= self
->beneath
;
3191 return self
->to_verify_memory (self
, arg1
, arg2
, arg3
);
3195 debug_verify_memory (struct target_ops
*self
, const gdb_byte
*arg1
, CORE_ADDR arg2
, ULONGEST arg3
)
3198 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_verify_memory (...)\n", debug_target
.to_shortname
);
3199 result
= debug_target
.to_verify_memory (&debug_target
, arg1
, arg2
, arg3
);
3200 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_verify_memory (", debug_target
.to_shortname
);
3201 target_debug_print_struct_target_ops_p (&debug_target
);
3202 fputs_unfiltered (", ", gdb_stdlog
);
3203 target_debug_print_const_gdb_byte_p (arg1
);
3204 fputs_unfiltered (", ", gdb_stdlog
);
3205 target_debug_print_CORE_ADDR (arg2
);
3206 fputs_unfiltered (", ", gdb_stdlog
);
3207 target_debug_print_ULONGEST (arg3
);
3208 fputs_unfiltered (") = ", gdb_stdlog
);
3209 target_debug_print_int (result
);
3210 fputs_unfiltered ("\n", gdb_stdlog
);
3215 delegate_get_tib_address (struct target_ops
*self
, ptid_t arg1
, CORE_ADDR
*arg2
)
3217 self
= self
->beneath
;
3218 return self
->to_get_tib_address (self
, arg1
, arg2
);
3222 tdefault_get_tib_address (struct target_ops
*self
, ptid_t arg1
, CORE_ADDR
*arg2
)
3228 debug_get_tib_address (struct target_ops
*self
, ptid_t arg1
, CORE_ADDR
*arg2
)
3231 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_tib_address (...)\n", debug_target
.to_shortname
);
3232 result
= debug_target
.to_get_tib_address (&debug_target
, arg1
, arg2
);
3233 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_tib_address (", debug_target
.to_shortname
);
3234 target_debug_print_struct_target_ops_p (&debug_target
);
3235 fputs_unfiltered (", ", gdb_stdlog
);
3236 target_debug_print_ptid_t (arg1
);
3237 fputs_unfiltered (", ", gdb_stdlog
);
3238 target_debug_print_CORE_ADDR_p (arg2
);
3239 fputs_unfiltered (") = ", gdb_stdlog
);
3240 target_debug_print_int (result
);
3241 fputs_unfiltered ("\n", gdb_stdlog
);
3246 delegate_set_permissions (struct target_ops
*self
)
3248 self
= self
->beneath
;
3249 self
->to_set_permissions (self
);
3253 tdefault_set_permissions (struct target_ops
*self
)
3258 debug_set_permissions (struct target_ops
*self
)
3260 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_set_permissions (...)\n", debug_target
.to_shortname
);
3261 debug_target
.to_set_permissions (&debug_target
);
3262 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_set_permissions (", debug_target
.to_shortname
);
3263 target_debug_print_struct_target_ops_p (&debug_target
);
3264 fputs_unfiltered (")\n", gdb_stdlog
);
3268 delegate_static_tracepoint_marker_at (struct target_ops
*self
, CORE_ADDR arg1
, struct static_tracepoint_marker
*arg2
)
3270 self
= self
->beneath
;
3271 return self
->to_static_tracepoint_marker_at (self
, arg1
, arg2
);
3275 tdefault_static_tracepoint_marker_at (struct target_ops
*self
, CORE_ADDR arg1
, struct static_tracepoint_marker
*arg2
)
3281 debug_static_tracepoint_marker_at (struct target_ops
*self
, CORE_ADDR arg1
, struct static_tracepoint_marker
*arg2
)
3284 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_static_tracepoint_marker_at (...)\n", debug_target
.to_shortname
);
3285 result
= debug_target
.to_static_tracepoint_marker_at (&debug_target
, arg1
, arg2
);
3286 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_static_tracepoint_marker_at (", debug_target
.to_shortname
);
3287 target_debug_print_struct_target_ops_p (&debug_target
);
3288 fputs_unfiltered (", ", gdb_stdlog
);
3289 target_debug_print_CORE_ADDR (arg1
);
3290 fputs_unfiltered (", ", gdb_stdlog
);
3291 target_debug_print_struct_static_tracepoint_marker_p (arg2
);
3292 fputs_unfiltered (") = ", gdb_stdlog
);
3293 target_debug_print_int (result
);
3294 fputs_unfiltered ("\n", gdb_stdlog
);
3298 static VEC(static_tracepoint_marker_p
) *
3299 delegate_static_tracepoint_markers_by_strid (struct target_ops
*self
, const char *arg1
)
3301 self
= self
->beneath
;
3302 return self
->to_static_tracepoint_markers_by_strid (self
, arg1
);
3305 static VEC(static_tracepoint_marker_p
) *
3306 tdefault_static_tracepoint_markers_by_strid (struct target_ops
*self
, const char *arg1
)
3311 static VEC(static_tracepoint_marker_p
) *
3312 debug_static_tracepoint_markers_by_strid (struct target_ops
*self
, const char *arg1
)
3314 VEC(static_tracepoint_marker_p
) * result
;
3315 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_static_tracepoint_markers_by_strid (...)\n", debug_target
.to_shortname
);
3316 result
= debug_target
.to_static_tracepoint_markers_by_strid (&debug_target
, arg1
);
3317 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_static_tracepoint_markers_by_strid (", debug_target
.to_shortname
);
3318 target_debug_print_struct_target_ops_p (&debug_target
);
3319 fputs_unfiltered (", ", gdb_stdlog
);
3320 target_debug_print_const_char_p (arg1
);
3321 fputs_unfiltered (") = ", gdb_stdlog
);
3322 target_debug_print_VEC_static_tracepoint_marker_p__p (result
);
3323 fputs_unfiltered ("\n", gdb_stdlog
);
3327 static struct traceframe_info
*
3328 delegate_traceframe_info (struct target_ops
*self
)
3330 self
= self
->beneath
;
3331 return self
->to_traceframe_info (self
);
3334 static struct traceframe_info
*
3335 tdefault_traceframe_info (struct target_ops
*self
)
3340 static struct traceframe_info
*
3341 debug_traceframe_info (struct target_ops
*self
)
3343 struct traceframe_info
* result
;
3344 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_traceframe_info (...)\n", debug_target
.to_shortname
);
3345 result
= debug_target
.to_traceframe_info (&debug_target
);
3346 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_traceframe_info (", debug_target
.to_shortname
);
3347 target_debug_print_struct_target_ops_p (&debug_target
);
3348 fputs_unfiltered (") = ", gdb_stdlog
);
3349 target_debug_print_struct_traceframe_info_p (result
);
3350 fputs_unfiltered ("\n", gdb_stdlog
);
3355 delegate_use_agent (struct target_ops
*self
, int arg1
)
3357 self
= self
->beneath
;
3358 return self
->to_use_agent (self
, arg1
);
3362 tdefault_use_agent (struct target_ops
*self
, int arg1
)
3368 debug_use_agent (struct target_ops
*self
, int arg1
)
3371 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_use_agent (...)\n", debug_target
.to_shortname
);
3372 result
= debug_target
.to_use_agent (&debug_target
, arg1
);
3373 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_use_agent (", debug_target
.to_shortname
);
3374 target_debug_print_struct_target_ops_p (&debug_target
);
3375 fputs_unfiltered (", ", gdb_stdlog
);
3376 target_debug_print_int (arg1
);
3377 fputs_unfiltered (") = ", gdb_stdlog
);
3378 target_debug_print_int (result
);
3379 fputs_unfiltered ("\n", gdb_stdlog
);
3384 delegate_can_use_agent (struct target_ops
*self
)
3386 self
= self
->beneath
;
3387 return self
->to_can_use_agent (self
);
3391 tdefault_can_use_agent (struct target_ops
*self
)
3397 debug_can_use_agent (struct target_ops
*self
)
3400 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_can_use_agent (...)\n", debug_target
.to_shortname
);
3401 result
= debug_target
.to_can_use_agent (&debug_target
);
3402 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_can_use_agent (", debug_target
.to_shortname
);
3403 target_debug_print_struct_target_ops_p (&debug_target
);
3404 fputs_unfiltered (") = ", gdb_stdlog
);
3405 target_debug_print_int (result
);
3406 fputs_unfiltered ("\n", gdb_stdlog
);
3411 delegate_supports_btrace (struct target_ops
*self
, enum btrace_format arg1
)
3413 self
= self
->beneath
;
3414 return self
->to_supports_btrace (self
, arg1
);
3418 tdefault_supports_btrace (struct target_ops
*self
, enum btrace_format arg1
)
3424 debug_supports_btrace (struct target_ops
*self
, enum btrace_format arg1
)
3427 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_supports_btrace (...)\n", debug_target
.to_shortname
);
3428 result
= debug_target
.to_supports_btrace (&debug_target
, arg1
);
3429 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_supports_btrace (", debug_target
.to_shortname
);
3430 target_debug_print_struct_target_ops_p (&debug_target
);
3431 fputs_unfiltered (", ", gdb_stdlog
);
3432 target_debug_print_enum_btrace_format (arg1
);
3433 fputs_unfiltered (") = ", gdb_stdlog
);
3434 target_debug_print_int (result
);
3435 fputs_unfiltered ("\n", gdb_stdlog
);
3439 static struct btrace_target_info
*
3440 delegate_enable_btrace (struct target_ops
*self
, ptid_t arg1
, const struct btrace_config
*arg2
)
3442 self
= self
->beneath
;
3443 return self
->to_enable_btrace (self
, arg1
, arg2
);
3446 static struct btrace_target_info
*
3447 tdefault_enable_btrace (struct target_ops
*self
, ptid_t arg1
, const struct btrace_config
*arg2
)
3452 static struct btrace_target_info
*
3453 debug_enable_btrace (struct target_ops
*self
, ptid_t arg1
, const struct btrace_config
*arg2
)
3455 struct btrace_target_info
* result
;
3456 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_enable_btrace (...)\n", debug_target
.to_shortname
);
3457 result
= debug_target
.to_enable_btrace (&debug_target
, arg1
, arg2
);
3458 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_enable_btrace (", debug_target
.to_shortname
);
3459 target_debug_print_struct_target_ops_p (&debug_target
);
3460 fputs_unfiltered (", ", gdb_stdlog
);
3461 target_debug_print_ptid_t (arg1
);
3462 fputs_unfiltered (", ", gdb_stdlog
);
3463 target_debug_print_const_struct_btrace_config_p (arg2
);
3464 fputs_unfiltered (") = ", gdb_stdlog
);
3465 target_debug_print_struct_btrace_target_info_p (result
);
3466 fputs_unfiltered ("\n", gdb_stdlog
);
3471 delegate_disable_btrace (struct target_ops
*self
, struct btrace_target_info
*arg1
)
3473 self
= self
->beneath
;
3474 self
->to_disable_btrace (self
, arg1
);
3478 tdefault_disable_btrace (struct target_ops
*self
, struct btrace_target_info
*arg1
)
3484 debug_disable_btrace (struct target_ops
*self
, struct btrace_target_info
*arg1
)
3486 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_disable_btrace (...)\n", debug_target
.to_shortname
);
3487 debug_target
.to_disable_btrace (&debug_target
, arg1
);
3488 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_disable_btrace (", debug_target
.to_shortname
);
3489 target_debug_print_struct_target_ops_p (&debug_target
);
3490 fputs_unfiltered (", ", gdb_stdlog
);
3491 target_debug_print_struct_btrace_target_info_p (arg1
);
3492 fputs_unfiltered (")\n", gdb_stdlog
);
3496 delegate_teardown_btrace (struct target_ops
*self
, struct btrace_target_info
*arg1
)
3498 self
= self
->beneath
;
3499 self
->to_teardown_btrace (self
, arg1
);
3503 tdefault_teardown_btrace (struct target_ops
*self
, struct btrace_target_info
*arg1
)
3509 debug_teardown_btrace (struct target_ops
*self
, struct btrace_target_info
*arg1
)
3511 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_teardown_btrace (...)\n", debug_target
.to_shortname
);
3512 debug_target
.to_teardown_btrace (&debug_target
, arg1
);
3513 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_teardown_btrace (", debug_target
.to_shortname
);
3514 target_debug_print_struct_target_ops_p (&debug_target
);
3515 fputs_unfiltered (", ", gdb_stdlog
);
3516 target_debug_print_struct_btrace_target_info_p (arg1
);
3517 fputs_unfiltered (")\n", gdb_stdlog
);
3520 static enum btrace_error
3521 delegate_read_btrace (struct target_ops
*self
, struct btrace_data
*arg1
, struct btrace_target_info
*arg2
, enum btrace_read_type arg3
)
3523 self
= self
->beneath
;
3524 return self
->to_read_btrace (self
, arg1
, arg2
, arg3
);
3527 static enum btrace_error
3528 tdefault_read_btrace (struct target_ops
*self
, struct btrace_data
*arg1
, struct btrace_target_info
*arg2
, enum btrace_read_type arg3
)
3533 static enum btrace_error
3534 debug_read_btrace (struct target_ops
*self
, struct btrace_data
*arg1
, struct btrace_target_info
*arg2
, enum btrace_read_type arg3
)
3536 enum btrace_error result
;
3537 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_read_btrace (...)\n", debug_target
.to_shortname
);
3538 result
= debug_target
.to_read_btrace (&debug_target
, arg1
, arg2
, arg3
);
3539 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_read_btrace (", debug_target
.to_shortname
);
3540 target_debug_print_struct_target_ops_p (&debug_target
);
3541 fputs_unfiltered (", ", gdb_stdlog
);
3542 target_debug_print_struct_btrace_data_p (arg1
);
3543 fputs_unfiltered (", ", gdb_stdlog
);
3544 target_debug_print_struct_btrace_target_info_p (arg2
);
3545 fputs_unfiltered (", ", gdb_stdlog
);
3546 target_debug_print_enum_btrace_read_type (arg3
);
3547 fputs_unfiltered (") = ", gdb_stdlog
);
3548 target_debug_print_enum_btrace_error (result
);
3549 fputs_unfiltered ("\n", gdb_stdlog
);
3553 static const struct btrace_config
*
3554 delegate_btrace_conf (struct target_ops
*self
, const struct btrace_target_info
*arg1
)
3556 self
= self
->beneath
;
3557 return self
->to_btrace_conf (self
, arg1
);
3560 static const struct btrace_config
*
3561 tdefault_btrace_conf (struct target_ops
*self
, const struct btrace_target_info
*arg1
)
3566 static const struct btrace_config
*
3567 debug_btrace_conf (struct target_ops
*self
, const struct btrace_target_info
*arg1
)
3569 const struct btrace_config
* result
;
3570 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_btrace_conf (...)\n", debug_target
.to_shortname
);
3571 result
= debug_target
.to_btrace_conf (&debug_target
, arg1
);
3572 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_btrace_conf (", debug_target
.to_shortname
);
3573 target_debug_print_struct_target_ops_p (&debug_target
);
3574 fputs_unfiltered (", ", gdb_stdlog
);
3575 target_debug_print_const_struct_btrace_target_info_p (arg1
);
3576 fputs_unfiltered (") = ", gdb_stdlog
);
3577 target_debug_print_const_struct_btrace_config_p (result
);
3578 fputs_unfiltered ("\n", gdb_stdlog
);
3583 delegate_stop_recording (struct target_ops
*self
)
3585 self
= self
->beneath
;
3586 self
->to_stop_recording (self
);
3590 tdefault_stop_recording (struct target_ops
*self
)
3595 debug_stop_recording (struct target_ops
*self
)
3597 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_stop_recording (...)\n", debug_target
.to_shortname
);
3598 debug_target
.to_stop_recording (&debug_target
);
3599 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_stop_recording (", debug_target
.to_shortname
);
3600 target_debug_print_struct_target_ops_p (&debug_target
);
3601 fputs_unfiltered (")\n", gdb_stdlog
);
3605 delegate_info_record (struct target_ops
*self
)
3607 self
= self
->beneath
;
3608 self
->to_info_record (self
);
3612 tdefault_info_record (struct target_ops
*self
)
3617 debug_info_record (struct target_ops
*self
)
3619 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_info_record (...)\n", debug_target
.to_shortname
);
3620 debug_target
.to_info_record (&debug_target
);
3621 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_info_record (", debug_target
.to_shortname
);
3622 target_debug_print_struct_target_ops_p (&debug_target
);
3623 fputs_unfiltered (")\n", gdb_stdlog
);
3627 delegate_save_record (struct target_ops
*self
, const char *arg1
)
3629 self
= self
->beneath
;
3630 self
->to_save_record (self
, arg1
);
3634 tdefault_save_record (struct target_ops
*self
, const char *arg1
)
3640 debug_save_record (struct target_ops
*self
, const char *arg1
)
3642 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_save_record (...)\n", debug_target
.to_shortname
);
3643 debug_target
.to_save_record (&debug_target
, arg1
);
3644 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_save_record (", debug_target
.to_shortname
);
3645 target_debug_print_struct_target_ops_p (&debug_target
);
3646 fputs_unfiltered (", ", gdb_stdlog
);
3647 target_debug_print_const_char_p (arg1
);
3648 fputs_unfiltered (")\n", gdb_stdlog
);
3652 delegate_delete_record (struct target_ops
*self
)
3654 self
= self
->beneath
;
3655 self
->to_delete_record (self
);
3659 tdefault_delete_record (struct target_ops
*self
)
3665 debug_delete_record (struct target_ops
*self
)
3667 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_delete_record (...)\n", debug_target
.to_shortname
);
3668 debug_target
.to_delete_record (&debug_target
);
3669 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_delete_record (", debug_target
.to_shortname
);
3670 target_debug_print_struct_target_ops_p (&debug_target
);
3671 fputs_unfiltered (")\n", gdb_stdlog
);
3675 delegate_record_is_replaying (struct target_ops
*self
, ptid_t arg1
)
3677 self
= self
->beneath
;
3678 return self
->to_record_is_replaying (self
, arg1
);
3682 tdefault_record_is_replaying (struct target_ops
*self
, ptid_t arg1
)
3688 debug_record_is_replaying (struct target_ops
*self
, ptid_t arg1
)
3691 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_record_is_replaying (...)\n", debug_target
.to_shortname
);
3692 result
= debug_target
.to_record_is_replaying (&debug_target
, arg1
);
3693 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_record_is_replaying (", debug_target
.to_shortname
);
3694 target_debug_print_struct_target_ops_p (&debug_target
);
3695 fputs_unfiltered (", ", gdb_stdlog
);
3696 target_debug_print_ptid_t (arg1
);
3697 fputs_unfiltered (") = ", gdb_stdlog
);
3698 target_debug_print_int (result
);
3699 fputs_unfiltered ("\n", gdb_stdlog
);
3704 delegate_record_will_replay (struct target_ops
*self
, ptid_t arg1
, int arg2
)
3706 self
= self
->beneath
;
3707 return self
->to_record_will_replay (self
, arg1
, arg2
);
3711 tdefault_record_will_replay (struct target_ops
*self
, ptid_t arg1
, int arg2
)
3717 debug_record_will_replay (struct target_ops
*self
, ptid_t arg1
, int arg2
)
3720 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_record_will_replay (...)\n", debug_target
.to_shortname
);
3721 result
= debug_target
.to_record_will_replay (&debug_target
, arg1
, arg2
);
3722 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_record_will_replay (", debug_target
.to_shortname
);
3723 target_debug_print_struct_target_ops_p (&debug_target
);
3724 fputs_unfiltered (", ", gdb_stdlog
);
3725 target_debug_print_ptid_t (arg1
);
3726 fputs_unfiltered (", ", gdb_stdlog
);
3727 target_debug_print_int (arg2
);
3728 fputs_unfiltered (") = ", gdb_stdlog
);
3729 target_debug_print_int (result
);
3730 fputs_unfiltered ("\n", gdb_stdlog
);
3735 delegate_record_stop_replaying (struct target_ops
*self
)
3737 self
= self
->beneath
;
3738 self
->to_record_stop_replaying (self
);
3742 tdefault_record_stop_replaying (struct target_ops
*self
)
3747 debug_record_stop_replaying (struct target_ops
*self
)
3749 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_record_stop_replaying (...)\n", debug_target
.to_shortname
);
3750 debug_target
.to_record_stop_replaying (&debug_target
);
3751 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_record_stop_replaying (", debug_target
.to_shortname
);
3752 target_debug_print_struct_target_ops_p (&debug_target
);
3753 fputs_unfiltered (")\n", gdb_stdlog
);
3757 delegate_goto_record_begin (struct target_ops
*self
)
3759 self
= self
->beneath
;
3760 self
->to_goto_record_begin (self
);
3764 tdefault_goto_record_begin (struct target_ops
*self
)
3770 debug_goto_record_begin (struct target_ops
*self
)
3772 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_goto_record_begin (...)\n", debug_target
.to_shortname
);
3773 debug_target
.to_goto_record_begin (&debug_target
);
3774 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_goto_record_begin (", debug_target
.to_shortname
);
3775 target_debug_print_struct_target_ops_p (&debug_target
);
3776 fputs_unfiltered (")\n", gdb_stdlog
);
3780 delegate_goto_record_end (struct target_ops
*self
)
3782 self
= self
->beneath
;
3783 self
->to_goto_record_end (self
);
3787 tdefault_goto_record_end (struct target_ops
*self
)
3793 debug_goto_record_end (struct target_ops
*self
)
3795 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_goto_record_end (...)\n", debug_target
.to_shortname
);
3796 debug_target
.to_goto_record_end (&debug_target
);
3797 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_goto_record_end (", debug_target
.to_shortname
);
3798 target_debug_print_struct_target_ops_p (&debug_target
);
3799 fputs_unfiltered (")\n", gdb_stdlog
);
3803 delegate_goto_record (struct target_ops
*self
, ULONGEST arg1
)
3805 self
= self
->beneath
;
3806 self
->to_goto_record (self
, arg1
);
3810 tdefault_goto_record (struct target_ops
*self
, ULONGEST arg1
)
3816 debug_goto_record (struct target_ops
*self
, ULONGEST arg1
)
3818 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_goto_record (...)\n", debug_target
.to_shortname
);
3819 debug_target
.to_goto_record (&debug_target
, arg1
);
3820 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_goto_record (", debug_target
.to_shortname
);
3821 target_debug_print_struct_target_ops_p (&debug_target
);
3822 fputs_unfiltered (", ", gdb_stdlog
);
3823 target_debug_print_ULONGEST (arg1
);
3824 fputs_unfiltered (")\n", gdb_stdlog
);
3828 delegate_insn_history (struct target_ops
*self
, int arg1
, int arg2
)
3830 self
= self
->beneath
;
3831 self
->to_insn_history (self
, arg1
, arg2
);
3835 tdefault_insn_history (struct target_ops
*self
, int arg1
, int arg2
)
3841 debug_insn_history (struct target_ops
*self
, int arg1
, int arg2
)
3843 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insn_history (...)\n", debug_target
.to_shortname
);
3844 debug_target
.to_insn_history (&debug_target
, arg1
, arg2
);
3845 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insn_history (", debug_target
.to_shortname
);
3846 target_debug_print_struct_target_ops_p (&debug_target
);
3847 fputs_unfiltered (", ", gdb_stdlog
);
3848 target_debug_print_int (arg1
);
3849 fputs_unfiltered (", ", gdb_stdlog
);
3850 target_debug_print_int (arg2
);
3851 fputs_unfiltered (")\n", gdb_stdlog
);
3855 delegate_insn_history_from (struct target_ops
*self
, ULONGEST arg1
, int arg2
, int arg3
)
3857 self
= self
->beneath
;
3858 self
->to_insn_history_from (self
, arg1
, arg2
, arg3
);
3862 tdefault_insn_history_from (struct target_ops
*self
, ULONGEST arg1
, int arg2
, int arg3
)
3868 debug_insn_history_from (struct target_ops
*self
, ULONGEST arg1
, int arg2
, int arg3
)
3870 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insn_history_from (...)\n", debug_target
.to_shortname
);
3871 debug_target
.to_insn_history_from (&debug_target
, arg1
, arg2
, arg3
);
3872 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insn_history_from (", debug_target
.to_shortname
);
3873 target_debug_print_struct_target_ops_p (&debug_target
);
3874 fputs_unfiltered (", ", gdb_stdlog
);
3875 target_debug_print_ULONGEST (arg1
);
3876 fputs_unfiltered (", ", gdb_stdlog
);
3877 target_debug_print_int (arg2
);
3878 fputs_unfiltered (", ", gdb_stdlog
);
3879 target_debug_print_int (arg3
);
3880 fputs_unfiltered (")\n", gdb_stdlog
);
3884 delegate_insn_history_range (struct target_ops
*self
, ULONGEST arg1
, ULONGEST arg2
, int arg3
)
3886 self
= self
->beneath
;
3887 self
->to_insn_history_range (self
, arg1
, arg2
, arg3
);
3891 tdefault_insn_history_range (struct target_ops
*self
, ULONGEST arg1
, ULONGEST arg2
, int arg3
)
3897 debug_insn_history_range (struct target_ops
*self
, ULONGEST arg1
, ULONGEST arg2
, int arg3
)
3899 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_insn_history_range (...)\n", debug_target
.to_shortname
);
3900 debug_target
.to_insn_history_range (&debug_target
, arg1
, arg2
, arg3
);
3901 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_insn_history_range (", debug_target
.to_shortname
);
3902 target_debug_print_struct_target_ops_p (&debug_target
);
3903 fputs_unfiltered (", ", gdb_stdlog
);
3904 target_debug_print_ULONGEST (arg1
);
3905 fputs_unfiltered (", ", gdb_stdlog
);
3906 target_debug_print_ULONGEST (arg2
);
3907 fputs_unfiltered (", ", gdb_stdlog
);
3908 target_debug_print_int (arg3
);
3909 fputs_unfiltered (")\n", gdb_stdlog
);
3913 delegate_call_history (struct target_ops
*self
, int arg1
, int arg2
)
3915 self
= self
->beneath
;
3916 self
->to_call_history (self
, arg1
, arg2
);
3920 tdefault_call_history (struct target_ops
*self
, int arg1
, int arg2
)
3926 debug_call_history (struct target_ops
*self
, int arg1
, int arg2
)
3928 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_call_history (...)\n", debug_target
.to_shortname
);
3929 debug_target
.to_call_history (&debug_target
, arg1
, arg2
);
3930 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_call_history (", debug_target
.to_shortname
);
3931 target_debug_print_struct_target_ops_p (&debug_target
);
3932 fputs_unfiltered (", ", gdb_stdlog
);
3933 target_debug_print_int (arg1
);
3934 fputs_unfiltered (", ", gdb_stdlog
);
3935 target_debug_print_int (arg2
);
3936 fputs_unfiltered (")\n", gdb_stdlog
);
3940 delegate_call_history_from (struct target_ops
*self
, ULONGEST arg1
, int arg2
, int arg3
)
3942 self
= self
->beneath
;
3943 self
->to_call_history_from (self
, arg1
, arg2
, arg3
);
3947 tdefault_call_history_from (struct target_ops
*self
, ULONGEST arg1
, int arg2
, int arg3
)
3953 debug_call_history_from (struct target_ops
*self
, ULONGEST arg1
, int arg2
, int arg3
)
3955 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_call_history_from (...)\n", debug_target
.to_shortname
);
3956 debug_target
.to_call_history_from (&debug_target
, arg1
, arg2
, arg3
);
3957 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_call_history_from (", debug_target
.to_shortname
);
3958 target_debug_print_struct_target_ops_p (&debug_target
);
3959 fputs_unfiltered (", ", gdb_stdlog
);
3960 target_debug_print_ULONGEST (arg1
);
3961 fputs_unfiltered (", ", gdb_stdlog
);
3962 target_debug_print_int (arg2
);
3963 fputs_unfiltered (", ", gdb_stdlog
);
3964 target_debug_print_int (arg3
);
3965 fputs_unfiltered (")\n", gdb_stdlog
);
3969 delegate_call_history_range (struct target_ops
*self
, ULONGEST arg1
, ULONGEST arg2
, int arg3
)
3971 self
= self
->beneath
;
3972 self
->to_call_history_range (self
, arg1
, arg2
, arg3
);
3976 tdefault_call_history_range (struct target_ops
*self
, ULONGEST arg1
, ULONGEST arg2
, int arg3
)
3982 debug_call_history_range (struct target_ops
*self
, ULONGEST arg1
, ULONGEST arg2
, int arg3
)
3984 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_call_history_range (...)\n", debug_target
.to_shortname
);
3985 debug_target
.to_call_history_range (&debug_target
, arg1
, arg2
, arg3
);
3986 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_call_history_range (", debug_target
.to_shortname
);
3987 target_debug_print_struct_target_ops_p (&debug_target
);
3988 fputs_unfiltered (", ", gdb_stdlog
);
3989 target_debug_print_ULONGEST (arg1
);
3990 fputs_unfiltered (", ", gdb_stdlog
);
3991 target_debug_print_ULONGEST (arg2
);
3992 fputs_unfiltered (", ", gdb_stdlog
);
3993 target_debug_print_int (arg3
);
3994 fputs_unfiltered (")\n", gdb_stdlog
);
3998 delegate_augmented_libraries_svr4_read (struct target_ops
*self
)
4000 self
= self
->beneath
;
4001 return self
->to_augmented_libraries_svr4_read (self
);
4005 tdefault_augmented_libraries_svr4_read (struct target_ops
*self
)
4011 debug_augmented_libraries_svr4_read (struct target_ops
*self
)
4014 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_augmented_libraries_svr4_read (...)\n", debug_target
.to_shortname
);
4015 result
= debug_target
.to_augmented_libraries_svr4_read (&debug_target
);
4016 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_augmented_libraries_svr4_read (", debug_target
.to_shortname
);
4017 target_debug_print_struct_target_ops_p (&debug_target
);
4018 fputs_unfiltered (") = ", gdb_stdlog
);
4019 target_debug_print_int (result
);
4020 fputs_unfiltered ("\n", gdb_stdlog
);
4024 static const struct frame_unwind
*
4025 delegate_get_unwinder (struct target_ops
*self
)
4027 self
= self
->beneath
;
4028 return self
->to_get_unwinder (self
);
4031 static const struct frame_unwind
*
4032 tdefault_get_unwinder (struct target_ops
*self
)
4037 static const struct frame_unwind
*
4038 debug_get_unwinder (struct target_ops
*self
)
4040 const struct frame_unwind
* result
;
4041 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_unwinder (...)\n", debug_target
.to_shortname
);
4042 result
= debug_target
.to_get_unwinder (&debug_target
);
4043 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_unwinder (", debug_target
.to_shortname
);
4044 target_debug_print_struct_target_ops_p (&debug_target
);
4045 fputs_unfiltered (") = ", gdb_stdlog
);
4046 target_debug_print_const_struct_frame_unwind_p (result
);
4047 fputs_unfiltered ("\n", gdb_stdlog
);
4051 static const struct frame_unwind
*
4052 delegate_get_tailcall_unwinder (struct target_ops
*self
)
4054 self
= self
->beneath
;
4055 return self
->to_get_tailcall_unwinder (self
);
4058 static const struct frame_unwind
*
4059 tdefault_get_tailcall_unwinder (struct target_ops
*self
)
4064 static const struct frame_unwind
*
4065 debug_get_tailcall_unwinder (struct target_ops
*self
)
4067 const struct frame_unwind
* result
;
4068 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_get_tailcall_unwinder (...)\n", debug_target
.to_shortname
);
4069 result
= debug_target
.to_get_tailcall_unwinder (&debug_target
);
4070 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_get_tailcall_unwinder (", debug_target
.to_shortname
);
4071 target_debug_print_struct_target_ops_p (&debug_target
);
4072 fputs_unfiltered (") = ", gdb_stdlog
);
4073 target_debug_print_const_struct_frame_unwind_p (result
);
4074 fputs_unfiltered ("\n", gdb_stdlog
);
4079 delegate_prepare_to_generate_core (struct target_ops
*self
)
4081 self
= self
->beneath
;
4082 self
->to_prepare_to_generate_core (self
);
4086 tdefault_prepare_to_generate_core (struct target_ops
*self
)
4091 debug_prepare_to_generate_core (struct target_ops
*self
)
4093 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_prepare_to_generate_core (...)\n", debug_target
.to_shortname
);
4094 debug_target
.to_prepare_to_generate_core (&debug_target
);
4095 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_prepare_to_generate_core (", debug_target
.to_shortname
);
4096 target_debug_print_struct_target_ops_p (&debug_target
);
4097 fputs_unfiltered (")\n", gdb_stdlog
);
4101 delegate_done_generating_core (struct target_ops
*self
)
4103 self
= self
->beneath
;
4104 self
->to_done_generating_core (self
);
4108 tdefault_done_generating_core (struct target_ops
*self
)
4113 debug_done_generating_core (struct target_ops
*self
)
4115 fprintf_unfiltered (gdb_stdlog
, "-> %s->to_done_generating_core (...)\n", debug_target
.to_shortname
);
4116 debug_target
.to_done_generating_core (&debug_target
);
4117 fprintf_unfiltered (gdb_stdlog
, "<- %s->to_done_generating_core (", debug_target
.to_shortname
);
4118 target_debug_print_struct_target_ops_p (&debug_target
);
4119 fputs_unfiltered (")\n", gdb_stdlog
);
4123 install_delegators (struct target_ops
*ops
)
4125 if (ops
->to_post_attach
== NULL
)
4126 ops
->to_post_attach
= delegate_post_attach
;
4127 if (ops
->to_detach
== NULL
)
4128 ops
->to_detach
= delegate_detach
;
4129 if (ops
->to_disconnect
== NULL
)
4130 ops
->to_disconnect
= delegate_disconnect
;
4131 if (ops
->to_resume
== NULL
)
4132 ops
->to_resume
= delegate_resume
;
4133 if (ops
->to_commit_resume
== NULL
)
4134 ops
->to_commit_resume
= delegate_commit_resume
;
4135 if (ops
->to_wait
== NULL
)
4136 ops
->to_wait
= delegate_wait
;
4137 if (ops
->to_fetch_registers
== NULL
)
4138 ops
->to_fetch_registers
= delegate_fetch_registers
;
4139 if (ops
->to_store_registers
== NULL
)
4140 ops
->to_store_registers
= delegate_store_registers
;
4141 if (ops
->to_prepare_to_store
== NULL
)
4142 ops
->to_prepare_to_store
= delegate_prepare_to_store
;
4143 if (ops
->to_files_info
== NULL
)
4144 ops
->to_files_info
= delegate_files_info
;
4145 if (ops
->to_insert_breakpoint
== NULL
)
4146 ops
->to_insert_breakpoint
= delegate_insert_breakpoint
;
4147 if (ops
->to_remove_breakpoint
== NULL
)
4148 ops
->to_remove_breakpoint
= delegate_remove_breakpoint
;
4149 if (ops
->to_stopped_by_sw_breakpoint
== NULL
)
4150 ops
->to_stopped_by_sw_breakpoint
= delegate_stopped_by_sw_breakpoint
;
4151 if (ops
->to_supports_stopped_by_sw_breakpoint
== NULL
)
4152 ops
->to_supports_stopped_by_sw_breakpoint
= delegate_supports_stopped_by_sw_breakpoint
;
4153 if (ops
->to_stopped_by_hw_breakpoint
== NULL
)
4154 ops
->to_stopped_by_hw_breakpoint
= delegate_stopped_by_hw_breakpoint
;
4155 if (ops
->to_supports_stopped_by_hw_breakpoint
== NULL
)
4156 ops
->to_supports_stopped_by_hw_breakpoint
= delegate_supports_stopped_by_hw_breakpoint
;
4157 if (ops
->to_can_use_hw_breakpoint
== NULL
)
4158 ops
->to_can_use_hw_breakpoint
= delegate_can_use_hw_breakpoint
;
4159 if (ops
->to_ranged_break_num_registers
== NULL
)
4160 ops
->to_ranged_break_num_registers
= delegate_ranged_break_num_registers
;
4161 if (ops
->to_insert_hw_breakpoint
== NULL
)
4162 ops
->to_insert_hw_breakpoint
= delegate_insert_hw_breakpoint
;
4163 if (ops
->to_remove_hw_breakpoint
== NULL
)
4164 ops
->to_remove_hw_breakpoint
= delegate_remove_hw_breakpoint
;
4165 if (ops
->to_remove_watchpoint
== NULL
)
4166 ops
->to_remove_watchpoint
= delegate_remove_watchpoint
;
4167 if (ops
->to_insert_watchpoint
== NULL
)
4168 ops
->to_insert_watchpoint
= delegate_insert_watchpoint
;
4169 if (ops
->to_insert_mask_watchpoint
== NULL
)
4170 ops
->to_insert_mask_watchpoint
= delegate_insert_mask_watchpoint
;
4171 if (ops
->to_remove_mask_watchpoint
== NULL
)
4172 ops
->to_remove_mask_watchpoint
= delegate_remove_mask_watchpoint
;
4173 if (ops
->to_stopped_by_watchpoint
== NULL
)
4174 ops
->to_stopped_by_watchpoint
= delegate_stopped_by_watchpoint
;
4175 if (ops
->to_stopped_data_address
== NULL
)
4176 ops
->to_stopped_data_address
= delegate_stopped_data_address
;
4177 if (ops
->to_watchpoint_addr_within_range
== NULL
)
4178 ops
->to_watchpoint_addr_within_range
= delegate_watchpoint_addr_within_range
;
4179 if (ops
->to_region_ok_for_hw_watchpoint
== NULL
)
4180 ops
->to_region_ok_for_hw_watchpoint
= delegate_region_ok_for_hw_watchpoint
;
4181 if (ops
->to_can_accel_watchpoint_condition
== NULL
)
4182 ops
->to_can_accel_watchpoint_condition
= delegate_can_accel_watchpoint_condition
;
4183 if (ops
->to_masked_watch_num_registers
== NULL
)
4184 ops
->to_masked_watch_num_registers
= delegate_masked_watch_num_registers
;
4185 if (ops
->to_can_do_single_step
== NULL
)
4186 ops
->to_can_do_single_step
= delegate_can_do_single_step
;
4187 if (ops
->to_terminal_init
== NULL
)
4188 ops
->to_terminal_init
= delegate_terminal_init
;
4189 if (ops
->to_terminal_inferior
== NULL
)
4190 ops
->to_terminal_inferior
= delegate_terminal_inferior
;
4191 if (ops
->to_terminal_ours_for_output
== NULL
)
4192 ops
->to_terminal_ours_for_output
= delegate_terminal_ours_for_output
;
4193 if (ops
->to_terminal_ours
== NULL
)
4194 ops
->to_terminal_ours
= delegate_terminal_ours
;
4195 if (ops
->to_terminal_info
== NULL
)
4196 ops
->to_terminal_info
= delegate_terminal_info
;
4197 if (ops
->to_kill
== NULL
)
4198 ops
->to_kill
= delegate_kill
;
4199 if (ops
->to_load
== NULL
)
4200 ops
->to_load
= delegate_load
;
4201 if (ops
->to_post_startup_inferior
== NULL
)
4202 ops
->to_post_startup_inferior
= delegate_post_startup_inferior
;
4203 if (ops
->to_insert_fork_catchpoint
== NULL
)
4204 ops
->to_insert_fork_catchpoint
= delegate_insert_fork_catchpoint
;
4205 if (ops
->to_remove_fork_catchpoint
== NULL
)
4206 ops
->to_remove_fork_catchpoint
= delegate_remove_fork_catchpoint
;
4207 if (ops
->to_insert_vfork_catchpoint
== NULL
)
4208 ops
->to_insert_vfork_catchpoint
= delegate_insert_vfork_catchpoint
;
4209 if (ops
->to_remove_vfork_catchpoint
== NULL
)
4210 ops
->to_remove_vfork_catchpoint
= delegate_remove_vfork_catchpoint
;
4211 if (ops
->to_follow_fork
== NULL
)
4212 ops
->to_follow_fork
= delegate_follow_fork
;
4213 if (ops
->to_insert_exec_catchpoint
== NULL
)
4214 ops
->to_insert_exec_catchpoint
= delegate_insert_exec_catchpoint
;
4215 if (ops
->to_remove_exec_catchpoint
== NULL
)
4216 ops
->to_remove_exec_catchpoint
= delegate_remove_exec_catchpoint
;
4217 if (ops
->to_follow_exec
== NULL
)
4218 ops
->to_follow_exec
= delegate_follow_exec
;
4219 if (ops
->to_set_syscall_catchpoint
== NULL
)
4220 ops
->to_set_syscall_catchpoint
= delegate_set_syscall_catchpoint
;
4221 if (ops
->to_has_exited
== NULL
)
4222 ops
->to_has_exited
= delegate_has_exited
;
4223 if (ops
->to_mourn_inferior
== NULL
)
4224 ops
->to_mourn_inferior
= delegate_mourn_inferior
;
4225 if (ops
->to_can_run
== NULL
)
4226 ops
->to_can_run
= delegate_can_run
;
4227 if (ops
->to_pass_signals
== NULL
)
4228 ops
->to_pass_signals
= delegate_pass_signals
;
4229 if (ops
->to_program_signals
== NULL
)
4230 ops
->to_program_signals
= delegate_program_signals
;
4231 if (ops
->to_thread_alive
== NULL
)
4232 ops
->to_thread_alive
= delegate_thread_alive
;
4233 if (ops
->to_update_thread_list
== NULL
)
4234 ops
->to_update_thread_list
= delegate_update_thread_list
;
4235 if (ops
->to_pid_to_str
== NULL
)
4236 ops
->to_pid_to_str
= delegate_pid_to_str
;
4237 if (ops
->to_extra_thread_info
== NULL
)
4238 ops
->to_extra_thread_info
= delegate_extra_thread_info
;
4239 if (ops
->to_thread_name
== NULL
)
4240 ops
->to_thread_name
= delegate_thread_name
;
4241 if (ops
->to_stop
== NULL
)
4242 ops
->to_stop
= delegate_stop
;
4243 if (ops
->to_interrupt
== NULL
)
4244 ops
->to_interrupt
= delegate_interrupt
;
4245 if (ops
->to_pass_ctrlc
== NULL
)
4246 ops
->to_pass_ctrlc
= delegate_pass_ctrlc
;
4247 if (ops
->to_rcmd
== NULL
)
4248 ops
->to_rcmd
= delegate_rcmd
;
4249 if (ops
->to_pid_to_exec_file
== NULL
)
4250 ops
->to_pid_to_exec_file
= delegate_pid_to_exec_file
;
4251 if (ops
->to_log_command
== NULL
)
4252 ops
->to_log_command
= delegate_log_command
;
4253 if (ops
->to_get_section_table
== NULL
)
4254 ops
->to_get_section_table
= delegate_get_section_table
;
4255 if (ops
->to_can_async_p
== NULL
)
4256 ops
->to_can_async_p
= delegate_can_async_p
;
4257 if (ops
->to_is_async_p
== NULL
)
4258 ops
->to_is_async_p
= delegate_is_async_p
;
4259 if (ops
->to_async
== NULL
)
4260 ops
->to_async
= delegate_async
;
4261 if (ops
->to_thread_events
== NULL
)
4262 ops
->to_thread_events
= delegate_thread_events
;
4263 if (ops
->to_supports_non_stop
== NULL
)
4264 ops
->to_supports_non_stop
= delegate_supports_non_stop
;
4265 if (ops
->to_always_non_stop_p
== NULL
)
4266 ops
->to_always_non_stop_p
= delegate_always_non_stop_p
;
4267 if (ops
->to_find_memory_regions
== NULL
)
4268 ops
->to_find_memory_regions
= delegate_find_memory_regions
;
4269 if (ops
->to_make_corefile_notes
== NULL
)
4270 ops
->to_make_corefile_notes
= delegate_make_corefile_notes
;
4271 if (ops
->to_get_bookmark
== NULL
)
4272 ops
->to_get_bookmark
= delegate_get_bookmark
;
4273 if (ops
->to_goto_bookmark
== NULL
)
4274 ops
->to_goto_bookmark
= delegate_goto_bookmark
;
4275 if (ops
->to_get_thread_local_address
== NULL
)
4276 ops
->to_get_thread_local_address
= delegate_get_thread_local_address
;
4277 if (ops
->to_xfer_partial
== NULL
)
4278 ops
->to_xfer_partial
= delegate_xfer_partial
;
4279 if (ops
->to_get_memory_xfer_limit
== NULL
)
4280 ops
->to_get_memory_xfer_limit
= delegate_get_memory_xfer_limit
;
4281 if (ops
->to_memory_map
== NULL
)
4282 ops
->to_memory_map
= delegate_memory_map
;
4283 if (ops
->to_flash_erase
== NULL
)
4284 ops
->to_flash_erase
= delegate_flash_erase
;
4285 if (ops
->to_flash_done
== NULL
)
4286 ops
->to_flash_done
= delegate_flash_done
;
4287 if (ops
->to_read_description
== NULL
)
4288 ops
->to_read_description
= delegate_read_description
;
4289 if (ops
->to_get_ada_task_ptid
== NULL
)
4290 ops
->to_get_ada_task_ptid
= delegate_get_ada_task_ptid
;
4291 if (ops
->to_auxv_parse
== NULL
)
4292 ops
->to_auxv_parse
= delegate_auxv_parse
;
4293 if (ops
->to_search_memory
== NULL
)
4294 ops
->to_search_memory
= delegate_search_memory
;
4295 if (ops
->to_can_execute_reverse
== NULL
)
4296 ops
->to_can_execute_reverse
= delegate_can_execute_reverse
;
4297 if (ops
->to_execution_direction
== NULL
)
4298 ops
->to_execution_direction
= delegate_execution_direction
;
4299 if (ops
->to_supports_multi_process
== NULL
)
4300 ops
->to_supports_multi_process
= delegate_supports_multi_process
;
4301 if (ops
->to_supports_enable_disable_tracepoint
== NULL
)
4302 ops
->to_supports_enable_disable_tracepoint
= delegate_supports_enable_disable_tracepoint
;
4303 if (ops
->to_supports_string_tracing
== NULL
)
4304 ops
->to_supports_string_tracing
= delegate_supports_string_tracing
;
4305 if (ops
->to_supports_evaluation_of_breakpoint_conditions
== NULL
)
4306 ops
->to_supports_evaluation_of_breakpoint_conditions
= delegate_supports_evaluation_of_breakpoint_conditions
;
4307 if (ops
->to_can_run_breakpoint_commands
== NULL
)
4308 ops
->to_can_run_breakpoint_commands
= delegate_can_run_breakpoint_commands
;
4309 if (ops
->to_thread_architecture
== NULL
)
4310 ops
->to_thread_architecture
= delegate_thread_architecture
;
4311 if (ops
->to_thread_address_space
== NULL
)
4312 ops
->to_thread_address_space
= delegate_thread_address_space
;
4313 if (ops
->to_filesystem_is_local
== NULL
)
4314 ops
->to_filesystem_is_local
= delegate_filesystem_is_local
;
4315 if (ops
->to_trace_init
== NULL
)
4316 ops
->to_trace_init
= delegate_trace_init
;
4317 if (ops
->to_download_tracepoint
== NULL
)
4318 ops
->to_download_tracepoint
= delegate_download_tracepoint
;
4319 if (ops
->to_can_download_tracepoint
== NULL
)
4320 ops
->to_can_download_tracepoint
= delegate_can_download_tracepoint
;
4321 if (ops
->to_download_trace_state_variable
== NULL
)
4322 ops
->to_download_trace_state_variable
= delegate_download_trace_state_variable
;
4323 if (ops
->to_enable_tracepoint
== NULL
)
4324 ops
->to_enable_tracepoint
= delegate_enable_tracepoint
;
4325 if (ops
->to_disable_tracepoint
== NULL
)
4326 ops
->to_disable_tracepoint
= delegate_disable_tracepoint
;
4327 if (ops
->to_trace_set_readonly_regions
== NULL
)
4328 ops
->to_trace_set_readonly_regions
= delegate_trace_set_readonly_regions
;
4329 if (ops
->to_trace_start
== NULL
)
4330 ops
->to_trace_start
= delegate_trace_start
;
4331 if (ops
->to_get_trace_status
== NULL
)
4332 ops
->to_get_trace_status
= delegate_get_trace_status
;
4333 if (ops
->to_get_tracepoint_status
== NULL
)
4334 ops
->to_get_tracepoint_status
= delegate_get_tracepoint_status
;
4335 if (ops
->to_trace_stop
== NULL
)
4336 ops
->to_trace_stop
= delegate_trace_stop
;
4337 if (ops
->to_trace_find
== NULL
)
4338 ops
->to_trace_find
= delegate_trace_find
;
4339 if (ops
->to_get_trace_state_variable_value
== NULL
)
4340 ops
->to_get_trace_state_variable_value
= delegate_get_trace_state_variable_value
;
4341 if (ops
->to_save_trace_data
== NULL
)
4342 ops
->to_save_trace_data
= delegate_save_trace_data
;
4343 if (ops
->to_upload_tracepoints
== NULL
)
4344 ops
->to_upload_tracepoints
= delegate_upload_tracepoints
;
4345 if (ops
->to_upload_trace_state_variables
== NULL
)
4346 ops
->to_upload_trace_state_variables
= delegate_upload_trace_state_variables
;
4347 if (ops
->to_get_raw_trace_data
== NULL
)
4348 ops
->to_get_raw_trace_data
= delegate_get_raw_trace_data
;
4349 if (ops
->to_get_min_fast_tracepoint_insn_len
== NULL
)
4350 ops
->to_get_min_fast_tracepoint_insn_len
= delegate_get_min_fast_tracepoint_insn_len
;
4351 if (ops
->to_set_disconnected_tracing
== NULL
)
4352 ops
->to_set_disconnected_tracing
= delegate_set_disconnected_tracing
;
4353 if (ops
->to_set_circular_trace_buffer
== NULL
)
4354 ops
->to_set_circular_trace_buffer
= delegate_set_circular_trace_buffer
;
4355 if (ops
->to_set_trace_buffer_size
== NULL
)
4356 ops
->to_set_trace_buffer_size
= delegate_set_trace_buffer_size
;
4357 if (ops
->to_set_trace_notes
== NULL
)
4358 ops
->to_set_trace_notes
= delegate_set_trace_notes
;
4359 if (ops
->to_core_of_thread
== NULL
)
4360 ops
->to_core_of_thread
= delegate_core_of_thread
;
4361 if (ops
->to_verify_memory
== NULL
)
4362 ops
->to_verify_memory
= delegate_verify_memory
;
4363 if (ops
->to_get_tib_address
== NULL
)
4364 ops
->to_get_tib_address
= delegate_get_tib_address
;
4365 if (ops
->to_set_permissions
== NULL
)
4366 ops
->to_set_permissions
= delegate_set_permissions
;
4367 if (ops
->to_static_tracepoint_marker_at
== NULL
)
4368 ops
->to_static_tracepoint_marker_at
= delegate_static_tracepoint_marker_at
;
4369 if (ops
->to_static_tracepoint_markers_by_strid
== NULL
)
4370 ops
->to_static_tracepoint_markers_by_strid
= delegate_static_tracepoint_markers_by_strid
;
4371 if (ops
->to_traceframe_info
== NULL
)
4372 ops
->to_traceframe_info
= delegate_traceframe_info
;
4373 if (ops
->to_use_agent
== NULL
)
4374 ops
->to_use_agent
= delegate_use_agent
;
4375 if (ops
->to_can_use_agent
== NULL
)
4376 ops
->to_can_use_agent
= delegate_can_use_agent
;
4377 if (ops
->to_supports_btrace
== NULL
)
4378 ops
->to_supports_btrace
= delegate_supports_btrace
;
4379 if (ops
->to_enable_btrace
== NULL
)
4380 ops
->to_enable_btrace
= delegate_enable_btrace
;
4381 if (ops
->to_disable_btrace
== NULL
)
4382 ops
->to_disable_btrace
= delegate_disable_btrace
;
4383 if (ops
->to_teardown_btrace
== NULL
)
4384 ops
->to_teardown_btrace
= delegate_teardown_btrace
;
4385 if (ops
->to_read_btrace
== NULL
)
4386 ops
->to_read_btrace
= delegate_read_btrace
;
4387 if (ops
->to_btrace_conf
== NULL
)
4388 ops
->to_btrace_conf
= delegate_btrace_conf
;
4389 if (ops
->to_stop_recording
== NULL
)
4390 ops
->to_stop_recording
= delegate_stop_recording
;
4391 if (ops
->to_info_record
== NULL
)
4392 ops
->to_info_record
= delegate_info_record
;
4393 if (ops
->to_save_record
== NULL
)
4394 ops
->to_save_record
= delegate_save_record
;
4395 if (ops
->to_delete_record
== NULL
)
4396 ops
->to_delete_record
= delegate_delete_record
;
4397 if (ops
->to_record_is_replaying
== NULL
)
4398 ops
->to_record_is_replaying
= delegate_record_is_replaying
;
4399 if (ops
->to_record_will_replay
== NULL
)
4400 ops
->to_record_will_replay
= delegate_record_will_replay
;
4401 if (ops
->to_record_stop_replaying
== NULL
)
4402 ops
->to_record_stop_replaying
= delegate_record_stop_replaying
;
4403 if (ops
->to_goto_record_begin
== NULL
)
4404 ops
->to_goto_record_begin
= delegate_goto_record_begin
;
4405 if (ops
->to_goto_record_end
== NULL
)
4406 ops
->to_goto_record_end
= delegate_goto_record_end
;
4407 if (ops
->to_goto_record
== NULL
)
4408 ops
->to_goto_record
= delegate_goto_record
;
4409 if (ops
->to_insn_history
== NULL
)
4410 ops
->to_insn_history
= delegate_insn_history
;
4411 if (ops
->to_insn_history_from
== NULL
)
4412 ops
->to_insn_history_from
= delegate_insn_history_from
;
4413 if (ops
->to_insn_history_range
== NULL
)
4414 ops
->to_insn_history_range
= delegate_insn_history_range
;
4415 if (ops
->to_call_history
== NULL
)
4416 ops
->to_call_history
= delegate_call_history
;
4417 if (ops
->to_call_history_from
== NULL
)
4418 ops
->to_call_history_from
= delegate_call_history_from
;
4419 if (ops
->to_call_history_range
== NULL
)
4420 ops
->to_call_history_range
= delegate_call_history_range
;
4421 if (ops
->to_augmented_libraries_svr4_read
== NULL
)
4422 ops
->to_augmented_libraries_svr4_read
= delegate_augmented_libraries_svr4_read
;
4423 if (ops
->to_get_unwinder
== NULL
)
4424 ops
->to_get_unwinder
= delegate_get_unwinder
;
4425 if (ops
->to_get_tailcall_unwinder
== NULL
)
4426 ops
->to_get_tailcall_unwinder
= delegate_get_tailcall_unwinder
;
4427 if (ops
->to_prepare_to_generate_core
== NULL
)
4428 ops
->to_prepare_to_generate_core
= delegate_prepare_to_generate_core
;
4429 if (ops
->to_done_generating_core
== NULL
)
4430 ops
->to_done_generating_core
= delegate_done_generating_core
;
4434 install_dummy_methods (struct target_ops
*ops
)
4436 ops
->to_post_attach
= tdefault_post_attach
;
4437 ops
->to_detach
= tdefault_detach
;
4438 ops
->to_disconnect
= tdefault_disconnect
;
4439 ops
->to_resume
= tdefault_resume
;
4440 ops
->to_commit_resume
= tdefault_commit_resume
;
4441 ops
->to_wait
= default_target_wait
;
4442 ops
->to_fetch_registers
= tdefault_fetch_registers
;
4443 ops
->to_store_registers
= tdefault_store_registers
;
4444 ops
->to_prepare_to_store
= tdefault_prepare_to_store
;
4445 ops
->to_files_info
= tdefault_files_info
;
4446 ops
->to_insert_breakpoint
= memory_insert_breakpoint
;
4447 ops
->to_remove_breakpoint
= memory_remove_breakpoint
;
4448 ops
->to_stopped_by_sw_breakpoint
= tdefault_stopped_by_sw_breakpoint
;
4449 ops
->to_supports_stopped_by_sw_breakpoint
= tdefault_supports_stopped_by_sw_breakpoint
;
4450 ops
->to_stopped_by_hw_breakpoint
= tdefault_stopped_by_hw_breakpoint
;
4451 ops
->to_supports_stopped_by_hw_breakpoint
= tdefault_supports_stopped_by_hw_breakpoint
;
4452 ops
->to_can_use_hw_breakpoint
= tdefault_can_use_hw_breakpoint
;
4453 ops
->to_ranged_break_num_registers
= tdefault_ranged_break_num_registers
;
4454 ops
->to_insert_hw_breakpoint
= tdefault_insert_hw_breakpoint
;
4455 ops
->to_remove_hw_breakpoint
= tdefault_remove_hw_breakpoint
;
4456 ops
->to_remove_watchpoint
= tdefault_remove_watchpoint
;
4457 ops
->to_insert_watchpoint
= tdefault_insert_watchpoint
;
4458 ops
->to_insert_mask_watchpoint
= tdefault_insert_mask_watchpoint
;
4459 ops
->to_remove_mask_watchpoint
= tdefault_remove_mask_watchpoint
;
4460 ops
->to_stopped_by_watchpoint
= tdefault_stopped_by_watchpoint
;
4461 ops
->to_stopped_data_address
= tdefault_stopped_data_address
;
4462 ops
->to_watchpoint_addr_within_range
= default_watchpoint_addr_within_range
;
4463 ops
->to_region_ok_for_hw_watchpoint
= default_region_ok_for_hw_watchpoint
;
4464 ops
->to_can_accel_watchpoint_condition
= tdefault_can_accel_watchpoint_condition
;
4465 ops
->to_masked_watch_num_registers
= tdefault_masked_watch_num_registers
;
4466 ops
->to_can_do_single_step
= tdefault_can_do_single_step
;
4467 ops
->to_terminal_init
= tdefault_terminal_init
;
4468 ops
->to_terminal_inferior
= tdefault_terminal_inferior
;
4469 ops
->to_terminal_ours_for_output
= tdefault_terminal_ours_for_output
;
4470 ops
->to_terminal_ours
= tdefault_terminal_ours
;
4471 ops
->to_terminal_info
= default_terminal_info
;
4472 ops
->to_kill
= tdefault_kill
;
4473 ops
->to_load
= tdefault_load
;
4474 ops
->to_post_startup_inferior
= tdefault_post_startup_inferior
;
4475 ops
->to_insert_fork_catchpoint
= tdefault_insert_fork_catchpoint
;
4476 ops
->to_remove_fork_catchpoint
= tdefault_remove_fork_catchpoint
;
4477 ops
->to_insert_vfork_catchpoint
= tdefault_insert_vfork_catchpoint
;
4478 ops
->to_remove_vfork_catchpoint
= tdefault_remove_vfork_catchpoint
;
4479 ops
->to_follow_fork
= default_follow_fork
;
4480 ops
->to_insert_exec_catchpoint
= tdefault_insert_exec_catchpoint
;
4481 ops
->to_remove_exec_catchpoint
= tdefault_remove_exec_catchpoint
;
4482 ops
->to_follow_exec
= tdefault_follow_exec
;
4483 ops
->to_set_syscall_catchpoint
= tdefault_set_syscall_catchpoint
;
4484 ops
->to_has_exited
= tdefault_has_exited
;
4485 ops
->to_mourn_inferior
= default_mourn_inferior
;
4486 ops
->to_can_run
= tdefault_can_run
;
4487 ops
->to_pass_signals
= tdefault_pass_signals
;
4488 ops
->to_program_signals
= tdefault_program_signals
;
4489 ops
->to_thread_alive
= tdefault_thread_alive
;
4490 ops
->to_update_thread_list
= tdefault_update_thread_list
;
4491 ops
->to_pid_to_str
= default_pid_to_str
;
4492 ops
->to_extra_thread_info
= tdefault_extra_thread_info
;
4493 ops
->to_thread_name
= tdefault_thread_name
;
4494 ops
->to_stop
= tdefault_stop
;
4495 ops
->to_interrupt
= tdefault_interrupt
;
4496 ops
->to_pass_ctrlc
= default_target_pass_ctrlc
;
4497 ops
->to_rcmd
= default_rcmd
;
4498 ops
->to_pid_to_exec_file
= tdefault_pid_to_exec_file
;
4499 ops
->to_log_command
= tdefault_log_command
;
4500 ops
->to_get_section_table
= tdefault_get_section_table
;
4501 ops
->to_can_async_p
= tdefault_can_async_p
;
4502 ops
->to_is_async_p
= tdefault_is_async_p
;
4503 ops
->to_async
= tdefault_async
;
4504 ops
->to_thread_events
= tdefault_thread_events
;
4505 ops
->to_supports_non_stop
= tdefault_supports_non_stop
;
4506 ops
->to_always_non_stop_p
= tdefault_always_non_stop_p
;
4507 ops
->to_find_memory_regions
= dummy_find_memory_regions
;
4508 ops
->to_make_corefile_notes
= dummy_make_corefile_notes
;
4509 ops
->to_get_bookmark
= tdefault_get_bookmark
;
4510 ops
->to_goto_bookmark
= tdefault_goto_bookmark
;
4511 ops
->to_get_thread_local_address
= tdefault_get_thread_local_address
;
4512 ops
->to_xfer_partial
= tdefault_xfer_partial
;
4513 ops
->to_get_memory_xfer_limit
= tdefault_get_memory_xfer_limit
;
4514 ops
->to_memory_map
= tdefault_memory_map
;
4515 ops
->to_flash_erase
= tdefault_flash_erase
;
4516 ops
->to_flash_done
= tdefault_flash_done
;
4517 ops
->to_read_description
= tdefault_read_description
;
4518 ops
->to_get_ada_task_ptid
= default_get_ada_task_ptid
;
4519 ops
->to_auxv_parse
= default_auxv_parse
;
4520 ops
->to_search_memory
= default_search_memory
;
4521 ops
->to_can_execute_reverse
= tdefault_can_execute_reverse
;
4522 ops
->to_execution_direction
= default_execution_direction
;
4523 ops
->to_supports_multi_process
= tdefault_supports_multi_process
;
4524 ops
->to_supports_enable_disable_tracepoint
= tdefault_supports_enable_disable_tracepoint
;
4525 ops
->to_supports_string_tracing
= tdefault_supports_string_tracing
;
4526 ops
->to_supports_evaluation_of_breakpoint_conditions
= tdefault_supports_evaluation_of_breakpoint_conditions
;
4527 ops
->to_can_run_breakpoint_commands
= tdefault_can_run_breakpoint_commands
;
4528 ops
->to_thread_architecture
= default_thread_architecture
;
4529 ops
->to_thread_address_space
= default_thread_address_space
;
4530 ops
->to_filesystem_is_local
= tdefault_filesystem_is_local
;
4531 ops
->to_trace_init
= tdefault_trace_init
;
4532 ops
->to_download_tracepoint
= tdefault_download_tracepoint
;
4533 ops
->to_can_download_tracepoint
= tdefault_can_download_tracepoint
;
4534 ops
->to_download_trace_state_variable
= tdefault_download_trace_state_variable
;
4535 ops
->to_enable_tracepoint
= tdefault_enable_tracepoint
;
4536 ops
->to_disable_tracepoint
= tdefault_disable_tracepoint
;
4537 ops
->to_trace_set_readonly_regions
= tdefault_trace_set_readonly_regions
;
4538 ops
->to_trace_start
= tdefault_trace_start
;
4539 ops
->to_get_trace_status
= tdefault_get_trace_status
;
4540 ops
->to_get_tracepoint_status
= tdefault_get_tracepoint_status
;
4541 ops
->to_trace_stop
= tdefault_trace_stop
;
4542 ops
->to_trace_find
= tdefault_trace_find
;
4543 ops
->to_get_trace_state_variable_value
= tdefault_get_trace_state_variable_value
;
4544 ops
->to_save_trace_data
= tdefault_save_trace_data
;
4545 ops
->to_upload_tracepoints
= tdefault_upload_tracepoints
;
4546 ops
->to_upload_trace_state_variables
= tdefault_upload_trace_state_variables
;
4547 ops
->to_get_raw_trace_data
= tdefault_get_raw_trace_data
;
4548 ops
->to_get_min_fast_tracepoint_insn_len
= tdefault_get_min_fast_tracepoint_insn_len
;
4549 ops
->to_set_disconnected_tracing
= tdefault_set_disconnected_tracing
;
4550 ops
->to_set_circular_trace_buffer
= tdefault_set_circular_trace_buffer
;
4551 ops
->to_set_trace_buffer_size
= tdefault_set_trace_buffer_size
;
4552 ops
->to_set_trace_notes
= tdefault_set_trace_notes
;
4553 ops
->to_core_of_thread
= tdefault_core_of_thread
;
4554 ops
->to_verify_memory
= default_verify_memory
;
4555 ops
->to_get_tib_address
= tdefault_get_tib_address
;
4556 ops
->to_set_permissions
= tdefault_set_permissions
;
4557 ops
->to_static_tracepoint_marker_at
= tdefault_static_tracepoint_marker_at
;
4558 ops
->to_static_tracepoint_markers_by_strid
= tdefault_static_tracepoint_markers_by_strid
;
4559 ops
->to_traceframe_info
= tdefault_traceframe_info
;
4560 ops
->to_use_agent
= tdefault_use_agent
;
4561 ops
->to_can_use_agent
= tdefault_can_use_agent
;
4562 ops
->to_supports_btrace
= tdefault_supports_btrace
;
4563 ops
->to_enable_btrace
= tdefault_enable_btrace
;
4564 ops
->to_disable_btrace
= tdefault_disable_btrace
;
4565 ops
->to_teardown_btrace
= tdefault_teardown_btrace
;
4566 ops
->to_read_btrace
= tdefault_read_btrace
;
4567 ops
->to_btrace_conf
= tdefault_btrace_conf
;
4568 ops
->to_stop_recording
= tdefault_stop_recording
;
4569 ops
->to_info_record
= tdefault_info_record
;
4570 ops
->to_save_record
= tdefault_save_record
;
4571 ops
->to_delete_record
= tdefault_delete_record
;
4572 ops
->to_record_is_replaying
= tdefault_record_is_replaying
;
4573 ops
->to_record_will_replay
= tdefault_record_will_replay
;
4574 ops
->to_record_stop_replaying
= tdefault_record_stop_replaying
;
4575 ops
->to_goto_record_begin
= tdefault_goto_record_begin
;
4576 ops
->to_goto_record_end
= tdefault_goto_record_end
;
4577 ops
->to_goto_record
= tdefault_goto_record
;
4578 ops
->to_insn_history
= tdefault_insn_history
;
4579 ops
->to_insn_history_from
= tdefault_insn_history_from
;
4580 ops
->to_insn_history_range
= tdefault_insn_history_range
;
4581 ops
->to_call_history
= tdefault_call_history
;
4582 ops
->to_call_history_from
= tdefault_call_history_from
;
4583 ops
->to_call_history_range
= tdefault_call_history_range
;
4584 ops
->to_augmented_libraries_svr4_read
= tdefault_augmented_libraries_svr4_read
;
4585 ops
->to_get_unwinder
= tdefault_get_unwinder
;
4586 ops
->to_get_tailcall_unwinder
= tdefault_get_tailcall_unwinder
;
4587 ops
->to_prepare_to_generate_core
= tdefault_prepare_to_generate_core
;
4588 ops
->to_done_generating_core
= tdefault_done_generating_core
;
4592 init_debug_target (struct target_ops
*ops
)
4594 ops
->to_post_attach
= debug_post_attach
;
4595 ops
->to_detach
= debug_detach
;
4596 ops
->to_disconnect
= debug_disconnect
;
4597 ops
->to_resume
= debug_resume
;
4598 ops
->to_commit_resume
= debug_commit_resume
;
4599 ops
->to_wait
= debug_wait
;
4600 ops
->to_fetch_registers
= debug_fetch_registers
;
4601 ops
->to_store_registers
= debug_store_registers
;
4602 ops
->to_prepare_to_store
= debug_prepare_to_store
;
4603 ops
->to_files_info
= debug_files_info
;
4604 ops
->to_insert_breakpoint
= debug_insert_breakpoint
;
4605 ops
->to_remove_breakpoint
= debug_remove_breakpoint
;
4606 ops
->to_stopped_by_sw_breakpoint
= debug_stopped_by_sw_breakpoint
;
4607 ops
->to_supports_stopped_by_sw_breakpoint
= debug_supports_stopped_by_sw_breakpoint
;
4608 ops
->to_stopped_by_hw_breakpoint
= debug_stopped_by_hw_breakpoint
;
4609 ops
->to_supports_stopped_by_hw_breakpoint
= debug_supports_stopped_by_hw_breakpoint
;
4610 ops
->to_can_use_hw_breakpoint
= debug_can_use_hw_breakpoint
;
4611 ops
->to_ranged_break_num_registers
= debug_ranged_break_num_registers
;
4612 ops
->to_insert_hw_breakpoint
= debug_insert_hw_breakpoint
;
4613 ops
->to_remove_hw_breakpoint
= debug_remove_hw_breakpoint
;
4614 ops
->to_remove_watchpoint
= debug_remove_watchpoint
;
4615 ops
->to_insert_watchpoint
= debug_insert_watchpoint
;
4616 ops
->to_insert_mask_watchpoint
= debug_insert_mask_watchpoint
;
4617 ops
->to_remove_mask_watchpoint
= debug_remove_mask_watchpoint
;
4618 ops
->to_stopped_by_watchpoint
= debug_stopped_by_watchpoint
;
4619 ops
->to_stopped_data_address
= debug_stopped_data_address
;
4620 ops
->to_watchpoint_addr_within_range
= debug_watchpoint_addr_within_range
;
4621 ops
->to_region_ok_for_hw_watchpoint
= debug_region_ok_for_hw_watchpoint
;
4622 ops
->to_can_accel_watchpoint_condition
= debug_can_accel_watchpoint_condition
;
4623 ops
->to_masked_watch_num_registers
= debug_masked_watch_num_registers
;
4624 ops
->to_can_do_single_step
= debug_can_do_single_step
;
4625 ops
->to_terminal_init
= debug_terminal_init
;
4626 ops
->to_terminal_inferior
= debug_terminal_inferior
;
4627 ops
->to_terminal_ours_for_output
= debug_terminal_ours_for_output
;
4628 ops
->to_terminal_ours
= debug_terminal_ours
;
4629 ops
->to_terminal_info
= debug_terminal_info
;
4630 ops
->to_kill
= debug_kill
;
4631 ops
->to_load
= debug_load
;
4632 ops
->to_post_startup_inferior
= debug_post_startup_inferior
;
4633 ops
->to_insert_fork_catchpoint
= debug_insert_fork_catchpoint
;
4634 ops
->to_remove_fork_catchpoint
= debug_remove_fork_catchpoint
;
4635 ops
->to_insert_vfork_catchpoint
= debug_insert_vfork_catchpoint
;
4636 ops
->to_remove_vfork_catchpoint
= debug_remove_vfork_catchpoint
;
4637 ops
->to_follow_fork
= debug_follow_fork
;
4638 ops
->to_insert_exec_catchpoint
= debug_insert_exec_catchpoint
;
4639 ops
->to_remove_exec_catchpoint
= debug_remove_exec_catchpoint
;
4640 ops
->to_follow_exec
= debug_follow_exec
;
4641 ops
->to_set_syscall_catchpoint
= debug_set_syscall_catchpoint
;
4642 ops
->to_has_exited
= debug_has_exited
;
4643 ops
->to_mourn_inferior
= debug_mourn_inferior
;
4644 ops
->to_can_run
= debug_can_run
;
4645 ops
->to_pass_signals
= debug_pass_signals
;
4646 ops
->to_program_signals
= debug_program_signals
;
4647 ops
->to_thread_alive
= debug_thread_alive
;
4648 ops
->to_update_thread_list
= debug_update_thread_list
;
4649 ops
->to_pid_to_str
= debug_pid_to_str
;
4650 ops
->to_extra_thread_info
= debug_extra_thread_info
;
4651 ops
->to_thread_name
= debug_thread_name
;
4652 ops
->to_stop
= debug_stop
;
4653 ops
->to_interrupt
= debug_interrupt
;
4654 ops
->to_pass_ctrlc
= debug_pass_ctrlc
;
4655 ops
->to_rcmd
= debug_rcmd
;
4656 ops
->to_pid_to_exec_file
= debug_pid_to_exec_file
;
4657 ops
->to_log_command
= debug_log_command
;
4658 ops
->to_get_section_table
= debug_get_section_table
;
4659 ops
->to_can_async_p
= debug_can_async_p
;
4660 ops
->to_is_async_p
= debug_is_async_p
;
4661 ops
->to_async
= debug_async
;
4662 ops
->to_thread_events
= debug_thread_events
;
4663 ops
->to_supports_non_stop
= debug_supports_non_stop
;
4664 ops
->to_always_non_stop_p
= debug_always_non_stop_p
;
4665 ops
->to_find_memory_regions
= debug_find_memory_regions
;
4666 ops
->to_make_corefile_notes
= debug_make_corefile_notes
;
4667 ops
->to_get_bookmark
= debug_get_bookmark
;
4668 ops
->to_goto_bookmark
= debug_goto_bookmark
;
4669 ops
->to_get_thread_local_address
= debug_get_thread_local_address
;
4670 ops
->to_xfer_partial
= debug_xfer_partial
;
4671 ops
->to_get_memory_xfer_limit
= debug_get_memory_xfer_limit
;
4672 ops
->to_memory_map
= debug_memory_map
;
4673 ops
->to_flash_erase
= debug_flash_erase
;
4674 ops
->to_flash_done
= debug_flash_done
;
4675 ops
->to_read_description
= debug_read_description
;
4676 ops
->to_get_ada_task_ptid
= debug_get_ada_task_ptid
;
4677 ops
->to_auxv_parse
= debug_auxv_parse
;
4678 ops
->to_search_memory
= debug_search_memory
;
4679 ops
->to_can_execute_reverse
= debug_can_execute_reverse
;
4680 ops
->to_execution_direction
= debug_execution_direction
;
4681 ops
->to_supports_multi_process
= debug_supports_multi_process
;
4682 ops
->to_supports_enable_disable_tracepoint
= debug_supports_enable_disable_tracepoint
;
4683 ops
->to_supports_string_tracing
= debug_supports_string_tracing
;
4684 ops
->to_supports_evaluation_of_breakpoint_conditions
= debug_supports_evaluation_of_breakpoint_conditions
;
4685 ops
->to_can_run_breakpoint_commands
= debug_can_run_breakpoint_commands
;
4686 ops
->to_thread_architecture
= debug_thread_architecture
;
4687 ops
->to_thread_address_space
= debug_thread_address_space
;
4688 ops
->to_filesystem_is_local
= debug_filesystem_is_local
;
4689 ops
->to_trace_init
= debug_trace_init
;
4690 ops
->to_download_tracepoint
= debug_download_tracepoint
;
4691 ops
->to_can_download_tracepoint
= debug_can_download_tracepoint
;
4692 ops
->to_download_trace_state_variable
= debug_download_trace_state_variable
;
4693 ops
->to_enable_tracepoint
= debug_enable_tracepoint
;
4694 ops
->to_disable_tracepoint
= debug_disable_tracepoint
;
4695 ops
->to_trace_set_readonly_regions
= debug_trace_set_readonly_regions
;
4696 ops
->to_trace_start
= debug_trace_start
;
4697 ops
->to_get_trace_status
= debug_get_trace_status
;
4698 ops
->to_get_tracepoint_status
= debug_get_tracepoint_status
;
4699 ops
->to_trace_stop
= debug_trace_stop
;
4700 ops
->to_trace_find
= debug_trace_find
;
4701 ops
->to_get_trace_state_variable_value
= debug_get_trace_state_variable_value
;
4702 ops
->to_save_trace_data
= debug_save_trace_data
;
4703 ops
->to_upload_tracepoints
= debug_upload_tracepoints
;
4704 ops
->to_upload_trace_state_variables
= debug_upload_trace_state_variables
;
4705 ops
->to_get_raw_trace_data
= debug_get_raw_trace_data
;
4706 ops
->to_get_min_fast_tracepoint_insn_len
= debug_get_min_fast_tracepoint_insn_len
;
4707 ops
->to_set_disconnected_tracing
= debug_set_disconnected_tracing
;
4708 ops
->to_set_circular_trace_buffer
= debug_set_circular_trace_buffer
;
4709 ops
->to_set_trace_buffer_size
= debug_set_trace_buffer_size
;
4710 ops
->to_set_trace_notes
= debug_set_trace_notes
;
4711 ops
->to_core_of_thread
= debug_core_of_thread
;
4712 ops
->to_verify_memory
= debug_verify_memory
;
4713 ops
->to_get_tib_address
= debug_get_tib_address
;
4714 ops
->to_set_permissions
= debug_set_permissions
;
4715 ops
->to_static_tracepoint_marker_at
= debug_static_tracepoint_marker_at
;
4716 ops
->to_static_tracepoint_markers_by_strid
= debug_static_tracepoint_markers_by_strid
;
4717 ops
->to_traceframe_info
= debug_traceframe_info
;
4718 ops
->to_use_agent
= debug_use_agent
;
4719 ops
->to_can_use_agent
= debug_can_use_agent
;
4720 ops
->to_supports_btrace
= debug_supports_btrace
;
4721 ops
->to_enable_btrace
= debug_enable_btrace
;
4722 ops
->to_disable_btrace
= debug_disable_btrace
;
4723 ops
->to_teardown_btrace
= debug_teardown_btrace
;
4724 ops
->to_read_btrace
= debug_read_btrace
;
4725 ops
->to_btrace_conf
= debug_btrace_conf
;
4726 ops
->to_stop_recording
= debug_stop_recording
;
4727 ops
->to_info_record
= debug_info_record
;
4728 ops
->to_save_record
= debug_save_record
;
4729 ops
->to_delete_record
= debug_delete_record
;
4730 ops
->to_record_is_replaying
= debug_record_is_replaying
;
4731 ops
->to_record_will_replay
= debug_record_will_replay
;
4732 ops
->to_record_stop_replaying
= debug_record_stop_replaying
;
4733 ops
->to_goto_record_begin
= debug_goto_record_begin
;
4734 ops
->to_goto_record_end
= debug_goto_record_end
;
4735 ops
->to_goto_record
= debug_goto_record
;
4736 ops
->to_insn_history
= debug_insn_history
;
4737 ops
->to_insn_history_from
= debug_insn_history_from
;
4738 ops
->to_insn_history_range
= debug_insn_history_range
;
4739 ops
->to_call_history
= debug_call_history
;
4740 ops
->to_call_history_from
= debug_call_history_from
;
4741 ops
->to_call_history_range
= debug_call_history_range
;
4742 ops
->to_augmented_libraries_svr4_read
= debug_augmented_libraries_svr4_read
;
4743 ops
->to_get_unwinder
= debug_get_unwinder
;
4744 ops
->to_get_tailcall_unwinder
= debug_get_tailcall_unwinder
;
4745 ops
->to_prepare_to_generate_core
= debug_prepare_to_generate_core
;
4746 ops
->to_done_generating_core
= debug_done_generating_core
;