GDB (xrefs)
/tmp/gdb-8.1/gdb/target-delegates.c
Go to the documentation of this file.
1 /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
2 /* vi:set ro: */
3 
4 /* To regenerate this file, run:*/
5 /* make-target-delegates target.h > target-delegates.c */
6 static void
7 delegate_post_attach (struct target_ops *self, int arg1)
8 {
9  self = self->beneath;
10  self->to_post_attach (self, arg1);
11 }
12 
13 static void
14 tdefault_post_attach (struct target_ops *self, int arg1)
15 {
16 }
17 
18 static void
19 debug_post_attach (struct target_ops *self, int arg1)
20 {
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);
28 }
29 
30 static void
31 delegate_detach (struct target_ops *self, const char *arg1, int arg2)
32 {
33  self = self->beneath;
34  self->to_detach (self, arg1, arg2);
35 }
36 
37 static void
38 tdefault_detach (struct target_ops *self, const char *arg1, int arg2)
39 {
40 }
41 
42 static void
43 debug_detach (struct target_ops *self, const char *arg1, int arg2)
44 {
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);
54 }
55 
56 static void
57 delegate_disconnect (struct target_ops *self, const char *arg1, int arg2)
58 {
59  self = self->beneath;
60  self->to_disconnect (self, arg1, arg2);
61 }
62 
63 static void
64 tdefault_disconnect (struct target_ops *self, const char *arg1, int arg2)
65 {
66  tcomplain ();
67 }
68 
69 static void
70 debug_disconnect (struct target_ops *self, const char *arg1, int arg2)
71 {
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);
81 }
82 
83 static void
84 delegate_resume (struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
85 {
86  self = self->beneath;
87  self->to_resume (self, arg1, arg2, arg3);
88 }
89 
90 static void
91 tdefault_resume (struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
92 {
93  noprocess ();
94 }
95 
96 static void
97 debug_resume (struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
98 {
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);
109  fputs_unfiltered (")\n", gdb_stdlog);
110 }
111 
112 static void
114 {
115  self = self->beneath;
116  self->to_commit_resume (self);
117 }
118 
119 static void
121 {
122 }
123 
124 static void
126 {
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);
131  fputs_unfiltered (")\n", gdb_stdlog);
132 }
133 
134 static ptid_t
135 delegate_wait (struct target_ops *self, ptid_t arg1, struct target_waitstatus *arg2, int arg3)
136 {
137  self = self->beneath;
138  return self->to_wait (self, arg1, arg2, arg3);
139 }
140 
141 static ptid_t
142 debug_wait (struct target_ops *self, ptid_t arg1, struct target_waitstatus *arg2, int arg3)
143 {
144  ptid_t result;
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);
155  fputs_unfiltered (") = ", gdb_stdlog);
156  target_debug_print_ptid_t (result);
158  return result;
159 }
160 
161 static void
162 delegate_fetch_registers (struct target_ops *self, struct regcache *arg1, int arg2)
163 {
164  self = self->beneath;
165  self->to_fetch_registers (self, arg1, arg2);
166 }
167 
168 static void
169 tdefault_fetch_registers (struct target_ops *self, struct regcache *arg1, int arg2)
170 {
171 }
172 
173 static void
174 debug_fetch_registers (struct target_ops *self, struct regcache *arg1, int arg2)
175 {
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);
183  target_debug_print_int (arg2);
184  fputs_unfiltered (")\n", gdb_stdlog);
185 }
186 
187 static void
188 delegate_store_registers (struct target_ops *self, struct regcache *arg1, int arg2)
189 {
190  self = self->beneath;
191  self->to_store_registers (self, arg1, arg2);
192 }
193 
194 static void
195 tdefault_store_registers (struct target_ops *self, struct regcache *arg1, int arg2)
196 {
197  noprocess ();
198 }
199 
200 static void
201 debug_store_registers (struct target_ops *self, struct regcache *arg1, int arg2)
202 {
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);
210  target_debug_print_int (arg2);
211  fputs_unfiltered (")\n", gdb_stdlog);
212 }
213 
214 static void
215 delegate_prepare_to_store (struct target_ops *self, struct regcache *arg1)
216 {
217  self = self->beneath;
218  self->to_prepare_to_store (self, arg1);
219 }
220 
221 static void
222 tdefault_prepare_to_store (struct target_ops *self, struct regcache *arg1)
223 {
224  noprocess ();
225 }
226 
227 static void
228 debug_prepare_to_store (struct target_ops *self, struct regcache *arg1)
229 {
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);
236  fputs_unfiltered (")\n", gdb_stdlog);
237 }
238 
239 static void
241 {
242  self = self->beneath;
243  self->to_files_info (self);
244 }
245 
246 static void
248 {
249 }
250 
251 static void
253 {
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);
258  fputs_unfiltered (")\n", gdb_stdlog);
259 }
260 
261 static int
262 delegate_insert_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
263 {
264  self = self->beneath;
265  return self->to_insert_breakpoint (self, arg1, arg2);
266 }
267 
268 static int
269 debug_insert_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
270 {
271  int result;
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);
280  fputs_unfiltered (") = ", gdb_stdlog);
281  target_debug_print_int (result);
283  return result;
284 }
285 
286 static int
287 delegate_remove_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2, enum remove_bp_reason arg3)
288 {
289  self = self->beneath;
290  return self->to_remove_breakpoint (self, arg1, arg2, arg3);
291 }
292 
293 static int
294 debug_remove_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2, enum remove_bp_reason arg3)
295 {
296  int result;
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);
307  fputs_unfiltered (") = ", gdb_stdlog);
308  target_debug_print_int (result);
310  return result;
311 }
312 
313 static int
315 {
316  self = self->beneath;
317  return self->to_stopped_by_sw_breakpoint (self);
318 }
319 
320 static int
322 {
323  return 0;
324 }
325 
326 static int
328 {
329  int result;
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);
334  fputs_unfiltered (") = ", gdb_stdlog);
335  target_debug_print_int (result);
337  return result;
338 }
339 
340 static int
342 {
343  self = self->beneath;
344  return self->to_supports_stopped_by_sw_breakpoint (self);
345 }
346 
347 static int
349 {
350  return 0;
351 }
352 
353 static int
355 {
356  int result;
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);
361  fputs_unfiltered (") = ", gdb_stdlog);
362  target_debug_print_int (result);
364  return result;
365 }
366 
367 static int
369 {
370  self = self->beneath;
371  return self->to_stopped_by_hw_breakpoint (self);
372 }
373 
374 static int
376 {
377  return 0;
378 }
379 
380 static int
382 {
383  int result;
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);
388  fputs_unfiltered (") = ", gdb_stdlog);
389  target_debug_print_int (result);
391  return result;
392 }
393 
394 static int
396 {
397  self = self->beneath;
398  return self->to_supports_stopped_by_hw_breakpoint (self);
399 }
400 
401 static int
403 {
404  return 0;
405 }
406 
407 static int
409 {
410  int result;
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);
415  fputs_unfiltered (") = ", gdb_stdlog);
416  target_debug_print_int (result);
418  return result;
419 }
420 
421 static int
422 delegate_can_use_hw_breakpoint (struct target_ops *self, enum bptype arg1, int arg2, int arg3)
423 {
424  self = self->beneath;
425  return self->to_can_use_hw_breakpoint (self, arg1, arg2, arg3);
426 }
427 
428 static int
429 tdefault_can_use_hw_breakpoint (struct target_ops *self, enum bptype arg1, int arg2, int arg3)
430 {
431  return 0;
432 }
433 
434 static int
435 debug_can_use_hw_breakpoint (struct target_ops *self, enum bptype arg1, int arg2, int arg3)
436 {
437  int result;
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);
445  target_debug_print_int (arg2);
447  target_debug_print_int (arg3);
448  fputs_unfiltered (") = ", gdb_stdlog);
449  target_debug_print_int (result);
451  return result;
452 }
453 
454 static int
456 {
457  self = self->beneath;
458  return self->to_ranged_break_num_registers (self);
459 }
460 
461 static int
463 {
464  return -1;
465 }
466 
467 static int
469 {
470  int result;
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);
475  fputs_unfiltered (") = ", gdb_stdlog);
476  target_debug_print_int (result);
478  return result;
479 }
480 
481 static int
482 delegate_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
483 {
484  self = self->beneath;
485  return self->to_insert_hw_breakpoint (self, arg1, arg2);
486 }
487 
488 static int
489 tdefault_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
490 {
491  return -1;
492 }
493 
494 static int
495 debug_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
496 {
497  int result;
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);
506  fputs_unfiltered (") = ", gdb_stdlog);
507  target_debug_print_int (result);
509  return result;
510 }
511 
512 static int
513 delegate_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
514 {
515  self = self->beneath;
516  return self->to_remove_hw_breakpoint (self, arg1, arg2);
517 }
518 
519 static int
520 tdefault_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
521 {
522  return -1;
523 }
524 
525 static int
526 debug_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
527 {
528  int result;
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);
537  fputs_unfiltered (") = ", gdb_stdlog);
538  target_debug_print_int (result);
540  return result;
541 }
542 
543 static int
544 delegate_remove_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
545 {
546  self = self->beneath;
547  return self->to_remove_watchpoint (self, arg1, arg2, arg3, arg4);
548 }
549 
550 static int
551 tdefault_remove_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
552 {
553  return -1;
554 }
555 
556 static int
557 debug_remove_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
558 {
559  int result;
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);
567  target_debug_print_int (arg2);
572  fputs_unfiltered (") = ", gdb_stdlog);
573  target_debug_print_int (result);
575  return result;
576 }
577 
578 static int
579 delegate_insert_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
580 {
581  self = self->beneath;
582  return self->to_insert_watchpoint (self, arg1, arg2, arg3, arg4);
583 }
584 
585 static int
586 tdefault_insert_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
587 {
588  return -1;
589 }
590 
591 static int
592 debug_insert_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
593 {
594  int result;
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);
602  target_debug_print_int (arg2);
607  fputs_unfiltered (") = ", gdb_stdlog);
608  target_debug_print_int (result);
610  return result;
611 }
612 
613 static int
615 {
616  self = self->beneath;
617  return self->to_insert_mask_watchpoint (self, arg1, arg2, arg3);
618 }
619 
620 static int
622 {
623  return 1;
624 }
625 
626 static int
628 {
629  int result;
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);
640  fputs_unfiltered (") = ", gdb_stdlog);
641  target_debug_print_int (result);
643  return result;
644 }
645 
646 static int
648 {
649  self = self->beneath;
650  return self->to_remove_mask_watchpoint (self, arg1, arg2, arg3);
651 }
652 
653 static int
655 {
656  return 1;
657 }
658 
659 static int
661 {
662  int result;
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);
673  fputs_unfiltered (") = ", gdb_stdlog);
674  target_debug_print_int (result);
676  return result;
677 }
678 
679 static int
681 {
682  self = self->beneath;
683  return self->to_stopped_by_watchpoint (self);
684 }
685 
686 static int
688 {
689  return 0;
690 }
691 
692 static int
694 {
695  int result;
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);
700  fputs_unfiltered (") = ", gdb_stdlog);
701  target_debug_print_int (result);
703  return result;
704 }
705 
706 static int
708 {
709  self = self->beneath;
710  return self->to_stopped_data_address (self, arg1);
711 }
712 
713 static int
715 {
716  return 0;
717 }
718 
719 static int
721 {
722  int result;
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);
729  fputs_unfiltered (") = ", gdb_stdlog);
730  target_debug_print_int (result);
732  return result;
733 }
734 
735 static int
737 {
738  self = self->beneath;
739  return self->to_watchpoint_addr_within_range (self, arg1, arg2, arg3);
740 }
741 
742 static int
744 {
745  int result;
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);
755  target_debug_print_int (arg3);
756  fputs_unfiltered (") = ", gdb_stdlog);
757  target_debug_print_int (result);
759  return result;
760 }
761 
762 static int
764 {
765  self = self->beneath;
766  return self->to_region_ok_for_hw_watchpoint (self, arg1, arg2);
767 }
768 
769 static int
771 {
772  int result;
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);
780  target_debug_print_int (arg2);
781  fputs_unfiltered (") = ", gdb_stdlog);
782  target_debug_print_int (result);
784  return result;
785 }
786 
787 static int
788 delegate_can_accel_watchpoint_condition (struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
789 {
790  self = self->beneath;
791  return self->to_can_accel_watchpoint_condition (self, arg1, arg2, arg3, arg4);
792 }
793 
794 static int
795 tdefault_can_accel_watchpoint_condition (struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
796 {
797  return 0;
798 }
799 
800 static int
801 debug_can_accel_watchpoint_condition (struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
802 {
803  int result;
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);
811  target_debug_print_int (arg2);
813  target_debug_print_int (arg3);
816  fputs_unfiltered (") = ", gdb_stdlog);
817  target_debug_print_int (result);
819  return result;
820 }
821 
822 static int
824 {
825  self = self->beneath;
826  return self->to_masked_watch_num_registers (self, arg1, arg2);
827 }
828 
829 static int
831 {
832  return -1;
833 }
834 
835 static int
837 {
838  int result;
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);
847  fputs_unfiltered (") = ", gdb_stdlog);
848  target_debug_print_int (result);
850  return result;
851 }
852 
853 static int
855 {
856  self = self->beneath;
857  return self->to_can_do_single_step (self);
858 }
859 
860 static int
862 {
863  return -1;
864 }
865 
866 static int
868 {
869  int result;
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);
874  fputs_unfiltered (") = ", gdb_stdlog);
875  target_debug_print_int (result);
877  return result;
878 }
879 
880 static void
882 {
883  self = self->beneath;
884  self->to_terminal_init (self);
885 }
886 
887 static void
889 {
890 }
891 
892 static void
894 {
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);
899  fputs_unfiltered (")\n", gdb_stdlog);
900 }
901 
902 static void
904 {
905  self = self->beneath;
906  self->to_terminal_inferior (self);
907 }
908 
909 static void
911 {
912 }
913 
914 static void
916 {
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);
921  fputs_unfiltered (")\n", gdb_stdlog);
922 }
923 
924 static void
926 {
927  self = self->beneath;
928  self->to_terminal_ours_for_output (self);
929 }
930 
931 static void
933 {
934 }
935 
936 static void
938 {
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);
943  fputs_unfiltered (")\n", gdb_stdlog);
944 }
945 
946 static void
948 {
949  self = self->beneath;
950  self->to_terminal_ours (self);
951 }
952 
953 static void
955 {
956 }
957 
958 static void
960 {
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);
965  fputs_unfiltered (")\n", gdb_stdlog);
966 }
967 
968 static void
969 delegate_terminal_info (struct target_ops *self, const char *arg1, int arg2)
970 {
971  self = self->beneath;
972  self->to_terminal_info (self, arg1, arg2);
973 }
974 
975 static void
976 debug_terminal_info (struct target_ops *self, const char *arg1, int arg2)
977 {
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);
985  target_debug_print_int (arg2);
986  fputs_unfiltered (")\n", gdb_stdlog);
987 }
988 
989 static void
990 delegate_kill (struct target_ops *self)
991 {
992  self = self->beneath;
993  self->to_kill (self);
994 }
995 
996 static void
997 tdefault_kill (struct target_ops *self)
998 {
999  noprocess ();
1000 }
1001 
1002 static void
1003 debug_kill (struct target_ops *self)
1004 {
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);
1009  fputs_unfiltered (")\n", gdb_stdlog);
1010 }
1011 
1012 static void
1013 delegate_load (struct target_ops *self, const char *arg1, int arg2)
1014 {
1015  self = self->beneath;
1016  self->to_load (self, arg1, arg2);
1017 }
1018 
1019 static void
1020 tdefault_load (struct target_ops *self, const char *arg1, int arg2)
1021 {
1022  tcomplain ();
1023 }
1024 
1025 static void
1026 debug_load (struct target_ops *self, const char *arg1, int arg2)
1027 {
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);
1032  fputs_unfiltered (", ", gdb_stdlog);
1034  fputs_unfiltered (", ", gdb_stdlog);
1035  target_debug_print_int (arg2);
1036  fputs_unfiltered (")\n", gdb_stdlog);
1037 }
1038 
1039 static void
1041 {
1042  self = self->beneath;
1043  self->to_post_startup_inferior (self, arg1);
1044 }
1045 
1046 static void
1048 {
1049 }
1050 
1051 static void
1053 {
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);
1058  fputs_unfiltered (", ", gdb_stdlog);
1060  fputs_unfiltered (")\n", gdb_stdlog);
1061 }
1062 
1063 static int
1065 {
1066  self = self->beneath;
1067  return self->to_insert_fork_catchpoint (self, arg1);
1068 }
1069 
1070 static int
1072 {
1073  return 1;
1074 }
1075 
1076 static int
1078 {
1079  int result;
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);
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);
1089  return result;
1090 }
1091 
1092 static int
1094 {
1095  self = self->beneath;
1096  return self->to_remove_fork_catchpoint (self, arg1);
1097 }
1098 
1099 static int
1101 {
1102  return 1;
1103 }
1104 
1105 static int
1107 {
1108  int result;
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);
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);
1118  return result;
1119 }
1120 
1121 static int
1123 {
1124  self = self->beneath;
1125  return self->to_insert_vfork_catchpoint (self, arg1);
1126 }
1127 
1128 static int
1130 {
1131  return 1;
1132 }
1133 
1134 static int
1136 {
1137  int result;
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);
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);
1147  return result;
1148 }
1149 
1150 static int
1152 {
1153  self = self->beneath;
1154  return self->to_remove_vfork_catchpoint (self, arg1);
1155 }
1156 
1157 static int
1159 {
1160  return 1;
1161 }
1162 
1163 static int
1165 {
1166  int result;
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);
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);
1176  return result;
1177 }
1178 
1179 static int
1180 delegate_follow_fork (struct target_ops *self, int arg1, int arg2)
1181 {
1182  self = self->beneath;
1183  return self->to_follow_fork (self, arg1, arg2);
1184 }
1185 
1186 static int
1187 debug_follow_fork (struct target_ops *self, int arg1, int arg2)
1188 {
1189  int result;
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);
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);
1201  return result;
1202 }
1203 
1204 static int
1206 {
1207  self = self->beneath;
1208  return self->to_insert_exec_catchpoint (self, arg1);
1209 }
1210 
1211 static int
1213 {
1214  return 1;
1215 }
1216 
1217 static int
1219 {
1220  int result;
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);
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);
1230  return result;
1231 }
1232 
1233 static int
1235 {
1236  self = self->beneath;
1237  return self->to_remove_exec_catchpoint (self, arg1);
1238 }
1239 
1240 static int
1242 {
1243  return 1;
1244 }
1245 
1246 static int
1248 {
1249  int result;
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);
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);
1259  return result;
1260 }
1261 
1262 static void
1263 delegate_follow_exec (struct target_ops *self, struct inferior *arg1, char *arg2)
1264 {
1265  self = self->beneath;
1266  self->to_follow_exec (self, arg1, arg2);
1267 }
1268 
1269 static void
1270 tdefault_follow_exec (struct target_ops *self, struct inferior *arg1, char *arg2)
1271 {
1272 }
1273 
1274 static void
1275 debug_follow_exec (struct target_ops *self, struct inferior *arg1, char *arg2)
1276 {
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);
1281  fputs_unfiltered (", ", gdb_stdlog);
1283  fputs_unfiltered (", ", gdb_stdlog);
1285  fputs_unfiltered (")\n", gdb_stdlog);
1286 }
1287 
1288 static int
1289 delegate_set_syscall_catchpoint (struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view<const int> arg4)
1290 {
1291  self = self->beneath;
1292  return self->to_set_syscall_catchpoint (self, arg1, arg2, arg3, arg4);
1293 }
1294 
1295 static int
1296 tdefault_set_syscall_catchpoint (struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view<const int> arg4)
1297 {
1298  return 1;
1299 }
1300 
1301 static int
1302 debug_set_syscall_catchpoint (struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view<const int> arg4)
1303 {
1304  int result;
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);
1307  fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_syscall_catchpoint (", debug_target.to_shortname);
1309  fputs_unfiltered (", ", gdb_stdlog);
1310  target_debug_print_int (arg1);
1311  fputs_unfiltered (", ", gdb_stdlog);
1312  target_debug_print_bool (arg2);
1313  fputs_unfiltered (", ", gdb_stdlog);
1314  target_debug_print_int (arg3);
1315  fputs_unfiltered (", ", gdb_stdlog);
1317  fputs_unfiltered (") = ", gdb_stdlog);
1318  target_debug_print_int (result);
1319  fputs_unfiltered ("\n", gdb_stdlog);
1320  return result;
1321 }
1322 
1323 static int
1324 delegate_has_exited (struct target_ops *self, int arg1, int arg2, int *arg3)
1325 {
1326  self = self->beneath;
1327  return self->to_has_exited (self, arg1, arg2, arg3);
1328 }
1329 
1330 static int
1331 tdefault_has_exited (struct target_ops *self, int arg1, int arg2, int *arg3)
1332 {
1333  return 0;
1334 }
1335 
1336 static int
1337 debug_has_exited (struct target_ops *self, int arg1, int arg2, int *arg3)
1338 {
1339  int result;
1340  fprintf_unfiltered (gdb_stdlog, "-> %s->to_has_exited (...)\n", debug_target.to_shortname);
1341  result = debug_target.to_has_exited (&debug_target, arg1, arg2, arg3);
1342  fprintf_unfiltered (gdb_stdlog, "<- %s->to_has_exited (", debug_target.to_shortname);
1344  fputs_unfiltered (", ", gdb_stdlog);
1345  target_debug_print_int (arg1);
1346  fputs_unfiltered (", ", gdb_stdlog);
1347  target_debug_print_int (arg2);
1348  fputs_unfiltered (", ", gdb_stdlog);
1349  target_debug_print_int_p (arg3);
1350  fputs_unfiltered (") = ", gdb_stdlog);
1351  target_debug_print_int (result);
1352  fputs_unfiltered ("\n", gdb_stdlog);
1353  return result;
1354 }
1355 
1356 static void
1358 {
1359  self = self->beneath;
1360  self->to_mourn_inferior (self);
1361 }
1362 
1363 static void
1365 {
1366  fprintf_unfiltered (gdb_stdlog, "-> %s->to_mourn_inferior (...)\n", debug_target.to_shortname);
1367  debug_target.to_mourn_inferior (&debug_target);
1368  fprintf_unfiltered (gdb_stdlog, "<- %s->to_mourn_inferior (", debug_target.to_shortname);
1370  fputs_unfiltered (")\n", gdb_stdlog);
1371 }
1372 
1373 static int
1375 {
1376  self = self->beneath;
1377  return self->to_can_run (self);
1378 }
1379 
1380 static int
1382 {
1383  return 0;
1384 }
1385 
1386 static int
1388 {
1389  int result;
1390  fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_run (...)\n", debug_target.to_shortname);
1391  result = debug_target.to_can_run (&debug_target);
1392  fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_run (", debug_target.to_shortname);
1394  fputs_unfiltered (") = ", gdb_stdlog);
1395  target_debug_print_int (result);
1396  fputs_unfiltered ("\n", gdb_stdlog);
1397  return result;
1398 }
1399 
1400 static void
1401 delegate_pass_signals (struct target_ops *self, int arg1, unsigned char * arg2)
1402 {
1403  self = self->beneath;
1404  self->to_pass_signals (self, arg1, arg2);
1405 }
1406 
1407 static void
1408 tdefault_pass_signals (struct target_ops *self, int arg1, unsigned char * arg2)
1409 {
1410 }
1411 
1412 static void
1413 debug_pass_signals (struct target_ops *self, int arg1, unsigned char * arg2)
1414 {
1415  fprintf_unfiltered (gdb_stdlog, "-> %s->to_pass_signals (...)\n", debug_target.to_shortname);
1416  debug_target.to_pass_signals (&debug_target, arg1, arg2);
1417  fprintf_unfiltered (gdb_stdlog, "<- %s->to_pass_signals (", debug_target.to_shortname);
1419  fputs_unfiltered (", ", gdb_stdlog);
1420  target_debug_print_int (arg1);
1421  fputs_unfiltered (", ", gdb_stdlog);
1423  fputs_unfiltered (")\n", gdb_stdlog);
1424 }
1425 
1426 static void
1427 delegate_program_signals (struct target_ops *self, int arg1, unsigned char * arg2)
1428 {
1429  self = self->beneath;
1430  self->to_program_signals (self, arg1, arg2);
1431 }
1432 
1433 static void
1434 tdefault_program_signals (struct target_ops *self, int arg1, unsigned char * arg2)
1435 {
1436 }
1437 
1438 static void
1439 debug_program_signals (struct target_ops *self, int arg1, unsigned char * arg2)
1440 {
1441  fprintf_unfiltered (gdb_stdlog, "-> %s->to_program_signals (...)\n", debug_target.to_shortname);
1442  debug_target.to_program_signals (&debug_target, arg1, arg2);
1443  fprintf_unfiltered (gdb_stdlog, "<- %s->to_program_signals (", debug_target.to_shortname);
1445  fputs_unfiltered (", ", gdb_stdlog);
1446  target_debug_print_int (arg1);
1447  fputs_unfiltered (", ", gdb_stdlog);
1449  fputs_unfiltered (")\n", gdb_stdlog);
1450 }
1451 
1452 static int
1454 {
1455  self = self->beneath;
1456  return self->to_thread_alive (self, arg1);
1457 }
1458 
1459 static int
1461 {
1462  return 0;
1463 }
1464 
1465 static int
1467 {
1468  int result;
1469  fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_alive (...)\n", debug_target.to_shortname);
1470  result = debug_target.to_thread_alive (&debug_target, arg1);
1471  fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_alive (", debug_target.to_shortname);
1473  fputs_unfiltered (", ", gdb_stdlog);
1475  fputs_unfiltered (") = ", gdb_stdlog);
1476  target_debug_print_int (result);
1477  fputs_unfiltered ("\n", gdb_stdlog);
1478  return result;
1479 }
1480 
1481 static void
1483 {
1484  self = self->beneath;
1485  self->to_update_thread_list (self);
1486 }
1487 
1488 static void
1490 {
1491 }
1492 
1493 static void
1495 {
1496  fprintf_unfiltered (gdb_stdlog, "-> %s->to_update_thread_list (...)\n", debug_target.to_shortname);
1497  debug_target.to_update_thread_list (&debug_target);
1498  fprintf_unfiltered (gdb_stdlog, "<- %s->to_update_thread_list (", debug_target.to_shortname);
1500  fputs_unfiltered (")\n", gdb_stdlog);
1501 }
1502 
1503 static const char *
1505 {
1506  self = self->beneath;
1507  return self->to_pid_to_str (self, arg1);
1508 }
1509 
1510 static const char *
1511 debug_pid_to_str (struct target_ops *self, ptid_t arg1)
1512 {
1513  const char * result;
1514  fprintf_unfiltered (gdb_stdlog, "-> %s->to_pid_to_str (...)\n", debug_target.to_shortname);
1515  result = debug_target.to_pid_to_str (&debug_target, arg1);
1516  fprintf_unfiltered (gdb_stdlog, "<- %s->to_pid_to_str (", debug_target.to_shortname);
1518  fputs_unfiltered (", ", gdb_stdlog);
1520  fputs_unfiltered (") = ", gdb_stdlog);
1522  fputs_unfiltered ("\n", gdb_stdlog);
1523  return result;
1524 }
1525 
1526 static const char *
1528 {
1529  self = self->beneath;
1530  return self->to_extra_thread_info (self, arg1);
1531 }
1532 
1533 static const char *
1535 {
1536  return NULL;
1537 }
1538 
1539 static const char *
1540 debug_extra_thread_info (struct target_ops *self, struct thread_info *arg1)
1541 {
1542  const char * result;
1543  fprintf_unfiltered (gdb_stdlog, "-> %s->to_extra_thread_info (...)\n", debug_target.to_shortname);
1544  result = debug_target.to_extra_thread_info (&debug_target, arg1);
1545  fprintf_unfiltered (gdb_stdlog, "<- %s->to_extra_thread_info (", debug_target.to_shortname);
1547  fputs_unfiltered (", ", gdb_stdlog);
1549  fputs_unfiltered (") = ", gdb_stdlog);
1551  fputs_unfiltered ("\n", gdb_stdlog);
1552  return result;
1553 }
1554 
1555 static const char *
1556 delegate_thread_name (struct target_ops *self, struct thread_info *arg1)
1557 {
1558  self = self->beneath;
1559  return self->to_thread_name (self, arg1);
1560 }
1561 
1562 static const char *
1563 tdefault_thread_name (struct target_ops *self, struct thread_info *arg1)
1564 {
1565  return NULL;
1566 }
1567 
1568 static const char *
1569 debug_thread_name (struct target_ops *self, struct thread_info *arg1)
1570 {
1571  const char * result;
1572  fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_name (...)\n", debug_target.to_shortname);
1573  result = debug_target.to_thread_name (&debug_target, arg1);
1574  fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_name (", debug_target.to_shortname);
1576  fputs_unfiltered (", ", gdb_stdlog);
1578  fputs_unfiltered (") = ", gdb_stdlog);
1580  fputs_unfiltered ("\n", gdb_stdlog);
1581  return result;
1582 }
1583 
1584 static struct thread_info *
1585 delegate_thread_handle_to_thread_info (struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
1586 {
1587  self = self->beneath;
1588  return self->to_thread_handle_to_thread_info (self, arg1, arg2, arg3);
1589 }
1590 
1591 static struct thread_info *
1592 tdefault_thread_handle_to_thread_info (struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
1593 {
1594  return NULL;
1595 }
1596 
1597 static struct thread_info *
1598 debug_thread_handle_to_thread_info (struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
1599 {
1600  struct thread_info * result;
1601  fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_handle_to_thread_info (...)\n", debug_target.to_shortname);
1602  result = debug_target.to_thread_handle_to_thread_info (&debug_target, arg1, arg2, arg3);
1603  fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_handle_to_thread_info (", debug_target.to_shortname);
1605  fputs_unfiltered (", ", gdb_stdlog);
1607  fputs_unfiltered (", ", gdb_stdlog);
1608  target_debug_print_int (arg2);
1609  fputs_unfiltered (", ", gdb_stdlog);
1611  fputs_unfiltered (") = ", gdb_stdlog);
1613  fputs_unfiltered ("\n", gdb_stdlog);
1614  return result;
1615 }
1616 
1617 static void
1618 delegate_stop (struct target_ops *self, ptid_t arg1)
1619 {
1620  self = self->beneath;
1621  self->to_stop (self, arg1);
1622 }
1623 
1624 static void
1625 tdefault_stop (struct target_ops *self, ptid_t arg1)
1626 {
1627 }
1628 
1629 static void
1630 debug_stop (struct target_ops *self, ptid_t arg1)
1631 {
1632  fprintf_unfiltered (gdb_stdlog, "-> %s->to_stop (...)\n", debug_target.to_shortname);
1633  debug_target.to_stop (&debug_target, arg1);
1634  fprintf_unfiltered (gdb_stdlog, "<- %s->to_stop (", debug_target.to_shortname);
1636  fputs_unfiltered (", ", gdb_stdlog);
1638  fputs_unfiltered (")\n", gdb_stdlog);
1639 }
1640 
1641 static void
1643 {
1644  self = self->beneath;
1645  self->to_interrupt (self, arg1);
1646 }
1647 
1648 static void
1650 {
1651 }
1652 
1653 static void
1654 debug_interrupt (struct target_ops *self, ptid_t arg1)
1655 {
1656  fprintf_unfiltered (gdb_stdlog, "-> %s->to_interrupt (...)\n", debug_target.to_shortname);
1657  debug_target.to_interrupt (&debug_target, arg1);
1658  fprintf_unfiltered (gdb_stdlog, "<- %s->to_interrupt (", debug_target.to_shortname);
1660  fputs_unfiltered (", ", gdb_stdlog);
1662  fputs_unfiltered (")\n", gdb_stdlog);
1663 }
1664 
1665 static void
1667 {
1668  self = self->beneath;
1669  self->to_pass_ctrlc (self);
1670 }
1671 
1672 static void
1674 {
1675  fprintf_unfiltered (gdb_stdlog, "-> %s->to_pass_ctrlc (...)\n", debug_target.to_shortname);
1676  debug_target.to_pass_ctrlc (&debug_target);
1677  fprintf_unfiltered (gdb_stdlog, "<- %s->to_pass_ctrlc (", debug_target.to_shortname);
1679  fputs_unfiltered (")\n", gdb_stdlog);
1680 }
1681 
1682 static void
1683 delegate_rcmd (struct target_ops *self, const char *arg1, struct ui_file *arg2)
1684 {
1685  self = self->beneath;
1686  self->to_rcmd (self, arg1, arg2);
1687 }
1688 
1689 static void
1690 debug_rcmd (struct target_ops *self, const char *arg1, struct ui_file *arg2)
1691 {
1692  fprintf_unfiltered (gdb_stdlog, "-> %s->to_rcmd (...)\n", debug_target.to_shortname);
1693  debug_target.to_rcmd (&debug_target, arg1, arg2);
1694  fprintf_unfiltered (gdb_stdlog, "<- %s->to_rcmd (", debug_target.to_shortname);
1696  fputs_unfiltered (", ", gdb_stdlog);
1698  fputs_unfiltered (", ", gdb_stdlog);
1700  fputs_unfiltered (")\n", gdb_stdlog);
1701 }
1702 
1703 static char *
1704 delegate_pid_to_exec_file (struct target_ops *self, int arg1)
1705 {
1706  self = self->beneath;
1707  return self->to_pid_to_exec_file (self, arg1);
1708 }
1709 
1710 static char *
1711 tdefault_pid_to_exec_file (struct target_ops *self, int arg1)
1712 {
1713  return NULL;
1714 }
1715 
1716 static char *
1717 debug_pid_to_exec_file (struct target_ops *self, int arg1)
1718 {
1719  char * result;
1720  fprintf_unfiltered (gdb_stdlog, "-> %s->to_pid_to_exec_file (...)\n", debug_target.to_shortname);
1721  result = debug_target.to_pid_to_exec_file (&debug_target, arg1);
1722  fprintf_unfiltered (gdb_stdlog, "<- %s->to_pid_to_exec_file (", debug_target.to_shortname);
1724  fputs_unfiltered (", ", gdb_stdlog);
1725  target_debug_print_int (arg1);
1726  fputs_unfiltered (") = ", gdb_stdlog);
1727  target_debug_print_char_p (result);
1728  fputs_unfiltered ("\n", gdb_stdlog);
1729  return result;
1730 }
1731 
1732 static void
1733 delegate_log_command (struct target_ops *self, const char *arg1)
1734 {
1735  self = self->beneath;
1736  self->to_log_command (self, arg1);
1737 }
1738 
1739 static void
1740 tdefault_log_command (struct target_ops *self, const char *arg1)
1741 {
1742 }
1743 
1744 static void
1745 debug_log_command (struct target_ops *self, const char *arg1)
1746 {
1747  fprintf_unfiltered (gdb_stdlog, "-> %s->to_log_command (...)\n", debug_target.to_shortname);
1748  debug_target.to_log_command (&debug_target, arg1);
1749  fprintf_unfiltered (gdb_stdlog, "<- %s->to_log_command (", debug_target.to_shortname);
1751  fputs_unfiltered (", ", gdb_stdlog);
1753  fputs_unfiltered (")\n", gdb_stdlog);
1754 }
1755 
1756 static struct target_section_table *
1758 {
1759  self = self->beneath;
1760  return self->to_get_section_table (self);
1761 }
1762 
1763 static struct target_section_table *
1765 {
1766  return NULL;
1767 }
1768 
1769 static struct target_section_table *
1771 {
1772  struct target_section_table * result;
1773  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_section_table (...)\n", debug_target.to_shortname);
1774  result = debug_target.to_get_section_table (&debug_target);
1775  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_section_table (", debug_target.to_shortname);
1777  fputs_unfiltered (") = ", gdb_stdlog);
1779  fputs_unfiltered ("\n", gdb_stdlog);
1780  return result;
1781 }
1782 
1783 static int
1785 {
1786  self = self->beneath;
1787  return self->to_can_async_p (self);
1788 }
1789 
1790 static int
1792 {
1793  return 0;
1794 }
1795 
1796 static int
1798 {
1799  int result;
1800  fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_async_p (...)\n", debug_target.to_shortname);
1801  result = debug_target.to_can_async_p (&debug_target);
1802  fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_async_p (", debug_target.to_shortname);
1804  fputs_unfiltered (") = ", gdb_stdlog);
1805  target_debug_print_int (result);
1806  fputs_unfiltered ("\n", gdb_stdlog);
1807  return result;
1808 }
1809 
1810 static int
1812 {
1813  self = self->beneath;
1814  return self->to_is_async_p (self);
1815 }
1816 
1817 static int
1819 {
1820  return 0;
1821 }
1822 
1823 static int
1825 {
1826  int result;
1827  fprintf_unfiltered (gdb_stdlog, "-> %s->to_is_async_p (...)\n", debug_target.to_shortname);
1828  result = debug_target.to_is_async_p (&debug_target);
1829  fprintf_unfiltered (gdb_stdlog, "<- %s->to_is_async_p (", debug_target.to_shortname);
1831  fputs_unfiltered (") = ", gdb_stdlog);
1832  target_debug_print_int (result);
1833  fputs_unfiltered ("\n", gdb_stdlog);
1834  return result;
1835 }
1836 
1837 static void
1838 delegate_async (struct target_ops *self, int arg1)
1839 {
1840  self = self->beneath;
1841  self->to_async (self, arg1);
1842 }
1843 
1844 static void
1845 tdefault_async (struct target_ops *self, int arg1)
1846 {
1847  tcomplain ();
1848 }
1849 
1850 static void
1851 debug_async (struct target_ops *self, int arg1)
1852 {
1853  fprintf_unfiltered (gdb_stdlog, "-> %s->to_async (...)\n", debug_target.to_shortname);
1854  debug_target.to_async (&debug_target, arg1);
1855  fprintf_unfiltered (gdb_stdlog, "<- %s->to_async (", debug_target.to_shortname);
1857  fputs_unfiltered (", ", gdb_stdlog);
1858  target_debug_print_int (arg1);
1859  fputs_unfiltered (")\n", gdb_stdlog);
1860 }
1861 
1862 static void
1863 delegate_thread_events (struct target_ops *self, int arg1)
1864 {
1865  self = self->beneath;
1866  self->to_thread_events (self, arg1);
1867 }
1868 
1869 static void
1870 tdefault_thread_events (struct target_ops *self, int arg1)
1871 {
1872 }
1873 
1874 static void
1875 debug_thread_events (struct target_ops *self, int arg1)
1876 {
1877  fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_events (...)\n", debug_target.to_shortname);
1878  debug_target.to_thread_events (&debug_target, arg1);
1879  fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_events (", debug_target.to_shortname);
1881  fputs_unfiltered (", ", gdb_stdlog);
1882  target_debug_print_int (arg1);
1883  fputs_unfiltered (")\n", gdb_stdlog);
1884 }
1885 
1886 static int
1888 {
1889  self = self->beneath;
1890  return self->to_supports_non_stop (self);
1891 }
1892 
1893 static int
1895 {
1896  return 0;
1897 }
1898 
1899 static int
1901 {
1902  int result;
1903  fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_non_stop (...)\n", debug_target.to_shortname);
1904  result = debug_target.to_supports_non_stop (&debug_target);
1905  fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_non_stop (", debug_target.to_shortname);
1907  fputs_unfiltered (") = ", gdb_stdlog);
1908  target_debug_print_int (result);
1909  fputs_unfiltered ("\n", gdb_stdlog);
1910  return result;
1911 }
1912 
1913 static int
1915 {
1916  self = self->beneath;
1917  return self->to_always_non_stop_p (self);
1918 }
1919 
1920 static int
1922 {
1923  return 0;
1924 }
1925 
1926 static int
1928 {
1929  int result;
1930  fprintf_unfiltered (gdb_stdlog, "-> %s->to_always_non_stop_p (...)\n", debug_target.to_shortname);
1931  result = debug_target.to_always_non_stop_p (&debug_target);
1932  fprintf_unfiltered (gdb_stdlog, "<- %s->to_always_non_stop_p (", debug_target.to_shortname);
1934  fputs_unfiltered (") = ", gdb_stdlog);
1935  target_debug_print_int (result);
1936  fputs_unfiltered ("\n", gdb_stdlog);
1937  return result;
1938 }
1939 
1940 static int
1942 {
1943  self = self->beneath;
1944  return self->to_find_memory_regions (self, arg1, arg2);
1945 }
1946 
1947 static int
1949 {
1950  int result;
1951  fprintf_unfiltered (gdb_stdlog, "-> %s->to_find_memory_regions (...)\n", debug_target.to_shortname);
1952  result = debug_target.to_find_memory_regions (&debug_target, arg1, arg2);
1953  fprintf_unfiltered (gdb_stdlog, "<- %s->to_find_memory_regions (", debug_target.to_shortname);
1955  fputs_unfiltered (", ", gdb_stdlog);
1957  fputs_unfiltered (", ", gdb_stdlog);
1959  fputs_unfiltered (") = ", gdb_stdlog);
1960  target_debug_print_int (result);
1961  fputs_unfiltered ("\n", gdb_stdlog);
1962  return result;
1963 }
1964 
1965 static char *
1966 delegate_make_corefile_notes (struct target_ops *self, bfd *arg1, int *arg2)
1967 {
1968  self = self->beneath;
1969  return self->to_make_corefile_notes (self, arg1, arg2);
1970 }
1971 
1972 static char *
1973 debug_make_corefile_notes (struct target_ops *self, bfd *arg1, int *arg2)
1974 {
1975  char * result;
1976  fprintf_unfiltered (gdb_stdlog, "-> %s->to_make_corefile_notes (...)\n", debug_target.to_shortname);
1977  result = debug_target.to_make_corefile_notes (&debug_target, arg1, arg2);
1978  fprintf_unfiltered (gdb_stdlog, "<- %s->to_make_corefile_notes (", debug_target.to_shortname);
1980  fputs_unfiltered (", ", gdb_stdlog);
1981  target_debug_print_bfd_p (arg1);
1982  fputs_unfiltered (", ", gdb_stdlog);
1983  target_debug_print_int_p (arg2);
1984  fputs_unfiltered (") = ", gdb_stdlog);
1985  target_debug_print_char_p (result);
1986  fputs_unfiltered ("\n", gdb_stdlog);
1987  return result;
1988 }
1989 
1990 static gdb_byte *
1991 delegate_get_bookmark (struct target_ops *self, const char *arg1, int arg2)
1992 {
1993  self = self->beneath;
1994  return self->to_get_bookmark (self, arg1, arg2);
1995 }
1996 
1997 static gdb_byte *
1998 tdefault_get_bookmark (struct target_ops *self, const char *arg1, int arg2)
1999 {
2000  tcomplain ();
2001 }
2002 
2003 static gdb_byte *
2004 debug_get_bookmark (struct target_ops *self, const char *arg1, int arg2)
2005 {
2006  gdb_byte * result;
2007  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_bookmark (...)\n", debug_target.to_shortname);
2008  result = debug_target.to_get_bookmark (&debug_target, arg1, arg2);
2009  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_bookmark (", debug_target.to_shortname);
2011  fputs_unfiltered (", ", gdb_stdlog);
2013  fputs_unfiltered (", ", gdb_stdlog);
2014  target_debug_print_int (arg2);
2015  fputs_unfiltered (") = ", gdb_stdlog);
2017  fputs_unfiltered ("\n", gdb_stdlog);
2018  return result;
2019 }
2020 
2021 static void
2022 delegate_goto_bookmark (struct target_ops *self, const gdb_byte *arg1, int arg2)
2023 {
2024  self = self->beneath;
2025  self->to_goto_bookmark (self, arg1, arg2);
2026 }
2027 
2028 static void
2029 tdefault_goto_bookmark (struct target_ops *self, const gdb_byte *arg1, int arg2)
2030 {
2031  tcomplain ();
2032 }
2033 
2034 static void
2035 debug_goto_bookmark (struct target_ops *self, const gdb_byte *arg1, int arg2)
2036 {
2037  fprintf_unfiltered (gdb_stdlog, "-> %s->to_goto_bookmark (...)\n", debug_target.to_shortname);
2038  debug_target.to_goto_bookmark (&debug_target, arg1, arg2);
2039  fprintf_unfiltered (gdb_stdlog, "<- %s->to_goto_bookmark (", debug_target.to_shortname);
2041  fputs_unfiltered (", ", gdb_stdlog);
2043  fputs_unfiltered (", ", gdb_stdlog);
2044  target_debug_print_int (arg2);
2045  fputs_unfiltered (")\n", gdb_stdlog);
2046 }
2047 
2048 static CORE_ADDR
2050 {
2051  self = self->beneath;
2052  return self->to_get_thread_local_address (self, arg1, arg2, arg3);
2053 }
2054 
2055 static CORE_ADDR
2057 {
2058  generic_tls_error ();
2059 }
2060 
2061 static CORE_ADDR
2063 {
2064  CORE_ADDR result;
2065  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_thread_local_address (...)\n", debug_target.to_shortname);
2066  result = debug_target.to_get_thread_local_address (&debug_target, arg1, arg2, arg3);
2067  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_thread_local_address (", debug_target.to_shortname);
2069  fputs_unfiltered (", ", gdb_stdlog);
2071  fputs_unfiltered (", ", gdb_stdlog);
2073  fputs_unfiltered (", ", gdb_stdlog);
2075  fputs_unfiltered (") = ", gdb_stdlog);
2077  fputs_unfiltered ("\n", gdb_stdlog);
2078  return result;
2079 }
2080 
2081 static enum target_xfer_status
2082 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)
2083 {
2084  self = self->beneath;
2085  return self->to_xfer_partial (self, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
2086 }
2087 
2088 static enum target_xfer_status
2089 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)
2090 {
2091  return TARGET_XFER_E_IO;
2092 }
2093 
2094 static enum target_xfer_status
2095 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)
2096 {
2097  enum target_xfer_status result;
2098  fprintf_unfiltered (gdb_stdlog, "-> %s->to_xfer_partial (...)\n", debug_target.to_shortname);
2099  result = debug_target.to_xfer_partial (&debug_target, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
2100  fprintf_unfiltered (gdb_stdlog, "<- %s->to_xfer_partial (", debug_target.to_shortname);
2102  fputs_unfiltered (", ", gdb_stdlog);
2104  fputs_unfiltered (", ", gdb_stdlog);
2106  fputs_unfiltered (", ", gdb_stdlog);
2108  fputs_unfiltered (", ", gdb_stdlog);
2110  fputs_unfiltered (", ", gdb_stdlog);
2112  fputs_unfiltered (", ", gdb_stdlog);
2114  fputs_unfiltered (", ", gdb_stdlog);
2116  fputs_unfiltered (") = ", gdb_stdlog);
2118  fputs_unfiltered ("\n", gdb_stdlog);
2119  return result;
2120 }
2121 
2122 static ULONGEST
2124 {
2125  self = self->beneath;
2126  return self->to_get_memory_xfer_limit (self);
2127 }
2128 
2129 static ULONGEST
2131 {
2132  return ULONGEST_MAX;
2133 }
2134 
2135 static ULONGEST
2137 {
2138  ULONGEST result;
2139  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_memory_xfer_limit (...)\n", debug_target.to_shortname);
2140  result = debug_target.to_get_memory_xfer_limit (&debug_target);
2141  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_memory_xfer_limit (", debug_target.to_shortname);
2143  fputs_unfiltered (") = ", gdb_stdlog);
2144  target_debug_print_ULONGEST (result);
2145  fputs_unfiltered ("\n", gdb_stdlog);
2146  return result;
2147 }
2148 
2149 static std::vector<mem_region>
2151 {
2152  self = self->beneath;
2153  return self->to_memory_map (self);
2154 }
2155 
2156 static std::vector<mem_region>
2158 {
2159  return std::vector<mem_region> ();
2160 }
2161 
2162 static std::vector<mem_region>
2164 {
2165  std::vector<mem_region> result;
2166  fprintf_unfiltered (gdb_stdlog, "-> %s->to_memory_map (...)\n", debug_target.to_shortname);
2167  result = debug_target.to_memory_map (&debug_target);
2168  fprintf_unfiltered (gdb_stdlog, "<- %s->to_memory_map (", debug_target.to_shortname);
2170  fputs_unfiltered (") = ", gdb_stdlog);
2172  fputs_unfiltered ("\n", gdb_stdlog);
2173  return result;
2174 }
2175 
2176 static void
2178 {
2179  self = self->beneath;
2180  self->to_flash_erase (self, arg1, arg2);
2181 }
2182 
2183 static void
2185 {
2186  tcomplain ();
2187 }
2188 
2189 static void
2190 debug_flash_erase (struct target_ops *self, ULONGEST arg1, LONGEST arg2)
2191 {
2192  fprintf_unfiltered (gdb_stdlog, "-> %s->to_flash_erase (...)\n", debug_target.to_shortname);
2193  debug_target.to_flash_erase (&debug_target, arg1, arg2);
2194  fprintf_unfiltered (gdb_stdlog, "<- %s->to_flash_erase (", debug_target.to_shortname);
2196  fputs_unfiltered (", ", gdb_stdlog);
2198  fputs_unfiltered (", ", gdb_stdlog);
2200  fputs_unfiltered (")\n", gdb_stdlog);
2201 }
2202 
2203 static void
2205 {
2206  self = self->beneath;
2207  self->to_flash_done (self);
2208 }
2209 
2210 static void
2212 {
2213  tcomplain ();
2214 }
2215 
2216 static void
2218 {
2219  fprintf_unfiltered (gdb_stdlog, "-> %s->to_flash_done (...)\n", debug_target.to_shortname);
2220  debug_target.to_flash_done (&debug_target);
2221  fprintf_unfiltered (gdb_stdlog, "<- %s->to_flash_done (", debug_target.to_shortname);
2223  fputs_unfiltered (")\n", gdb_stdlog);
2224 }
2225 
2226 static const struct target_desc *
2228 {
2229  self = self->beneath;
2230  return self->to_read_description (self);
2231 }
2232 
2233 static const struct target_desc *
2235 {
2236  return NULL;
2237 }
2238 
2239 static const struct target_desc *
2241 {
2242  const struct target_desc * result;
2243  fprintf_unfiltered (gdb_stdlog, "-> %s->to_read_description (...)\n", debug_target.to_shortname);
2244  result = debug_target.to_read_description (&debug_target);
2245  fprintf_unfiltered (gdb_stdlog, "<- %s->to_read_description (", debug_target.to_shortname);
2247  fputs_unfiltered (") = ", gdb_stdlog);
2249  fputs_unfiltered ("\n", gdb_stdlog);
2250  return result;
2251 }
2252 
2253 static ptid_t
2254 delegate_get_ada_task_ptid (struct target_ops *self, long arg1, long arg2)
2255 {
2256  self = self->beneath;
2257  return self->to_get_ada_task_ptid (self, arg1, arg2);
2258 }
2259 
2260 static ptid_t
2261 debug_get_ada_task_ptid (struct target_ops *self, long arg1, long arg2)
2262 {
2263  ptid_t result;
2264  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_ada_task_ptid (...)\n", debug_target.to_shortname);
2265  result = debug_target.to_get_ada_task_ptid (&debug_target, arg1, arg2);
2266  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_ada_task_ptid (", debug_target.to_shortname);
2268  fputs_unfiltered (", ", gdb_stdlog);
2269  target_debug_print_long (arg1);
2270  fputs_unfiltered (", ", gdb_stdlog);
2271  target_debug_print_long (arg2);
2272  fputs_unfiltered (") = ", gdb_stdlog);
2273  target_debug_print_ptid_t (result);
2274  fputs_unfiltered ("\n", gdb_stdlog);
2275  return result;
2276 }
2277 
2278 static int
2279 delegate_auxv_parse (struct target_ops *self, gdb_byte **arg1, gdb_byte *arg2, CORE_ADDR *arg3, CORE_ADDR *arg4)
2280 {
2281  self = self->beneath;
2282  return self->to_auxv_parse (self, arg1, arg2, arg3, arg4);
2283 }
2284 
2285 static int
2286 debug_auxv_parse (struct target_ops *self, gdb_byte **arg1, gdb_byte *arg2, CORE_ADDR *arg3, CORE_ADDR *arg4)
2287 {
2288  int result;
2289  fprintf_unfiltered (gdb_stdlog, "-> %s->to_auxv_parse (...)\n", debug_target.to_shortname);
2290  result = debug_target.to_auxv_parse (&debug_target, arg1, arg2, arg3, arg4);
2291  fprintf_unfiltered (gdb_stdlog, "<- %s->to_auxv_parse (", debug_target.to_shortname);
2293  fputs_unfiltered (", ", gdb_stdlog);
2295  fputs_unfiltered (", ", gdb_stdlog);
2297  fputs_unfiltered (", ", gdb_stdlog);
2299  fputs_unfiltered (", ", gdb_stdlog);
2301  fputs_unfiltered (") = ", gdb_stdlog);
2302  target_debug_print_int (result);
2303  fputs_unfiltered ("\n", gdb_stdlog);
2304  return result;
2305 }
2306 
2307 static int
2308 delegate_search_memory (struct target_ops *self, CORE_ADDR arg1, ULONGEST arg2, const gdb_byte *arg3, ULONGEST arg4, CORE_ADDR *arg5)
2309 {
2310  self = self->beneath;
2311  return self->to_search_memory (self, arg1, arg2, arg3, arg4, arg5);
2312 }
2313 
2314 static int
2315 debug_search_memory (struct target_ops *self, CORE_ADDR arg1, ULONGEST arg2, const gdb_byte *arg3, ULONGEST arg4, CORE_ADDR *arg5)
2316 {
2317  int result;
2318  fprintf_unfiltered (gdb_stdlog, "-> %s->to_search_memory (...)\n", debug_target.to_shortname);
2319  result = debug_target.to_search_memory (&debug_target, arg1, arg2, arg3, arg4, arg5);
2320  fprintf_unfiltered (gdb_stdlog, "<- %s->to_search_memory (", debug_target.to_shortname);
2322  fputs_unfiltered (", ", gdb_stdlog);
2324  fputs_unfiltered (", ", gdb_stdlog);
2326  fputs_unfiltered (", ", gdb_stdlog);
2328  fputs_unfiltered (", ", gdb_stdlog);
2330  fputs_unfiltered (", ", gdb_stdlog);
2332  fputs_unfiltered (") = ", gdb_stdlog);
2333  target_debug_print_int (result);
2334  fputs_unfiltered ("\n", gdb_stdlog);
2335  return result;
2336 }
2337 
2338 static int
2340 {
2341  self = self->beneath;
2342  return self->to_can_execute_reverse (self);
2343 }
2344 
2345 static int
2347 {
2348  return 0;
2349 }
2350 
2351 static int
2353 {
2354  int result;
2355  fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_execute_reverse (...)\n", debug_target.to_shortname);
2356  result = debug_target.to_can_execute_reverse (&debug_target);
2357  fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_execute_reverse (", debug_target.to_shortname);
2359  fputs_unfiltered (") = ", gdb_stdlog);
2360  target_debug_print_int (result);
2361  fputs_unfiltered ("\n", gdb_stdlog);
2362  return result;
2363 }
2364 
2365 static enum exec_direction_kind
2367 {
2368  self = self->beneath;
2369  return self->to_execution_direction (self);
2370 }
2371 
2372 static enum exec_direction_kind
2374 {
2375  enum exec_direction_kind result;
2376  fprintf_unfiltered (gdb_stdlog, "-> %s->to_execution_direction (...)\n", debug_target.to_shortname);
2377  result = debug_target.to_execution_direction (&debug_target);
2378  fprintf_unfiltered (gdb_stdlog, "<- %s->to_execution_direction (", debug_target.to_shortname);
2380  fputs_unfiltered (") = ", gdb_stdlog);
2382  fputs_unfiltered ("\n", gdb_stdlog);
2383  return result;
2384 }
2385 
2386 static int
2388 {
2389  self = self->beneath;
2390  return self->to_supports_multi_process (self);
2391 }
2392 
2393 static int
2395 {
2396  return 0;
2397 }
2398 
2399 static int
2401 {
2402  int result;
2403  fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_multi_process (...)\n", debug_target.to_shortname);
2404  result = debug_target.to_supports_multi_process (&debug_target);
2405  fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_multi_process (", debug_target.to_shortname);
2407  fputs_unfiltered (") = ", gdb_stdlog);
2408  target_debug_print_int (result);
2409  fputs_unfiltered ("\n", gdb_stdlog);
2410  return result;
2411 }
2412 
2413 static int
2415 {
2416  self = self->beneath;
2417  return self->to_supports_enable_disable_tracepoint (self);
2418 }
2419 
2420 static int
2422 {
2423  return 0;
2424 }
2425 
2426 static int
2428 {
2429  int result;
2430  fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_enable_disable_tracepoint (...)\n", debug_target.to_shortname);
2431  result = debug_target.to_supports_enable_disable_tracepoint (&debug_target);
2432  fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_enable_disable_tracepoint (", debug_target.to_shortname);
2434  fputs_unfiltered (") = ", gdb_stdlog);
2435  target_debug_print_int (result);
2436  fputs_unfiltered ("\n", gdb_stdlog);
2437  return result;
2438 }
2439 
2440 static int
2442 {
2443  self = self->beneath;
2444  return self->to_supports_string_tracing (self);
2445 }
2446 
2447 static int
2449 {
2450  return 0;
2451 }
2452 
2453 static int
2455 {
2456  int result;
2457  fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_string_tracing (...)\n", debug_target.to_shortname);
2458  result = debug_target.to_supports_string_tracing (&debug_target);
2459  fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_string_tracing (", debug_target.to_shortname);
2461  fputs_unfiltered (") = ", gdb_stdlog);
2462  target_debug_print_int (result);
2463  fputs_unfiltered ("\n", gdb_stdlog);
2464  return result;
2465 }
2466 
2467 static int
2469 {
2470  self = self->beneath;
2471  return self->to_supports_evaluation_of_breakpoint_conditions (self);
2472 }
2473 
2474 static int
2476 {
2477  return 0;
2478 }
2479 
2480 static int
2482 {
2483  int result;
2484  fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_evaluation_of_breakpoint_conditions (...)\n", debug_target.to_shortname);
2485  result = debug_target.to_supports_evaluation_of_breakpoint_conditions (&debug_target);
2486  fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_evaluation_of_breakpoint_conditions (", debug_target.to_shortname);
2488  fputs_unfiltered (") = ", gdb_stdlog);
2489  target_debug_print_int (result);
2490  fputs_unfiltered ("\n", gdb_stdlog);
2491  return result;
2492 }
2493 
2494 static int
2496 {
2497  self = self->beneath;
2498  return self->to_can_run_breakpoint_commands (self);
2499 }
2500 
2501 static int
2503 {
2504  return 0;
2505 }
2506 
2507 static int
2509 {
2510  int result;
2511  fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_run_breakpoint_commands (...)\n", debug_target.to_shortname);
2512  result = debug_target.to_can_run_breakpoint_commands (&debug_target);
2513  fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_run_breakpoint_commands (", debug_target.to_shortname);
2515  fputs_unfiltered (") = ", gdb_stdlog);
2516  target_debug_print_int (result);
2517  fputs_unfiltered ("\n", gdb_stdlog);
2518  return result;
2519 }
2520 
2521 static struct gdbarch *
2523 {
2524  self = self->beneath;
2525  return self->to_thread_architecture (self, arg1);
2526 }
2527 
2528 static struct gdbarch *
2530 {
2531  struct gdbarch * result;
2532  fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_architecture (...)\n", debug_target.to_shortname);
2533  result = debug_target.to_thread_architecture (&debug_target, arg1);
2534  fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_architecture (", debug_target.to_shortname);
2536  fputs_unfiltered (", ", gdb_stdlog);
2538  fputs_unfiltered (") = ", gdb_stdlog);
2540  fputs_unfiltered ("\n", gdb_stdlog);
2541  return result;
2542 }
2543 
2544 static struct address_space *
2546 {
2547  self = self->beneath;
2548  return self->to_thread_address_space (self, arg1);
2549 }
2550 
2551 static struct address_space *
2553 {
2554  struct address_space * result;
2555  fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_address_space (...)\n", debug_target.to_shortname);
2556  result = debug_target.to_thread_address_space (&debug_target, arg1);
2557  fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_address_space (", debug_target.to_shortname);
2559  fputs_unfiltered (", ", gdb_stdlog);
2561  fputs_unfiltered (") = ", gdb_stdlog);
2563  fputs_unfiltered ("\n", gdb_stdlog);
2564  return result;
2565 }
2566 
2567 static int
2569 {
2570  self = self->beneath;
2571  return self->to_filesystem_is_local (self);
2572 }
2573 
2574 static int
2576 {
2577  return 1;
2578 }
2579 
2580 static int
2582 {
2583  int result;
2584  fprintf_unfiltered (gdb_stdlog, "-> %s->to_filesystem_is_local (...)\n", debug_target.to_shortname);
2585  result = debug_target.to_filesystem_is_local (&debug_target);
2586  fprintf_unfiltered (gdb_stdlog, "<- %s->to_filesystem_is_local (", debug_target.to_shortname);
2588  fputs_unfiltered (") = ", gdb_stdlog);
2589  target_debug_print_int (result);
2590  fputs_unfiltered ("\n", gdb_stdlog);
2591  return result;
2592 }
2593 
2594 static void
2596 {
2597  self = self->beneath;
2598  self->to_trace_init (self);
2599 }
2600 
2601 static void
2603 {
2604  tcomplain ();
2605 }
2606 
2607 static void
2609 {
2610  fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_init (...)\n", debug_target.to_shortname);
2611  debug_target.to_trace_init (&debug_target);
2612  fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_init (", debug_target.to_shortname);
2614  fputs_unfiltered (")\n", gdb_stdlog);
2615 }
2616 
2617 static void
2619 {
2620  self = self->beneath;
2621  self->to_download_tracepoint (self, arg1);
2622 }
2623 
2624 static void
2626 {
2627  tcomplain ();
2628 }
2629 
2630 static void
2632 {
2633  fprintf_unfiltered (gdb_stdlog, "-> %s->to_download_tracepoint (...)\n", debug_target.to_shortname);
2634  debug_target.to_download_tracepoint (&debug_target, arg1);
2635  fprintf_unfiltered (gdb_stdlog, "<- %s->to_download_tracepoint (", debug_target.to_shortname);
2637  fputs_unfiltered (", ", gdb_stdlog);
2639  fputs_unfiltered (")\n", gdb_stdlog);
2640 }
2641 
2642 static int
2644 {
2645  self = self->beneath;
2646  return self->to_can_download_tracepoint (self);
2647 }
2648 
2649 static int
2651 {
2652  return 0;
2653 }
2654 
2655 static int
2657 {
2658  int result;
2659  fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_download_tracepoint (...)\n", debug_target.to_shortname);
2660  result = debug_target.to_can_download_tracepoint (&debug_target);
2661  fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_download_tracepoint (", debug_target.to_shortname);
2663  fputs_unfiltered (") = ", gdb_stdlog);
2664  target_debug_print_int (result);
2665  fputs_unfiltered ("\n", gdb_stdlog);
2666  return result;
2667 }
2668 
2669 static void
2671 {
2672  self = self->beneath;
2673  self->to_download_trace_state_variable (self, arg1);
2674 }
2675 
2676 static void
2678 {
2679  tcomplain ();
2680 }
2681 
2682 static void
2684 {
2685  fprintf_unfiltered (gdb_stdlog, "-> %s->to_download_trace_state_variable (...)\n", debug_target.to_shortname);
2686  debug_target.to_download_trace_state_variable (&debug_target, arg1);
2687  fprintf_unfiltered (gdb_stdlog, "<- %s->to_download_trace_state_variable (", debug_target.to_shortname);
2689  fputs_unfiltered (", ", gdb_stdlog);
2691  fputs_unfiltered (")\n", gdb_stdlog);
2692 }
2693 
2694 static void
2696 {
2697  self = self->beneath;
2698  self->to_enable_tracepoint (self, arg1);
2699 }
2700 
2701 static void
2703 {
2704  tcomplain ();
2705 }
2706 
2707 static void
2708 debug_enable_tracepoint (struct target_ops *self, struct bp_location *arg1)
2709 {
2710  fprintf_unfiltered (gdb_stdlog, "-> %s->to_enable_tracepoint (...)\n", debug_target.to_shortname);
2711  debug_target.to_enable_tracepoint (&debug_target, arg1);
2712  fprintf_unfiltered (gdb_stdlog, "<- %s->to_enable_tracepoint (", debug_target.to_shortname);
2714  fputs_unfiltered (", ", gdb_stdlog);
2716  fputs_unfiltered (")\n", gdb_stdlog);
2717 }
2718 
2719 static void
2721 {
2722  self = self->beneath;
2723  self->to_disable_tracepoint (self, arg1);
2724 }
2725 
2726 static void
2728 {
2729  tcomplain ();
2730 }
2731 
2732 static void
2734 {
2735  fprintf_unfiltered (gdb_stdlog, "-> %s->to_disable_tracepoint (...)\n", debug_target.to_shortname);
2736  debug_target.to_disable_tracepoint (&debug_target, arg1);
2737  fprintf_unfiltered (gdb_stdlog, "<- %s->to_disable_tracepoint (", debug_target.to_shortname);
2739  fputs_unfiltered (", ", gdb_stdlog);
2741  fputs_unfiltered (")\n", gdb_stdlog);
2742 }
2743 
2744 static void
2746 {
2747  self = self->beneath;
2748  self->to_trace_set_readonly_regions (self);
2749 }
2750 
2751 static void
2753 {
2754  tcomplain ();
2755 }
2756 
2757 static void
2759 {
2760  fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_set_readonly_regions (...)\n", debug_target.to_shortname);
2761  debug_target.to_trace_set_readonly_regions (&debug_target);
2762  fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_set_readonly_regions (", debug_target.to_shortname);
2764  fputs_unfiltered (")\n", gdb_stdlog);
2765 }
2766 
2767 static void
2769 {
2770  self = self->beneath;
2771  self->to_trace_start (self);
2772 }
2773 
2774 static void
2776 {
2777  tcomplain ();
2778 }
2779 
2780 static void
2782 {
2783  fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_start (...)\n", debug_target.to_shortname);
2784  debug_target.to_trace_start (&debug_target);
2785  fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_start (", debug_target.to_shortname);
2787  fputs_unfiltered (")\n", gdb_stdlog);
2788 }
2789 
2790 static int
2792 {
2793  self = self->beneath;
2794  return self->to_get_trace_status (self, arg1);
2795 }
2796 
2797 static int
2799 {
2800  return -1;
2801 }
2802 
2803 static int
2804 debug_get_trace_status (struct target_ops *self, struct trace_status *arg1)
2805 {
2806  int result;
2807  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_trace_status (...)\n", debug_target.to_shortname);
2808  result = debug_target.to_get_trace_status (&debug_target, arg1);
2809  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_trace_status (", debug_target.to_shortname);
2811  fputs_unfiltered (", ", gdb_stdlog);
2813  fputs_unfiltered (") = ", gdb_stdlog);
2814  target_debug_print_int (result);
2815  fputs_unfiltered ("\n", gdb_stdlog);
2816  return result;
2817 }
2818 
2819 static void
2820 delegate_get_tracepoint_status (struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
2821 {
2822  self = self->beneath;
2823  self->to_get_tracepoint_status (self, arg1, arg2);
2824 }
2825 
2826 static void
2827 tdefault_get_tracepoint_status (struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
2828 {
2829  tcomplain ();
2830 }
2831 
2832 static void
2833 debug_get_tracepoint_status (struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
2834 {
2835  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_tracepoint_status (...)\n", debug_target.to_shortname);
2836  debug_target.to_get_tracepoint_status (&debug_target, arg1, arg2);
2837  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_tracepoint_status (", debug_target.to_shortname);
2839  fputs_unfiltered (", ", gdb_stdlog);
2841  fputs_unfiltered (", ", gdb_stdlog);
2843  fputs_unfiltered (")\n", gdb_stdlog);
2844 }
2845 
2846 static void
2848 {
2849  self = self->beneath;
2850  self->to_trace_stop (self);
2851 }
2852 
2853 static void
2855 {
2856  tcomplain ();
2857 }
2858 
2859 static void
2861 {
2862  fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_stop (...)\n", debug_target.to_shortname);
2863  debug_target.to_trace_stop (&debug_target);
2864  fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_stop (", debug_target.to_shortname);
2866  fputs_unfiltered (")\n", gdb_stdlog);
2867 }
2868 
2869 static int
2870 delegate_trace_find (struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
2871 {
2872  self = self->beneath;
2873  return self->to_trace_find (self, arg1, arg2, arg3, arg4, arg5);
2874 }
2875 
2876 static int
2877 tdefault_trace_find (struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
2878 {
2879  return -1;
2880 }
2881 
2882 static int
2883 debug_trace_find (struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
2884 {
2885  int result;
2886  fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_find (...)\n", debug_target.to_shortname);
2887  result = debug_target.to_trace_find (&debug_target, arg1, arg2, arg3, arg4, arg5);
2888  fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_find (", debug_target.to_shortname);
2890  fputs_unfiltered (", ", gdb_stdlog);
2892  fputs_unfiltered (", ", gdb_stdlog);
2893  target_debug_print_int (arg2);
2894  fputs_unfiltered (", ", gdb_stdlog);
2896  fputs_unfiltered (", ", gdb_stdlog);
2898  fputs_unfiltered (", ", gdb_stdlog);
2899  target_debug_print_int_p (arg5);
2900  fputs_unfiltered (") = ", gdb_stdlog);
2901  target_debug_print_int (result);
2902  fputs_unfiltered ("\n", gdb_stdlog);
2903  return result;
2904 }
2905 
2906 static int
2908 {
2909  self = self->beneath;
2910  return self->to_get_trace_state_variable_value (self, arg1, arg2);
2911 }
2912 
2913 static int
2915 {
2916  return 0;
2917 }
2918 
2919 static int
2921 {
2922  int result;
2923  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_trace_state_variable_value (...)\n", debug_target.to_shortname);
2924  result = debug_target.to_get_trace_state_variable_value (&debug_target, arg1, arg2);
2925  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_trace_state_variable_value (", debug_target.to_shortname);
2927  fputs_unfiltered (", ", gdb_stdlog);
2928  target_debug_print_int (arg1);
2929  fputs_unfiltered (", ", gdb_stdlog);
2931  fputs_unfiltered (") = ", gdb_stdlog);
2932  target_debug_print_int (result);
2933  fputs_unfiltered ("\n", gdb_stdlog);
2934  return result;
2935 }
2936 
2937 static int
2938 delegate_save_trace_data (struct target_ops *self, const char *arg1)
2939 {
2940  self = self->beneath;
2941  return self->to_save_trace_data (self, arg1);
2942 }
2943 
2944 static int
2945 tdefault_save_trace_data (struct target_ops *self, const char *arg1)
2946 {
2947  tcomplain ();
2948 }
2949 
2950 static int
2951 debug_save_trace_data (struct target_ops *self, const char *arg1)
2952 {
2953  int result;
2954  fprintf_unfiltered (gdb_stdlog, "-> %s->to_save_trace_data (...)\n", debug_target.to_shortname);
2955  result = debug_target.to_save_trace_data (&debug_target, arg1);
2956  fprintf_unfiltered (gdb_stdlog, "<- %s->to_save_trace_data (", debug_target.to_shortname);
2958  fputs_unfiltered (", ", gdb_stdlog);
2960  fputs_unfiltered (") = ", gdb_stdlog);
2961  target_debug_print_int (result);
2962  fputs_unfiltered ("\n", gdb_stdlog);
2963  return result;
2964 }
2965 
2966 static int
2968 {
2969  self = self->beneath;
2970  return self->to_upload_tracepoints (self, arg1);
2971 }
2972 
2973 static int
2975 {
2976  return 0;
2977 }
2978 
2979 static int
2980 debug_upload_tracepoints (struct target_ops *self, struct uploaded_tp **arg1)
2981 {
2982  int result;
2983  fprintf_unfiltered (gdb_stdlog, "-> %s->to_upload_tracepoints (...)\n", debug_target.to_shortname);
2984  result = debug_target.to_upload_tracepoints (&debug_target, arg1);
2985  fprintf_unfiltered (gdb_stdlog, "<- %s->to_upload_tracepoints (", debug_target.to_shortname);
2987  fputs_unfiltered (", ", gdb_stdlog);
2989  fputs_unfiltered (") = ", gdb_stdlog);
2990  target_debug_print_int (result);
2991  fputs_unfiltered ("\n", gdb_stdlog);
2992  return result;
2993 }
2994 
2995 static int
2997 {
2998  self = self->beneath;
2999  return self->to_upload_trace_state_variables (self, arg1);
3000 }
3001 
3002 static int
3004 {
3005  return 0;
3006 }
3007 
3008 static int
3010 {
3011  int result;
3012  fprintf_unfiltered (gdb_stdlog, "-> %s->to_upload_trace_state_variables (...)\n", debug_target.to_shortname);
3013  result = debug_target.to_upload_trace_state_variables (&debug_target, arg1);
3014  fprintf_unfiltered (gdb_stdlog, "<- %s->to_upload_trace_state_variables (", debug_target.to_shortname);
3016  fputs_unfiltered (", ", gdb_stdlog);
3018  fputs_unfiltered (") = ", gdb_stdlog);
3019  target_debug_print_int (result);
3020  fputs_unfiltered ("\n", gdb_stdlog);
3021  return result;
3022 }
3023 
3024 static LONGEST
3026 {
3027  self = self->beneath;
3028  return self->to_get_raw_trace_data (self, arg1, arg2, arg3);
3029 }
3030 
3031 static LONGEST
3033 {
3034  tcomplain ();
3035 }
3036 
3037 static LONGEST
3039 {
3040  LONGEST result;
3041  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_raw_trace_data (...)\n", debug_target.to_shortname);
3042  result = debug_target.to_get_raw_trace_data (&debug_target, arg1, arg2, arg3);
3043  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_raw_trace_data (", debug_target.to_shortname);
3045  fputs_unfiltered (", ", gdb_stdlog);
3047  fputs_unfiltered (", ", gdb_stdlog);
3049  fputs_unfiltered (", ", gdb_stdlog);
3051  fputs_unfiltered (") = ", gdb_stdlog);
3052  target_debug_print_LONGEST (result);
3053  fputs_unfiltered ("\n", gdb_stdlog);
3054  return result;
3055 }
3056 
3057 static int
3059 {
3060  self = self->beneath;
3061  return self->to_get_min_fast_tracepoint_insn_len (self);
3062 }
3063 
3064 static int
3066 {
3067  return -1;
3068 }
3069 
3070 static int
3072 {
3073  int result;
3074  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_min_fast_tracepoint_insn_len (...)\n", debug_target.to_shortname);
3075  result = debug_target.to_get_min_fast_tracepoint_insn_len (&debug_target);
3076  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_min_fast_tracepoint_insn_len (", debug_target.to_shortname);
3078  fputs_unfiltered (") = ", gdb_stdlog);
3079  target_debug_print_int (result);
3080  fputs_unfiltered ("\n", gdb_stdlog);
3081  return result;
3082 }
3083 
3084 static void
3086 {
3087  self = self->beneath;
3088  self->to_set_disconnected_tracing (self, arg1);
3089 }
3090 
3091 static void
3093 {
3094 }
3095 
3096 static void
3098 {
3099  fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_disconnected_tracing (...)\n", debug_target.to_shortname);
3100  debug_target.to_set_disconnected_tracing (&debug_target, arg1);
3101  fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_disconnected_tracing (", debug_target.to_shortname);
3103  fputs_unfiltered (", ", gdb_stdlog);
3104  target_debug_print_int (arg1);
3105  fputs_unfiltered (")\n", gdb_stdlog);
3106 }
3107 
3108 static void
3110 {
3111  self = self->beneath;
3112  self->to_set_circular_trace_buffer (self, arg1);
3113 }
3114 
3115 static void
3117 {
3118 }
3119 
3120 static void
3122 {
3123  fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_circular_trace_buffer (...)\n", debug_target.to_shortname);
3124  debug_target.to_set_circular_trace_buffer (&debug_target, arg1);
3125  fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_circular_trace_buffer (", debug_target.to_shortname);
3127  fputs_unfiltered (", ", gdb_stdlog);
3128  target_debug_print_int (arg1);
3129  fputs_unfiltered (")\n", gdb_stdlog);
3130 }
3131 
3132 static void
3134 {
3135  self = self->beneath;
3136  self->to_set_trace_buffer_size (self, arg1);
3137 }
3138 
3139 static void
3141 {
3142 }
3143 
3144 static void
3146 {
3147  fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_trace_buffer_size (...)\n", debug_target.to_shortname);
3148  debug_target.to_set_trace_buffer_size (&debug_target, arg1);
3149  fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_trace_buffer_size (", debug_target.to_shortname);
3151  fputs_unfiltered (", ", gdb_stdlog);
3153  fputs_unfiltered (")\n", gdb_stdlog);
3154 }
3155 
3156 static int
3157 delegate_set_trace_notes (struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
3158 {
3159  self = self->beneath;
3160  return self->to_set_trace_notes (self, arg1, arg2, arg3);
3161 }
3162 
3163 static int
3164 tdefault_set_trace_notes (struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
3165 {
3166  return 0;
3167 }
3168 
3169 static int
3170 debug_set_trace_notes (struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
3171 {
3172  int result;
3173  fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_trace_notes (...)\n", debug_target.to_shortname);
3174  result = debug_target.to_set_trace_notes (&debug_target, arg1, arg2, arg3);
3175  fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_trace_notes (", debug_target.to_shortname);
3177  fputs_unfiltered (", ", gdb_stdlog);
3179  fputs_unfiltered (", ", gdb_stdlog);
3181  fputs_unfiltered (", ", gdb_stdlog);
3183  fputs_unfiltered (") = ", gdb_stdlog);
3184  target_debug_print_int (result);
3185  fputs_unfiltered ("\n", gdb_stdlog);
3186  return result;
3187 }
3188 
3189 static int
3191 {
3192  self = self->beneath;
3193  return self->to_core_of_thread (self, arg1);
3194 }
3195 
3196 static int
3198 {
3199  return -1;
3200 }
3201 
3202 static int
3204 {
3205  int result;
3206  fprintf_unfiltered (gdb_stdlog, "-> %s->to_core_of_thread (...)\n", debug_target.to_shortname);
3207  result = debug_target.to_core_of_thread (&debug_target, arg1);
3208  fprintf_unfiltered (gdb_stdlog, "<- %s->to_core_of_thread (", debug_target.to_shortname);
3210  fputs_unfiltered (", ", gdb_stdlog);
3212  fputs_unfiltered (") = ", gdb_stdlog);
3213  target_debug_print_int (result);
3214  fputs_unfiltered ("\n", gdb_stdlog);
3215  return result;
3216 }
3217 
3218 static int
3219 delegate_verify_memory (struct target_ops *self, const gdb_byte *arg1, CORE_ADDR arg2, ULONGEST arg3)
3220 {
3221  self = self->beneath;
3222  return self->to_verify_memory (self, arg1, arg2, arg3);
3223 }
3224 
3225 static int
3226 debug_verify_memory (struct target_ops *self, const gdb_byte *arg1, CORE_ADDR arg2, ULONGEST arg3)
3227 {
3228  int result;
3229  fprintf_unfiltered (gdb_stdlog, "-> %s->to_verify_memory (...)\n", debug_target.to_shortname);
3230  result = debug_target.to_verify_memory (&debug_target, arg1, arg2, arg3);
3231  fprintf_unfiltered (gdb_stdlog, "<- %s->to_verify_memory (", debug_target.to_shortname);
3233  fputs_unfiltered (", ", gdb_stdlog);
3235  fputs_unfiltered (", ", gdb_stdlog);
3237  fputs_unfiltered (", ", gdb_stdlog);
3239  fputs_unfiltered (") = ", gdb_stdlog);
3240  target_debug_print_int (result);
3241  fputs_unfiltered ("\n", gdb_stdlog);
3242  return result;
3243 }
3244 
3245 static int
3247 {
3248  self = self->beneath;
3249  return self->to_get_tib_address (self, arg1, arg2);
3250 }
3251 
3252 static int
3254 {
3255  tcomplain ();
3256 }
3257 
3258 static int
3260 {
3261  int result;
3262  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_tib_address (...)\n", debug_target.to_shortname);
3263  result = debug_target.to_get_tib_address (&debug_target, arg1, arg2);
3264  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_tib_address (", debug_target.to_shortname);
3266  fputs_unfiltered (", ", gdb_stdlog);
3268  fputs_unfiltered (", ", gdb_stdlog);
3270  fputs_unfiltered (") = ", gdb_stdlog);
3271  target_debug_print_int (result);
3272  fputs_unfiltered ("\n", gdb_stdlog);
3273  return result;
3274 }
3275 
3276 static void
3278 {
3279  self = self->beneath;
3280  self->to_set_permissions (self);
3281 }
3282 
3283 static void
3285 {
3286 }
3287 
3288 static void
3290 {
3291  fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_permissions (...)\n", debug_target.to_shortname);
3292  debug_target.to_set_permissions (&debug_target);
3293  fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_permissions (", debug_target.to_shortname);
3295  fputs_unfiltered (")\n", gdb_stdlog);
3296 }
3297 
3298 static int
3300 {
3301  self = self->beneath;
3302  return self->to_static_tracepoint_marker_at (self, arg1, arg2);
3303 }
3304 
3305 static int
3307 {
3308  return 0;
3309 }
3310 
3311 static int
3313 {
3314  int result;
3315  fprintf_unfiltered (gdb_stdlog, "-> %s->to_static_tracepoint_marker_at (...)\n", debug_target.to_shortname);
3316  result = debug_target.to_static_tracepoint_marker_at (&debug_target, arg1, arg2);
3317  fprintf_unfiltered (gdb_stdlog, "<- %s->to_static_tracepoint_marker_at (", debug_target.to_shortname);
3319  fputs_unfiltered (", ", gdb_stdlog);
3321  fputs_unfiltered (", ", gdb_stdlog);
3323  fputs_unfiltered (") = ", gdb_stdlog);
3324  target_debug_print_int (result);
3325  fputs_unfiltered ("\n", gdb_stdlog);
3326  return result;
3327 }
3328 
3330 delegate_static_tracepoint_markers_by_strid (struct target_ops *self, const char *arg1)
3331 {
3332  self = self->beneath;
3333  return self->to_static_tracepoint_markers_by_strid (self, arg1);
3334 }
3335 
3337 tdefault_static_tracepoint_markers_by_strid (struct target_ops *self, const char *arg1)
3338 {
3339  tcomplain ();
3340 }
3341 
3343 debug_static_tracepoint_markers_by_strid (struct target_ops *self, const char *arg1)
3344 {
3345  VEC(static_tracepoint_marker_p) * result;
3346  fprintf_unfiltered (gdb_stdlog, "-> %s->to_static_tracepoint_markers_by_strid (...)\n", debug_target.to_shortname);
3347  result = debug_target.to_static_tracepoint_markers_by_strid (&debug_target, arg1);
3348  fprintf_unfiltered (gdb_stdlog, "<- %s->to_static_tracepoint_markers_by_strid (", debug_target.to_shortname);
3350  fputs_unfiltered (", ", gdb_stdlog);
3352  fputs_unfiltered (") = ", gdb_stdlog);
3354  fputs_unfiltered ("\n", gdb_stdlog);
3355  return result;
3356 }
3357 
3358 static traceframe_info_up
3360 {
3361  self = self->beneath;
3362  return self->to_traceframe_info (self);
3363 }
3364 
3365 static traceframe_info_up
3367 {
3368  tcomplain ();
3369 }
3370 
3371 static traceframe_info_up
3373 {
3374  traceframe_info_up result;
3375  fprintf_unfiltered (gdb_stdlog, "-> %s->to_traceframe_info (...)\n", debug_target.to_shortname);
3376  result = debug_target.to_traceframe_info (&debug_target);
3377  fprintf_unfiltered (gdb_stdlog, "<- %s->to_traceframe_info (", debug_target.to_shortname);
3379  fputs_unfiltered (") = ", gdb_stdlog);
3381  fputs_unfiltered ("\n", gdb_stdlog);
3382  return result;
3383 }
3384 
3385 static int
3386 delegate_use_agent (struct target_ops *self, int arg1)
3387 {
3388  self = self->beneath;
3389  return self->to_use_agent (self, arg1);
3390 }
3391 
3392 static int
3393 tdefault_use_agent (struct target_ops *self, int arg1)
3394 {
3395  tcomplain ();
3396 }
3397 
3398 static int
3399 debug_use_agent (struct target_ops *self, int arg1)
3400 {
3401  int result;
3402  fprintf_unfiltered (gdb_stdlog, "-> %s->to_use_agent (...)\n", debug_target.to_shortname);
3403  result = debug_target.to_use_agent (&debug_target, arg1);
3404  fprintf_unfiltered (gdb_stdlog, "<- %s->to_use_agent (", debug_target.to_shortname);
3406  fputs_unfiltered (", ", gdb_stdlog);
3407  target_debug_print_int (arg1);
3408  fputs_unfiltered (") = ", gdb_stdlog);
3409  target_debug_print_int (result);
3410  fputs_unfiltered ("\n", gdb_stdlog);
3411  return result;
3412 }
3413 
3414 static int
3416 {
3417  self = self->beneath;
3418  return self->to_can_use_agent (self);
3419 }
3420 
3421 static int
3423 {
3424  return 0;
3425 }
3426 
3427 static int
3429 {
3430  int result;
3431  fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_use_agent (...)\n", debug_target.to_shortname);
3432  result = debug_target.to_can_use_agent (&debug_target);
3433  fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_use_agent (", debug_target.to_shortname);
3435  fputs_unfiltered (") = ", gdb_stdlog);
3436  target_debug_print_int (result);
3437  fputs_unfiltered ("\n", gdb_stdlog);
3438  return result;
3439 }
3440 
3441 static int
3443 {
3444  self = self->beneath;
3445  return self->to_supports_btrace (self, arg1);
3446 }
3447 
3448 static int
3450 {
3451  return 0;
3452 }
3453 
3454 static int
3456 {
3457  int result;
3458  fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_btrace (...)\n", debug_target.to_shortname);
3459  result = debug_target.to_supports_btrace (&debug_target, arg1);
3460  fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_btrace (", debug_target.to_shortname);
3462  fputs_unfiltered (", ", gdb_stdlog);
3464  fputs_unfiltered (") = ", gdb_stdlog);
3465  target_debug_print_int (result);
3466  fputs_unfiltered ("\n", gdb_stdlog);
3467  return result;
3468 }
3469 
3470 static struct btrace_target_info *
3471 delegate_enable_btrace (struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
3472 {
3473  self = self->beneath;
3474  return self->to_enable_btrace (self, arg1, arg2);
3475 }
3476 
3477 static struct btrace_target_info *
3478 tdefault_enable_btrace (struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
3479 {
3480  tcomplain ();
3481 }
3482 
3483 static struct btrace_target_info *
3484 debug_enable_btrace (struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
3485 {
3486  struct btrace_target_info * result;
3487  fprintf_unfiltered (gdb_stdlog, "-> %s->to_enable_btrace (...)\n", debug_target.to_shortname);
3488  result = debug_target.to_enable_btrace (&debug_target, arg1, arg2);
3489  fprintf_unfiltered (gdb_stdlog, "<- %s->to_enable_btrace (", debug_target.to_shortname);
3491  fputs_unfiltered (", ", gdb_stdlog);
3493  fputs_unfiltered (", ", gdb_stdlog);
3495  fputs_unfiltered (") = ", gdb_stdlog);
3497  fputs_unfiltered ("\n", gdb_stdlog);
3498  return result;
3499 }
3500 
3501 static void
3503 {
3504  self = self->beneath;
3505  self->to_disable_btrace (self, arg1);
3506 }
3507 
3508 static void
3510 {
3511  tcomplain ();
3512 }
3513 
3514 static void
3516 {
3517  fprintf_unfiltered (gdb_stdlog, "-> %s->to_disable_btrace (...)\n", debug_target.to_shortname);
3518  debug_target.to_disable_btrace (&debug_target, arg1);
3519  fprintf_unfiltered (gdb_stdlog, "<- %s->to_disable_btrace (", debug_target.to_shortname);
3521  fputs_unfiltered (", ", gdb_stdlog);
3523  fputs_unfiltered (")\n", gdb_stdlog);
3524 }
3525 
3526 static void
3528 {
3529  self = self->beneath;
3530  self->to_teardown_btrace (self, arg1);
3531 }
3532 
3533 static void
3535 {
3536  tcomplain ();
3537 }
3538 
3539 static void
3541 {
3542  fprintf_unfiltered (gdb_stdlog, "-> %s->to_teardown_btrace (...)\n", debug_target.to_shortname);
3543  debug_target.to_teardown_btrace (&debug_target, arg1);
3544  fprintf_unfiltered (gdb_stdlog, "<- %s->to_teardown_btrace (", debug_target.to_shortname);
3546  fputs_unfiltered (", ", gdb_stdlog);
3548  fputs_unfiltered (")\n", gdb_stdlog);
3549 }
3550 
3551 static enum btrace_error
3552 delegate_read_btrace (struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
3553 {
3554  self = self->beneath;
3555  return self->to_read_btrace (self, arg1, arg2, arg3);
3556 }
3557 
3558 static enum btrace_error
3559 tdefault_read_btrace (struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
3560 {
3561  tcomplain ();
3562 }
3563 
3564 static enum btrace_error
3565 debug_read_btrace (struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
3566 {
3567  enum btrace_error result;
3568  fprintf_unfiltered (gdb_stdlog, "-> %s->to_read_btrace (...)\n", debug_target.to_shortname);
3569  result = debug_target.to_read_btrace (&debug_target, arg1, arg2, arg3);
3570  fprintf_unfiltered (gdb_stdlog, "<- %s->to_read_btrace (", debug_target.to_shortname);
3572  fputs_unfiltered (", ", gdb_stdlog);
3574  fputs_unfiltered (", ", gdb_stdlog);
3576  fputs_unfiltered (", ", gdb_stdlog);
3578  fputs_unfiltered (") = ", gdb_stdlog);
3580  fputs_unfiltered ("\n", gdb_stdlog);
3581  return result;
3582 }
3583 
3584 static const struct btrace_config *
3585 delegate_btrace_conf (struct target_ops *self, const struct btrace_target_info *arg1)
3586 {
3587  self = self->beneath;
3588  return self->to_btrace_conf (self, arg1);
3589 }
3590 
3591 static const struct btrace_config *
3592 tdefault_btrace_conf (struct target_ops *self, const struct btrace_target_info *arg1)
3593 {
3594  return NULL;
3595 }
3596 
3597 static const struct btrace_config *
3598 debug_btrace_conf (struct target_ops *self, const struct btrace_target_info *arg1)
3599 {
3600  const struct btrace_config * result;
3601  fprintf_unfiltered (gdb_stdlog, "-> %s->to_btrace_conf (...)\n", debug_target.to_shortname);
3602  result = debug_target.to_btrace_conf (&debug_target, arg1);
3603  fprintf_unfiltered (gdb_stdlog, "<- %s->to_btrace_conf (", debug_target.to_shortname);
3605  fputs_unfiltered (", ", gdb_stdlog);
3607  fputs_unfiltered (") = ", gdb_stdlog);
3609  fputs_unfiltered ("\n", gdb_stdlog);
3610  return result;
3611 }
3612 
3613 static enum record_method
3615 {
3616  self = self->beneath;
3617  return self->to_record_method (self, arg1);
3618 }
3619 
3620 static enum record_method
3622 {
3623  return RECORD_METHOD_NONE;
3624 }
3625 
3626 static enum record_method
3628 {
3629  enum record_method result;
3630  fprintf_unfiltered (gdb_stdlog, "-> %s->to_record_method (...)\n", debug_target.to_shortname);
3631  result = debug_target.to_record_method (&debug_target, arg1);
3632  fprintf_unfiltered (gdb_stdlog, "<- %s->to_record_method (", debug_target.to_shortname);
3634  fputs_unfiltered (", ", gdb_stdlog);
3636  fputs_unfiltered (") = ", gdb_stdlog);
3638  fputs_unfiltered ("\n", gdb_stdlog);
3639  return result;
3640 }
3641 
3642 static void
3644 {
3645  self = self->beneath;
3646  self->to_stop_recording (self);
3647 }
3648 
3649 static void
3651 {
3652 }
3653 
3654 static void
3656 {
3657  fprintf_unfiltered (gdb_stdlog, "-> %s->to_stop_recording (...)\n", debug_target.to_shortname);
3658  debug_target.to_stop_recording (&debug_target);
3659  fprintf_unfiltered (gdb_stdlog, "<- %s->to_stop_recording (", debug_target.to_shortname);
3661  fputs_unfiltered (")\n", gdb_stdlog);
3662 }
3663 
3664 static void
3666 {
3667  self = self->beneath;
3668  self->to_info_record (self);
3669 }
3670 
3671 static void
3673 {
3674 }
3675 
3676 static void
3678 {
3679  fprintf_unfiltered (gdb_stdlog, "-> %s->to_info_record (...)\n", debug_target.to_shortname);
3680  debug_target.to_info_record (&debug_target);
3681  fprintf_unfiltered (gdb_stdlog, "<- %s->to_info_record (", debug_target.to_shortname);
3683  fputs_unfiltered (")\n", gdb_stdlog);
3684 }
3685 
3686 static void
3687 delegate_save_record (struct target_ops *self, const char *arg1)
3688 {
3689  self = self->beneath;
3690  self->to_save_record (self, arg1);
3691 }
3692 
3693 static void
3694 tdefault_save_record (struct target_ops *self, const char *arg1)
3695 {
3696  tcomplain ();
3697 }
3698 
3699 static void
3700 debug_save_record (struct target_ops *self, const char *arg1)
3701 {
3702  fprintf_unfiltered (gdb_stdlog, "-> %s->to_save_record (...)\n", debug_target.to_shortname);
3703  debug_target.to_save_record (&debug_target, arg1);
3704  fprintf_unfiltered (gdb_stdlog, "<- %s->to_save_record (", debug_target.to_shortname);
3706  fputs_unfiltered (", ", gdb_stdlog);
3708  fputs_unfiltered (")\n", gdb_stdlog);
3709 }
3710 
3711 static void
3713 {
3714  self = self->beneath;
3715  self->to_delete_record (self);
3716 }
3717 
3718 static void
3720 {
3721  tcomplain ();
3722 }
3723 
3724 static void
3726 {
3727  fprintf_unfiltered (gdb_stdlog, "-> %s->to_delete_record (...)\n", debug_target.to_shortname);
3728  debug_target.to_delete_record (&debug_target);
3729  fprintf_unfiltered (gdb_stdlog, "<- %s->to_delete_record (", debug_target.to_shortname);
3731  fputs_unfiltered (")\n", gdb_stdlog);
3732 }
3733 
3734 static int
3736 {
3737  self = self->beneath;
3738  return self->to_record_is_replaying (self, arg1);
3739 }
3740 
3741 static int
3743 {
3744  return 0;
3745 }
3746 
3747 static int
3749 {
3750  int result;
3751  fprintf_unfiltered (gdb_stdlog, "-> %s->to_record_is_replaying (...)\n", debug_target.to_shortname);
3752  result = debug_target.to_record_is_replaying (&debug_target, arg1);
3753  fprintf_unfiltered (gdb_stdlog, "<- %s->to_record_is_replaying (", debug_target.to_shortname);
3755  fputs_unfiltered (", ", gdb_stdlog);
3757  fputs_unfiltered (") = ", gdb_stdlog);
3758  target_debug_print_int (result);
3759  fputs_unfiltered ("\n", gdb_stdlog);
3760  return result;
3761 }
3762 
3763 static int
3764 delegate_record_will_replay (struct target_ops *self, ptid_t arg1, int arg2)
3765 {
3766  self = self->beneath;
3767  return self->to_record_will_replay (self, arg1, arg2);
3768 }
3769 
3770 static int
3771 tdefault_record_will_replay (struct target_ops *self, ptid_t arg1, int arg2)
3772 {
3773  return 0;
3774 }
3775 
3776 static int
3777 debug_record_will_replay (struct target_ops *self, ptid_t arg1, int arg2)
3778 {
3779  int result;
3780  fprintf_unfiltered (gdb_stdlog, "-> %s->to_record_will_replay (...)\n", debug_target.to_shortname);
3781  result = debug_target.to_record_will_replay (&debug_target, arg1, arg2);
3782  fprintf_unfiltered (gdb_stdlog, "<- %s->to_record_will_replay (", debug_target.to_shortname);
3784  fputs_unfiltered (", ", gdb_stdlog);
3786  fputs_unfiltered (", ", gdb_stdlog);
3787  target_debug_print_int (arg2);
3788  fputs_unfiltered (") = ", gdb_stdlog);
3789  target_debug_print_int (result);
3790  fputs_unfiltered ("\n", gdb_stdlog);
3791  return result;
3792 }
3793 
3794 static void
3796 {
3797  self = self->beneath;
3798  self->to_record_stop_replaying (self);
3799 }
3800 
3801 static void
3803 {
3804 }
3805 
3806 static void
3808 {
3809  fprintf_unfiltered (gdb_stdlog, "-> %s->to_record_stop_replaying (...)\n", debug_target.to_shortname);
3810  debug_target.to_record_stop_replaying (&debug_target);
3811  fprintf_unfiltered (gdb_stdlog, "<- %s->to_record_stop_replaying (", debug_target.to_shortname);
3813  fputs_unfiltered (")\n", gdb_stdlog);
3814 }
3815 
3816 static void
3818 {
3819  self = self->beneath;
3820  self->to_goto_record_begin (self);
3821 }
3822 
3823 static void
3825 {
3826  tcomplain ();
3827 }
3828 
3829 static void
3831 {
3832  fprintf_unfiltered (gdb_stdlog, "-> %s->to_goto_record_begin (...)\n", debug_target.to_shortname);
3833  debug_target.to_goto_record_begin (&debug_target);
3834  fprintf_unfiltered (gdb_stdlog, "<- %s->to_goto_record_begin (", debug_target.to_shortname);
3836  fputs_unfiltered (")\n", gdb_stdlog);
3837 }
3838 
3839 static void
3841 {
3842  self = self->beneath;
3843  self->to_goto_record_end (self);
3844 }
3845 
3846 static void
3848 {
3849  tcomplain ();
3850 }
3851 
3852 static void
3854 {
3855  fprintf_unfiltered (gdb_stdlog, "-> %s->to_goto_record_end (...)\n", debug_target.to_shortname);
3856  debug_target.to_goto_record_end (&debug_target);
3857  fprintf_unfiltered (gdb_stdlog, "<- %s->to_goto_record_end (", debug_target.to_shortname);
3859  fputs_unfiltered (")\n", gdb_stdlog);
3860 }
3861 
3862 static void
3864 {
3865  self = self->beneath;
3866  self->to_goto_record (self, arg1);
3867 }
3868 
3869 static void
3871 {
3872  tcomplain ();
3873 }
3874 
3875 static void
3877 {
3878  fprintf_unfiltered (gdb_stdlog, "-> %s->to_goto_record (...)\n", debug_target.to_shortname);
3879  debug_target.to_goto_record (&debug_target, arg1);
3880  fprintf_unfiltered (gdb_stdlog, "<- %s->to_goto_record (", debug_target.to_shortname);
3882  fputs_unfiltered (", ", gdb_stdlog);
3884  fputs_unfiltered (")\n", gdb_stdlog);
3885 }
3886 
3887 static void
3888 delegate_insn_history (struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
3889 {
3890  self = self->beneath;
3891  self->to_insn_history (self, arg1, arg2);
3892 }
3893 
3894 static void
3895 tdefault_insn_history (struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
3896 {
3897  tcomplain ();
3898 }
3899 
3900 static void
3901 debug_insn_history (struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
3902 {
3903  fprintf_unfiltered (gdb_stdlog, "-> %s->to_insn_history (...)\n", debug_target.to_shortname);
3904  debug_target.to_insn_history (&debug_target, arg1, arg2);
3905  fprintf_unfiltered (gdb_stdlog, "<- %s->to_insn_history (", debug_target.to_shortname);
3907  fputs_unfiltered (", ", gdb_stdlog);
3908  target_debug_print_int (arg1);
3909  fputs_unfiltered (", ", gdb_stdlog);
3911  fputs_unfiltered (")\n", gdb_stdlog);
3912 }
3913 
3914 static void
3915 delegate_insn_history_from (struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
3916 {
3917  self = self->beneath;
3918  self->to_insn_history_from (self, arg1, arg2, arg3);
3919 }
3920 
3921 static void
3922 tdefault_insn_history_from (struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
3923 {
3924  tcomplain ();
3925 }
3926 
3927 static void
3928 debug_insn_history_from (struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
3929 {
3930  fprintf_unfiltered (gdb_stdlog, "-> %s->to_insn_history_from (...)\n", debug_target.to_shortname);
3931  debug_target.to_insn_history_from (&debug_target, arg1, arg2, arg3);
3932  fprintf_unfiltered (gdb_stdlog, "<- %s->to_insn_history_from (", debug_target.to_shortname);
3934  fputs_unfiltered (", ", gdb_stdlog);
3936  fputs_unfiltered (", ", gdb_stdlog);
3937  target_debug_print_int (arg2);
3938  fputs_unfiltered (", ", gdb_stdlog);
3940  fputs_unfiltered (")\n", gdb_stdlog);
3941 }
3942 
3943 static void
3944 delegate_insn_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
3945 {
3946  self = self->beneath;
3947  self->to_insn_history_range (self, arg1, arg2, arg3);
3948 }
3949 
3950 static void
3951 tdefault_insn_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
3952 {
3953  tcomplain ();
3954 }
3955 
3956 static void
3957 debug_insn_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
3958 {
3959  fprintf_unfiltered (gdb_stdlog, "-> %s->to_insn_history_range (...)\n", debug_target.to_shortname);
3960  debug_target.to_insn_history_range (&debug_target, arg1, arg2, arg3);
3961  fprintf_unfiltered (gdb_stdlog, "<- %s->to_insn_history_range (", debug_target.to_shortname);
3963  fputs_unfiltered (", ", gdb_stdlog);
3965  fputs_unfiltered (", ", gdb_stdlog);
3967  fputs_unfiltered (", ", gdb_stdlog);
3969  fputs_unfiltered (")\n", gdb_stdlog);
3970 }
3971 
3972 static void
3973 delegate_call_history (struct target_ops *self, int arg1, int arg2)
3974 {
3975  self = self->beneath;
3976  self->to_call_history (self, arg1, arg2);
3977 }
3978 
3979 static void
3980 tdefault_call_history (struct target_ops *self, int arg1, int arg2)
3981 {
3982  tcomplain ();
3983 }
3984 
3985 static void
3986 debug_call_history (struct target_ops *self, int arg1, int arg2)
3987 {
3988  fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history (...)\n", debug_target.to_shortname);
3989  debug_target.to_call_history (&debug_target, arg1, arg2);
3990  fprintf_unfiltered (gdb_stdlog, "<- %s->to_call_history (", debug_target.to_shortname);
3992  fputs_unfiltered (", ", gdb_stdlog);
3993  target_debug_print_int (arg1);
3994  fputs_unfiltered (", ", gdb_stdlog);
3995  target_debug_print_int (arg2);
3996  fputs_unfiltered (")\n", gdb_stdlog);
3997 }
3998 
3999 static void
4000 delegate_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
4001 {
4002  self = self->beneath;
4003  self->to_call_history_from (self, arg1, arg2, arg3);
4004 }
4005 
4006 static void
4007 tdefault_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
4008 {
4009  tcomplain ();
4010 }
4011 
4012 static void
4013 debug_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
4014 {
4015  fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history_from (...)\n", debug_target.to_shortname);
4016  debug_target.to_call_history_from (&debug_target, arg1, arg2, arg3);
4017  fprintf_unfiltered (gdb_stdlog, "<- %s->to_call_history_from (", debug_target.to_shortname);
4019  fputs_unfiltered (", ", gdb_stdlog);
4021  fputs_unfiltered (", ", gdb_stdlog);
4022  target_debug_print_int (arg2);
4023  fputs_unfiltered (", ", gdb_stdlog);
4024  target_debug_print_int (arg3);
4025  fputs_unfiltered (")\n", gdb_stdlog);
4026 }
4027 
4028 static void
4029 delegate_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
4030 {
4031  self = self->beneath;
4032  self->to_call_history_range (self, arg1, arg2, arg3);
4033 }
4034 
4035 static void
4036 tdefault_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
4037 {
4038  tcomplain ();
4039 }
4040 
4041 static void
4042 debug_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
4043 {
4044  fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history_range (...)\n", debug_target.to_shortname);
4045  debug_target.to_call_history_range (&debug_target, arg1, arg2, arg3);
4046  fprintf_unfiltered (gdb_stdlog, "<- %s->to_call_history_range (", debug_target.to_shortname);
4048  fputs_unfiltered (", ", gdb_stdlog);
4050  fputs_unfiltered (", ", gdb_stdlog);
4052  fputs_unfiltered (", ", gdb_stdlog);
4053  target_debug_print_int (arg3);
4054  fputs_unfiltered (")\n", gdb_stdlog);
4055 }
4056 
4057 static int
4059 {
4060  self = self->beneath;
4061  return self->to_augmented_libraries_svr4_read (self);
4062 }
4063 
4064 static int
4066 {
4067  return 0;
4068 }
4069 
4070 static int
4072 {
4073  int result;
4074  fprintf_unfiltered (gdb_stdlog, "-> %s->to_augmented_libraries_svr4_read (...)\n", debug_target.to_shortname);
4075  result = debug_target.to_augmented_libraries_svr4_read (&debug_target);
4076  fprintf_unfiltered (gdb_stdlog, "<- %s->to_augmented_libraries_svr4_read (", debug_target.to_shortname);
4078  fputs_unfiltered (") = ", gdb_stdlog);
4079  target_debug_print_int (result);
4080  fputs_unfiltered ("\n", gdb_stdlog);
4081  return result;
4082 }
4083 
4084 static const struct frame_unwind *
4086 {
4087  self = self->beneath;
4088  return self->to_get_unwinder (self);
4089 }
4090 
4091 static const struct frame_unwind *
4093 {
4094  return NULL;
4095 }
4096 
4097 static const struct frame_unwind *
4099 {
4100  const struct frame_unwind * result;
4101  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_unwinder (...)\n", debug_target.to_shortname);
4102  result = debug_target.to_get_unwinder (&debug_target);
4103  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_unwinder (", debug_target.to_shortname);
4105  fputs_unfiltered (") = ", gdb_stdlog);
4107  fputs_unfiltered ("\n", gdb_stdlog);
4108  return result;
4109 }
4110 
4111 static const struct frame_unwind *
4113 {
4114  self = self->beneath;
4115  return self->to_get_tailcall_unwinder (self);
4116 }
4117 
4118 static const struct frame_unwind *
4120 {
4121  return NULL;
4122 }
4123 
4124 static const struct frame_unwind *
4126 {
4127  const struct frame_unwind * result;
4128  fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_tailcall_unwinder (...)\n", debug_target.to_shortname);
4129  result = debug_target.to_get_tailcall_unwinder (&debug_target);
4130  fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_tailcall_unwinder (", debug_target.to_shortname);
4132  fputs_unfiltered (") = ", gdb_stdlog);
4134  fputs_unfiltered ("\n", gdb_stdlog);
4135  return result;
4136 }
4137 
4138 static void
4140 {
4141  self = self->beneath;
4142  self->to_prepare_to_generate_core (self);
4143 }
4144 
4145 static void
4147 {
4148 }
4149 
4150 static void
4152 {
4153  fprintf_unfiltered (gdb_stdlog, "-> %s->to_prepare_to_generate_core (...)\n", debug_target.to_shortname);
4154  debug_target.to_prepare_to_generate_core (&debug_target);
4155  fprintf_unfiltered (gdb_stdlog, "<- %s->to_prepare_to_generate_core (", debug_target.to_shortname);
4157  fputs_unfiltered (")\n", gdb_stdlog);
4158 }
4159 
4160 static void
4162 {
4163  self = self->beneath;
4164  self->to_done_generating_core (self);
4165 }
4166 
4167 static void
4169 {
4170 }
4171 
4172 static void
4174 {
4175  fprintf_unfiltered (gdb_stdlog, "-> %s->to_done_generating_core (...)\n", debug_target.to_shortname);
4176  debug_target.to_done_generating_core (&debug_target);
4177  fprintf_unfiltered (gdb_stdlog, "<- %s->to_done_generating_core (", debug_target.to_shortname);
4179  fputs_unfiltered (")\n", gdb_stdlog);
4180 }
4181 
4182 static void
4184 {
4185  if (ops->to_post_attach == NULL)
4187  if (ops->to_detach == NULL)
4188  ops->to_detach = delegate_detach;
4189  if (ops->to_disconnect == NULL)
4191  if (ops->to_resume == NULL)
4192  ops->to_resume = delegate_resume;
4193  if (ops->to_commit_resume == NULL)
4195  if (ops->to_wait == NULL)
4196  ops->to_wait = delegate_wait;
4197  if (ops->to_fetch_registers == NULL)
4199  if (ops->to_store_registers == NULL)
4201  if (ops->to_prepare_to_store == NULL)
4203  if (ops->to_files_info == NULL)
4205  if (ops->to_insert_breakpoint == NULL)
4207  if (ops->to_remove_breakpoint == NULL)
4209  if (ops->to_stopped_by_sw_breakpoint == NULL)
4211  if (ops->to_supports_stopped_by_sw_breakpoint == NULL)
4213  if (ops->to_stopped_by_hw_breakpoint == NULL)
4215  if (ops->to_supports_stopped_by_hw_breakpoint == NULL)
4217  if (ops->to_can_use_hw_breakpoint == NULL)
4219  if (ops->to_ranged_break_num_registers == NULL)
4221  if (ops->to_insert_hw_breakpoint == NULL)
4223  if (ops->to_remove_hw_breakpoint == NULL)
4225  if (ops->to_remove_watchpoint == NULL)
4227  if (ops->to_insert_watchpoint == NULL)
4229  if (ops->to_insert_mask_watchpoint == NULL)
4231  if (ops->to_remove_mask_watchpoint == NULL)
4233  if (ops->to_stopped_by_watchpoint == NULL)
4235  if (ops->to_stopped_data_address == NULL)
4237  if (ops->to_watchpoint_addr_within_range == NULL)
4239  if (ops->to_region_ok_for_hw_watchpoint == NULL)
4241  if (ops->to_can_accel_watchpoint_condition == NULL)
4243  if (ops->to_masked_watch_num_registers == NULL)
4245  if (ops->to_can_do_single_step == NULL)
4247  if (ops->to_terminal_init == NULL)
4249  if (ops->to_terminal_inferior == NULL)
4251  if (ops->to_terminal_ours_for_output == NULL)
4253  if (ops->to_terminal_ours == NULL)
4255  if (ops->to_terminal_info == NULL)
4257  if (ops->to_kill == NULL)
4258  ops->to_kill = delegate_kill;
4259  if (ops->to_load == NULL)
4260  ops->to_load = delegate_load;
4261  if (ops->to_post_startup_inferior == NULL)
4263  if (ops->to_insert_fork_catchpoint == NULL)
4265  if (ops->to_remove_fork_catchpoint == NULL)
4267  if (ops->to_insert_vfork_catchpoint == NULL)
4269  if (ops->to_remove_vfork_catchpoint == NULL)
4271  if (ops->to_follow_fork == NULL)
4273  if (ops->to_insert_exec_catchpoint == NULL)
4275  if (ops->to_remove_exec_catchpoint == NULL)
4277  if (ops->to_follow_exec == NULL)
4279  if (ops->to_set_syscall_catchpoint == NULL)
4281  if (ops->to_has_exited == NULL)
4283  if (ops->to_mourn_inferior == NULL)
4285  if (ops->to_can_run == NULL)
4287  if (ops->to_pass_signals == NULL)
4289  if (ops->to_program_signals == NULL)
4291  if (ops->to_thread_alive == NULL)
4293  if (ops->to_update_thread_list == NULL)
4295  if (ops->to_pid_to_str == NULL)
4297  if (ops->to_extra_thread_info == NULL)
4299  if (ops->to_thread_name == NULL)
4301  if (ops->to_thread_handle_to_thread_info == NULL)
4303  if (ops->to_stop == NULL)
4304  ops->to_stop = delegate_stop;
4305  if (ops->to_interrupt == NULL)
4307  if (ops->to_pass_ctrlc == NULL)
4309  if (ops->to_rcmd == NULL)
4310  ops->to_rcmd = delegate_rcmd;
4311  if (ops->to_pid_to_exec_file == NULL)
4313  if (ops->to_log_command == NULL)
4315  if (ops->to_get_section_table == NULL)
4317  if (ops->to_can_async_p == NULL)
4319  if (ops->to_is_async_p == NULL)
4321  if (ops->to_async == NULL)
4322  ops->to_async = delegate_async;
4323  if (ops->to_thread_events == NULL)
4325  if (ops->to_supports_non_stop == NULL)
4327  if (ops->to_always_non_stop_p == NULL)
4329  if (ops->to_find_memory_regions == NULL)
4331  if (ops->to_make_corefile_notes == NULL)
4333  if (ops->to_get_bookmark == NULL)
4335  if (ops->to_goto_bookmark == NULL)
4337  if (ops->to_get_thread_local_address == NULL)
4339  if (ops->to_xfer_partial == NULL)
4341  if (ops->to_get_memory_xfer_limit == NULL)
4343  if (ops->to_memory_map == NULL)
4344  ops->to_memory_map = delegate_memory_map;
4345  if (ops->to_flash_erase == NULL)
4347  if (ops->to_flash_done == NULL)
4349  if (ops->to_read_description == NULL)
4351  if (ops->to_get_ada_task_ptid == NULL)
4353  if (ops->to_auxv_parse == NULL)
4355  if (ops->to_search_memory == NULL)
4357  if (ops->to_can_execute_reverse == NULL)
4359  if (ops->to_execution_direction == NULL)
4361  if (ops->to_supports_multi_process == NULL)
4363  if (ops->to_supports_enable_disable_tracepoint == NULL)
4365  if (ops->to_supports_string_tracing == NULL)
4369  if (ops->to_can_run_breakpoint_commands == NULL)
4371  if (ops->to_thread_architecture == NULL)
4373  if (ops->to_thread_address_space == NULL)
4375  if (ops->to_filesystem_is_local == NULL)
4377  if (ops->to_trace_init == NULL)
4379  if (ops->to_download_tracepoint == NULL)
4381  if (ops->to_can_download_tracepoint == NULL)
4383  if (ops->to_download_trace_state_variable == NULL)
4385  if (ops->to_enable_tracepoint == NULL)
4387  if (ops->to_disable_tracepoint == NULL)
4389  if (ops->to_trace_set_readonly_regions == NULL)
4391  if (ops->to_trace_start == NULL)
4393  if (ops->to_get_trace_status == NULL)
4395  if (ops->to_get_tracepoint_status == NULL)
4397  if (ops->to_trace_stop == NULL)
4399  if (ops->to_trace_find == NULL)
4401  if (ops->to_get_trace_state_variable_value == NULL)
4403  if (ops->to_save_trace_data == NULL)
4405  if (ops->to_upload_tracepoints == NULL)
4407  if (ops->to_upload_trace_state_variables == NULL)
4409  if (ops->to_get_raw_trace_data == NULL)
4411  if (ops->to_get_min_fast_tracepoint_insn_len == NULL)
4413  if (ops->to_set_disconnected_tracing == NULL)
4415  if (ops->to_set_circular_trace_buffer == NULL)
4417  if (ops->to_set_trace_buffer_size == NULL)
4419  if (ops->to_set_trace_notes == NULL)
4421  if (ops->to_core_of_thread == NULL)
4423  if (ops->to_verify_memory == NULL)
4425  if (ops->to_get_tib_address == NULL)
4427  if (ops->to_set_permissions == NULL)
4429  if (ops->to_static_tracepoint_marker_at == NULL)
4431  if (ops->to_static_tracepoint_markers_by_strid == NULL)
4432  ops->to_static_tracepoint_markers_by_strid = delegate_static_tracepoint_markers_by_strid;
4433  if (ops->to_traceframe_info == NULL)
4435  if (ops->to_use_agent == NULL)
4437  if (ops->to_can_use_agent == NULL)
4439  if (ops->to_supports_btrace == NULL)
4441  if (ops->to_enable_btrace == NULL)
4443  if (ops->to_disable_btrace == NULL)
4445  if (ops->to_teardown_btrace == NULL)
4447  if (ops->to_read_btrace == NULL)
4449  if (ops->to_btrace_conf == NULL)
4451  if (ops->to_record_method == NULL)
4453  if (ops->to_stop_recording == NULL)
4455  if (ops->to_info_record == NULL)
4457  if (ops->to_save_record == NULL)
4459  if (ops->to_delete_record == NULL)
4461  if (ops->to_record_is_replaying == NULL)
4463  if (ops->to_record_will_replay == NULL)
4465  if (ops->to_record_stop_replaying == NULL)
4467  if (ops->to_goto_record_begin == NULL)
4469  if (ops->to_goto_record_end == NULL)
4471  if (ops->to_goto_record == NULL)
4473  if (ops->to_insn_history == NULL)
4475  if (ops->to_insn_history_from == NULL)
4477  if (ops->to_insn_history_range == NULL)
4479  if (ops->to_call_history == NULL)
4481  if (ops->to_call_history_from == NULL)
4483  if (ops->to_call_history_range == NULL)
4485  if (ops->to_augmented_libraries_svr4_read == NULL)
4487  if (ops->to_get_unwinder == NULL)
4489  if (ops->to_get_tailcall_unwinder == NULL)
4491  if (ops->to_prepare_to_generate_core == NULL)
4493  if (ops->to_done_generating_core == NULL)
4495 }
4496 
4497 static void
4499 {
4501  ops->to_detach = tdefault_detach;
4503  ops->to_resume = tdefault_resume;
4536  ops->to_kill = tdefault_kill;
4537  ops->to_load = tdefault_load;
4559  ops->to_stop = tdefault_stop;
4562  ops->to_rcmd = default_rcmd;
4568  ops->to_async = tdefault_async;
4579  ops->to_memory_map = tdefault_memory_map;
4623  ops->to_static_tracepoint_markers_by_strid = tdefault_static_tracepoint_markers_by_strid;
4655 }
4656 
4657 static void
4659 {
4661  ops->to_detach = debug_detach;
4663  ops->to_resume = debug_resume;
4665  ops->to_wait = debug_wait;
4696  ops->to_kill = debug_kill;
4697  ops->to_load = debug_load;
4710  ops->to_can_run = debug_can_run;
4719  ops->to_stop = debug_stop;
4722  ops->to_rcmd = debug_rcmd;
4728  ops->to_async = debug_async;
4739  ops->to_memory_map = debug_memory_map;
4783  ops->to_static_tracepoint_markers_by_strid = debug_static_tracepoint_markers_by_strid;
4815 }
static int tdefault_has_exited(struct target_ops *self, int arg1, int arg2, int *arg3)
static int tdefault_get_tib_address(struct target_ops *self, ptid_t arg1, CORE_ADDR *arg2)
struct address_space *(* to_thread_address_space)(struct target_ops *, ptid_t) TARGET_DEFAULT_FUNC(default_thread_address_space)
Definition: target.h:875
static int delegate_stopped_by_watchpoint(struct target_ops *self)
static enum target_xfer_status 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)
static int debug_can_async_p(struct target_ops *self)
static void tdefault_follow_exec(struct target_ops *self, struct inferior *arg1, char *arg2)
static int tdefault_insert_fork_catchpoint(struct target_ops *self, int arg1)
static int delegate_can_use_hw_breakpoint(struct target_ops *self, enum bptype arg1, int arg2, int arg3)
#define target_debug_print_bool(X)
Definition: target-debug.h:59
static int debug_verify_memory(struct target_ops *self, const gdb_byte *arg1, CORE_ADDR arg2, ULONGEST arg3)
static void debug_delete_record(struct target_ops *self)
ptid_t default_target_wait(struct target_ops *ops, ptid_t ptid, struct target_waitstatus *status, int options)
Definition: target.c:2185
static void debug_done_generating_core(struct target_ops *self)
static void debug_commit_resume(struct target_ops *self)
static void delegate_disable_tracepoint(struct target_ops *self, struct bp_location *arg1)
static const struct frame_unwind * delegate_get_tailcall_unwinder(struct target_ops *self)
static void debug_pass_signals(struct target_ops *self, int arg1, unsigned char *arg2)
static void tdefault_resume(struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
static void delegate_prepare_to_generate_core(struct target_ops *self)
void(* to_delete_record)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1167
static int delegate_insert_vfork_catchpoint(struct target_ops *self, int arg1)
static int tdefault_thread_alive(struct target_ops *self, ptid_t arg1)
static int tdefault_get_trace_status(struct target_ops *self, struct trace_status *arg1)
int(* to_supports_stopped_by_hw_breakpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:499
static void delegate_record_stop_replaying(struct target_ops *self)
static void delegate_insn_history(struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
const struct target_desc *(* to_read_description)(struct target_ops *ops) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:790
int(* to_is_async_p)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:668
static void tdefault_load(struct target_ops *self, const char *arg1, int arg2)
static char * debug_make_corefile_notes(struct target_ops *self, bfd *arg1, int *arg2)
int(* to_upload_tracepoints)(struct target_ops *, struct uploaded_tp **utpp) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1020
void(* to_trace_init)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:949
static void delegate_commit_resume(struct target_ops *self)
static void debug_follow_exec(struct target_ops *self, struct inferior *arg1, char *arg2)
static int tdefault_insert_hw_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
int(* to_supports_evaluation_of_breakpoint_conditions)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:850
static enum record_method tdefault_record_method(struct target_ops *self, ptid_t arg1)
void default_target_pass_ctrlc(struct target_ops *ops)
Definition: target.c:3350
static void delegate_follow_exec(struct target_ops *self, struct inferior *arg1, char *arg2)
void(* to_program_signals)(struct target_ops *, int, unsigned char *TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE()
Definition: target.h:622
static void debug_insn_history_from(struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
void(* to_goto_bookmark)(struct target_ops *, const gdb_byte *, int) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:693
static struct address_space * delegate_thread_address_space(struct target_ops *self, ptid_t arg1)
static void install_dummy_methods(struct target_ops *ops)
void(* to_goto_record_begin)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1184
static int tdefault_insert_exec_catchpoint(struct target_ops *self, int arg1)
static int delegate_supports_enable_disable_tracepoint(struct target_ops *self)
static void tdefault_goto_record(struct target_ops *self, ULONGEST arg1)
static int tdefault_filesystem_is_local(struct target_ops *self)
static int tdefault_get_trace_state_variable_value(struct target_ops *self, int arg1, LONGEST *arg2)
static void tdefault_record_stop_replaying(struct target_ops *self)
static void delegate_insn_history_from(struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
void(* to_save_record)(struct target_ops *, const char *filename) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1162
static int debug_supports_enable_disable_tracepoint(struct target_ops *self)
static void tdefault_program_signals(struct target_ops *self, int arg1, unsigned char *arg2)
#define target_debug_print_struct_breakpoint_p(X)
Definition: target-debug.h:131
static void debug_call_history_range(struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
int(* to_find_memory_regions)(struct target_ops *, find_memory_region_ftype func, void *data) TARGET_DEFAULT_FUNC(dummy_find_memory_regions)
Definition: target.h:683
bfd_vma CORE_ADDR
Definition: common-types.h:41
int(* to_insert_mask_watchpoint)(struct target_ops *, CORE_ADDR, CORE_ADDR, enum target_hw_bp_type) TARGET_DEFAULT_RETURN(1)
Definition: target.h:523
static void tdefault_post_startup_inferior(struct target_ops *self, ptid_t arg1)
static struct target_section_table * debug_get_section_table(struct target_ops *self)
static void debug_post_startup_inferior(struct target_ops *self, ptid_t arg1)
static int debug_can_do_single_step(struct target_ops *self)
#define target_debug_print_enum_bptype(X)
Definition: target-debug.h:161
static int delegate_get_trace_status(struct target_ops *self, struct trace_status *arg1)
static void delegate_program_signals(struct target_ops *self, int arg1, unsigned char *arg2)
static int tdefault_static_tracepoint_marker_at(struct target_ops *self, CORE_ADDR arg1, struct static_tracepoint_marker *arg2)
static int tdefault_remove_exec_catchpoint(struct target_ops *self, int arg1)
void fputs_unfiltered(const char *buf, struct ui_file *file)
Definition: ui-file.c:127
#define target_debug_print_struct_bp_target_info_p(X)
Definition: target-debug.h:95
static void debug_stop_recording(struct target_ops *self)
static LONGEST delegate_get_raw_trace_data(struct target_ops *self, gdb_byte *arg1, ULONGEST arg2, LONGEST arg3)
static void debug_terminal_ours(struct target_ops *self)
static enum record_method debug_record_method(struct target_ops *self, ptid_t arg1)
static void debug_prepare_to_generate_core(struct target_ops *self)
static void debug_disable_btrace(struct target_ops *self, struct btrace_target_info *arg1)
static int debug_ranged_break_num_registers(struct target_ops *self)
static int delegate_can_accel_watchpoint_condition(struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
static int tdefault_get_min_fast_tracepoint_insn_len(struct target_ops *self)
static void debug_goto_record_end(struct target_ops *self)
static void tdefault_detach(struct target_ops *self, const char *arg1, int arg2)
#define target_debug_print_struct_bp_location_p(X)
Definition: target-debug.h:125
static void debug_load(struct target_ops *self, const char *arg1, int arg2)
static void debug_log_command(struct target_ops *self, const char *arg1)
static int debug_has_exited(struct target_ops *self, int arg1, int arg2, int *arg3)
#define target_debug_print_VEC_static_tracepoint_marker_p_p(X)
Definition: target-debug.h:121
static int delegate_remove_vfork_catchpoint(struct target_ops *self, int arg1)
static int delegate_save_trace_data(struct target_ops *self, const char *arg1)
static void debug_post_attach(struct target_ops *self, int arg1)
void(* to_trace_start)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:984
static int delegate_supports_string_tracing(struct target_ops *self)
void(* to_flash_done)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:783
#define target_debug_print_struct_trace_state_variable_p(X)
Definition: target-debug.h:127
static void delegate_flash_erase(struct target_ops *self, ULONGEST arg1, LONGEST arg2)
void(* to_stop_recording)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:1154
#define target_debug_print_enum_target_xfer_status(X)
Definition: target-debug.h:63
static int debug_remove_vfork_catchpoint(struct target_ops *self, int arg1)
static enum exec_direction_kind debug_execution_direction(struct target_ops *self)
static int debug_follow_fork(struct target_ops *self, int arg1, int arg2)
static struct gdbarch * debug_thread_architecture(struct target_ops *self, ptid_t arg1)
#define target_debug_print_ptid_t(X)
Definition: target-debug.h:73
static void delegate_download_tracepoint(struct target_ops *self, struct bp_location *arg1)
static ptid_t default_get_ada_task_ptid(struct target_ops *self, long lwp, long tid)
Definition: target.c:566
void(* to_terminal_init)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:560
#define target_debug_print_char_p(X)
Definition: target-debug.h:55
static int delegate_has_exited(struct target_ops *self, int arg1, int arg2, int *arg3)
int(* to_has_exited)(struct target_ops *, int, int, int *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:604
static int debug_supports_evaluation_of_breakpoint_conditions(struct target_ops *self)
void(* to_record_stop_replaying)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:1180
int(* to_insert_breakpoint)(struct target_ops *, struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_FUNC(memory_insert_breakpoint)
Definition: target.h:466
static void tdefault_trace_start(struct target_ops *self)
static void delegate_set_permissions(struct target_ops *self)
static int delegate_can_do_single_step(struct target_ops *self)
static void delegate_terminal_info(struct target_ops *self, const char *arg1, int arg2)
static void delegate_fetch_registers(struct target_ops *self, struct regcache *arg1, int arg2)
void(* to_rcmd)(struct target_ops *, const char *command, struct ui_file *output) TARGET_DEFAULT_FUNC(default_rcmd)
Definition: target.h:647
#define target_debug_print_gdb_byte_pp(X)
Definition: target-debug.h:81
static int tdefault_remove_fork_catchpoint(struct target_ops *self, int arg1)
static void delegate_call_history_from(struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
static void tdefault_get_tracepoint_status(struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
static int debug_record_will_replay(struct target_ops *self, ptid_t arg1, int arg2)
int(* to_core_of_thread)(struct target_ops *, ptid_t ptid) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:1063
#define target_debug_print_struct_expression_p(X)
Definition: target-debug.h:97
int(* to_follow_fork)(struct target_ops *, int, int) TARGET_DEFAULT_FUNC(default_follow_fork)
Definition: target.h:592
int(* to_set_syscall_catchpoint)(struct target_ops *, int, bool, int, gdb::array_view< const int >) TARGET_DEFAULT_RETURN(1)
Definition: target.h:600
static int debug_get_trace_state_variable_value(struct target_ops *self, int arg1, LONGEST *arg2)
void(* to_terminal_ours_for_output)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:564
static void delegate_download_trace_state_variable(struct target_ops *self, struct trace_state_variable *arg1)
static void tdefault_goto_record_begin(struct target_ops *self)
static const char * delegate_extra_thread_info(struct target_ops *self, struct thread_info *arg1)
void(* to_call_history)(struct target_ops *, int size, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1222
static enum btrace_error delegate_read_btrace(struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
#define target_debug_print_enum_gdb_signal(X)
Definition: target-debug.h:83
static void delegate_done_generating_core(struct target_ops *self)
static void debug_trace_set_readonly_regions(struct target_ops *self)
static int debug_upload_trace_state_variables(struct target_ops *self, struct uploaded_tsv **arg1)
static const char * tdefault_extra_thread_info(struct target_ops *self, struct thread_info *arg1)
static int debug_upload_tracepoints(struct target_ops *self, struct uploaded_tp **arg1)
const char *(* to_pid_to_str)(struct target_ops *, ptid_t) TARGET_DEFAULT_FUNC(default_pid_to_str)
Definition: target.h:630
static void tdefault_stop(struct target_ops *self, ptid_t arg1)
#define target_debug_print_struct_btrace_data_p(X)
Definition: target-debug.h:149
static LONGEST debug_get_raw_trace_data(struct target_ops *self, gdb_byte *arg1, ULONGEST arg2, LONGEST arg3)
struct thread_info *(* to_thread_handle_to_thread_info)(struct target_ops *, const gdb_byte *, int, struct inferior *inf) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:636
static int tdefault_remove_hw_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
static const struct btrace_config * delegate_btrace_conf(struct target_ops *self, const struct btrace_target_info *arg1)
static void tdefault_disconnect(struct target_ops *self, const char *arg1, int arg2)
static void tdefault_prepare_to_store(struct target_ops *self, struct regcache *arg1)
static void debug_program_signals(struct target_ops *self, int arg1, unsigned char *arg2)
#define target_debug_print_std_vector_mem_region(X)
Definition: target-debug.h:119
#define target_debug_print_int(X)
Definition: target-debug.h:57
const struct frame_unwind *(* to_get_tailcall_unwinder)(struct target_ops *self) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:1250
void(* to_insn_history)(struct target_ops *, int size, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1199
static int debug_find_memory_regions(struct target_ops *self, find_memory_region_ftype arg1, void *arg2)
static ptid_t delegate_get_ada_task_ptid(struct target_ops *self, long arg1, long arg2)
static void delegate_stop(struct target_ops *self, ptid_t arg1)
static int tdefault_insert_watchpoint(struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
static int tdefault_upload_tracepoints(struct target_ops *self, struct uploaded_tp **arg1)
#define target_debug_print_struct_address_space_p(X)
Definition: target-debug.h:93
static int tdefault_stopped_by_sw_breakpoint(struct target_ops *self)
void(* to_set_disconnected_tracing)(struct target_ops *, int val) TARGET_DEFAULT_IGNORE()
Definition: target.h:1041
static enum record_method delegate_record_method(struct target_ops *self, ptid_t arg1)
static int debug_supports_string_tracing(struct target_ops *self)
static const char * tdefault_thread_name(struct target_ops *self, struct thread_info *arg1)
#define target_debug_print_CORE_ADDR(X)
Definition: target-debug.h:51
static void tdefault_interrupt(struct target_ops *self, ptid_t arg1)
static int delegate_always_non_stop_p(struct target_ops *self)
static int delegate_can_run_breakpoint_commands(struct target_ops *self)
int(* to_supports_enable_disable_tracepoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:838
int(* to_remove_watchpoint)(struct target_ops *, CORE_ADDR, int, enum target_hw_bp_type, struct expression *) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:516
void(* to_insn_history_range)(struct target_ops *, ULONGEST begin, ULONGEST end, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1214
int(* to_region_ok_for_hw_watchpoint)(struct target_ops *, CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_region_ok_for_hw_watchpoint)
Definition: target.h:543
void(* to_info_record)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:1158
static int debug_can_execute_reverse(struct target_ops *self)
static void tdefault_flash_erase(struct target_ops *self, ULONGEST arg1, LONGEST arg2)
static void delegate_log_command(struct target_ops *self, const char *arg1)
int(* to_can_use_hw_breakpoint)(struct target_ops *, enum bptype, int, int) TARGET_DEFAULT_RETURN(0)
Definition: target.h:502
static void debug_disable_tracepoint(struct target_ops *self, struct bp_location *arg1)
static ULONGEST delegate_get_memory_xfer_limit(struct target_ops *self)
static int delegate_stopped_data_address(struct target_ops *self, CORE_ADDR *arg1)
static ptid_t debug_wait(struct target_ops *self, ptid_t arg1, struct target_waitstatus *arg2, int arg3)
static void debug_get_tracepoint_status(struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
static int debug_watchpoint_addr_within_range(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, int arg3)
void(* to_trace_stop)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:997
static void tdefault_trace_init(struct target_ops *self)
std::vector< mem_region >(*) to_memory_map(struct target_ops *) TARGET_DEFAULT_RETURN(std void(* to_flash_erase)(struct target_ops *, ULONGEST address, LONGEST length) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:775
ULONGEST(* to_get_memory_xfer_limit)(struct target_ops *) TARGET_DEFAULT_RETURN(ULONGEST_MAX)
Definition: target.h:751
static int tdefault_supports_evaluation_of_breakpoint_conditions(struct target_ops *self)
static void debug_record_stop_replaying(struct target_ops *self)
static int default_follow_fork(struct target_ops *self, int follow_child, int detach_fork)
Definition: target.c:2264
int(* to_supports_string_tracing)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:845
static void debug_flash_erase(struct target_ops *self, ULONGEST arg1, LONGEST arg2)
static int delegate_get_min_fast_tracepoint_insn_len(struct target_ops *self)
btrace_format
Definition: btrace-common.h:54
static gdb_byte * tdefault_get_bookmark(struct target_ops *self, const char *arg1, int arg2)
#define ULONGEST_MAX
Definition: defs.h:493
static ULONGEST debug_get_memory_xfer_limit(struct target_ops *self)
void(* to_set_trace_buffer_size)(struct target_ops *, LONGEST val) TARGET_DEFAULT_IGNORE()
Definition: target.h:1046
static void delegate_stop_recording(struct target_ops *self)
static int tdefault_can_run_breakpoint_commands(struct target_ops *self)
static int tdefault_supports_btrace(struct target_ops *self, enum btrace_format arg1)
static void debug_stop(struct target_ops *self, ptid_t arg1)
int(* to_get_trace_state_variable_value)(struct target_ops *, int tsv, LONGEST *val) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1013
static int tdefault_supports_stopped_by_sw_breakpoint(struct target_ops *self)
static gdb_byte * delegate_get_bookmark(struct target_ops *self, const char *arg1, int arg2)
static void delegate_disable_btrace(struct target_ops *self, struct btrace_target_info *arg1)
static void tdefault_set_circular_trace_buffer(struct target_ops *self, int arg1)
int(* to_remove_exec_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
Definition: target.h:596
static void tdefault_insn_history_range(struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
static int delegate_remove_mask_watchpoint(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
#define target_debug_print_struct_inferior_p(X)
Definition: target-debug.h:163
trace_find_type
Definition: tracepoint.h:384
static void debug_enable_tracepoint(struct target_ops *self, struct bp_location *arg1)
static int debug_filesystem_is_local(struct target_ops *self)
static void tdefault_call_history_range(struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
void(* to_files_info)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:464
static int tdefault_record_is_replaying(struct target_ops *self, ptid_t arg1)
int default_auxv_parse(struct target_ops *ops, gdb_byte **readptr, gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
Definition: auxv.c:258
static void debug_pass_ctrlc(struct target_ops *self)
static int tdefault_masked_watch_num_registers(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2)
static int debug_search_memory(struct target_ops *self, CORE_ADDR arg1, ULONGEST arg2, const gdb_byte *arg3, ULONGEST arg4, CORE_ADDR *arg5)
static int debug_insert_exec_catchpoint(struct target_ops *self, int arg1)
void(* to_thread_events)(struct target_ops *, int) TARGET_DEFAULT_IGNORE()
Definition: target.h:672
static int delegate_supports_multi_process(struct target_ops *self)
static LONGEST tdefault_get_raw_trace_data(struct target_ops *self, gdb_byte *arg1, ULONGEST arg2, LONGEST arg3)
static int tdefault_can_accel_watchpoint_condition(struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
static int debug_masked_watch_num_registers(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2)
static void debug_update_thread_list(struct target_ops *self)
static void target_debug_print_struct_target_waitstatus_p(struct target_waitstatus *status)
Definition: target-debug.h:175
int(* to_remove_fork_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
Definition: target.h:586
void(* to_disable_tracepoint)(struct target_ops *, struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:973
int(* to_record_is_replaying)(struct target_ops *, ptid_t ptid) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1171
int(* to_can_do_single_step)(struct target_ops *) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:557
static void default_terminal_info(struct target_ops *self, const char *args, int from_tty)
Definition: target.c:554
static int debug_core_of_thread(struct target_ops *self, ptid_t arg1)
static void debug_terminal_init(struct target_ops *self)
static int delegate_can_run(struct target_ops *self)
static int debug_remove_fork_catchpoint(struct target_ops *self, int arg1)
static void debug_resume(struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
static int debug_can_download_tracepoint(struct target_ops *self)
void(* to_insn_history_from)(struct target_ops *, ULONGEST from, int size, gdb_disassembly_flags flags) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1207
static int debug_insert_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
static void tdefault_set_disconnected_tracing(struct target_ops *self, int arg1)
static void tdefault_kill(struct target_ops *self)
void(* to_prepare_to_generate_core)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:1254
static void debug_teardown_btrace(struct target_ops *self, struct btrace_target_info *arg1)
#define target_debug_print_struct_uploaded_tsv_pp(X)
Definition: target-debug.h:137
static void delegate_goto_record_begin(struct target_ops *self)
static int debug_static_tracepoint_marker_at(struct target_ops *self, CORE_ADDR arg1, struct static_tracepoint_marker *arg2)
static const struct frame_unwind * debug_get_tailcall_unwinder(struct target_ops *self)
static void debug_async(struct target_ops *self, int arg1)
static int debug_supports_non_stop(struct target_ops *self)
void(* to_call_history_range)(struct target_ops *, ULONGEST begin, ULONGEST end, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1235
static void debug_prepare_to_store(struct target_ops *self, struct regcache *arg1)
static int debug_save_trace_data(struct target_ops *self, const char *arg1)
static void delegate_pass_signals(struct target_ops *self, int arg1, unsigned char *arg2)
#define target_debug_print_step(X)
Definition: target-debug.h:186
static int delegate_record_is_replaying(struct target_ops *self, ptid_t arg1)
static int debug_always_non_stop_p(struct target_ops *self)
static int tdefault_remove_mask_watchpoint(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
int(* to_trace_find)(struct target_ops *, enum trace_find_type type, int num, CORE_ADDR addr1, CORE_ADDR addr2, int *tpp) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:1005
static int default_region_ok_for_hw_watchpoint(struct target_ops *self, CORE_ADDR addr, int len)
Definition: target.c:3114
static int delegate_record_will_replay(struct target_ops *self, ptid_t arg1, int arg2)
static int tdefault_insert_vfork_catchpoint(struct target_ops *self, int arg1)
static void delegate_detach(struct target_ops *self, const char *arg1, int arg2)
static void delegate_rcmd(struct target_ops *self, const char *arg1, struct ui_file *arg2)
static void delegate_flash_done(struct target_ops *self)
static void delegate_kill(struct target_ops *self)
static void debug_set_disconnected_tracing(struct target_ops *self, int arg1)
#define target_debug_print_struct_static_tracepoint_marker_p(X)
Definition: target-debug.h:139
static std::vector< mem_region > debug_memory_map(struct target_ops *self)
static int delegate_remove_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2, enum remove_bp_reason arg3)
static void debug_kill(struct target_ops *self)
int(* to_watchpoint_addr_within_range)(struct target_ops *, CORE_ADDR, CORE_ADDR, int) TARGET_DEFAULT_FUNC(default_watchpoint_addr_within_range)
Definition: target.h:537
LONGEST(* to_get_raw_trace_data)(struct target_ops *, gdb_byte *buf, ULONGEST offset, LONGEST len) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1028
int(* to_record_will_replay)(struct target_ops *, ptid_t ptid, int dir) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1176
static void tdefault_enable_tracepoint(struct target_ops *self, struct bp_location *arg1)
static int tdefault_supports_string_tracing(struct target_ops *self)
static void delegate_trace_start(struct target_ops *self)
#define target_debug_print_enum_remove_bp_reason(X)
Definition: target-debug.h:165
static void tdefault_call_history_from(struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
static void delegate_files_info(struct target_ops *self)
#define target_debug_print_const_struct_frame_unwind_p(X)
Definition: target-debug.h:147
static int delegate_insert_hw_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
static struct target_section_table * delegate_get_section_table(struct target_ops *self)
static void generic_tls_error(void)
Definition: target.c:51
static int debug_is_async_p(struct target_ops *self)
static struct target_section_table * tdefault_get_section_table(struct target_ops *self)
int(* to_remove_vfork_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
Definition: target.h:590
Definition: ptid.h:35
void fprintf_unfiltered(struct ui_file *stream, const char *format,...)
Definition: utils.c:2018
static struct btrace_target_info * debug_enable_btrace(struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
int(* to_supports_stopped_by_sw_breakpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:486
void(* to_resume)(struct target_ops *, ptid_t, int TARGET_DEBUG_PRINTER(target_debug_print_step), enum gdb_signal) TARGET_DEFAULT_NORETURN(noprocess())
Definition: target.h:447
#define target_debug_print_struct_btrace_target_info_p(X)
Definition: target-debug.h:143
static int tdefault_save_trace_data(struct target_ops *self, const char *arg1)
static int delegate_watchpoint_addr_within_range(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, int arg3)
static void delegate_post_attach(struct target_ops *self, int arg1)
static std::vector< mem_region > tdefault_memory_map(struct target_ops *self)
int(* to_get_min_fast_tracepoint_insn_len)(struct target_ops *) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:1036
static struct btrace_target_info * delegate_enable_btrace(struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
struct target_section_table *(* to_get_section_table)(struct target_ops *) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:654
static struct gdbarch * default_thread_architecture(struct target_ops *ops, ptid_t ptid)
Definition: target.c:3129
static int tdefault_remove_vfork_catchpoint(struct target_ops *self, int arg1)
static int debug_remove_hw_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
int(* to_can_run)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:611
static void delegate_trace_init(struct target_ops *self)
static int default_watchpoint_addr_within_range(struct target_ops *target, CORE_ADDR addr, CORE_ADDR start, int length)
Definition: target.c:3121
static int delegate_insert_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
btrace_read_type
static void debug_download_tracepoint(struct target_ops *self, struct bp_location *arg1)
static int delegate_remove_exec_catchpoint(struct target_ops *self, int arg1)
CORE_ADDR(* to_get_thread_local_address)(struct target_ops *ops, ptid_t ptid, CORE_ADDR load_module_addr, CORE_ADDR offset) TARGET_DEFAULT_NORETURN(generic_tls_error())
Definition: target.h:701
static void debug_call_history(struct target_ops *self, int arg1, int arg2)
int(* to_insert_exec_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
Definition: target.h:594
static int tdefault_stopped_data_address(struct target_ops *self, CORE_ADDR *arg1)
#define target_debug_print_gdb_disassembly_flags(X)
Definition: target-debug.h:167
#define target_debug_print_enum_target_object(X)
Definition: target-debug.h:49
static void debug_goto_record_begin(struct target_ops *self)
static void delegate_update_thread_list(struct target_ops *self)
void(* to_set_permissions)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:1081
target_xfer_status
Definition: target.h:206
#define target_debug_print_bfd_p(X)
Definition: target-debug.h:117
struct btrace_target_info *(* to_enable_btrace)(struct target_ops *, ptid_t ptid, const struct btrace_config *conf) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1118
int(* to_masked_watch_num_registers)(struct target_ops *, CORE_ADDR, CORE_ADDR) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:551
static int delegate_region_ok_for_hw_watchpoint(struct target_ops *self, CORE_ADDR arg1, int arg2)
int(* to_remove_mask_watchpoint)(struct target_ops *, CORE_ADDR, CORE_ADDR, enum target_hw_bp_type) TARGET_DEFAULT_RETURN(1)
Definition: target.h:527
static void tdefault_trace_set_readonly_regions(struct target_ops *self)
static int tdefault_can_download_tracepoint(struct target_ops *self)
static void tdefault_prepare_to_generate_core(struct target_ops *self)
static void tdefault_update_thread_list(struct target_ops *self)
static void delegate_terminal_ours(struct target_ops *self)
void(* to_trace_set_readonly_regions)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:980
static struct address_space * default_thread_address_space(struct target_ops *self, ptid_t ptid)
Definition: target.c:2670
#define target_debug_print_find_memory_region_ftype(X)
Definition: target-debug.h:115
static void tdefault_teardown_btrace(struct target_ops *self, struct btrace_target_info *arg1)
static int tdefault_ranged_break_num_registers(struct target_ops *self)
static int debug_can_accel_watchpoint_condition(struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
static ptid_t delegate_wait(struct target_ops *self, ptid_t arg1, struct target_waitstatus *arg2, int arg3)
static const char * delegate_thread_name(struct target_ops *self, struct thread_info *arg1)
static void debug_trace_init(struct target_ops *self)
#define target_debug_print_struct_target_ops_p(X)
Definition: target-debug.h:47
static int tdefault_record_will_replay(struct target_ops *self, ptid_t arg1, int arg2)
static void tdefault_insn_history_from(struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
static void delegate_thread_events(struct target_ops *self, int arg1)
static int tdefault_can_async_p(struct target_ops *self)
static void delegate_set_circular_trace_buffer(struct target_ops *self, int arg1)
static int delegate_thread_alive(struct target_ops *self, ptid_t arg1)
static int delegate_remove_hw_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
exec_direction_kind
Definition: infrun.h:67
void(* to_get_tracepoint_status)(struct target_ops *, struct breakpoint *tp, struct uploaded_tp *utp) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:991
#define target_debug_print_CORE_ADDR_p(X)
Definition: target-debug.h:99
static void tdefault_stop_recording(struct target_ops *self)
#define target_debug_print_struct_trace_status_p(X)
Definition: target-debug.h:129
int(* to_upload_trace_state_variables)(struct target_ops *, struct uploaded_tsv **utsvp) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1024
#define target_debug_print_struct_regcache_p(X)
Definition: target-debug.h:103
static int debug_insert_vfork_catchpoint(struct target_ops *self, int arg1)
static ULONGEST tdefault_get_memory_xfer_limit(struct target_ops *self)
#define target_debug_print_enum_btrace_format(X)
Definition: target-debug.h:151
static int debug_get_trace_status(struct target_ops *self, struct trace_status *arg1)
static int delegate_can_execute_reverse(struct target_ops *self)
static void debug_mourn_inferior(struct target_ops *self)
int(* to_augmented_libraries_svr4_read)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1241
static int debug_use_agent(struct target_ops *self, int arg1)
static void tdefault_terminal_ours_for_output(struct target_ops *self)
int(* to_insert_fork_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
Definition: target.h:584
static int delegate_insert_watchpoint(struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
int(* to_insert_watchpoint)(struct target_ops *, CORE_ADDR, int, enum target_hw_bp_type, struct expression *) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:519
static int debug_augmented_libraries_svr4_read(struct target_ops *self)
static int tdefault_augmented_libraries_svr4_read(struct target_ops *self)
static int debug_supports_multi_process(struct target_ops *self)
static int tdefault_can_execute_reverse(struct target_ops *self)
static int tdefault_use_agent(struct target_ops *self, int arg1)
const struct btrace_config *(* to_btrace_conf)(struct target_ops *self, const struct btrace_target_info *) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:1145
btrace_error
static traceframe_info_up debug_traceframe_info(struct target_ops *self)
static const char * delegate_pid_to_str(struct target_ops *self, ptid_t arg1)
enum target_xfer_status(* to_xfer_partial)(struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) TARGET_DEFAULT_RETURN(TARGET_XFER_E_IO)
Definition: target.h:739
static int delegate_verify_memory(struct target_ops *self, const gdb_byte *arg1, CORE_ADDR arg2, ULONGEST arg3)
static void tdefault_save_record(struct target_ops *self, const char *arg1)
int(* to_search_memory)(struct target_ops *ops, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp) TARGET_DEFAULT_FUNC(default_search_memory)
Definition: target.h:815
static void debug_terminal_ours_for_output(struct target_ops *self)
static void delegate_set_disconnected_tracing(struct target_ops *self, int arg1)
static int tdefault_supports_multi_process(struct target_ops *self)
static void delegate_interrupt(struct target_ops *self, ptid_t arg1)
static char * debug_pid_to_exec_file(struct target_ops *self, int arg1)
int(* to_get_tib_address)(struct target_ops *, ptid_t ptid, CORE_ADDR *addr) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1076
static int delegate_core_of_thread(struct target_ops *self, ptid_t arg1)
static void tdefault_fetch_registers(struct target_ops *self, struct regcache *arg1, int arg2)
traceframe_info_up(* to_traceframe_info)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1099
void(* to_detach)(struct target_ops *ops, const char *, int) TARGET_DEFAULT_IGNORE()
Definition: target.h:443
static void delegate_disconnect(struct target_ops *self, const char *arg1, int arg2)
static traceframe_info_up delegate_traceframe_info(struct target_ops *self)
static int delegate_insert_fork_catchpoint(struct target_ops *self, int arg1)
static int delegate_stopped_by_hw_breakpoint(struct target_ops *self)
static void delegate_mourn_inferior(struct target_ops *self)
void(* to_async)(struct target_ops *, int) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:670
#define target_debug_print_enum_target_hw_bp_type(X)
Definition: target-debug.h:159
static void debug_fetch_registers(struct target_ops *self, struct regcache *arg1, int arg2)
static enum target_xfer_status 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)
static void debug_terminal_info(struct target_ops *self, const char *arg1, int arg2)
static void delegate_terminal_inferior(struct target_ops *self)
static enum exec_direction_kind default_execution_direction(struct target_ops *self)
Definition: target.c:572
#define target_debug_print_const_struct_target_desc_p(X)
Definition: target-debug.h:123
char *(* to_make_corefile_notes)(struct target_ops *, bfd *, int *) TARGET_DEFAULT_FUNC(dummy_make_corefile_notes)
Definition: target.h:687
static char * delegate_pid_to_exec_file(struct target_ops *self, int arg1)
static void tdefault_download_trace_state_variable(struct target_ops *self, struct trace_state_variable *arg1)
target_object
Definition: target.h:132
int(* to_insert_hw_breakpoint)(struct target_ops *, struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:507
static int debug_can_run(struct target_ops *self)
record_method
Definition: record.h:41
static void delegate_trace_stop(struct target_ops *self)
#define target_debug_print_enum_record_method(X)
Definition: target-debug.h:153
char *(* to_pid_to_exec_file)(struct target_ops *, int pid) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:650
bptype
Definition: breakpoint.h:67
static void delegate_delete_record(struct target_ops *self)
int(* to_can_run_breakpoint_commands)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:855
static void install_delegators(struct target_ops *ops)
static void tdefault_async(struct target_ops *self, int arg1)
static int delegate_supports_stopped_by_sw_breakpoint(struct target_ops *self)
static void delegate_store_registers(struct target_ops *self, struct regcache *arg1, int arg2)
static void tdefault_commit_resume(struct target_ops *self)
static int dummy_find_memory_regions(struct target_ops *self, find_memory_region_ftype ignore1, void *ignore2)
Definition: target.c:3250
static const struct frame_unwind * tdefault_get_unwinder(struct target_ops *self)
static void target_debug_print_signals(unsigned char *sigs)
Definition: target-debug.h:199
static const struct frame_unwind * delegate_get_unwinder(struct target_ops *self)
void(* to_commit_resume)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:451
void(* to_disconnect)(struct target_ops *, const char *, int) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:445
static struct thread_info * delegate_thread_handle_to_thread_info(struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
static int debug_get_tib_address(struct target_ops *self, ptid_t arg1, CORE_ADDR *arg2)
int(* to_can_download_tracepoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:959
static void tdefault_log_command(struct target_ops *self, const char *arg1)
static void debug_trace_start(struct target_ops *self)
void(* to_log_command)(struct target_ops *, const char *) TARGET_DEFAULT_IGNORE()
Definition: target.h:652
#define target_debug_print_long(X)
Definition: target-debug.h:61
static void delegate_call_history_range(struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
static int delegate_augmented_libraries_svr4_read(struct target_ops *self)
#define target_debug_print_enum_btrace_read_type(X)
Definition: target-debug.h:69
int(* to_always_non_stop_p)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:680
static void tdefault_thread_events(struct target_ops *self, int arg1)
enum btrace_error(* to_read_btrace)(struct target_ops *self, struct btrace_data *data, struct btrace_target_info *btinfo, enum btrace_read_type type) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1138
int(* to_auxv_parse)(struct target_ops *ops, gdb_byte **readptr, gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp) TARGET_DEFAULT_FUNC(default_auxv_parse)
Definition: target.h:805
static int delegate_set_trace_notes(struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
int(* to_verify_memory)(struct target_ops *, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size) TARGET_DEFAULT_FUNC(default_verify_memory)
Definition: target.h:1070
static CORE_ADDR delegate_get_thread_local_address(struct target_ops *self, ptid_t arg1, CORE_ADDR arg2, CORE_ADDR arg3)
static void delegate_save_record(struct target_ops *self, const char *arg1)
static int delegate_supports_evaluation_of_breakpoint_conditions(struct target_ops *self)
static void tdefault_terminal_init(struct target_ops *self)
void(* to_download_tracepoint)(struct target_ops *, struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:953
static int delegate_use_agent(struct target_ops *self, int arg1)
#define target_debug_print_LONGEST_p(X)
Definition: target-debug.h:91
static const struct target_desc * delegate_read_description(struct target_ops *self)
static int debug_record_is_replaying(struct target_ops *self, ptid_t arg1)
static void default_mourn_inferior(struct target_ops *self)
Definition: target.c:2291
int(* to_remove_hw_breakpoint)(struct target_ops *, struct gdbarch *, struct bp_target_info *) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:510
bfd_byte gdb_byte
Definition: common-types.h:38
static void tdefault_call_history(struct target_ops *self, int arg1, int arg2)
enum exec_direction_kind(* to_execution_direction)(struct target_ops *) TARGET_DEFAULT_FUNC(default_execution_direction)
Definition: target.h:828
static int tdefault_upload_trace_state_variables(struct target_ops *self, struct uploaded_tsv **arg1)
#define target_debug_print_const_char_p(X)
Definition: target-debug.h:53
#define target_debug_print_struct_ui_file_p(X)
Definition: target-debug.h:107
static const struct target_desc * debug_read_description(struct target_ops *self)
static void debug_rcmd(struct target_ops *self, const char *arg1, struct ui_file *arg2)
static void delegate_info_record(struct target_ops *self)
static int debug_stopped_by_hw_breakpoint(struct target_ops *self)
std::unique_ptr< traceframe_info > traceframe_info_up
Definition: tracepoint.h:40
static int delegate_auxv_parse(struct target_ops *self, gdb_byte **arg1, gdb_byte *arg2, CORE_ADDR *arg3, CORE_ADDR *arg4)
static gdb_byte * debug_get_bookmark(struct target_ops *self, const char *arg1, int arg2)
static int debug_can_use_agent(struct target_ops *self)
#define target_debug_print_ULONGEST_p(X)
Definition: target-debug.h:87
#define target_debug_print_struct_uploaded_tp_pp(X)
Definition: target-debug.h:135
#define target_debug_print_struct_target_section_table_p(X)
Definition: target-debug.h:109
static int delegate_trace_find(struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
static void debug_store_registers(struct target_ops *self, struct regcache *arg1, int arg2)
static void delegate_get_tracepoint_status(struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
static int delegate_set_syscall_catchpoint(struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view< const int > arg4)
void(* to_fetch_registers)(struct target_ops *, struct regcache *, int) TARGET_DEFAULT_IGNORE()
Definition: target.h:457
void(* to_mourn_inferior)(struct target_ops *) TARGET_DEFAULT_FUNC(default_mourn_inferior)
Definition: target.h:606
const struct frame_unwind *(* to_get_unwinder)(struct target_ops *self) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:1247
const char *(* to_extra_thread_info)(struct target_ops *, struct thread_info *) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:632
static int tdefault_can_use_agent(struct target_ops *self)
#define target_debug_print_int_p(X)
Definition: target-debug.h:101
static int tdefault_set_trace_notes(struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
int(* to_set_trace_notes)(struct target_ops *, const char *user, const char *notes, const char *stopnotes) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1051
static int debug_remove_watchpoint(struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
static int debug_can_use_hw_breakpoint(struct target_ops *self, enum bptype arg1, int arg2, int arg3)
static int delegate_upload_tracepoints(struct target_ops *self, struct uploaded_tp **arg1)
static void tdefault_goto_bookmark(struct target_ops *self, const gdb_byte *arg1, int arg2)
static int debug_insert_watchpoint(struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
static int default_search_memory(struct target_ops *self, CORE_ADDR start_addr, ULONGEST search_space_len, const gdb_byte *pattern, ULONGEST pattern_len, CORE_ADDR *found_addrp)
Definition: target.c:2422
static struct thread_info * tdefault_thread_handle_to_thread_info(struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
void(* to_pass_signals)(struct target_ops *, int, unsigned char *TARGET_DEBUG_PRINTER(target_debug_print_signals)) TARGET_DEFAULT_IGNORE()
Definition: target.h:616
void(* to_stop)(struct target_ops *, ptid_t) TARGET_DEFAULT_IGNORE()
Definition: target.h:641
#define target_debug_print_const_struct_btrace_config_p(X)
Definition: target-debug.h:155
void(* to_teardown_btrace)(struct target_ops *, struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1132
enum record_method(* to_record_method)(struct target_ops *, ptid_t ptid) TARGET_DEFAULT_RETURN(RECORD_METHOD_NONE)
Definition: target.h:1150
static int delegate_supports_stopped_by_hw_breakpoint(struct target_ops *self)
int(* to_save_trace_data)(struct target_ops *, const char *filename) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1017
void(* to_download_trace_state_variable)(struct target_ops *, struct trace_state_variable *tsv) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:963
#define target_debug_print_const_gdb_byte_p(X)
Definition: target-debug.h:77
static void delegate_resume(struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
static void debug_flash_done(struct target_ops *self)
#define target_debug_print_LONGEST(X)
Definition: target-debug.h:89
static int debug_insert_mask_watchpoint(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
static int debug_remove_exec_catchpoint(struct target_ops *self, int arg1)
void(* to_kill)(struct target_ops *) TARGET_DEFAULT_NORETURN(noprocess())
Definition: target.h:570
gdb_byte *(* to_get_bookmark)(struct target_ops *, const char *, int) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:690
static void debug_disconnect(struct target_ops *self, const char *arg1, int arg2)
static int delegate_upload_trace_state_variables(struct target_ops *self, struct uploaded_tsv **arg1)
int(* to_can_accel_watchpoint_condition)(struct target_ops *, CORE_ADDR, int, int, struct expression *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:547
static int debug_can_run_breakpoint_commands(struct target_ops *self)
static int tdefault_can_do_single_step(struct target_ops *self)
static void debug_set_permissions(struct target_ops *self)
#define target_debug_print_void_p(X)
Definition: target-debug.h:113
int(* to_stopped_by_sw_breakpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:483
static int debug_insert_fork_catchpoint(struct target_ops *self, int arg1)
static enum target_xfer_status 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)
static std::vector< mem_region > delegate_memory_map(struct target_ops *self)
void(* to_goto_record_end)(struct target_ops *) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1188
void(* to_set_circular_trace_buffer)(struct target_ops *, int val) TARGET_DEFAULT_IGNORE()
Definition: target.h:1043
static char * dummy_make_corefile_notes(struct target_ops *self, bfd *ignore1, int *ignore2)
Definition: target.c:3259
static struct address_space * debug_thread_address_space(struct target_ops *self, ptid_t arg1)
static int tdefault_supports_non_stop(struct target_ops *self)
#define target_debug_print_ULONGEST(X)
Definition: target-debug.h:85
static void debug_terminal_inferior(struct target_ops *self)
static void tdefault_insn_history(struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
static int debug_remove_mask_watchpoint(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
int(* to_ranged_break_num_registers)(struct target_ops *) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:505
static CORE_ADDR debug_get_thread_local_address(struct target_ops *self, ptid_t arg1, CORE_ADDR arg2, CORE_ADDR arg3)
void(* to_call_history_from)(struct target_ops *, ULONGEST begin, int size, int flags) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1229
void(* to_post_attach)(struct target_ops *, int) TARGET_DEFAULT_IGNORE()
Definition: target.h:441
static void delegate_call_history(struct target_ops *self, int arg1, int arg2)
static void debug_goto_record(struct target_ops *self, ULONGEST arg1)
int(* to_can_async_p)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:666
static void delegate_terminal_ours_for_output(struct target_ops *self)
static int delegate_remove_fork_catchpoint(struct target_ops *self, int arg1)
int(* to_static_tracepoint_marker_at)(struct target_ops *, CORE_ADDR, struct static_tracepoint_marker *marker) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1086
static int tdefault_supports_enable_disable_tracepoint(struct target_ops *self)
static void delegate_goto_record(struct target_ops *self, ULONGEST arg1)
int(* to_remove_breakpoint)(struct target_ops *, struct gdbarch *, struct bp_target_info *, enum remove_bp_reason) TARGET_DEFAULT_FUNC(memory_remove_breakpoint)
Definition: target.h:469
static int tdefault_is_async_p(struct target_ops *self)
static void debug_insn_history(struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
static traceframe_info_up tdefault_traceframe_info(struct target_ops *self)
struct gdbarch *(* to_thread_architecture)(struct target_ops *, ptid_t) TARGET_DEFAULT_FUNC(default_thread_architecture)
Definition: target.h:868
static int debug_supports_stopped_by_hw_breakpoint(struct target_ops *self)
int(* to_stopped_by_watchpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:531
int(* to_get_trace_status)(struct target_ops *, struct trace_status *ts) TARGET_DEFAULT_RETURN(-1)
Definition: target.h:988
static enum exec_direction_kind delegate_execution_direction(struct target_ops *self)
static int delegate_supports_non_stop(struct target_ops *self)
static void delegate_set_trace_buffer_size(struct target_ops *self, LONGEST arg1)
static int debug_set_syscall_catchpoint(struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view< const int > arg4)
static void tdefault_terminal_ours(struct target_ops *self)
static int debug_supports_stopped_by_sw_breakpoint(struct target_ops *self)
target_hw_bp_type
Definition: break-common.h:22
static int delegate_stopped_by_sw_breakpoint(struct target_ops *self)
static void tdefault_store_registers(struct target_ops *self, struct regcache *arg1, int arg2)
static void delegate_prepare_to_store(struct target_ops *self, struct regcache *arg1)
static void delegate_goto_record_end(struct target_ops *self)
static int delegate_can_download_tracepoint(struct target_ops *self)
void(* to_terminal_ours)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:566
int(* to_stopped_by_hw_breakpoint)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:496
void(* to_enable_tracepoint)(struct target_ops *, struct bp_location *location) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:968
static int delegate_remove_watchpoint(struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
static int default_verify_memory(struct target_ops *self, const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
Definition: target.c:3494
static void tdefault_trace_stop(struct target_ops *self)
static enum btrace_error tdefault_read_btrace(struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
void(* to_terminal_inferior)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:562
static void default_rcmd(struct target_ops *self, const char *command, struct ui_file *output)
Definition: target.c:3792
static int debug_set_trace_notes(struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
static ptid_t debug_get_ada_task_ptid(struct target_ops *self, long arg1, long arg2)
static int delegate_insert_exec_catchpoint(struct target_ops *self, int arg1)
static char * tdefault_pid_to_exec_file(struct target_ops *self, int arg1)
unsigned long long ULONGEST
Definition: common-types.h:53
static int delegate_supports_btrace(struct target_ops *self, enum btrace_format arg1)
static void tdefault_disable_tracepoint(struct target_ops *self, struct bp_location *arg1)
static int debug_insert_hw_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
static int delegate_get_tib_address(struct target_ops *self, ptid_t arg1, CORE_ADDR *arg2)
static void delegate_goto_bookmark(struct target_ops *self, const gdb_byte *arg1, int arg2)
static void delegate_load(struct target_ops *self, const char *arg1, int arg2)
static const char * debug_pid_to_str(struct target_ops *self, ptid_t arg1)
static int delegate_find_memory_regions(struct target_ops *self, find_memory_region_ftype arg1, void *arg2)
static struct gdbarch * delegate_thread_architecture(struct target_ops *self, ptid_t arg1)
static int tdefault_set_syscall_catchpoint(struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view< const int > arg4)
static void debug_interrupt(struct target_ops *self, ptid_t arg1)
#define gdb_stdlog
Definition: utils.h:349
int(* to_supports_non_stop)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:676
static const char * default_pid_to_str(struct target_ops *ops, ptid_t ptid)
Definition: target.c:3243
int memory_insert_breakpoint(struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
Definition: mem-break.c:87
static const struct btrace_config * debug_btrace_conf(struct target_ops *self, const struct btrace_target_info *arg1)
static int debug_remove_breakpoint(struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2, enum remove_bp_reason arg3)
static VEC(static_tracepoint_marker_p)
static void tdefault_download_tracepoint(struct target_ops *self, struct bp_location *arg1)
void(* to_interrupt)(struct target_ops *, ptid_t) TARGET_DEFAULT_IGNORE()
Definition: target.h:643
static const char * debug_extra_thread_info(struct target_ops *self, struct thread_info *arg1)
void(* to_done_generating_core)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:1258
static int delegate_search_memory(struct target_ops *self, CORE_ADDR arg1, ULONGEST arg2, const gdb_byte *arg3, ULONGEST arg4, CORE_ADDR *arg5)
static void tdefault_files_info(struct target_ops *self)
#define target_debug_print_enum_exec_direction_kind(X)
Definition: target-debug.h:65
static void debug_trace_stop(struct target_ops *self)
#define target_debug_print_enum_trace_find_type(X)
Definition: target-debug.h:67
static const struct target_desc * tdefault_read_description(struct target_ops *self)
#define target_debug_print_struct_gdbarch_p(X)
Definition: target-debug.h:75
static int delegate_static_tracepoint_marker_at(struct target_ops *self, CORE_ADDR arg1, struct static_tracepoint_marker *arg2)
static int delegate_filesystem_is_local(struct target_ops *self)
#define target_debug_print_traceframe_info_up(X)
Definition: target-debug.h:169
static int debug_stopped_by_sw_breakpoint(struct target_ops *self)
static void tdefault_done_generating_core(struct target_ops *self)
static int tdefault_can_run(struct target_ops *self)
int(* to_insert_vfork_catchpoint)(struct target_ops *, int) TARGET_DEFAULT_RETURN(1)
Definition: target.h:588
int(* to_thread_alive)(struct target_ops *, ptid_t ptid) TARGET_DEFAULT_RETURN(0)
Definition: target.h:626
static const struct frame_unwind * debug_get_unwinder(struct target_ops *self)
#define target_debug_print_gdb_array_view_const_int(X)
Definition: target-debug.h:171
#define target_debug_print_const_struct_btrace_target_info_p(X)
Definition: target-debug.h:157
static int delegate_masked_watch_num_registers(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2)
static CORE_ADDR tdefault_get_thread_local_address(struct target_ops *self, ptid_t arg1, CORE_ADDR arg2, CORE_ADDR arg3)
static struct thread_info * debug_thread_handle_to_thread_info(struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
static int debug_stopped_by_watchpoint(struct target_ops *self)
void(* to_follow_exec)(struct target_ops *, struct inferior *, char *) TARGET_DEFAULT_IGNORE()
Definition: target.h:598
static void delegate_teardown_btrace(struct target_ops *self, struct btrace_target_info *arg1)
static const char * debug_thread_name(struct target_ops *self, struct thread_info *arg1)
static void init_debug_target(struct target_ops *ops)
static int tdefault_always_non_stop_p(struct target_ops *self)
int(* to_use_agent)(struct target_ops *, int use) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1104
static int delegate_ranged_break_num_registers(struct target_ops *self)
void(* to_pass_ctrlc)(struct target_ops *) TARGET_DEFAULT_FUNC(default_target_pass_ctrlc)
Definition: target.h:645
static void debug_set_trace_buffer_size(struct target_ops *self, LONGEST arg1)
int(* to_supports_btrace)(struct target_ops *, enum btrace_format) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1112
static void tdefault_terminal_inferior(struct target_ops *self)
int(* to_stopped_data_address)(struct target_ops *, CORE_ADDR *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:535
static int debug_trace_find(struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
static void debug_save_record(struct target_ops *self, const char *arg1)
static void debug_download_trace_state_variable(struct target_ops *self, struct trace_state_variable *arg1)
void(* to_update_thread_list)(struct target_ops *) TARGET_DEFAULT_IGNORE()
Definition: target.h:628
static int debug_auxv_parse(struct target_ops *self, gdb_byte **arg1, gdb_byte *arg2, CORE_ADDR *arg3, CORE_ADDR *arg4)
static void debug_thread_events(struct target_ops *self, int arg1)
static int tdefault_insert_mask_watchpoint(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
static int tdefault_can_use_hw_breakpoint(struct target_ops *self, enum bptype arg1, int arg2, int arg3)
static void debug_info_record(struct target_ops *self)
void(* to_prepare_to_store)(struct target_ops *, struct regcache *) TARGET_DEFAULT_NORETURN(noprocess())
Definition: target.h:461
void(* to_store_registers)(struct target_ops *, struct regcache *, int) TARGET_DEFAULT_NORETURN(noprocess())
Definition: target.h:459
int(* find_memory_region_ftype)(CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, void *data)
Definition: defs.h:371
static void delegate_terminal_init(struct target_ops *self)
static void tdefault_post_attach(struct target_ops *self, int arg1)
int memory_remove_breakpoint(struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt, enum remove_bp_reason reason)
Definition: mem-break.c:94
void noprocess(void)
Definition: target.c:548
static int delegate_can_use_agent(struct target_ops *self)
ptid_t(* to_wait)(struct target_ops *, ptid_t, struct target_waitstatus *, int TARGET_DEBUG_PRINTER(target_debug_print_options)) TARGET_DEFAULT_FUNC(default_target_wait)
Definition: target.h:453
static int debug_thread_alive(struct target_ops *self, ptid_t arg1)
static const struct btrace_config * tdefault_btrace_conf(struct target_ops *self, const struct btrace_target_info *arg1)
static int debug_region_ok_for_hw_watchpoint(struct target_ops *self, CORE_ADDR arg1, int arg2)
static void target_debug_print_options(int options)
Definition: target-debug.h:190
static int tdefault_supports_stopped_by_hw_breakpoint(struct target_ops *self)
ptid_t(* to_get_ada_task_ptid)(struct target_ops *, long lwp, long thread) TARGET_DEFAULT_FUNC(default_get_ada_task_ptid)
Definition: target.h:797
static void tdefault_set_trace_buffer_size(struct target_ops *self, LONGEST arg1)
static int debug_stopped_data_address(struct target_ops *self, CORE_ADDR *arg1)
static void tdefault_delete_record(struct target_ops *self)
static int delegate_is_async_p(struct target_ops *self)
static void tcomplain(void)
Definition: target.c:541
static void debug_call_history_from(struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
static void tdefault_goto_record_end(struct target_ops *self)
void(* to_disable_btrace)(struct target_ops *, struct btrace_target_info *tinfo) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1124
static void debug_insn_history_range(struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
static void delegate_enable_tracepoint(struct target_ops *self, struct bp_location *arg1)
static int tdefault_stopped_by_hw_breakpoint(struct target_ops *self)
static void tdefault_set_permissions(struct target_ops *self)
static void debug_goto_bookmark(struct target_ops *self, const gdb_byte *arg1, int arg2)
const char *(* to_thread_name)(struct target_ops *, struct thread_info *) TARGET_DEFAULT_RETURN(NULL)
Definition: target.h:634
static int tdefault_core_of_thread(struct target_ops *self, ptid_t arg1)
#define target_debug_print_gdb_byte_p(X)
Definition: target-debug.h:79
static const struct frame_unwind * tdefault_get_tailcall_unwinder(struct target_ops *self)
static int delegate_insert_mask_watchpoint(struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
static void delegate_trace_set_readonly_regions(struct target_ops *self)
remove_bp_reason
Definition: breakpoint.h:47
static int tdefault_remove_watchpoint(struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
#define target_debug_print_struct_uploaded_tp_p(X)
Definition: target-debug.h:133
static int tdefault_stopped_by_watchpoint(struct target_ops *self)
static char * delegate_make_corefile_notes(struct target_ops *self, bfd *arg1, int *arg2)
static int tdefault_trace_find(struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
static void debug_files_info(struct target_ops *self)
long long LONGEST
Definition: common-types.h:52
static void tdefault_disable_btrace(struct target_ops *self, struct btrace_target_info *arg1)
int(* to_can_execute_reverse)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:822
void(* to_load)(struct target_ops *, const char *, int) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:572
static void tdefault_flash_done(struct target_ops *self)
void(* to_terminal_info)(struct target_ops *, const char *, int) TARGET_DEFAULT_FUNC(default_terminal_info)
Definition: target.h:568
#define target_debug_print_enum_btrace_error(X)
Definition: target-debug.h:71
static int delegate_can_async_p(struct target_ops *self)
int(* to_filesystem_is_local)(struct target_ops *) TARGET_DEFAULT_RETURN(1)
Definition: target.h:883
int(* to_supports_multi_process)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:833
static int debug_get_min_fast_tracepoint_insn_len(struct target_ops *self)
static void debug_set_circular_trace_buffer(struct target_ops *self, int arg1)
#define target_debug_print_struct_thread_info_p(X)
Definition: target-debug.h:105
void(* to_post_startup_inferior)(struct target_ops *, ptid_t) TARGET_DEFAULT_IGNORE()
Definition: target.h:582
int(* to_can_use_agent)(struct target_ops *) TARGET_DEFAULT_RETURN(0)
Definition: target.h:1108
static int delegate_follow_fork(struct target_ops *self, int arg1, int arg2)
static void delegate_post_startup_inferior(struct target_ops *self, ptid_t arg1)
static void debug_detach(struct target_ops *self, const char *arg1, int arg2)
void(* to_goto_record)(struct target_ops *, ULONGEST insn) TARGET_DEFAULT_NORETURN(tcomplain())
Definition: target.h:1192
static int debug_supports_btrace(struct target_ops *self, enum btrace_format arg1)
static struct btrace_target_info * tdefault_enable_btrace(struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
static int delegate_get_trace_state_variable_value(struct target_ops *self, int arg1, LONGEST *arg2)
static void delegate_pass_ctrlc(struct target_ops *self)
static void delegate_insn_history_range(struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
static enum btrace_error debug_read_btrace(struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
static void tdefault_info_record(struct target_ops *self)
static void tdefault_pass_signals(struct target_ops *self, int arg1, unsigned char *arg2)
static void delegate_async(struct target_ops *self, int arg1)