Remove args from target detach
[deliverable/binutils-gdb.git] / gdb / target-delegates.c
CommitLineData
1101cb7b
TT
1/* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
2/* vi:set ro: */
3
4/* To regenerate this file, run:*/
5/* make-target-delegates target.h > target-delegates.c */
bebd3233
TT
6static void
7delegate_post_attach (struct target_ops *self, int arg1)
8{
9 self = self->beneath;
10 self->to_post_attach (self, arg1);
11}
12
13static void
14tdefault_post_attach (struct target_ops *self, int arg1)
15{
16}
17
a7068b60
TT
18static void
19debug_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);
24 target_debug_print_struct_target_ops_p (&debug_target);
25 fputs_unfiltered (", ", gdb_stdlog);
26 target_debug_print_int (arg1);
27 fputs_unfiltered (")\n", gdb_stdlog);
28}
29
09da0d0a 30static void
6bd6f3b6 31delegate_detach (struct target_ops *self, int arg1)
09da0d0a
TT
32{
33 self = self->beneath;
6bd6f3b6 34 self->to_detach (self, arg1);
09da0d0a
TT
35}
36
37static void
6bd6f3b6 38tdefault_detach (struct target_ops *self, int arg1)
09da0d0a
TT
39{
40}
41
a7068b60 42static void
6bd6f3b6 43debug_detach (struct target_ops *self, int arg1)
a7068b60
TT
44{
45 fprintf_unfiltered (gdb_stdlog, "-> %s->to_detach (...)\n", debug_target.to_shortname);
6bd6f3b6 46 debug_target.to_detach (&debug_target, arg1);
a7068b60
TT
47 fprintf_unfiltered (gdb_stdlog, "<- %s->to_detach (", debug_target.to_shortname);
48 target_debug_print_struct_target_ops_p (&debug_target);
49 fputs_unfiltered (", ", gdb_stdlog);
6bd6f3b6 50 target_debug_print_int (arg1);
a7068b60
TT
51 fputs_unfiltered (")\n", gdb_stdlog);
52}
53
86a0854a 54static void
fee354ee 55delegate_disconnect (struct target_ops *self, const char *arg1, int arg2)
86a0854a
TT
56{
57 self = self->beneath;
58 self->to_disconnect (self, arg1, arg2);
59}
60
61static void
fee354ee 62tdefault_disconnect (struct target_ops *self, const char *arg1, int arg2)
86a0854a
TT
63{
64 tcomplain ();
65}
66
a7068b60
TT
67static void
68debug_disconnect (struct target_ops *self, const char *arg1, int arg2)
69{
70 fprintf_unfiltered (gdb_stdlog, "-> %s->to_disconnect (...)\n", debug_target.to_shortname);
71 debug_target.to_disconnect (&debug_target, arg1, arg2);
72 fprintf_unfiltered (gdb_stdlog, "<- %s->to_disconnect (", debug_target.to_shortname);
73 target_debug_print_struct_target_ops_p (&debug_target);
74 fputs_unfiltered (", ", gdb_stdlog);
75 target_debug_print_const_char_p (arg1);
76 fputs_unfiltered (", ", gdb_stdlog);
77 target_debug_print_int (arg2);
78 fputs_unfiltered (")\n", gdb_stdlog);
79}
80
6b84065d
TT
81static void
82delegate_resume (struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
83{
84 self = self->beneath;
85 self->to_resume (self, arg1, arg2, arg3);
86}
87
88static void
89tdefault_resume (struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
90{
91 noprocess ();
92}
93
a7068b60
TT
94static void
95debug_resume (struct target_ops *self, ptid_t arg1, int arg2, enum gdb_signal arg3)
96{
97 fprintf_unfiltered (gdb_stdlog, "-> %s->to_resume (...)\n", debug_target.to_shortname);
98 debug_target.to_resume (&debug_target, arg1, arg2, arg3);
99 fprintf_unfiltered (gdb_stdlog, "<- %s->to_resume (", debug_target.to_shortname);
100 target_debug_print_struct_target_ops_p (&debug_target);
101 fputs_unfiltered (", ", gdb_stdlog);
102 target_debug_print_ptid_t (arg1);
103 fputs_unfiltered (", ", gdb_stdlog);
104 target_debug_print_step (arg2);
105 fputs_unfiltered (", ", gdb_stdlog);
106 target_debug_print_enum_gdb_signal (arg3);
107 fputs_unfiltered (")\n", gdb_stdlog);
108}
109
85ad3aaf
PA
110static void
111delegate_commit_resume (struct target_ops *self)
112{
113 self = self->beneath;
114 self->to_commit_resume (self);
115}
116
117static void
118tdefault_commit_resume (struct target_ops *self)
119{
120}
121
122static void
123debug_commit_resume (struct target_ops *self)
124{
125 fprintf_unfiltered (gdb_stdlog, "-> %s->to_commit_resume (...)\n", debug_target.to_shortname);
126 debug_target.to_commit_resume (&debug_target);
127 fprintf_unfiltered (gdb_stdlog, "<- %s->to_commit_resume (", debug_target.to_shortname);
128 target_debug_print_struct_target_ops_p (&debug_target);
129 fputs_unfiltered (")\n", gdb_stdlog);
130}
131
6b84065d
TT
132static ptid_t
133delegate_wait (struct target_ops *self, ptid_t arg1, struct target_waitstatus *arg2, int arg3)
134{
135 self = self->beneath;
136 return self->to_wait (self, arg1, arg2, arg3);
137}
138
a7068b60
TT
139static ptid_t
140debug_wait (struct target_ops *self, ptid_t arg1, struct target_waitstatus *arg2, int arg3)
141{
142 ptid_t result;
143 fprintf_unfiltered (gdb_stdlog, "-> %s->to_wait (...)\n", debug_target.to_shortname);
144 result = debug_target.to_wait (&debug_target, arg1, arg2, arg3);
145 fprintf_unfiltered (gdb_stdlog, "<- %s->to_wait (", debug_target.to_shortname);
146 target_debug_print_struct_target_ops_p (&debug_target);
147 fputs_unfiltered (", ", gdb_stdlog);
148 target_debug_print_ptid_t (arg1);
149 fputs_unfiltered (", ", gdb_stdlog);
150 target_debug_print_struct_target_waitstatus_p (arg2);
151 fputs_unfiltered (", ", gdb_stdlog);
152 target_debug_print_options (arg3);
153 fputs_unfiltered (") = ", gdb_stdlog);
154 target_debug_print_ptid_t (result);
155 fputs_unfiltered ("\n", gdb_stdlog);
156 return result;
157}
158
ad5989bd
TT
159static void
160delegate_fetch_registers (struct target_ops *self, struct regcache *arg1, int arg2)
161{
162 self = self->beneath;
163 self->to_fetch_registers (self, arg1, arg2);
164}
165
166static void
167tdefault_fetch_registers (struct target_ops *self, struct regcache *arg1, int arg2)
168{
169}
170
a7068b60
TT
171static void
172debug_fetch_registers (struct target_ops *self, struct regcache *arg1, int arg2)
173{
174 fprintf_unfiltered (gdb_stdlog, "-> %s->to_fetch_registers (...)\n", debug_target.to_shortname);
175 debug_target.to_fetch_registers (&debug_target, arg1, arg2);
176 fprintf_unfiltered (gdb_stdlog, "<- %s->to_fetch_registers (", debug_target.to_shortname);
177 target_debug_print_struct_target_ops_p (&debug_target);
178 fputs_unfiltered (", ", gdb_stdlog);
179 target_debug_print_struct_regcache_p (arg1);
180 fputs_unfiltered (", ", gdb_stdlog);
181 target_debug_print_int (arg2);
182 fputs_unfiltered (")\n", gdb_stdlog);
183}
184
6b84065d
TT
185static void
186delegate_store_registers (struct target_ops *self, struct regcache *arg1, int arg2)
187{
188 self = self->beneath;
189 self->to_store_registers (self, arg1, arg2);
190}
191
192static void
193tdefault_store_registers (struct target_ops *self, struct regcache *arg1, int arg2)
194{
195 noprocess ();
196}
197
a7068b60
TT
198static void
199debug_store_registers (struct target_ops *self, struct regcache *arg1, int arg2)
200{
201 fprintf_unfiltered (gdb_stdlog, "-> %s->to_store_registers (...)\n", debug_target.to_shortname);
202 debug_target.to_store_registers (&debug_target, arg1, arg2);
203 fprintf_unfiltered (gdb_stdlog, "<- %s->to_store_registers (", debug_target.to_shortname);
204 target_debug_print_struct_target_ops_p (&debug_target);
205 fputs_unfiltered (", ", gdb_stdlog);
206 target_debug_print_struct_regcache_p (arg1);
207 fputs_unfiltered (", ", gdb_stdlog);
208 target_debug_print_int (arg2);
209 fputs_unfiltered (")\n", gdb_stdlog);
210}
211
6c628163
TT
212static void
213delegate_prepare_to_store (struct target_ops *self, struct regcache *arg1)
214{
215 self = self->beneath;
216 self->to_prepare_to_store (self, arg1);
217}
218
219static void
220tdefault_prepare_to_store (struct target_ops *self, struct regcache *arg1)
221{
222 noprocess ();
223}
224
a7068b60
TT
225static void
226debug_prepare_to_store (struct target_ops *self, struct regcache *arg1)
227{
228 fprintf_unfiltered (gdb_stdlog, "-> %s->to_prepare_to_store (...)\n", debug_target.to_shortname);
229 debug_target.to_prepare_to_store (&debug_target, arg1);
230 fprintf_unfiltered (gdb_stdlog, "<- %s->to_prepare_to_store (", debug_target.to_shortname);
231 target_debug_print_struct_target_ops_p (&debug_target);
232 fputs_unfiltered (", ", gdb_stdlog);
233 target_debug_print_struct_regcache_p (arg1);
234 fputs_unfiltered (")\n", gdb_stdlog);
235}
236
f86e59b2
TT
237static void
238delegate_files_info (struct target_ops *self)
239{
240 self = self->beneath;
241 self->to_files_info (self);
242}
243
244static void
245tdefault_files_info (struct target_ops *self)
246{
247}
248
a7068b60
TT
249static void
250debug_files_info (struct target_ops *self)
251{
252 fprintf_unfiltered (gdb_stdlog, "-> %s->to_files_info (...)\n", debug_target.to_shortname);
253 debug_target.to_files_info (&debug_target);
254 fprintf_unfiltered (gdb_stdlog, "<- %s->to_files_info (", debug_target.to_shortname);
255 target_debug_print_struct_target_ops_p (&debug_target);
256 fputs_unfiltered (")\n", gdb_stdlog);
257}
258
6b84065d
TT
259static int
260delegate_insert_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
261{
262 self = self->beneath;
263 return self->to_insert_breakpoint (self, arg1, arg2);
264}
265
a7068b60
TT
266static int
267debug_insert_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
268{
269 int result;
270 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insert_breakpoint (...)\n", debug_target.to_shortname);
271 result = debug_target.to_insert_breakpoint (&debug_target, arg1, arg2);
272 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insert_breakpoint (", debug_target.to_shortname);
273 target_debug_print_struct_target_ops_p (&debug_target);
274 fputs_unfiltered (", ", gdb_stdlog);
275 target_debug_print_struct_gdbarch_p (arg1);
276 fputs_unfiltered (", ", gdb_stdlog);
277 target_debug_print_struct_bp_target_info_p (arg2);
278 fputs_unfiltered (") = ", gdb_stdlog);
279 target_debug_print_int (result);
280 fputs_unfiltered ("\n", gdb_stdlog);
281 return result;
282}
283
6b84065d 284static int
73971819 285delegate_remove_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2, enum remove_bp_reason arg3)
6b84065d
TT
286{
287 self = self->beneath;
73971819 288 return self->to_remove_breakpoint (self, arg1, arg2, arg3);
6b84065d
TT
289}
290
a7068b60 291static int
73971819 292debug_remove_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2, enum remove_bp_reason arg3)
a7068b60
TT
293{
294 int result;
295 fprintf_unfiltered (gdb_stdlog, "-> %s->to_remove_breakpoint (...)\n", debug_target.to_shortname);
73971819 296 result = debug_target.to_remove_breakpoint (&debug_target, arg1, arg2, arg3);
a7068b60
TT
297 fprintf_unfiltered (gdb_stdlog, "<- %s->to_remove_breakpoint (", debug_target.to_shortname);
298 target_debug_print_struct_target_ops_p (&debug_target);
299 fputs_unfiltered (", ", gdb_stdlog);
300 target_debug_print_struct_gdbarch_p (arg1);
301 fputs_unfiltered (", ", gdb_stdlog);
302 target_debug_print_struct_bp_target_info_p (arg2);
73971819
PA
303 fputs_unfiltered (", ", gdb_stdlog);
304 target_debug_print_enum_remove_bp_reason (arg3);
a7068b60
TT
305 fputs_unfiltered (") = ", gdb_stdlog);
306 target_debug_print_int (result);
307 fputs_unfiltered ("\n", gdb_stdlog);
308 return result;
309}
310
1cf4d951
PA
311static int
312delegate_stopped_by_sw_breakpoint (struct target_ops *self)
313{
314 self = self->beneath;
315 return self->to_stopped_by_sw_breakpoint (self);
316}
317
318static int
319tdefault_stopped_by_sw_breakpoint (struct target_ops *self)
320{
321 return 0;
322}
323
324static int
325debug_stopped_by_sw_breakpoint (struct target_ops *self)
326{
327 int result;
328 fprintf_unfiltered (gdb_stdlog, "-> %s->to_stopped_by_sw_breakpoint (...)\n", debug_target.to_shortname);
329 result = debug_target.to_stopped_by_sw_breakpoint (&debug_target);
330 fprintf_unfiltered (gdb_stdlog, "<- %s->to_stopped_by_sw_breakpoint (", debug_target.to_shortname);
331 target_debug_print_struct_target_ops_p (&debug_target);
332 fputs_unfiltered (") = ", gdb_stdlog);
333 target_debug_print_int (result);
334 fputs_unfiltered ("\n", gdb_stdlog);
335 return result;
336}
337
338static int
339delegate_supports_stopped_by_sw_breakpoint (struct target_ops *self)
340{
341 self = self->beneath;
342 return self->to_supports_stopped_by_sw_breakpoint (self);
343}
344
345static int
346tdefault_supports_stopped_by_sw_breakpoint (struct target_ops *self)
347{
348 return 0;
349}
350
351static int
352debug_supports_stopped_by_sw_breakpoint (struct target_ops *self)
353{
354 int result;
355 fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_stopped_by_sw_breakpoint (...)\n", debug_target.to_shortname);
356 result = debug_target.to_supports_stopped_by_sw_breakpoint (&debug_target);
357 fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_stopped_by_sw_breakpoint (", debug_target.to_shortname);
358 target_debug_print_struct_target_ops_p (&debug_target);
359 fputs_unfiltered (") = ", gdb_stdlog);
360 target_debug_print_int (result);
361 fputs_unfiltered ("\n", gdb_stdlog);
362 return result;
363}
364
365static int
366delegate_stopped_by_hw_breakpoint (struct target_ops *self)
367{
368 self = self->beneath;
369 return self->to_stopped_by_hw_breakpoint (self);
370}
371
372static int
373tdefault_stopped_by_hw_breakpoint (struct target_ops *self)
374{
375 return 0;
376}
377
378static int
379debug_stopped_by_hw_breakpoint (struct target_ops *self)
380{
381 int result;
382 fprintf_unfiltered (gdb_stdlog, "-> %s->to_stopped_by_hw_breakpoint (...)\n", debug_target.to_shortname);
383 result = debug_target.to_stopped_by_hw_breakpoint (&debug_target);
384 fprintf_unfiltered (gdb_stdlog, "<- %s->to_stopped_by_hw_breakpoint (", debug_target.to_shortname);
385 target_debug_print_struct_target_ops_p (&debug_target);
386 fputs_unfiltered (") = ", gdb_stdlog);
387 target_debug_print_int (result);
388 fputs_unfiltered ("\n", gdb_stdlog);
389 return result;
390}
391
392static int
393delegate_supports_stopped_by_hw_breakpoint (struct target_ops *self)
394{
395 self = self->beneath;
396 return self->to_supports_stopped_by_hw_breakpoint (self);
397}
398
399static int
400tdefault_supports_stopped_by_hw_breakpoint (struct target_ops *self)
401{
402 return 0;
403}
404
405static int
406debug_supports_stopped_by_hw_breakpoint (struct target_ops *self)
407{
408 int result;
409 fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_stopped_by_hw_breakpoint (...)\n", debug_target.to_shortname);
410 result = debug_target.to_supports_stopped_by_hw_breakpoint (&debug_target);
411 fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_stopped_by_hw_breakpoint (", debug_target.to_shortname);
412 target_debug_print_struct_target_ops_p (&debug_target);
413 fputs_unfiltered (") = ", gdb_stdlog);
414 target_debug_print_int (result);
415 fputs_unfiltered ("\n", gdb_stdlog);
416 return result;
417}
418
52b51d06 419static int
f486487f 420delegate_can_use_hw_breakpoint (struct target_ops *self, enum bptype arg1, int arg2, int arg3)
52b51d06
TT
421{
422 self = self->beneath;
423 return self->to_can_use_hw_breakpoint (self, arg1, arg2, arg3);
424}
425
426static int
f486487f 427tdefault_can_use_hw_breakpoint (struct target_ops *self, enum bptype arg1, int arg2, int arg3)
52b51d06
TT
428{
429 return 0;
430}
431
a7068b60 432static int
f486487f 433debug_can_use_hw_breakpoint (struct target_ops *self, enum bptype arg1, int arg2, int arg3)
a7068b60
TT
434{
435 int result;
436 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_use_hw_breakpoint (...)\n", debug_target.to_shortname);
437 result = debug_target.to_can_use_hw_breakpoint (&debug_target, arg1, arg2, arg3);
438 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_use_hw_breakpoint (", debug_target.to_shortname);
439 target_debug_print_struct_target_ops_p (&debug_target);
440 fputs_unfiltered (", ", gdb_stdlog);
f486487f 441 target_debug_print_enum_bptype (arg1);
a7068b60
TT
442 fputs_unfiltered (", ", gdb_stdlog);
443 target_debug_print_int (arg2);
444 fputs_unfiltered (", ", gdb_stdlog);
445 target_debug_print_int (arg3);
446 fputs_unfiltered (") = ", gdb_stdlog);
447 target_debug_print_int (result);
448 fputs_unfiltered ("\n", gdb_stdlog);
449 return result;
450}
451
a134316b
TT
452static int
453delegate_ranged_break_num_registers (struct target_ops *self)
454{
455 self = self->beneath;
456 return self->to_ranged_break_num_registers (self);
457}
458
459static int
460tdefault_ranged_break_num_registers (struct target_ops *self)
461{
462 return -1;
463}
464
a7068b60
TT
465static int
466debug_ranged_break_num_registers (struct target_ops *self)
467{
468 int result;
469 fprintf_unfiltered (gdb_stdlog, "-> %s->to_ranged_break_num_registers (...)\n", debug_target.to_shortname);
470 result = debug_target.to_ranged_break_num_registers (&debug_target);
471 fprintf_unfiltered (gdb_stdlog, "<- %s->to_ranged_break_num_registers (", debug_target.to_shortname);
472 target_debug_print_struct_target_ops_p (&debug_target);
473 fputs_unfiltered (") = ", gdb_stdlog);
474 target_debug_print_int (result);
475 fputs_unfiltered ("\n", gdb_stdlog);
476 return result;
477}
478
61b371f9
TT
479static int
480delegate_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
481{
482 self = self->beneath;
483 return self->to_insert_hw_breakpoint (self, arg1, arg2);
484}
485
486static int
487tdefault_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
488{
489 return -1;
490}
491
a7068b60
TT
492static int
493debug_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
494{
495 int result;
496 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insert_hw_breakpoint (...)\n", debug_target.to_shortname);
497 result = debug_target.to_insert_hw_breakpoint (&debug_target, arg1, arg2);
498 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insert_hw_breakpoint (", debug_target.to_shortname);
499 target_debug_print_struct_target_ops_p (&debug_target);
500 fputs_unfiltered (", ", gdb_stdlog);
501 target_debug_print_struct_gdbarch_p (arg1);
502 fputs_unfiltered (", ", gdb_stdlog);
503 target_debug_print_struct_bp_target_info_p (arg2);
504 fputs_unfiltered (") = ", gdb_stdlog);
505 target_debug_print_int (result);
506 fputs_unfiltered ("\n", gdb_stdlog);
507 return result;
508}
509
418dabac
TT
510static int
511delegate_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
512{
513 self = self->beneath;
514 return self->to_remove_hw_breakpoint (self, arg1, arg2);
515}
516
517static int
518tdefault_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
519{
520 return -1;
521}
522
a7068b60
TT
523static int
524debug_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
525{
526 int result;
527 fprintf_unfiltered (gdb_stdlog, "-> %s->to_remove_hw_breakpoint (...)\n", debug_target.to_shortname);
528 result = debug_target.to_remove_hw_breakpoint (&debug_target, arg1, arg2);
529 fprintf_unfiltered (gdb_stdlog, "<- %s->to_remove_hw_breakpoint (", debug_target.to_shortname);
530 target_debug_print_struct_target_ops_p (&debug_target);
531 fputs_unfiltered (", ", gdb_stdlog);
532 target_debug_print_struct_gdbarch_p (arg1);
533 fputs_unfiltered (", ", gdb_stdlog);
534 target_debug_print_struct_bp_target_info_p (arg2);
535 fputs_unfiltered (") = ", gdb_stdlog);
536 target_debug_print_int (result);
537 fputs_unfiltered ("\n", gdb_stdlog);
538 return result;
539}
540
61dd109f 541static int
f486487f 542delegate_remove_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
61dd109f
TT
543{
544 self = self->beneath;
545 return self->to_remove_watchpoint (self, arg1, arg2, arg3, arg4);
546}
547
548static int
f486487f 549tdefault_remove_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
61dd109f
TT
550{
551 return -1;
552}
553
a7068b60 554static int
f486487f 555debug_remove_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
a7068b60
TT
556{
557 int result;
558 fprintf_unfiltered (gdb_stdlog, "-> %s->to_remove_watchpoint (...)\n", debug_target.to_shortname);
559 result = debug_target.to_remove_watchpoint (&debug_target, arg1, arg2, arg3, arg4);
560 fprintf_unfiltered (gdb_stdlog, "<- %s->to_remove_watchpoint (", debug_target.to_shortname);
561 target_debug_print_struct_target_ops_p (&debug_target);
562 fputs_unfiltered (", ", gdb_stdlog);
563 target_debug_print_CORE_ADDR (arg1);
564 fputs_unfiltered (", ", gdb_stdlog);
565 target_debug_print_int (arg2);
566 fputs_unfiltered (", ", gdb_stdlog);
f486487f 567 target_debug_print_enum_target_hw_bp_type (arg3);
a7068b60
TT
568 fputs_unfiltered (", ", gdb_stdlog);
569 target_debug_print_struct_expression_p (arg4);
570 fputs_unfiltered (") = ", gdb_stdlog);
571 target_debug_print_int (result);
572 fputs_unfiltered ("\n", gdb_stdlog);
573 return result;
574}
575
016facd4 576static int
f486487f 577delegate_insert_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
016facd4
TT
578{
579 self = self->beneath;
580 return self->to_insert_watchpoint (self, arg1, arg2, arg3, arg4);
581}
582
583static int
f486487f 584tdefault_insert_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
016facd4
TT
585{
586 return -1;
587}
588
a7068b60 589static int
f486487f 590debug_insert_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2, enum target_hw_bp_type arg3, struct expression *arg4)
a7068b60
TT
591{
592 int result;
593 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insert_watchpoint (...)\n", debug_target.to_shortname);
594 result = debug_target.to_insert_watchpoint (&debug_target, arg1, arg2, arg3, arg4);
595 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insert_watchpoint (", debug_target.to_shortname);
596 target_debug_print_struct_target_ops_p (&debug_target);
597 fputs_unfiltered (", ", gdb_stdlog);
598 target_debug_print_CORE_ADDR (arg1);
599 fputs_unfiltered (", ", gdb_stdlog);
600 target_debug_print_int (arg2);
601 fputs_unfiltered (", ", gdb_stdlog);
f486487f 602 target_debug_print_enum_target_hw_bp_type (arg3);
a7068b60
TT
603 fputs_unfiltered (", ", gdb_stdlog);
604 target_debug_print_struct_expression_p (arg4);
605 fputs_unfiltered (") = ", gdb_stdlog);
606 target_debug_print_int (result);
607 fputs_unfiltered ("\n", gdb_stdlog);
608 return result;
609}
610
cd4ae029 611static int
f4b0a671 612delegate_insert_mask_watchpoint (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
cd4ae029
TT
613{
614 self = self->beneath;
615 return self->to_insert_mask_watchpoint (self, arg1, arg2, arg3);
616}
617
618static int
f4b0a671 619tdefault_insert_mask_watchpoint (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
cd4ae029
TT
620{
621 return 1;
622}
623
a7068b60 624static int
f4b0a671 625debug_insert_mask_watchpoint (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
a7068b60
TT
626{
627 int result;
628 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insert_mask_watchpoint (...)\n", debug_target.to_shortname);
629 result = debug_target.to_insert_mask_watchpoint (&debug_target, arg1, arg2, arg3);
630 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insert_mask_watchpoint (", debug_target.to_shortname);
631 target_debug_print_struct_target_ops_p (&debug_target);
632 fputs_unfiltered (", ", gdb_stdlog);
633 target_debug_print_CORE_ADDR (arg1);
634 fputs_unfiltered (", ", gdb_stdlog);
635 target_debug_print_CORE_ADDR (arg2);
636 fputs_unfiltered (", ", gdb_stdlog);
f4b0a671 637 target_debug_print_enum_target_hw_bp_type (arg3);
a7068b60
TT
638 fputs_unfiltered (") = ", gdb_stdlog);
639 target_debug_print_int (result);
640 fputs_unfiltered ("\n", gdb_stdlog);
641 return result;
642}
643
8b1c364c 644static int
f4b0a671 645delegate_remove_mask_watchpoint (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
8b1c364c
TT
646{
647 self = self->beneath;
648 return self->to_remove_mask_watchpoint (self, arg1, arg2, arg3);
649}
650
651static int
f4b0a671 652tdefault_remove_mask_watchpoint (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
8b1c364c
TT
653{
654 return 1;
655}
656
a7068b60 657static int
f4b0a671 658debug_remove_mask_watchpoint (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, enum target_hw_bp_type arg3)
a7068b60
TT
659{
660 int result;
661 fprintf_unfiltered (gdb_stdlog, "-> %s->to_remove_mask_watchpoint (...)\n", debug_target.to_shortname);
662 result = debug_target.to_remove_mask_watchpoint (&debug_target, arg1, arg2, arg3);
663 fprintf_unfiltered (gdb_stdlog, "<- %s->to_remove_mask_watchpoint (", debug_target.to_shortname);
664 target_debug_print_struct_target_ops_p (&debug_target);
665 fputs_unfiltered (", ", gdb_stdlog);
666 target_debug_print_CORE_ADDR (arg1);
667 fputs_unfiltered (", ", gdb_stdlog);
668 target_debug_print_CORE_ADDR (arg2);
669 fputs_unfiltered (", ", gdb_stdlog);
f4b0a671 670 target_debug_print_enum_target_hw_bp_type (arg3);
a7068b60
TT
671 fputs_unfiltered (") = ", gdb_stdlog);
672 target_debug_print_int (result);
673 fputs_unfiltered ("\n", gdb_stdlog);
674 return result;
675}
676
6b84065d
TT
677static int
678delegate_stopped_by_watchpoint (struct target_ops *self)
679{
680 self = self->beneath;
681 return self->to_stopped_by_watchpoint (self);
682}
683
684static int
685tdefault_stopped_by_watchpoint (struct target_ops *self)
686{
687 return 0;
688}
689
a7068b60
TT
690static int
691debug_stopped_by_watchpoint (struct target_ops *self)
692{
693 int result;
694 fprintf_unfiltered (gdb_stdlog, "-> %s->to_stopped_by_watchpoint (...)\n", debug_target.to_shortname);
695 result = debug_target.to_stopped_by_watchpoint (&debug_target);
696 fprintf_unfiltered (gdb_stdlog, "<- %s->to_stopped_by_watchpoint (", debug_target.to_shortname);
697 target_debug_print_struct_target_ops_p (&debug_target);
698 fputs_unfiltered (") = ", gdb_stdlog);
699 target_debug_print_int (result);
700 fputs_unfiltered ("\n", gdb_stdlog);
701 return result;
702}
703
6b84065d
TT
704static int
705delegate_stopped_data_address (struct target_ops *self, CORE_ADDR *arg1)
706{
707 self = self->beneath;
708 return self->to_stopped_data_address (self, arg1);
709}
710
711static int
712tdefault_stopped_data_address (struct target_ops *self, CORE_ADDR *arg1)
713{
714 return 0;
715}
716
a7068b60
TT
717static int
718debug_stopped_data_address (struct target_ops *self, CORE_ADDR *arg1)
719{
720 int result;
721 fprintf_unfiltered (gdb_stdlog, "-> %s->to_stopped_data_address (...)\n", debug_target.to_shortname);
722 result = debug_target.to_stopped_data_address (&debug_target, arg1);
723 fprintf_unfiltered (gdb_stdlog, "<- %s->to_stopped_data_address (", debug_target.to_shortname);
724 target_debug_print_struct_target_ops_p (&debug_target);
725 fputs_unfiltered (", ", gdb_stdlog);
726 target_debug_print_CORE_ADDR_p (arg1);
727 fputs_unfiltered (") = ", gdb_stdlog);
728 target_debug_print_int (result);
729 fputs_unfiltered ("\n", gdb_stdlog);
730 return result;
731}
732
65f160a9
TT
733static int
734delegate_watchpoint_addr_within_range (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, int arg3)
735{
736 self = self->beneath;
737 return self->to_watchpoint_addr_within_range (self, arg1, arg2, arg3);
738}
739
a7068b60
TT
740static int
741debug_watchpoint_addr_within_range (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2, int arg3)
742{
743 int result;
744 fprintf_unfiltered (gdb_stdlog, "-> %s->to_watchpoint_addr_within_range (...)\n", debug_target.to_shortname);
745 result = debug_target.to_watchpoint_addr_within_range (&debug_target, arg1, arg2, arg3);
746 fprintf_unfiltered (gdb_stdlog, "<- %s->to_watchpoint_addr_within_range (", debug_target.to_shortname);
747 target_debug_print_struct_target_ops_p (&debug_target);
748 fputs_unfiltered (", ", gdb_stdlog);
749 target_debug_print_CORE_ADDR (arg1);
750 fputs_unfiltered (", ", gdb_stdlog);
751 target_debug_print_CORE_ADDR (arg2);
752 fputs_unfiltered (", ", gdb_stdlog);
753 target_debug_print_int (arg3);
754 fputs_unfiltered (") = ", gdb_stdlog);
755 target_debug_print_int (result);
756 fputs_unfiltered ("\n", gdb_stdlog);
757 return result;
758}
759
d03655e4
TT
760static int
761delegate_region_ok_for_hw_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2)
762{
763 self = self->beneath;
764 return self->to_region_ok_for_hw_watchpoint (self, arg1, arg2);
765}
766
a7068b60
TT
767static int
768debug_region_ok_for_hw_watchpoint (struct target_ops *self, CORE_ADDR arg1, int arg2)
769{
770 int result;
771 fprintf_unfiltered (gdb_stdlog, "-> %s->to_region_ok_for_hw_watchpoint (...)\n", debug_target.to_shortname);
772 result = debug_target.to_region_ok_for_hw_watchpoint (&debug_target, arg1, arg2);
773 fprintf_unfiltered (gdb_stdlog, "<- %s->to_region_ok_for_hw_watchpoint (", debug_target.to_shortname);
774 target_debug_print_struct_target_ops_p (&debug_target);
775 fputs_unfiltered (", ", gdb_stdlog);
776 target_debug_print_CORE_ADDR (arg1);
777 fputs_unfiltered (", ", gdb_stdlog);
778 target_debug_print_int (arg2);
779 fputs_unfiltered (") = ", gdb_stdlog);
780 target_debug_print_int (result);
781 fputs_unfiltered ("\n", gdb_stdlog);
782 return result;
783}
784
77cdffe9
TT
785static int
786delegate_can_accel_watchpoint_condition (struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
787{
788 self = self->beneath;
789 return self->to_can_accel_watchpoint_condition (self, arg1, arg2, arg3, arg4);
790}
791
792static int
793tdefault_can_accel_watchpoint_condition (struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
794{
795 return 0;
796}
797
a7068b60
TT
798static int
799debug_can_accel_watchpoint_condition (struct target_ops *self, CORE_ADDR arg1, int arg2, int arg3, struct expression *arg4)
800{
801 int result;
802 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_accel_watchpoint_condition (...)\n", debug_target.to_shortname);
803 result = debug_target.to_can_accel_watchpoint_condition (&debug_target, arg1, arg2, arg3, arg4);
804 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_accel_watchpoint_condition (", debug_target.to_shortname);
805 target_debug_print_struct_target_ops_p (&debug_target);
806 fputs_unfiltered (", ", gdb_stdlog);
807 target_debug_print_CORE_ADDR (arg1);
808 fputs_unfiltered (", ", gdb_stdlog);
809 target_debug_print_int (arg2);
810 fputs_unfiltered (", ", gdb_stdlog);
811 target_debug_print_int (arg3);
812 fputs_unfiltered (", ", gdb_stdlog);
813 target_debug_print_struct_expression_p (arg4);
814 fputs_unfiltered (") = ", gdb_stdlog);
815 target_debug_print_int (result);
816 fputs_unfiltered ("\n", gdb_stdlog);
817 return result;
818}
819
6c7e5e5c
TT
820static int
821delegate_masked_watch_num_registers (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2)
822{
823 self = self->beneath;
824 return self->to_masked_watch_num_registers (self, arg1, arg2);
825}
826
827static int
828tdefault_masked_watch_num_registers (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2)
829{
830 return -1;
831}
832
a7068b60
TT
833static int
834debug_masked_watch_num_registers (struct target_ops *self, CORE_ADDR arg1, CORE_ADDR arg2)
835{
836 int result;
837 fprintf_unfiltered (gdb_stdlog, "-> %s->to_masked_watch_num_registers (...)\n", debug_target.to_shortname);
838 result = debug_target.to_masked_watch_num_registers (&debug_target, arg1, arg2);
839 fprintf_unfiltered (gdb_stdlog, "<- %s->to_masked_watch_num_registers (", debug_target.to_shortname);
840 target_debug_print_struct_target_ops_p (&debug_target);
841 fputs_unfiltered (", ", gdb_stdlog);
842 target_debug_print_CORE_ADDR (arg1);
843 fputs_unfiltered (", ", gdb_stdlog);
844 target_debug_print_CORE_ADDR (arg2);
845 fputs_unfiltered (") = ", gdb_stdlog);
846 target_debug_print_int (result);
847 fputs_unfiltered ("\n", gdb_stdlog);
848 return result;
849}
850
750ce8d1
YQ
851static int
852delegate_can_do_single_step (struct target_ops *self)
853{
854 self = self->beneath;
855 return self->to_can_do_single_step (self);
856}
857
858static int
859tdefault_can_do_single_step (struct target_ops *self)
860{
861 return -1;
862}
863
864static int
865debug_can_do_single_step (struct target_ops *self)
866{
867 int result;
868 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_do_single_step (...)\n", debug_target.to_shortname);
869 result = debug_target.to_can_do_single_step (&debug_target);
870 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_do_single_step (", debug_target.to_shortname);
871 target_debug_print_struct_target_ops_p (&debug_target);
872 fputs_unfiltered (") = ", gdb_stdlog);
873 target_debug_print_int (result);
874 fputs_unfiltered ("\n", gdb_stdlog);
875 return result;
876}
877
0343661d
TT
878static void
879delegate_terminal_init (struct target_ops *self)
880{
881 self = self->beneath;
882 self->to_terminal_init (self);
883}
884
885static void
886tdefault_terminal_init (struct target_ops *self)
887{
888}
889
a7068b60
TT
890static void
891debug_terminal_init (struct target_ops *self)
892{
893 fprintf_unfiltered (gdb_stdlog, "-> %s->to_terminal_init (...)\n", debug_target.to_shortname);
894 debug_target.to_terminal_init (&debug_target);
895 fprintf_unfiltered (gdb_stdlog, "<- %s->to_terminal_init (", debug_target.to_shortname);
896 target_debug_print_struct_target_ops_p (&debug_target);
897 fputs_unfiltered (")\n", gdb_stdlog);
898}
899
ddeaacc9
TT
900static void
901delegate_terminal_inferior (struct target_ops *self)
902{
903 self = self->beneath;
904 self->to_terminal_inferior (self);
905}
906
907static void
908tdefault_terminal_inferior (struct target_ops *self)
909{
910}
911
a7068b60
TT
912static void
913debug_terminal_inferior (struct target_ops *self)
914{
915 fprintf_unfiltered (gdb_stdlog, "-> %s->to_terminal_inferior (...)\n", debug_target.to_shortname);
916 debug_target.to_terminal_inferior (&debug_target);
917 fprintf_unfiltered (gdb_stdlog, "<- %s->to_terminal_inferior (", debug_target.to_shortname);
918 target_debug_print_struct_target_ops_p (&debug_target);
919 fputs_unfiltered (")\n", gdb_stdlog);
920}
921
74fcbef9
TT
922static void
923delegate_terminal_ours_for_output (struct target_ops *self)
924{
925 self = self->beneath;
926 self->to_terminal_ours_for_output (self);
927}
928
929static void
930tdefault_terminal_ours_for_output (struct target_ops *self)
931{
932}
933
a7068b60
TT
934static void
935debug_terminal_ours_for_output (struct target_ops *self)
936{
937 fprintf_unfiltered (gdb_stdlog, "-> %s->to_terminal_ours_for_output (...)\n", debug_target.to_shortname);
938 debug_target.to_terminal_ours_for_output (&debug_target);
939 fprintf_unfiltered (gdb_stdlog, "<- %s->to_terminal_ours_for_output (", debug_target.to_shortname);
940 target_debug_print_struct_target_ops_p (&debug_target);
941 fputs_unfiltered (")\n", gdb_stdlog);
942}
943
e4a733f1
TT
944static void
945delegate_terminal_ours (struct target_ops *self)
946{
947 self = self->beneath;
948 self->to_terminal_ours (self);
949}
950
951static void
952tdefault_terminal_ours (struct target_ops *self)
953{
954}
955
a7068b60
TT
956static void
957debug_terminal_ours (struct target_ops *self)
958{
959 fprintf_unfiltered (gdb_stdlog, "-> %s->to_terminal_ours (...)\n", debug_target.to_shortname);
960 debug_target.to_terminal_ours (&debug_target);
961 fprintf_unfiltered (gdb_stdlog, "<- %s->to_terminal_ours (", debug_target.to_shortname);
962 target_debug_print_struct_target_ops_p (&debug_target);
963 fputs_unfiltered (")\n", gdb_stdlog);
964}
965
e19e919f
TT
966static void
967delegate_terminal_info (struct target_ops *self, const char *arg1, int arg2)
968{
969 self = self->beneath;
970 self->to_terminal_info (self, arg1, arg2);
971}
972
a7068b60
TT
973static void
974debug_terminal_info (struct target_ops *self, const char *arg1, int arg2)
975{
976 fprintf_unfiltered (gdb_stdlog, "-> %s->to_terminal_info (...)\n", debug_target.to_shortname);
977 debug_target.to_terminal_info (&debug_target, arg1, arg2);
978 fprintf_unfiltered (gdb_stdlog, "<- %s->to_terminal_info (", debug_target.to_shortname);
979 target_debug_print_struct_target_ops_p (&debug_target);
980 fputs_unfiltered (", ", gdb_stdlog);
981 target_debug_print_const_char_p (arg1);
982 fputs_unfiltered (", ", gdb_stdlog);
983 target_debug_print_int (arg2);
984 fputs_unfiltered (")\n", gdb_stdlog);
985}
986
423a4807
TT
987static void
988delegate_kill (struct target_ops *self)
989{
990 self = self->beneath;
991 self->to_kill (self);
992}
993
994static void
995tdefault_kill (struct target_ops *self)
996{
997 noprocess ();
998}
999
a7068b60
TT
1000static void
1001debug_kill (struct target_ops *self)
1002{
1003 fprintf_unfiltered (gdb_stdlog, "-> %s->to_kill (...)\n", debug_target.to_shortname);
1004 debug_target.to_kill (&debug_target);
1005 fprintf_unfiltered (gdb_stdlog, "<- %s->to_kill (", debug_target.to_shortname);
1006 target_debug_print_struct_target_ops_p (&debug_target);
1007 fputs_unfiltered (")\n", gdb_stdlog);
1008}
1009
7634da87 1010static void
9cbe5fff 1011delegate_load (struct target_ops *self, const char *arg1, int arg2)
7634da87
TT
1012{
1013 self = self->beneath;
1014 self->to_load (self, arg1, arg2);
1015}
1016
1017static void
9cbe5fff 1018tdefault_load (struct target_ops *self, const char *arg1, int arg2)
7634da87
TT
1019{
1020 tcomplain ();
1021}
1022
a7068b60
TT
1023static void
1024debug_load (struct target_ops *self, const char *arg1, int arg2)
1025{
1026 fprintf_unfiltered (gdb_stdlog, "-> %s->to_load (...)\n", debug_target.to_shortname);
1027 debug_target.to_load (&debug_target, arg1, arg2);
1028 fprintf_unfiltered (gdb_stdlog, "<- %s->to_load (", debug_target.to_shortname);
1029 target_debug_print_struct_target_ops_p (&debug_target);
1030 fputs_unfiltered (", ", gdb_stdlog);
1031 target_debug_print_const_char_p (arg1);
1032 fputs_unfiltered (", ", gdb_stdlog);
1033 target_debug_print_int (arg2);
1034 fputs_unfiltered (")\n", gdb_stdlog);
1035}
1036
340ba4bf
TT
1037static void
1038delegate_post_startup_inferior (struct target_ops *self, ptid_t arg1)
1039{
1040 self = self->beneath;
1041 self->to_post_startup_inferior (self, arg1);
1042}
1043
1044static void
1045tdefault_post_startup_inferior (struct target_ops *self, ptid_t arg1)
1046{
1047}
1048
a7068b60
TT
1049static void
1050debug_post_startup_inferior (struct target_ops *self, ptid_t arg1)
1051{
1052 fprintf_unfiltered (gdb_stdlog, "-> %s->to_post_startup_inferior (...)\n", debug_target.to_shortname);
1053 debug_target.to_post_startup_inferior (&debug_target, arg1);
1054 fprintf_unfiltered (gdb_stdlog, "<- %s->to_post_startup_inferior (", debug_target.to_shortname);
1055 target_debug_print_struct_target_ops_p (&debug_target);
1056 fputs_unfiltered (", ", gdb_stdlog);
1057 target_debug_print_ptid_t (arg1);
1058 fputs_unfiltered (")\n", gdb_stdlog);
1059}
1060
5958ebeb
TT
1061static int
1062delegate_insert_fork_catchpoint (struct target_ops *self, int arg1)
1063{
1064 self = self->beneath;
1065 return self->to_insert_fork_catchpoint (self, arg1);
1066}
1067
1068static int
1069tdefault_insert_fork_catchpoint (struct target_ops *self, int arg1)
1070{
1071 return 1;
1072}
1073
a7068b60
TT
1074static int
1075debug_insert_fork_catchpoint (struct target_ops *self, int arg1)
1076{
1077 int result;
1078 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insert_fork_catchpoint (...)\n", debug_target.to_shortname);
1079 result = debug_target.to_insert_fork_catchpoint (&debug_target, arg1);
1080 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insert_fork_catchpoint (", debug_target.to_shortname);
1081 target_debug_print_struct_target_ops_p (&debug_target);
1082 fputs_unfiltered (", ", gdb_stdlog);
1083 target_debug_print_int (arg1);
1084 fputs_unfiltered (") = ", gdb_stdlog);
1085 target_debug_print_int (result);
1086 fputs_unfiltered ("\n", gdb_stdlog);
1087 return result;
1088}
1089
e1a21fb7
TT
1090static int
1091delegate_remove_fork_catchpoint (struct target_ops *self, int arg1)
1092{
1093 self = self->beneath;
1094 return self->to_remove_fork_catchpoint (self, arg1);
1095}
1096
1097static int
1098tdefault_remove_fork_catchpoint (struct target_ops *self, int arg1)
1099{
1100 return 1;
1101}
1102
a7068b60
TT
1103static int
1104debug_remove_fork_catchpoint (struct target_ops *self, int arg1)
1105{
1106 int result;
1107 fprintf_unfiltered (gdb_stdlog, "-> %s->to_remove_fork_catchpoint (...)\n", debug_target.to_shortname);
1108 result = debug_target.to_remove_fork_catchpoint (&debug_target, arg1);
1109 fprintf_unfiltered (gdb_stdlog, "<- %s->to_remove_fork_catchpoint (", debug_target.to_shortname);
1110 target_debug_print_struct_target_ops_p (&debug_target);
1111 fputs_unfiltered (", ", gdb_stdlog);
1112 target_debug_print_int (arg1);
1113 fputs_unfiltered (") = ", gdb_stdlog);
1114 target_debug_print_int (result);
1115 fputs_unfiltered ("\n", gdb_stdlog);
1116 return result;
1117}
1118
7e18a8dc
TT
1119static int
1120delegate_insert_vfork_catchpoint (struct target_ops *self, int arg1)
1121{
1122 self = self->beneath;
1123 return self->to_insert_vfork_catchpoint (self, arg1);
1124}
1125
1126static int
1127tdefault_insert_vfork_catchpoint (struct target_ops *self, int arg1)
1128{
1129 return 1;
1130}
1131
a7068b60
TT
1132static int
1133debug_insert_vfork_catchpoint (struct target_ops *self, int arg1)
1134{
1135 int result;
1136 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insert_vfork_catchpoint (...)\n", debug_target.to_shortname);
1137 result = debug_target.to_insert_vfork_catchpoint (&debug_target, arg1);
1138 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insert_vfork_catchpoint (", debug_target.to_shortname);
1139 target_debug_print_struct_target_ops_p (&debug_target);
1140 fputs_unfiltered (", ", gdb_stdlog);
1141 target_debug_print_int (arg1);
1142 fputs_unfiltered (") = ", gdb_stdlog);
1143 target_debug_print_int (result);
1144 fputs_unfiltered ("\n", gdb_stdlog);
1145 return result;
1146}
1147
95c3375e
TT
1148static int
1149delegate_remove_vfork_catchpoint (struct target_ops *self, int arg1)
1150{
1151 self = self->beneath;
1152 return self->to_remove_vfork_catchpoint (self, arg1);
1153}
1154
1155static int
1156tdefault_remove_vfork_catchpoint (struct target_ops *self, int arg1)
1157{
1158 return 1;
1159}
1160
a7068b60
TT
1161static int
1162debug_remove_vfork_catchpoint (struct target_ops *self, int arg1)
1163{
1164 int result;
1165 fprintf_unfiltered (gdb_stdlog, "-> %s->to_remove_vfork_catchpoint (...)\n", debug_target.to_shortname);
1166 result = debug_target.to_remove_vfork_catchpoint (&debug_target, arg1);
1167 fprintf_unfiltered (gdb_stdlog, "<- %s->to_remove_vfork_catchpoint (", debug_target.to_shortname);
1168 target_debug_print_struct_target_ops_p (&debug_target);
1169 fputs_unfiltered (", ", gdb_stdlog);
1170 target_debug_print_int (arg1);
1171 fputs_unfiltered (") = ", gdb_stdlog);
1172 target_debug_print_int (result);
1173 fputs_unfiltered ("\n", gdb_stdlog);
1174 return result;
1175}
1176
098dba18
TT
1177static int
1178delegate_follow_fork (struct target_ops *self, int arg1, int arg2)
1179{
1180 self = self->beneath;
1181 return self->to_follow_fork (self, arg1, arg2);
1182}
1183
a7068b60
TT
1184static int
1185debug_follow_fork (struct target_ops *self, int arg1, int arg2)
1186{
1187 int result;
1188 fprintf_unfiltered (gdb_stdlog, "-> %s->to_follow_fork (...)\n", debug_target.to_shortname);
1189 result = debug_target.to_follow_fork (&debug_target, arg1, arg2);
1190 fprintf_unfiltered (gdb_stdlog, "<- %s->to_follow_fork (", debug_target.to_shortname);
1191 target_debug_print_struct_target_ops_p (&debug_target);
1192 fputs_unfiltered (", ", gdb_stdlog);
1193 target_debug_print_int (arg1);
1194 fputs_unfiltered (", ", gdb_stdlog);
1195 target_debug_print_int (arg2);
1196 fputs_unfiltered (") = ", gdb_stdlog);
1197 target_debug_print_int (result);
1198 fputs_unfiltered ("\n", gdb_stdlog);
1199 return result;
1200}
1201
62f64d7a
TT
1202static int
1203delegate_insert_exec_catchpoint (struct target_ops *self, int arg1)
1204{
1205 self = self->beneath;
1206 return self->to_insert_exec_catchpoint (self, arg1);
1207}
1208
1209static int
1210tdefault_insert_exec_catchpoint (struct target_ops *self, int arg1)
1211{
1212 return 1;
1213}
1214
a7068b60
TT
1215static int
1216debug_insert_exec_catchpoint (struct target_ops *self, int arg1)
1217{
1218 int result;
1219 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insert_exec_catchpoint (...)\n", debug_target.to_shortname);
1220 result = debug_target.to_insert_exec_catchpoint (&debug_target, arg1);
1221 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insert_exec_catchpoint (", debug_target.to_shortname);
1222 target_debug_print_struct_target_ops_p (&debug_target);
1223 fputs_unfiltered (", ", gdb_stdlog);
1224 target_debug_print_int (arg1);
1225 fputs_unfiltered (") = ", gdb_stdlog);
1226 target_debug_print_int (result);
1227 fputs_unfiltered ("\n", gdb_stdlog);
1228 return result;
1229}
1230
cda0f38c
TT
1231static int
1232delegate_remove_exec_catchpoint (struct target_ops *self, int arg1)
1233{
1234 self = self->beneath;
1235 return self->to_remove_exec_catchpoint (self, arg1);
1236}
1237
1238static int
1239tdefault_remove_exec_catchpoint (struct target_ops *self, int arg1)
1240{
1241 return 1;
1242}
1243
a7068b60
TT
1244static int
1245debug_remove_exec_catchpoint (struct target_ops *self, int arg1)
1246{
1247 int result;
1248 fprintf_unfiltered (gdb_stdlog, "-> %s->to_remove_exec_catchpoint (...)\n", debug_target.to_shortname);
1249 result = debug_target.to_remove_exec_catchpoint (&debug_target, arg1);
1250 fprintf_unfiltered (gdb_stdlog, "<- %s->to_remove_exec_catchpoint (", debug_target.to_shortname);
1251 target_debug_print_struct_target_ops_p (&debug_target);
1252 fputs_unfiltered (", ", gdb_stdlog);
1253 target_debug_print_int (arg1);
1254 fputs_unfiltered (") = ", gdb_stdlog);
1255 target_debug_print_int (result);
1256 fputs_unfiltered ("\n", gdb_stdlog);
1257 return result;
1258}
1259
94585166
DB
1260static void
1261delegate_follow_exec (struct target_ops *self, struct inferior *arg1, char *arg2)
1262{
1263 self = self->beneath;
1264 self->to_follow_exec (self, arg1, arg2);
1265}
1266
1267static void
1268tdefault_follow_exec (struct target_ops *self, struct inferior *arg1, char *arg2)
1269{
1270}
1271
1272static void
1273debug_follow_exec (struct target_ops *self, struct inferior *arg1, char *arg2)
1274{
1275 fprintf_unfiltered (gdb_stdlog, "-> %s->to_follow_exec (...)\n", debug_target.to_shortname);
1276 debug_target.to_follow_exec (&debug_target, arg1, arg2);
1277 fprintf_unfiltered (gdb_stdlog, "<- %s->to_follow_exec (", debug_target.to_shortname);
1278 target_debug_print_struct_target_ops_p (&debug_target);
1279 fputs_unfiltered (", ", gdb_stdlog);
1280 target_debug_print_struct_inferior_p (arg1);
1281 fputs_unfiltered (", ", gdb_stdlog);
1282 target_debug_print_char_p (arg2);
1283 fputs_unfiltered (")\n", gdb_stdlog);
1284}
1285
6a9fa051 1286static int
649a140c 1287delegate_set_syscall_catchpoint (struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view<const int> arg4)
6a9fa051
TT
1288{
1289 self = self->beneath;
649a140c 1290 return self->to_set_syscall_catchpoint (self, arg1, arg2, arg3, arg4);
6a9fa051
TT
1291}
1292
1293static int
649a140c 1294tdefault_set_syscall_catchpoint (struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view<const int> arg4)
6a9fa051
TT
1295{
1296 return 1;
1297}
1298
a7068b60 1299static int
649a140c 1300debug_set_syscall_catchpoint (struct target_ops *self, int arg1, bool arg2, int arg3, gdb::array_view<const int> arg4)
a7068b60
TT
1301{
1302 int result;
1303 fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_syscall_catchpoint (...)\n", debug_target.to_shortname);
649a140c 1304 result = debug_target.to_set_syscall_catchpoint (&debug_target, arg1, arg2, arg3, arg4);
a7068b60
TT
1305 fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_syscall_catchpoint (", debug_target.to_shortname);
1306 target_debug_print_struct_target_ops_p (&debug_target);
1307 fputs_unfiltered (", ", gdb_stdlog);
1308 target_debug_print_int (arg1);
1309 fputs_unfiltered (", ", gdb_stdlog);
649a140c 1310 target_debug_print_bool (arg2);
a7068b60
TT
1311 fputs_unfiltered (", ", gdb_stdlog);
1312 target_debug_print_int (arg3);
1313 fputs_unfiltered (", ", gdb_stdlog);
649a140c 1314 target_debug_print_gdb_array_view_const_int (arg4);
a7068b60
TT
1315 fputs_unfiltered (") = ", gdb_stdlog);
1316 target_debug_print_int (result);
1317 fputs_unfiltered ("\n", gdb_stdlog);
1318 return result;
1319}
1320
0db88c1d
TT
1321static int
1322delegate_has_exited (struct target_ops *self, int arg1, int arg2, int *arg3)
1323{
1324 self = self->beneath;
1325 return self->to_has_exited (self, arg1, arg2, arg3);
1326}
1327
1328static int
1329tdefault_has_exited (struct target_ops *self, int arg1, int arg2, int *arg3)
1330{
1331 return 0;
1332}
1333
a7068b60
TT
1334static int
1335debug_has_exited (struct target_ops *self, int arg1, int arg2, int *arg3)
1336{
1337 int result;
1338 fprintf_unfiltered (gdb_stdlog, "-> %s->to_has_exited (...)\n", debug_target.to_shortname);
1339 result = debug_target.to_has_exited (&debug_target, arg1, arg2, arg3);
1340 fprintf_unfiltered (gdb_stdlog, "<- %s->to_has_exited (", debug_target.to_shortname);
1341 target_debug_print_struct_target_ops_p (&debug_target);
1342 fputs_unfiltered (", ", gdb_stdlog);
1343 target_debug_print_int (arg1);
1344 fputs_unfiltered (", ", gdb_stdlog);
1345 target_debug_print_int (arg2);
1346 fputs_unfiltered (", ", gdb_stdlog);
1347 target_debug_print_int_p (arg3);
1348 fputs_unfiltered (") = ", gdb_stdlog);
1349 target_debug_print_int (result);
1350 fputs_unfiltered ("\n", gdb_stdlog);
1351 return result;
1352}
1353
8d657035
TT
1354static void
1355delegate_mourn_inferior (struct target_ops *self)
1356{
1357 self = self->beneath;
1358 self->to_mourn_inferior (self);
1359}
1360
a7068b60
TT
1361static void
1362debug_mourn_inferior (struct target_ops *self)
1363{
1364 fprintf_unfiltered (gdb_stdlog, "-> %s->to_mourn_inferior (...)\n", debug_target.to_shortname);
1365 debug_target.to_mourn_inferior (&debug_target);
1366 fprintf_unfiltered (gdb_stdlog, "<- %s->to_mourn_inferior (", debug_target.to_shortname);
1367 target_debug_print_struct_target_ops_p (&debug_target);
1368 fputs_unfiltered (")\n", gdb_stdlog);
1369}
1370
e88ef65c
TT
1371static int
1372delegate_can_run (struct target_ops *self)
1373{
1374 self = self->beneath;
1375 return self->to_can_run (self);
1376}
1377
1378static int
1379tdefault_can_run (struct target_ops *self)
1380{
1381 return 0;
1382}
1383
a7068b60
TT
1384static int
1385debug_can_run (struct target_ops *self)
1386{
1387 int result;
1388 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_run (...)\n", debug_target.to_shortname);
1389 result = debug_target.to_can_run (&debug_target);
1390 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_run (", debug_target.to_shortname);
1391 target_debug_print_struct_target_ops_p (&debug_target);
1392 fputs_unfiltered (") = ", gdb_stdlog);
1393 target_debug_print_int (result);
1394 fputs_unfiltered ("\n", gdb_stdlog);
1395 return result;
1396}
1397
035cad7f 1398static void
a7068b60 1399delegate_pass_signals (struct target_ops *self, int arg1, unsigned char * arg2)
035cad7f
TT
1400{
1401 self = self->beneath;
1402 self->to_pass_signals (self, arg1, arg2);
1403}
1404
1405static void
a7068b60
TT
1406tdefault_pass_signals (struct target_ops *self, int arg1, unsigned char * arg2)
1407{
1408}
1409
1410static void
1411debug_pass_signals (struct target_ops *self, int arg1, unsigned char * arg2)
035cad7f 1412{
a7068b60
TT
1413 fprintf_unfiltered (gdb_stdlog, "-> %s->to_pass_signals (...)\n", debug_target.to_shortname);
1414 debug_target.to_pass_signals (&debug_target, arg1, arg2);
1415 fprintf_unfiltered (gdb_stdlog, "<- %s->to_pass_signals (", debug_target.to_shortname);
1416 target_debug_print_struct_target_ops_p (&debug_target);
1417 fputs_unfiltered (", ", gdb_stdlog);
1418 target_debug_print_int (arg1);
1419 fputs_unfiltered (", ", gdb_stdlog);
1420 target_debug_print_signals (arg2);
1421 fputs_unfiltered (")\n", gdb_stdlog);
035cad7f
TT
1422}
1423
7d4f8efa 1424static void
a7068b60 1425delegate_program_signals (struct target_ops *self, int arg1, unsigned char * arg2)
7d4f8efa
TT
1426{
1427 self = self->beneath;
1428 self->to_program_signals (self, arg1, arg2);
1429}
1430
1431static void
a7068b60
TT
1432tdefault_program_signals (struct target_ops *self, int arg1, unsigned char * arg2)
1433{
1434}
1435
1436static void
1437debug_program_signals (struct target_ops *self, int arg1, unsigned char * arg2)
7d4f8efa 1438{
a7068b60
TT
1439 fprintf_unfiltered (gdb_stdlog, "-> %s->to_program_signals (...)\n", debug_target.to_shortname);
1440 debug_target.to_program_signals (&debug_target, arg1, arg2);
1441 fprintf_unfiltered (gdb_stdlog, "<- %s->to_program_signals (", debug_target.to_shortname);
1442 target_debug_print_struct_target_ops_p (&debug_target);
1443 fputs_unfiltered (", ", gdb_stdlog);
1444 target_debug_print_int (arg1);
1445 fputs_unfiltered (", ", gdb_stdlog);
1446 target_debug_print_signals (arg2);
1447 fputs_unfiltered (")\n", gdb_stdlog);
7d4f8efa
TT
1448}
1449
cbffc065
TT
1450static int
1451delegate_thread_alive (struct target_ops *self, ptid_t arg1)
1452{
1453 self = self->beneath;
1454 return self->to_thread_alive (self, arg1);
1455}
1456
1457static int
1458tdefault_thread_alive (struct target_ops *self, ptid_t arg1)
1459{
1460 return 0;
1461}
1462
a7068b60
TT
1463static int
1464debug_thread_alive (struct target_ops *self, ptid_t arg1)
1465{
1466 int result;
1467 fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_alive (...)\n", debug_target.to_shortname);
1468 result = debug_target.to_thread_alive (&debug_target, arg1);
1469 fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_alive (", debug_target.to_shortname);
1470 target_debug_print_struct_target_ops_p (&debug_target);
1471 fputs_unfiltered (", ", gdb_stdlog);
1472 target_debug_print_ptid_t (arg1);
1473 fputs_unfiltered (") = ", gdb_stdlog);
1474 target_debug_print_int (result);
1475 fputs_unfiltered ("\n", gdb_stdlog);
1476 return result;
1477}
1478
09b0dc2b 1479static void
e8032dde 1480delegate_update_thread_list (struct target_ops *self)
09b0dc2b
TT
1481{
1482 self = self->beneath;
e8032dde 1483 self->to_update_thread_list (self);
09b0dc2b
TT
1484}
1485
1486static void
e8032dde 1487tdefault_update_thread_list (struct target_ops *self)
09b0dc2b
TT
1488{
1489}
1490
a7068b60 1491static void
e8032dde 1492debug_update_thread_list (struct target_ops *self)
a7068b60 1493{
e8032dde
PA
1494 fprintf_unfiltered (gdb_stdlog, "-> %s->to_update_thread_list (...)\n", debug_target.to_shortname);
1495 debug_target.to_update_thread_list (&debug_target);
1496 fprintf_unfiltered (gdb_stdlog, "<- %s->to_update_thread_list (", debug_target.to_shortname);
a7068b60
TT
1497 target_debug_print_struct_target_ops_p (&debug_target);
1498 fputs_unfiltered (")\n", gdb_stdlog);
1499}
1500
7a114964 1501static const char *
770234d3
TT
1502delegate_pid_to_str (struct target_ops *self, ptid_t arg1)
1503{
1504 self = self->beneath;
1505 return self->to_pid_to_str (self, arg1);
1506}
1507
7a114964 1508static const char *
a7068b60
TT
1509debug_pid_to_str (struct target_ops *self, ptid_t arg1)
1510{
7a114964 1511 const char * result;
a7068b60
TT
1512 fprintf_unfiltered (gdb_stdlog, "-> %s->to_pid_to_str (...)\n", debug_target.to_shortname);
1513 result = debug_target.to_pid_to_str (&debug_target, arg1);
1514 fprintf_unfiltered (gdb_stdlog, "<- %s->to_pid_to_str (", debug_target.to_shortname);
1515 target_debug_print_struct_target_ops_p (&debug_target);
1516 fputs_unfiltered (", ", gdb_stdlog);
1517 target_debug_print_ptid_t (arg1);
1518 fputs_unfiltered (") = ", gdb_stdlog);
7a114964 1519 target_debug_print_const_char_p (result);
a7068b60
TT
1520 fputs_unfiltered ("\n", gdb_stdlog);
1521 return result;
1522}
1523
7a114964 1524static const char *
4a7e6dda
TT
1525delegate_extra_thread_info (struct target_ops *self, struct thread_info *arg1)
1526{
1527 self = self->beneath;
1528 return self->to_extra_thread_info (self, arg1);
1529}
1530
7a114964 1531static const char *
4a7e6dda
TT
1532tdefault_extra_thread_info (struct target_ops *self, struct thread_info *arg1)
1533{
9b144037 1534 return NULL;
4a7e6dda
TT
1535}
1536
7a114964 1537static const char *
a7068b60
TT
1538debug_extra_thread_info (struct target_ops *self, struct thread_info *arg1)
1539{
7a114964 1540 const char * result;
a7068b60
TT
1541 fprintf_unfiltered (gdb_stdlog, "-> %s->to_extra_thread_info (...)\n", debug_target.to_shortname);
1542 result = debug_target.to_extra_thread_info (&debug_target, arg1);
1543 fprintf_unfiltered (gdb_stdlog, "<- %s->to_extra_thread_info (", debug_target.to_shortname);
1544 target_debug_print_struct_target_ops_p (&debug_target);
1545 fputs_unfiltered (", ", gdb_stdlog);
1546 target_debug_print_struct_thread_info_p (arg1);
1547 fputs_unfiltered (") = ", gdb_stdlog);
7a114964 1548 target_debug_print_const_char_p (result);
a7068b60
TT
1549 fputs_unfiltered ("\n", gdb_stdlog);
1550 return result;
1551}
1552
73ede765 1553static const char *
825828fc
TT
1554delegate_thread_name (struct target_ops *self, struct thread_info *arg1)
1555{
1556 self = self->beneath;
1557 return self->to_thread_name (self, arg1);
1558}
1559
73ede765 1560static const char *
825828fc
TT
1561tdefault_thread_name (struct target_ops *self, struct thread_info *arg1)
1562{
9b144037 1563 return NULL;
825828fc
TT
1564}
1565
73ede765 1566static const char *
a7068b60
TT
1567debug_thread_name (struct target_ops *self, struct thread_info *arg1)
1568{
73ede765 1569 const char * result;
a7068b60
TT
1570 fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_name (...)\n", debug_target.to_shortname);
1571 result = debug_target.to_thread_name (&debug_target, arg1);
1572 fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_name (", debug_target.to_shortname);
1573 target_debug_print_struct_target_ops_p (&debug_target);
1574 fputs_unfiltered (", ", gdb_stdlog);
1575 target_debug_print_struct_thread_info_p (arg1);
1576 fputs_unfiltered (") = ", gdb_stdlog);
73ede765 1577 target_debug_print_const_char_p (result);
a7068b60
TT
1578 fputs_unfiltered ("\n", gdb_stdlog);
1579 return result;
1580}
1581
e04ee09e
KB
1582static struct thread_info *
1583delegate_thread_handle_to_thread_info (struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
1584{
1585 self = self->beneath;
1586 return self->to_thread_handle_to_thread_info (self, arg1, arg2, arg3);
1587}
1588
1589static struct thread_info *
1590tdefault_thread_handle_to_thread_info (struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
1591{
1592 return NULL;
1593}
1594
1595static struct thread_info *
1596debug_thread_handle_to_thread_info (struct target_ops *self, const gdb_byte *arg1, int arg2, struct inferior *arg3)
1597{
1598 struct thread_info * result;
1599 fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_handle_to_thread_info (...)\n", debug_target.to_shortname);
1600 result = debug_target.to_thread_handle_to_thread_info (&debug_target, arg1, arg2, arg3);
1601 fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_handle_to_thread_info (", debug_target.to_shortname);
1602 target_debug_print_struct_target_ops_p (&debug_target);
1603 fputs_unfiltered (", ", gdb_stdlog);
1604 target_debug_print_const_gdb_byte_p (arg1);
1605 fputs_unfiltered (", ", gdb_stdlog);
1606 target_debug_print_int (arg2);
1607 fputs_unfiltered (", ", gdb_stdlog);
1608 target_debug_print_struct_inferior_p (arg3);
1609 fputs_unfiltered (") = ", gdb_stdlog);
1610 target_debug_print_struct_thread_info_p (result);
1611 fputs_unfiltered ("\n", gdb_stdlog);
1612 return result;
1613}
1614
46ee7e8d
TT
1615static void
1616delegate_stop (struct target_ops *self, ptid_t arg1)
1617{
1618 self = self->beneath;
1619 self->to_stop (self, arg1);
1620}
1621
1622static void
1623tdefault_stop (struct target_ops *self, ptid_t arg1)
1624{
1625}
1626
a7068b60
TT
1627static void
1628debug_stop (struct target_ops *self, ptid_t arg1)
1629{
1630 fprintf_unfiltered (gdb_stdlog, "-> %s->to_stop (...)\n", debug_target.to_shortname);
1631 debug_target.to_stop (&debug_target, arg1);
1632 fprintf_unfiltered (gdb_stdlog, "<- %s->to_stop (", debug_target.to_shortname);
1633 target_debug_print_struct_target_ops_p (&debug_target);
1634 fputs_unfiltered (", ", gdb_stdlog);
1635 target_debug_print_ptid_t (arg1);
1636 fputs_unfiltered (")\n", gdb_stdlog);
1637}
1638
bfedc46a
PA
1639static void
1640delegate_interrupt (struct target_ops *self, ptid_t arg1)
1641{
1642 self = self->beneath;
1643 self->to_interrupt (self, arg1);
1644}
1645
1646static void
1647tdefault_interrupt (struct target_ops *self, ptid_t arg1)
1648{
1649}
1650
1651static void
1652debug_interrupt (struct target_ops *self, ptid_t arg1)
1653{
1654 fprintf_unfiltered (gdb_stdlog, "-> %s->to_interrupt (...)\n", debug_target.to_shortname);
1655 debug_target.to_interrupt (&debug_target, arg1);
1656 fprintf_unfiltered (gdb_stdlog, "<- %s->to_interrupt (", debug_target.to_shortname);
1657 target_debug_print_struct_target_ops_p (&debug_target);
1658 fputs_unfiltered (", ", gdb_stdlog);
1659 target_debug_print_ptid_t (arg1);
1660 fputs_unfiltered (")\n", gdb_stdlog);
1661}
1662
93692b58
PA
1663static void
1664delegate_pass_ctrlc (struct target_ops *self)
1665{
1666 self = self->beneath;
1667 self->to_pass_ctrlc (self);
1668}
1669
1670static void
1671debug_pass_ctrlc (struct target_ops *self)
1672{
1673 fprintf_unfiltered (gdb_stdlog, "-> %s->to_pass_ctrlc (...)\n", debug_target.to_shortname);
1674 debug_target.to_pass_ctrlc (&debug_target);
1675 fprintf_unfiltered (gdb_stdlog, "<- %s->to_pass_ctrlc (", debug_target.to_shortname);
1676 target_debug_print_struct_target_ops_p (&debug_target);
1677 fputs_unfiltered (")\n", gdb_stdlog);
1678}
1679
a53f3625 1680static void
a30bf1f1 1681delegate_rcmd (struct target_ops *self, const char *arg1, struct ui_file *arg2)
a53f3625
TT
1682{
1683 self = self->beneath;
1684 self->to_rcmd (self, arg1, arg2);
1685}
1686
a7068b60
TT
1687static void
1688debug_rcmd (struct target_ops *self, const char *arg1, struct ui_file *arg2)
1689{
1690 fprintf_unfiltered (gdb_stdlog, "-> %s->to_rcmd (...)\n", debug_target.to_shortname);
1691 debug_target.to_rcmd (&debug_target, arg1, arg2);
1692 fprintf_unfiltered (gdb_stdlog, "<- %s->to_rcmd (", debug_target.to_shortname);
1693 target_debug_print_struct_target_ops_p (&debug_target);
1694 fputs_unfiltered (", ", gdb_stdlog);
1695 target_debug_print_const_char_p (arg1);
1696 fputs_unfiltered (", ", gdb_stdlog);
1697 target_debug_print_struct_ui_file_p (arg2);
1698 fputs_unfiltered (")\n", gdb_stdlog);
1699}
1700
830ca330
TT
1701static char *
1702delegate_pid_to_exec_file (struct target_ops *self, int arg1)
1703{
1704 self = self->beneath;
1705 return self->to_pid_to_exec_file (self, arg1);
1706}
1707
1708static char *
1709tdefault_pid_to_exec_file (struct target_ops *self, int arg1)
1710{
9b144037 1711 return NULL;
830ca330
TT
1712}
1713
a7068b60
TT
1714static char *
1715debug_pid_to_exec_file (struct target_ops *self, int arg1)
1716{
1717 char * result;
1718 fprintf_unfiltered (gdb_stdlog, "-> %s->to_pid_to_exec_file (...)\n", debug_target.to_shortname);
1719 result = debug_target.to_pid_to_exec_file (&debug_target, arg1);
1720 fprintf_unfiltered (gdb_stdlog, "<- %s->to_pid_to_exec_file (", debug_target.to_shortname);
1721 target_debug_print_struct_target_ops_p (&debug_target);
1722 fputs_unfiltered (", ", gdb_stdlog);
1723 target_debug_print_int (arg1);
1724 fputs_unfiltered (") = ", gdb_stdlog);
1725 target_debug_print_char_p (result);
1726 fputs_unfiltered ("\n", gdb_stdlog);
1727 return result;
1728}
1729
d9cb0195
TT
1730static void
1731delegate_log_command (struct target_ops *self, const char *arg1)
1732{
1733 self = self->beneath;
1734 self->to_log_command (self, arg1);
1735}
1736
1737static void
1738tdefault_log_command (struct target_ops *self, const char *arg1)
1739{
1740}
1741
a7068b60
TT
1742static void
1743debug_log_command (struct target_ops *self, const char *arg1)
1744{
1745 fprintf_unfiltered (gdb_stdlog, "-> %s->to_log_command (...)\n", debug_target.to_shortname);
1746 debug_target.to_log_command (&debug_target, arg1);
1747 fprintf_unfiltered (gdb_stdlog, "<- %s->to_log_command (", debug_target.to_shortname);
1748 target_debug_print_struct_target_ops_p (&debug_target);
1749 fputs_unfiltered (", ", gdb_stdlog);
1750 target_debug_print_const_char_p (arg1);
1751 fputs_unfiltered (")\n", gdb_stdlog);
1752}
1753
7e35c012
TT
1754static struct target_section_table *
1755delegate_get_section_table (struct target_ops *self)
1756{
1757 self = self->beneath;
1758 return self->to_get_section_table (self);
1759}
1760
1761static struct target_section_table *
1762tdefault_get_section_table (struct target_ops *self)
1763{
9b144037 1764 return NULL;
7e35c012
TT
1765}
1766
a7068b60
TT
1767static struct target_section_table *
1768debug_get_section_table (struct target_ops *self)
1769{
1770 struct target_section_table * result;
1771 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_section_table (...)\n", debug_target.to_shortname);
1772 result = debug_target.to_get_section_table (&debug_target);
1773 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_section_table (", debug_target.to_shortname);
1774 target_debug_print_struct_target_ops_p (&debug_target);
1775 fputs_unfiltered (") = ", gdb_stdlog);
1776 target_debug_print_struct_target_section_table_p (result);
1777 fputs_unfiltered ("\n", gdb_stdlog);
1778 return result;
1779}
1780
6b84065d
TT
1781static int
1782delegate_can_async_p (struct target_ops *self)
1783{
1784 self = self->beneath;
1785 return self->to_can_async_p (self);
1786}
1787
b3ccfe11
TT
1788static int
1789tdefault_can_async_p (struct target_ops *self)
1790{
1791 return 0;
1792}
1793
a7068b60
TT
1794static int
1795debug_can_async_p (struct target_ops *self)
1796{
1797 int result;
1798 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_async_p (...)\n", debug_target.to_shortname);
1799 result = debug_target.to_can_async_p (&debug_target);
1800 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_async_p (", debug_target.to_shortname);
1801 target_debug_print_struct_target_ops_p (&debug_target);
1802 fputs_unfiltered (") = ", gdb_stdlog);
1803 target_debug_print_int (result);
1804 fputs_unfiltered ("\n", gdb_stdlog);
1805 return result;
1806}
1807
6b84065d
TT
1808static int
1809delegate_is_async_p (struct target_ops *self)
1810{
1811 self = self->beneath;
1812 return self->to_is_async_p (self);
1813}
1814
b3ccfe11
TT
1815static int
1816tdefault_is_async_p (struct target_ops *self)
1817{
1818 return 0;
1819}
1820
a7068b60
TT
1821static int
1822debug_is_async_p (struct target_ops *self)
1823{
1824 int result;
1825 fprintf_unfiltered (gdb_stdlog, "-> %s->to_is_async_p (...)\n", debug_target.to_shortname);
1826 result = debug_target.to_is_async_p (&debug_target);
1827 fprintf_unfiltered (gdb_stdlog, "<- %s->to_is_async_p (", debug_target.to_shortname);
1828 target_debug_print_struct_target_ops_p (&debug_target);
1829 fputs_unfiltered (") = ", gdb_stdlog);
1830 target_debug_print_int (result);
1831 fputs_unfiltered ("\n", gdb_stdlog);
1832 return result;
1833}
1834
6b84065d 1835static void
6a3753b3 1836delegate_async (struct target_ops *self, int arg1)
6b84065d
TT
1837{
1838 self = self->beneath;
6a3753b3 1839 self->to_async (self, arg1);
6b84065d
TT
1840}
1841
1842static void
6a3753b3 1843tdefault_async (struct target_ops *self, int arg1)
6b84065d
TT
1844{
1845 tcomplain ();
1846}
1847
a7068b60 1848static void
6a3753b3 1849debug_async (struct target_ops *self, int arg1)
a7068b60
TT
1850{
1851 fprintf_unfiltered (gdb_stdlog, "-> %s->to_async (...)\n", debug_target.to_shortname);
6a3753b3 1852 debug_target.to_async (&debug_target, arg1);
a7068b60
TT
1853 fprintf_unfiltered (gdb_stdlog, "<- %s->to_async (", debug_target.to_shortname);
1854 target_debug_print_struct_target_ops_p (&debug_target);
1855 fputs_unfiltered (", ", gdb_stdlog);
6a3753b3 1856 target_debug_print_int (arg1);
a7068b60
TT
1857 fputs_unfiltered (")\n", gdb_stdlog);
1858}
1859
65706a29
PA
1860static void
1861delegate_thread_events (struct target_ops *self, int arg1)
1862{
1863 self = self->beneath;
1864 self->to_thread_events (self, arg1);
1865}
1866
1867static void
1868tdefault_thread_events (struct target_ops *self, int arg1)
1869{
1870}
1871
1872static void
1873debug_thread_events (struct target_ops *self, int arg1)
1874{
1875 fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_events (...)\n", debug_target.to_shortname);
1876 debug_target.to_thread_events (&debug_target, arg1);
1877 fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_events (", debug_target.to_shortname);
1878 target_debug_print_struct_target_ops_p (&debug_target);
1879 fputs_unfiltered (", ", gdb_stdlog);
1880 target_debug_print_int (arg1);
1881 fputs_unfiltered (")\n", gdb_stdlog);
1882}
1883
b3ccfe11
TT
1884static int
1885delegate_supports_non_stop (struct target_ops *self)
1886{
1887 self = self->beneath;
1888 return self->to_supports_non_stop (self);
1889}
1890
1891static int
1892tdefault_supports_non_stop (struct target_ops *self)
1893{
1894 return 0;
1895}
1896
a7068b60
TT
1897static int
1898debug_supports_non_stop (struct target_ops *self)
1899{
1900 int result;
1901 fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_non_stop (...)\n", debug_target.to_shortname);
1902 result = debug_target.to_supports_non_stop (&debug_target);
1903 fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_non_stop (", debug_target.to_shortname);
1904 target_debug_print_struct_target_ops_p (&debug_target);
1905 fputs_unfiltered (") = ", gdb_stdlog);
1906 target_debug_print_int (result);
1907 fputs_unfiltered ("\n", gdb_stdlog);
1908 return result;
1909}
1910
fbea99ea
PA
1911static int
1912delegate_always_non_stop_p (struct target_ops *self)
1913{
1914 self = self->beneath;
1915 return self->to_always_non_stop_p (self);
1916}
1917
1918static int
1919tdefault_always_non_stop_p (struct target_ops *self)
1920{
1921 return 0;
1922}
1923
1924static int
1925debug_always_non_stop_p (struct target_ops *self)
1926{
1927 int result;
1928 fprintf_unfiltered (gdb_stdlog, "-> %s->to_always_non_stop_p (...)\n", debug_target.to_shortname);
1929 result = debug_target.to_always_non_stop_p (&debug_target);
1930 fprintf_unfiltered (gdb_stdlog, "<- %s->to_always_non_stop_p (", debug_target.to_shortname);
1931 target_debug_print_struct_target_ops_p (&debug_target);
1932 fputs_unfiltered (") = ", gdb_stdlog);
1933 target_debug_print_int (result);
1934 fputs_unfiltered ("\n", gdb_stdlog);
1935 return result;
1936}
1937
0b5a2719
TT
1938static int
1939delegate_find_memory_regions (struct target_ops *self, find_memory_region_ftype arg1, void *arg2)
1940{
1941 self = self->beneath;
1942 return self->to_find_memory_regions (self, arg1, arg2);
1943}
1944
a7068b60
TT
1945static int
1946debug_find_memory_regions (struct target_ops *self, find_memory_region_ftype arg1, void *arg2)
1947{
1948 int result;
1949 fprintf_unfiltered (gdb_stdlog, "-> %s->to_find_memory_regions (...)\n", debug_target.to_shortname);
1950 result = debug_target.to_find_memory_regions (&debug_target, arg1, arg2);
1951 fprintf_unfiltered (gdb_stdlog, "<- %s->to_find_memory_regions (", debug_target.to_shortname);
1952 target_debug_print_struct_target_ops_p (&debug_target);
1953 fputs_unfiltered (", ", gdb_stdlog);
1954 target_debug_print_find_memory_region_ftype (arg1);
1955 fputs_unfiltered (", ", gdb_stdlog);
1956 target_debug_print_void_p (arg2);
1957 fputs_unfiltered (") = ", gdb_stdlog);
1958 target_debug_print_int (result);
1959 fputs_unfiltered ("\n", gdb_stdlog);
1960 return result;
1961}
1962
a8bdc56b 1963static char *
16f796b1
TT
1964delegate_make_corefile_notes (struct target_ops *self, bfd *arg1, int *arg2)
1965{
1966 self = self->beneath;
1967 return self->to_make_corefile_notes (self, arg1, arg2);
1968}
1969
a7068b60
TT
1970static char *
1971debug_make_corefile_notes (struct target_ops *self, bfd *arg1, int *arg2)
1972{
1973 char * result;
1974 fprintf_unfiltered (gdb_stdlog, "-> %s->to_make_corefile_notes (...)\n", debug_target.to_shortname);
1975 result = debug_target.to_make_corefile_notes (&debug_target, arg1, arg2);
1976 fprintf_unfiltered (gdb_stdlog, "<- %s->to_make_corefile_notes (", debug_target.to_shortname);
1977 target_debug_print_struct_target_ops_p (&debug_target);
1978 fputs_unfiltered (", ", gdb_stdlog);
1979 target_debug_print_bfd_p (arg1);
1980 fputs_unfiltered (", ", gdb_stdlog);
1981 target_debug_print_int_p (arg2);
1982 fputs_unfiltered (") = ", gdb_stdlog);
1983 target_debug_print_char_p (result);
1984 fputs_unfiltered ("\n", gdb_stdlog);
1985 return result;
1986}
1987
a8bdc56b 1988static gdb_byte *
c2bcbb1d 1989delegate_get_bookmark (struct target_ops *self, const char *arg1, int arg2)
3dbafbbb
TT
1990{
1991 self = self->beneath;
1992 return self->to_get_bookmark (self, arg1, arg2);
1993}
1994
a8bdc56b 1995static gdb_byte *
c2bcbb1d 1996tdefault_get_bookmark (struct target_ops *self, const char *arg1, int arg2)
3dbafbbb
TT
1997{
1998 tcomplain ();
1999}
2000
a7068b60
TT
2001static gdb_byte *
2002debug_get_bookmark (struct target_ops *self, const char *arg1, int arg2)
2003{
2004 gdb_byte * result;
2005 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_bookmark (...)\n", debug_target.to_shortname);
2006 result = debug_target.to_get_bookmark (&debug_target, arg1, arg2);
2007 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_bookmark (", debug_target.to_shortname);
2008 target_debug_print_struct_target_ops_p (&debug_target);
2009 fputs_unfiltered (", ", gdb_stdlog);
2010 target_debug_print_const_char_p (arg1);
2011 fputs_unfiltered (", ", gdb_stdlog);
2012 target_debug_print_int (arg2);
2013 fputs_unfiltered (") = ", gdb_stdlog);
2014 target_debug_print_gdb_byte_p (result);
2015 fputs_unfiltered ("\n", gdb_stdlog);
2016 return result;
2017}
2018
9bb9d61d 2019static void
c2bcbb1d 2020delegate_goto_bookmark (struct target_ops *self, const gdb_byte *arg1, int arg2)
9bb9d61d
TT
2021{
2022 self = self->beneath;
2023 self->to_goto_bookmark (self, arg1, arg2);
2024}
2025
2026static void
c2bcbb1d 2027tdefault_goto_bookmark (struct target_ops *self, const gdb_byte *arg1, int arg2)
9bb9d61d
TT
2028{
2029 tcomplain ();
2030}
2031
a7068b60
TT
2032static void
2033debug_goto_bookmark (struct target_ops *self, const gdb_byte *arg1, int arg2)
2034{
2035 fprintf_unfiltered (gdb_stdlog, "-> %s->to_goto_bookmark (...)\n", debug_target.to_shortname);
2036 debug_target.to_goto_bookmark (&debug_target, arg1, arg2);
2037 fprintf_unfiltered (gdb_stdlog, "<- %s->to_goto_bookmark (", debug_target.to_shortname);
2038 target_debug_print_struct_target_ops_p (&debug_target);
2039 fputs_unfiltered (", ", gdb_stdlog);
2040 target_debug_print_const_gdb_byte_p (arg1);
2041 fputs_unfiltered (", ", gdb_stdlog);
2042 target_debug_print_int (arg2);
2043 fputs_unfiltered (")\n", gdb_stdlog);
2044}
2045
f0f9ff95
TT
2046static CORE_ADDR
2047delegate_get_thread_local_address (struct target_ops *self, ptid_t arg1, CORE_ADDR arg2, CORE_ADDR arg3)
2048{
2049 self = self->beneath;
2050 return self->to_get_thread_local_address (self, arg1, arg2, arg3);
2051}
2052
2053static CORE_ADDR
2054tdefault_get_thread_local_address (struct target_ops *self, ptid_t arg1, CORE_ADDR arg2, CORE_ADDR arg3)
2055{
2056 generic_tls_error ();
2057}
2058
a7068b60
TT
2059static CORE_ADDR
2060debug_get_thread_local_address (struct target_ops *self, ptid_t arg1, CORE_ADDR arg2, CORE_ADDR arg3)
2061{
2062 CORE_ADDR result;
2063 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_thread_local_address (...)\n", debug_target.to_shortname);
2064 result = debug_target.to_get_thread_local_address (&debug_target, arg1, arg2, arg3);
2065 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_thread_local_address (", debug_target.to_shortname);
2066 target_debug_print_struct_target_ops_p (&debug_target);
2067 fputs_unfiltered (", ", gdb_stdlog);
2068 target_debug_print_ptid_t (arg1);
2069 fputs_unfiltered (", ", gdb_stdlog);
2070 target_debug_print_CORE_ADDR (arg2);
2071 fputs_unfiltered (", ", gdb_stdlog);
2072 target_debug_print_CORE_ADDR (arg3);
2073 fputs_unfiltered (") = ", gdb_stdlog);
2074 target_debug_print_CORE_ADDR (result);
2075 fputs_unfiltered ("\n", gdb_stdlog);
2076 return result;
2077}
2078
a8bdc56b
TT
2079static enum target_xfer_status
2080delegate_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)
6b84065d
TT
2081{
2082 self = self->beneath;
2083 return self->to_xfer_partial (self, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
2084}
2085
a8bdc56b
TT
2086static enum target_xfer_status
2087tdefault_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)
6b84065d
TT
2088{
2089 return TARGET_XFER_E_IO;
2090}
2091
a7068b60
TT
2092static enum target_xfer_status
2093debug_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)
2094{
2095 enum target_xfer_status result;
2096 fprintf_unfiltered (gdb_stdlog, "-> %s->to_xfer_partial (...)\n", debug_target.to_shortname);
2097 result = debug_target.to_xfer_partial (&debug_target, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
2098 fprintf_unfiltered (gdb_stdlog, "<- %s->to_xfer_partial (", debug_target.to_shortname);
2099 target_debug_print_struct_target_ops_p (&debug_target);
2100 fputs_unfiltered (", ", gdb_stdlog);
2101 target_debug_print_enum_target_object (arg1);
2102 fputs_unfiltered (", ", gdb_stdlog);
2103 target_debug_print_const_char_p (arg2);
2104 fputs_unfiltered (", ", gdb_stdlog);
2105 target_debug_print_gdb_byte_p (arg3);
2106 fputs_unfiltered (", ", gdb_stdlog);
2107 target_debug_print_const_gdb_byte_p (arg4);
2108 fputs_unfiltered (", ", gdb_stdlog);
2109 target_debug_print_ULONGEST (arg5);
2110 fputs_unfiltered (", ", gdb_stdlog);
2111 target_debug_print_ULONGEST (arg6);
2112 fputs_unfiltered (", ", gdb_stdlog);
2113 target_debug_print_ULONGEST_p (arg7);
2114 fputs_unfiltered (") = ", gdb_stdlog);
2115 target_debug_print_enum_target_xfer_status (result);
2116 fputs_unfiltered ("\n", gdb_stdlog);
2117 return result;
2118}
2119
09c98b44
DB
2120static ULONGEST
2121delegate_get_memory_xfer_limit (struct target_ops *self)
2122{
2123 self = self->beneath;
2124 return self->to_get_memory_xfer_limit (self);
2125}
2126
2127static ULONGEST
2128tdefault_get_memory_xfer_limit (struct target_ops *self)
2129{
2130 return ULONGEST_MAX;
2131}
2132
2133static ULONGEST
2134debug_get_memory_xfer_limit (struct target_ops *self)
2135{
2136 ULONGEST result;
2137 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_memory_xfer_limit (...)\n", debug_target.to_shortname);
2138 result = debug_target.to_get_memory_xfer_limit (&debug_target);
2139 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_memory_xfer_limit (", debug_target.to_shortname);
2140 target_debug_print_struct_target_ops_p (&debug_target);
2141 fputs_unfiltered (") = ", gdb_stdlog);
2142 target_debug_print_ULONGEST (result);
2143 fputs_unfiltered ("\n", gdb_stdlog);
2144 return result;
2145}
2146
1e97a227 2147static std::vector<mem_region>
6b2c5a57
TT
2148delegate_memory_map (struct target_ops *self)
2149{
2150 self = self->beneath;
2151 return self->to_memory_map (self);
2152}
2153
1e97a227 2154static std::vector<mem_region>
6b2c5a57
TT
2155tdefault_memory_map (struct target_ops *self)
2156{
a664f67e 2157 return std::vector<mem_region> ();
6b2c5a57
TT
2158}
2159
1e97a227 2160static std::vector<mem_region>
a7068b60
TT
2161debug_memory_map (struct target_ops *self)
2162{
1e97a227 2163 std::vector<mem_region> result;
a7068b60
TT
2164 fprintf_unfiltered (gdb_stdlog, "-> %s->to_memory_map (...)\n", debug_target.to_shortname);
2165 result = debug_target.to_memory_map (&debug_target);
2166 fprintf_unfiltered (gdb_stdlog, "<- %s->to_memory_map (", debug_target.to_shortname);
2167 target_debug_print_struct_target_ops_p (&debug_target);
2168 fputs_unfiltered (") = ", gdb_stdlog);
1e97a227 2169 target_debug_print_std_vector_mem_region (result);
a7068b60
TT
2170 fputs_unfiltered ("\n", gdb_stdlog);
2171 return result;
2172}
2173
e8a6c6ac
TT
2174static void
2175delegate_flash_erase (struct target_ops *self, ULONGEST arg1, LONGEST arg2)
2176{
2177 self = self->beneath;
2178 self->to_flash_erase (self, arg1, arg2);
2179}
2180
2181static void
2182tdefault_flash_erase (struct target_ops *self, ULONGEST arg1, LONGEST arg2)
2183{
2184 tcomplain ();
2185}
2186
a7068b60
TT
2187static void
2188debug_flash_erase (struct target_ops *self, ULONGEST arg1, LONGEST arg2)
2189{
2190 fprintf_unfiltered (gdb_stdlog, "-> %s->to_flash_erase (...)\n", debug_target.to_shortname);
2191 debug_target.to_flash_erase (&debug_target, arg1, arg2);
2192 fprintf_unfiltered (gdb_stdlog, "<- %s->to_flash_erase (", debug_target.to_shortname);
2193 target_debug_print_struct_target_ops_p (&debug_target);
2194 fputs_unfiltered (", ", gdb_stdlog);
2195 target_debug_print_ULONGEST (arg1);
2196 fputs_unfiltered (", ", gdb_stdlog);
2197 target_debug_print_LONGEST (arg2);
2198 fputs_unfiltered (")\n", gdb_stdlog);
2199}
2200
f6fb2925
TT
2201static void
2202delegate_flash_done (struct target_ops *self)
2203{
2204 self = self->beneath;
2205 self->to_flash_done (self);
2206}
2207
2208static void
2209tdefault_flash_done (struct target_ops *self)
2210{
2211 tcomplain ();
2212}
2213
a7068b60
TT
2214static void
2215debug_flash_done (struct target_ops *self)
2216{
2217 fprintf_unfiltered (gdb_stdlog, "-> %s->to_flash_done (...)\n", debug_target.to_shortname);
2218 debug_target.to_flash_done (&debug_target);
2219 fprintf_unfiltered (gdb_stdlog, "<- %s->to_flash_done (", debug_target.to_shortname);
2220 target_debug_print_struct_target_ops_p (&debug_target);
2221 fputs_unfiltered (")\n", gdb_stdlog);
2222}
2223
2117c711
TT
2224static const struct target_desc *
2225delegate_read_description (struct target_ops *self)
2226{
2227 self = self->beneath;
2228 return self->to_read_description (self);
2229}
2230
2231static const struct target_desc *
2232tdefault_read_description (struct target_ops *self)
2233{
9b144037 2234 return NULL;
2117c711
TT
2235}
2236
a7068b60
TT
2237static const struct target_desc *
2238debug_read_description (struct target_ops *self)
2239{
2240 const struct target_desc * result;
2241 fprintf_unfiltered (gdb_stdlog, "-> %s->to_read_description (...)\n", debug_target.to_shortname);
2242 result = debug_target.to_read_description (&debug_target);
2243 fprintf_unfiltered (gdb_stdlog, "<- %s->to_read_description (", debug_target.to_shortname);
2244 target_debug_print_struct_target_ops_p (&debug_target);
2245 fputs_unfiltered (") = ", gdb_stdlog);
2246 target_debug_print_const_struct_target_desc_p (result);
2247 fputs_unfiltered ("\n", gdb_stdlog);
2248 return result;
2249}
2250
4229b31d
TT
2251static ptid_t
2252delegate_get_ada_task_ptid (struct target_ops *self, long arg1, long arg2)
2253{
2254 self = self->beneath;
2255 return self->to_get_ada_task_ptid (self, arg1, arg2);
2256}
2257
a7068b60
TT
2258static ptid_t
2259debug_get_ada_task_ptid (struct target_ops *self, long arg1, long arg2)
2260{
2261 ptid_t result;
2262 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_ada_task_ptid (...)\n", debug_target.to_shortname);
2263 result = debug_target.to_get_ada_task_ptid (&debug_target, arg1, arg2);
2264 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_ada_task_ptid (", debug_target.to_shortname);
2265 target_debug_print_struct_target_ops_p (&debug_target);
2266 fputs_unfiltered (", ", gdb_stdlog);
2267 target_debug_print_long (arg1);
2268 fputs_unfiltered (", ", gdb_stdlog);
2269 target_debug_print_long (arg2);
2270 fputs_unfiltered (") = ", gdb_stdlog);
2271 target_debug_print_ptid_t (result);
2272 fputs_unfiltered ("\n", gdb_stdlog);
2273 return result;
2274}
2275
8de71aab
TT
2276static int
2277delegate_auxv_parse (struct target_ops *self, gdb_byte **arg1, gdb_byte *arg2, CORE_ADDR *arg3, CORE_ADDR *arg4)
2278{
2279 self = self->beneath;
2280 return self->to_auxv_parse (self, arg1, arg2, arg3, arg4);
2281}
2282
a7068b60
TT
2283static int
2284debug_auxv_parse (struct target_ops *self, gdb_byte **arg1, gdb_byte *arg2, CORE_ADDR *arg3, CORE_ADDR *arg4)
2285{
2286 int result;
2287 fprintf_unfiltered (gdb_stdlog, "-> %s->to_auxv_parse (...)\n", debug_target.to_shortname);
2288 result = debug_target.to_auxv_parse (&debug_target, arg1, arg2, arg3, arg4);
2289 fprintf_unfiltered (gdb_stdlog, "<- %s->to_auxv_parse (", debug_target.to_shortname);
2290 target_debug_print_struct_target_ops_p (&debug_target);
2291 fputs_unfiltered (", ", gdb_stdlog);
2292 target_debug_print_gdb_byte_pp (arg1);
2293 fputs_unfiltered (", ", gdb_stdlog);
2294 target_debug_print_gdb_byte_p (arg2);
2295 fputs_unfiltered (", ", gdb_stdlog);
2296 target_debug_print_CORE_ADDR_p (arg3);
2297 fputs_unfiltered (", ", gdb_stdlog);
2298 target_debug_print_CORE_ADDR_p (arg4);
2299 fputs_unfiltered (") = ", gdb_stdlog);
2300 target_debug_print_int (result);
2301 fputs_unfiltered ("\n", gdb_stdlog);
2302 return result;
2303}
2304
58a5184e
TT
2305static int
2306delegate_search_memory (struct target_ops *self, CORE_ADDR arg1, ULONGEST arg2, const gdb_byte *arg3, ULONGEST arg4, CORE_ADDR *arg5)
2307{
2308 self = self->beneath;
2309 return self->to_search_memory (self, arg1, arg2, arg3, arg4, arg5);
2310}
2311
a7068b60
TT
2312static int
2313debug_search_memory (struct target_ops *self, CORE_ADDR arg1, ULONGEST arg2, const gdb_byte *arg3, ULONGEST arg4, CORE_ADDR *arg5)
2314{
2315 int result;
2316 fprintf_unfiltered (gdb_stdlog, "-> %s->to_search_memory (...)\n", debug_target.to_shortname);
2317 result = debug_target.to_search_memory (&debug_target, arg1, arg2, arg3, arg4, arg5);
2318 fprintf_unfiltered (gdb_stdlog, "<- %s->to_search_memory (", debug_target.to_shortname);
2319 target_debug_print_struct_target_ops_p (&debug_target);
2320 fputs_unfiltered (", ", gdb_stdlog);
2321 target_debug_print_CORE_ADDR (arg1);
2322 fputs_unfiltered (", ", gdb_stdlog);
2323 target_debug_print_ULONGEST (arg2);
2324 fputs_unfiltered (", ", gdb_stdlog);
2325 target_debug_print_const_gdb_byte_p (arg3);
2326 fputs_unfiltered (", ", gdb_stdlog);
2327 target_debug_print_ULONGEST (arg4);
2328 fputs_unfiltered (", ", gdb_stdlog);
2329 target_debug_print_CORE_ADDR_p (arg5);
2330 fputs_unfiltered (") = ", gdb_stdlog);
2331 target_debug_print_int (result);
2332 fputs_unfiltered ("\n", gdb_stdlog);
2333 return result;
2334}
2335
53e1cfc7
TT
2336static int
2337delegate_can_execute_reverse (struct target_ops *self)
2338{
2339 self = self->beneath;
2340 return self->to_can_execute_reverse (self);
2341}
2342
2343static int
2344tdefault_can_execute_reverse (struct target_ops *self)
2345{
2346 return 0;
2347}
2348
a7068b60
TT
2349static int
2350debug_can_execute_reverse (struct target_ops *self)
2351{
2352 int result;
2353 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_execute_reverse (...)\n", debug_target.to_shortname);
2354 result = debug_target.to_can_execute_reverse (&debug_target);
2355 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_execute_reverse (", debug_target.to_shortname);
2356 target_debug_print_struct_target_ops_p (&debug_target);
2357 fputs_unfiltered (") = ", gdb_stdlog);
2358 target_debug_print_int (result);
2359 fputs_unfiltered ("\n", gdb_stdlog);
2360 return result;
2361}
2362
a8bdc56b 2363static enum exec_direction_kind
fe31bf5b
TT
2364delegate_execution_direction (struct target_ops *self)
2365{
2366 self = self->beneath;
2367 return self->to_execution_direction (self);
2368}
2369
a7068b60
TT
2370static enum exec_direction_kind
2371debug_execution_direction (struct target_ops *self)
2372{
2373 enum exec_direction_kind result;
2374 fprintf_unfiltered (gdb_stdlog, "-> %s->to_execution_direction (...)\n", debug_target.to_shortname);
2375 result = debug_target.to_execution_direction (&debug_target);
2376 fprintf_unfiltered (gdb_stdlog, "<- %s->to_execution_direction (", debug_target.to_shortname);
2377 target_debug_print_struct_target_ops_p (&debug_target);
2378 fputs_unfiltered (") = ", gdb_stdlog);
2379 target_debug_print_enum_exec_direction_kind (result);
2380 fputs_unfiltered ("\n", gdb_stdlog);
2381 return result;
2382}
2383
a7304748
TT
2384static int
2385delegate_supports_multi_process (struct target_ops *self)
2386{
2387 self = self->beneath;
2388 return self->to_supports_multi_process (self);
2389}
2390
2391static int
2392tdefault_supports_multi_process (struct target_ops *self)
2393{
2394 return 0;
2395}
2396
a7068b60
TT
2397static int
2398debug_supports_multi_process (struct target_ops *self)
2399{
2400 int result;
2401 fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_multi_process (...)\n", debug_target.to_shortname);
2402 result = debug_target.to_supports_multi_process (&debug_target);
2403 fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_multi_process (", debug_target.to_shortname);
2404 target_debug_print_struct_target_ops_p (&debug_target);
2405 fputs_unfiltered (") = ", gdb_stdlog);
2406 target_debug_print_int (result);
2407 fputs_unfiltered ("\n", gdb_stdlog);
2408 return result;
2409}
2410
aab1b22d
TT
2411static int
2412delegate_supports_enable_disable_tracepoint (struct target_ops *self)
2413{
2414 self = self->beneath;
2415 return self->to_supports_enable_disable_tracepoint (self);
2416}
2417
2418static int
2419tdefault_supports_enable_disable_tracepoint (struct target_ops *self)
2420{
2421 return 0;
2422}
2423
a7068b60
TT
2424static int
2425debug_supports_enable_disable_tracepoint (struct target_ops *self)
2426{
2427 int result;
2428 fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_enable_disable_tracepoint (...)\n", debug_target.to_shortname);
2429 result = debug_target.to_supports_enable_disable_tracepoint (&debug_target);
2430 fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_enable_disable_tracepoint (", debug_target.to_shortname);
2431 target_debug_print_struct_target_ops_p (&debug_target);
2432 fputs_unfiltered (") = ", gdb_stdlog);
2433 target_debug_print_int (result);
2434 fputs_unfiltered ("\n", gdb_stdlog);
2435 return result;
2436}
2437
9409d39e
TT
2438static int
2439delegate_supports_string_tracing (struct target_ops *self)
2440{
2441 self = self->beneath;
2442 return self->to_supports_string_tracing (self);
2443}
2444
2445static int
2446tdefault_supports_string_tracing (struct target_ops *self)
2447{
2448 return 0;
2449}
2450
a7068b60
TT
2451static int
2452debug_supports_string_tracing (struct target_ops *self)
2453{
2454 int result;
2455 fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_string_tracing (...)\n", debug_target.to_shortname);
2456 result = debug_target.to_supports_string_tracing (&debug_target);
2457 fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_string_tracing (", debug_target.to_shortname);
2458 target_debug_print_struct_target_ops_p (&debug_target);
2459 fputs_unfiltered (") = ", gdb_stdlog);
2460 target_debug_print_int (result);
2461 fputs_unfiltered ("\n", gdb_stdlog);
2462 return result;
2463}
2464
ccfde2a0
TT
2465static int
2466delegate_supports_evaluation_of_breakpoint_conditions (struct target_ops *self)
2467{
2468 self = self->beneath;
2469 return self->to_supports_evaluation_of_breakpoint_conditions (self);
2470}
2471
2472static int
2473tdefault_supports_evaluation_of_breakpoint_conditions (struct target_ops *self)
2474{
2475 return 0;
2476}
2477
a7068b60
TT
2478static int
2479debug_supports_evaluation_of_breakpoint_conditions (struct target_ops *self)
2480{
2481 int result;
2482 fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_evaluation_of_breakpoint_conditions (...)\n", debug_target.to_shortname);
2483 result = debug_target.to_supports_evaluation_of_breakpoint_conditions (&debug_target);
2484 fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_evaluation_of_breakpoint_conditions (", debug_target.to_shortname);
2485 target_debug_print_struct_target_ops_p (&debug_target);
2486 fputs_unfiltered (") = ", gdb_stdlog);
2487 target_debug_print_int (result);
2488 fputs_unfiltered ("\n", gdb_stdlog);
2489 return result;
2490}
2491
843f59ed
TT
2492static int
2493delegate_can_run_breakpoint_commands (struct target_ops *self)
2494{
2495 self = self->beneath;
2496 return self->to_can_run_breakpoint_commands (self);
2497}
2498
2499static int
2500tdefault_can_run_breakpoint_commands (struct target_ops *self)
2501{
2502 return 0;
2503}
2504
a7068b60
TT
2505static int
2506debug_can_run_breakpoint_commands (struct target_ops *self)
2507{
2508 int result;
2509 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_run_breakpoint_commands (...)\n", debug_target.to_shortname);
2510 result = debug_target.to_can_run_breakpoint_commands (&debug_target);
2511 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_run_breakpoint_commands (", debug_target.to_shortname);
2512 target_debug_print_struct_target_ops_p (&debug_target);
2513 fputs_unfiltered (") = ", gdb_stdlog);
2514 target_debug_print_int (result);
2515 fputs_unfiltered ("\n", gdb_stdlog);
2516 return result;
2517}
2518
43eba180
TT
2519static struct gdbarch *
2520delegate_thread_architecture (struct target_ops *self, ptid_t arg1)
2521{
2522 self = self->beneath;
2523 return self->to_thread_architecture (self, arg1);
2524}
2525
a7068b60
TT
2526static struct gdbarch *
2527debug_thread_architecture (struct target_ops *self, ptid_t arg1)
2528{
2529 struct gdbarch * result;
2530 fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_architecture (...)\n", debug_target.to_shortname);
2531 result = debug_target.to_thread_architecture (&debug_target, arg1);
2532 fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_architecture (", debug_target.to_shortname);
2533 target_debug_print_struct_target_ops_p (&debug_target);
2534 fputs_unfiltered (", ", gdb_stdlog);
2535 target_debug_print_ptid_t (arg1);
2536 fputs_unfiltered (") = ", gdb_stdlog);
2537 target_debug_print_struct_gdbarch_p (result);
2538 fputs_unfiltered ("\n", gdb_stdlog);
2539 return result;
2540}
2541
8eaff7cd
TT
2542static struct address_space *
2543delegate_thread_address_space (struct target_ops *self, ptid_t arg1)
2544{
2545 self = self->beneath;
2546 return self->to_thread_address_space (self, arg1);
2547}
2548
a7068b60
TT
2549static struct address_space *
2550debug_thread_address_space (struct target_ops *self, ptid_t arg1)
2551{
2552 struct address_space * result;
2553 fprintf_unfiltered (gdb_stdlog, "-> %s->to_thread_address_space (...)\n", debug_target.to_shortname);
2554 result = debug_target.to_thread_address_space (&debug_target, arg1);
2555 fprintf_unfiltered (gdb_stdlog, "<- %s->to_thread_address_space (", debug_target.to_shortname);
2556 target_debug_print_struct_target_ops_p (&debug_target);
2557 fputs_unfiltered (", ", gdb_stdlog);
2558 target_debug_print_ptid_t (arg1);
2559 fputs_unfiltered (") = ", gdb_stdlog);
2560 target_debug_print_struct_address_space_p (result);
2561 fputs_unfiltered ("\n", gdb_stdlog);
2562 return result;
2563}
2564
4bd7dc42
GB
2565static int
2566delegate_filesystem_is_local (struct target_ops *self)
2567{
2568 self = self->beneath;
2569 return self->to_filesystem_is_local (self);
2570}
2571
2572static int
2573tdefault_filesystem_is_local (struct target_ops *self)
2574{
2575 return 1;
2576}
2577
2578static int
2579debug_filesystem_is_local (struct target_ops *self)
2580{
2581 int result;
2582 fprintf_unfiltered (gdb_stdlog, "-> %s->to_filesystem_is_local (...)\n", debug_target.to_shortname);
2583 result = debug_target.to_filesystem_is_local (&debug_target);
2584 fprintf_unfiltered (gdb_stdlog, "<- %s->to_filesystem_is_local (", debug_target.to_shortname);
2585 target_debug_print_struct_target_ops_p (&debug_target);
2586 fputs_unfiltered (") = ", gdb_stdlog);
2587 target_debug_print_int (result);
2588 fputs_unfiltered ("\n", gdb_stdlog);
2589 return result;
2590}
2591
5536135b
TT
2592static void
2593delegate_trace_init (struct target_ops *self)
2594{
2595 self = self->beneath;
2596 self->to_trace_init (self);
2597}
2598
2599static void
2600tdefault_trace_init (struct target_ops *self)
2601{
2602 tcomplain ();
2603}
2604
a7068b60
TT
2605static void
2606debug_trace_init (struct target_ops *self)
2607{
2608 fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_init (...)\n", debug_target.to_shortname);
2609 debug_target.to_trace_init (&debug_target);
2610 fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_init (", debug_target.to_shortname);
2611 target_debug_print_struct_target_ops_p (&debug_target);
2612 fputs_unfiltered (")\n", gdb_stdlog);
2613}
2614
9a980a22
TT
2615static void
2616delegate_download_tracepoint (struct target_ops *self, struct bp_location *arg1)
2617{
2618 self = self->beneath;
2619 self->to_download_tracepoint (self, arg1);
2620}
2621
2622static void
2623tdefault_download_tracepoint (struct target_ops *self, struct bp_location *arg1)
2624{
2625 tcomplain ();
2626}
2627
a7068b60
TT
2628static void
2629debug_download_tracepoint (struct target_ops *self, struct bp_location *arg1)
2630{
2631 fprintf_unfiltered (gdb_stdlog, "-> %s->to_download_tracepoint (...)\n", debug_target.to_shortname);
2632 debug_target.to_download_tracepoint (&debug_target, arg1);
2633 fprintf_unfiltered (gdb_stdlog, "<- %s->to_download_tracepoint (", debug_target.to_shortname);
2634 target_debug_print_struct_target_ops_p (&debug_target);
2635 fputs_unfiltered (", ", gdb_stdlog);
2636 target_debug_print_struct_bp_location_p (arg1);
2637 fputs_unfiltered (")\n", gdb_stdlog);
2638}
2639
719acc4a
TT
2640static int
2641delegate_can_download_tracepoint (struct target_ops *self)
2642{
2643 self = self->beneath;
2644 return self->to_can_download_tracepoint (self);
2645}
2646
2647static int
2648tdefault_can_download_tracepoint (struct target_ops *self)
2649{
2650 return 0;
2651}
2652
a7068b60
TT
2653static int
2654debug_can_download_tracepoint (struct target_ops *self)
2655{
2656 int result;
2657 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_download_tracepoint (...)\n", debug_target.to_shortname);
2658 result = debug_target.to_can_download_tracepoint (&debug_target);
2659 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_download_tracepoint (", debug_target.to_shortname);
2660 target_debug_print_struct_target_ops_p (&debug_target);
2661 fputs_unfiltered (") = ", gdb_stdlog);
2662 target_debug_print_int (result);
2663 fputs_unfiltered ("\n", gdb_stdlog);
2664 return result;
2665}
2666
94eb98b9
TT
2667static void
2668delegate_download_trace_state_variable (struct target_ops *self, struct trace_state_variable *arg1)
2669{
2670 self = self->beneath;
2671 self->to_download_trace_state_variable (self, arg1);
2672}
2673
2674static void
2675tdefault_download_trace_state_variable (struct target_ops *self, struct trace_state_variable *arg1)
2676{
2677 tcomplain ();
2678}
2679
a7068b60
TT
2680static void
2681debug_download_trace_state_variable (struct target_ops *self, struct trace_state_variable *arg1)
2682{
2683 fprintf_unfiltered (gdb_stdlog, "-> %s->to_download_trace_state_variable (...)\n", debug_target.to_shortname);
2684 debug_target.to_download_trace_state_variable (&debug_target, arg1);
2685 fprintf_unfiltered (gdb_stdlog, "<- %s->to_download_trace_state_variable (", debug_target.to_shortname);
2686 target_debug_print_struct_target_ops_p (&debug_target);
2687 fputs_unfiltered (", ", gdb_stdlog);
2688 target_debug_print_struct_trace_state_variable_p (arg1);
2689 fputs_unfiltered (")\n", gdb_stdlog);
2690}
2691
151f70f1
TT
2692static void
2693delegate_enable_tracepoint (struct target_ops *self, struct bp_location *arg1)
2694{
2695 self = self->beneath;
2696 self->to_enable_tracepoint (self, arg1);
2697}
2698
2699static void
2700tdefault_enable_tracepoint (struct target_ops *self, struct bp_location *arg1)
2701{
2702 tcomplain ();
2703}
2704
a7068b60
TT
2705static void
2706debug_enable_tracepoint (struct target_ops *self, struct bp_location *arg1)
2707{
2708 fprintf_unfiltered (gdb_stdlog, "-> %s->to_enable_tracepoint (...)\n", debug_target.to_shortname);
2709 debug_target.to_enable_tracepoint (&debug_target, arg1);
2710 fprintf_unfiltered (gdb_stdlog, "<- %s->to_enable_tracepoint (", debug_target.to_shortname);
2711 target_debug_print_struct_target_ops_p (&debug_target);
2712 fputs_unfiltered (", ", gdb_stdlog);
2713 target_debug_print_struct_bp_location_p (arg1);
2714 fputs_unfiltered (")\n", gdb_stdlog);
2715}
2716
05c41993
TT
2717static void
2718delegate_disable_tracepoint (struct target_ops *self, struct bp_location *arg1)
2719{
2720 self = self->beneath;
2721 self->to_disable_tracepoint (self, arg1);
2722}
2723
2724static void
2725tdefault_disable_tracepoint (struct target_ops *self, struct bp_location *arg1)
2726{
2727 tcomplain ();
2728}
2729
a7068b60
TT
2730static void
2731debug_disable_tracepoint (struct target_ops *self, struct bp_location *arg1)
2732{
2733 fprintf_unfiltered (gdb_stdlog, "-> %s->to_disable_tracepoint (...)\n", debug_target.to_shortname);
2734 debug_target.to_disable_tracepoint (&debug_target, arg1);
2735 fprintf_unfiltered (gdb_stdlog, "<- %s->to_disable_tracepoint (", debug_target.to_shortname);
2736 target_debug_print_struct_target_ops_p (&debug_target);
2737 fputs_unfiltered (", ", gdb_stdlog);
2738 target_debug_print_struct_bp_location_p (arg1);
2739 fputs_unfiltered (")\n", gdb_stdlog);
2740}
2741
86dd181d
TT
2742static void
2743delegate_trace_set_readonly_regions (struct target_ops *self)
2744{
2745 self = self->beneath;
2746 self->to_trace_set_readonly_regions (self);
2747}
2748
2749static void
2750tdefault_trace_set_readonly_regions (struct target_ops *self)
2751{
2752 tcomplain ();
2753}
2754
a7068b60
TT
2755static void
2756debug_trace_set_readonly_regions (struct target_ops *self)
2757{
2758 fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_set_readonly_regions (...)\n", debug_target.to_shortname);
2759 debug_target.to_trace_set_readonly_regions (&debug_target);
2760 fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_set_readonly_regions (", debug_target.to_shortname);
2761 target_debug_print_struct_target_ops_p (&debug_target);
2762 fputs_unfiltered (")\n", gdb_stdlog);
2763}
2764
25da2e80
TT
2765static void
2766delegate_trace_start (struct target_ops *self)
2767{
2768 self = self->beneath;
2769 self->to_trace_start (self);
2770}
2771
2772static void
2773tdefault_trace_start (struct target_ops *self)
2774{
2775 tcomplain ();
2776}
2777
a7068b60
TT
2778static void
2779debug_trace_start (struct target_ops *self)
2780{
2781 fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_start (...)\n", debug_target.to_shortname);
2782 debug_target.to_trace_start (&debug_target);
2783 fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_start (", debug_target.to_shortname);
2784 target_debug_print_struct_target_ops_p (&debug_target);
2785 fputs_unfiltered (")\n", gdb_stdlog);
2786}
2787
4072d4ff
TT
2788static int
2789delegate_get_trace_status (struct target_ops *self, struct trace_status *arg1)
2790{
2791 self = self->beneath;
2792 return self->to_get_trace_status (self, arg1);
2793}
2794
2795static int
2796tdefault_get_trace_status (struct target_ops *self, struct trace_status *arg1)
2797{
2798 return -1;
2799}
2800
a7068b60
TT
2801static int
2802debug_get_trace_status (struct target_ops *self, struct trace_status *arg1)
2803{
2804 int result;
2805 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_trace_status (...)\n", debug_target.to_shortname);
2806 result = debug_target.to_get_trace_status (&debug_target, arg1);
2807 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_trace_status (", debug_target.to_shortname);
2808 target_debug_print_struct_target_ops_p (&debug_target);
2809 fputs_unfiltered (", ", gdb_stdlog);
2810 target_debug_print_struct_trace_status_p (arg1);
2811 fputs_unfiltered (") = ", gdb_stdlog);
2812 target_debug_print_int (result);
2813 fputs_unfiltered ("\n", gdb_stdlog);
2814 return result;
2815}
2816
6fea14cd
TT
2817static void
2818delegate_get_tracepoint_status (struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
2819{
2820 self = self->beneath;
2821 self->to_get_tracepoint_status (self, arg1, arg2);
2822}
2823
2824static void
2825tdefault_get_tracepoint_status (struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
2826{
2827 tcomplain ();
2828}
2829
a7068b60
TT
2830static void
2831debug_get_tracepoint_status (struct target_ops *self, struct breakpoint *arg1, struct uploaded_tp *arg2)
2832{
2833 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_tracepoint_status (...)\n", debug_target.to_shortname);
2834 debug_target.to_get_tracepoint_status (&debug_target, arg1, arg2);
2835 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_tracepoint_status (", debug_target.to_shortname);
2836 target_debug_print_struct_target_ops_p (&debug_target);
2837 fputs_unfiltered (", ", gdb_stdlog);
2838 target_debug_print_struct_breakpoint_p (arg1);
2839 fputs_unfiltered (", ", gdb_stdlog);
2840 target_debug_print_struct_uploaded_tp_p (arg2);
2841 fputs_unfiltered (")\n", gdb_stdlog);
2842}
2843
e51c07ea
TT
2844static void
2845delegate_trace_stop (struct target_ops *self)
2846{
2847 self = self->beneath;
2848 self->to_trace_stop (self);
2849}
2850
2851static void
2852tdefault_trace_stop (struct target_ops *self)
2853{
2854 tcomplain ();
2855}
2856
a7068b60
TT
2857static void
2858debug_trace_stop (struct target_ops *self)
2859{
2860 fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_stop (...)\n", debug_target.to_shortname);
2861 debug_target.to_trace_stop (&debug_target);
2862 fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_stop (", debug_target.to_shortname);
2863 target_debug_print_struct_target_ops_p (&debug_target);
2864 fputs_unfiltered (")\n", gdb_stdlog);
2865}
2866
afc94e66 2867static int
a8bdc56b 2868delegate_trace_find (struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
afc94e66
TT
2869{
2870 self = self->beneath;
2871 return self->to_trace_find (self, arg1, arg2, arg3, arg4, arg5);
2872}
2873
2874static int
a8bdc56b 2875tdefault_trace_find (struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
afc94e66
TT
2876{
2877 return -1;
2878}
2879
a7068b60
TT
2880static int
2881debug_trace_find (struct target_ops *self, enum trace_find_type arg1, int arg2, CORE_ADDR arg3, CORE_ADDR arg4, int *arg5)
2882{
2883 int result;
2884 fprintf_unfiltered (gdb_stdlog, "-> %s->to_trace_find (...)\n", debug_target.to_shortname);
2885 result = debug_target.to_trace_find (&debug_target, arg1, arg2, arg3, arg4, arg5);
2886 fprintf_unfiltered (gdb_stdlog, "<- %s->to_trace_find (", debug_target.to_shortname);
2887 target_debug_print_struct_target_ops_p (&debug_target);
2888 fputs_unfiltered (", ", gdb_stdlog);
2889 target_debug_print_enum_trace_find_type (arg1);
2890 fputs_unfiltered (", ", gdb_stdlog);
2891 target_debug_print_int (arg2);
2892 fputs_unfiltered (", ", gdb_stdlog);
2893 target_debug_print_CORE_ADDR (arg3);
2894 fputs_unfiltered (", ", gdb_stdlog);
2895 target_debug_print_CORE_ADDR (arg4);
2896 fputs_unfiltered (", ", gdb_stdlog);
2897 target_debug_print_int_p (arg5);
2898 fputs_unfiltered (") = ", gdb_stdlog);
2899 target_debug_print_int (result);
2900 fputs_unfiltered ("\n", gdb_stdlog);
2901 return result;
2902}
2903
959bcd0b
TT
2904static int
2905delegate_get_trace_state_variable_value (struct target_ops *self, int arg1, LONGEST *arg2)
2906{
2907 self = self->beneath;
2908 return self->to_get_trace_state_variable_value (self, arg1, arg2);
2909}
2910
2911static int
2912tdefault_get_trace_state_variable_value (struct target_ops *self, int arg1, LONGEST *arg2)
2913{
2914 return 0;
2915}
2916
a7068b60
TT
2917static int
2918debug_get_trace_state_variable_value (struct target_ops *self, int arg1, LONGEST *arg2)
2919{
2920 int result;
2921 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_trace_state_variable_value (...)\n", debug_target.to_shortname);
2922 result = debug_target.to_get_trace_state_variable_value (&debug_target, arg1, arg2);
2923 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_trace_state_variable_value (", debug_target.to_shortname);
2924 target_debug_print_struct_target_ops_p (&debug_target);
2925 fputs_unfiltered (", ", gdb_stdlog);
2926 target_debug_print_int (arg1);
2927 fputs_unfiltered (", ", gdb_stdlog);
2928 target_debug_print_LONGEST_p (arg2);
2929 fputs_unfiltered (") = ", gdb_stdlog);
2930 target_debug_print_int (result);
2931 fputs_unfiltered ("\n", gdb_stdlog);
2932 return result;
2933}
2934
a2e6c147
TT
2935static int
2936delegate_save_trace_data (struct target_ops *self, const char *arg1)
2937{
2938 self = self->beneath;
2939 return self->to_save_trace_data (self, arg1);
2940}
2941
2942static int
2943tdefault_save_trace_data (struct target_ops *self, const char *arg1)
2944{
2945 tcomplain ();
2946}
2947
a7068b60
TT
2948static int
2949debug_save_trace_data (struct target_ops *self, const char *arg1)
2950{
2951 int result;
2952 fprintf_unfiltered (gdb_stdlog, "-> %s->to_save_trace_data (...)\n", debug_target.to_shortname);
2953 result = debug_target.to_save_trace_data (&debug_target, arg1);
2954 fprintf_unfiltered (gdb_stdlog, "<- %s->to_save_trace_data (", debug_target.to_shortname);
2955 target_debug_print_struct_target_ops_p (&debug_target);
2956 fputs_unfiltered (", ", gdb_stdlog);
2957 target_debug_print_const_char_p (arg1);
2958 fputs_unfiltered (") = ", gdb_stdlog);
2959 target_debug_print_int (result);
2960 fputs_unfiltered ("\n", gdb_stdlog);
2961 return result;
2962}
2963
1e949b00
TT
2964static int
2965delegate_upload_tracepoints (struct target_ops *self, struct uploaded_tp **arg1)
2966{
2967 self = self->beneath;
2968 return self->to_upload_tracepoints (self, arg1);
2969}
2970
2971static int
2972tdefault_upload_tracepoints (struct target_ops *self, struct uploaded_tp **arg1)
2973{
2974 return 0;
2975}
2976
a7068b60
TT
2977static int
2978debug_upload_tracepoints (struct target_ops *self, struct uploaded_tp **arg1)
2979{
2980 int result;
2981 fprintf_unfiltered (gdb_stdlog, "-> %s->to_upload_tracepoints (...)\n", debug_target.to_shortname);
2982 result = debug_target.to_upload_tracepoints (&debug_target, arg1);
2983 fprintf_unfiltered (gdb_stdlog, "<- %s->to_upload_tracepoints (", debug_target.to_shortname);
2984 target_debug_print_struct_target_ops_p (&debug_target);
2985 fputs_unfiltered (", ", gdb_stdlog);
2986 target_debug_print_struct_uploaded_tp_pp (arg1);
2987 fputs_unfiltered (") = ", gdb_stdlog);
2988 target_debug_print_int (result);
2989 fputs_unfiltered ("\n", gdb_stdlog);
2990 return result;
2991}
2992
08120467
TT
2993static int
2994delegate_upload_trace_state_variables (struct target_ops *self, struct uploaded_tsv **arg1)
2995{
2996 self = self->beneath;
2997 return self->to_upload_trace_state_variables (self, arg1);
2998}
2999
3000static int
3001tdefault_upload_trace_state_variables (struct target_ops *self, struct uploaded_tsv **arg1)
3002{
3003 return 0;
3004}
3005
a7068b60
TT
3006static int
3007debug_upload_trace_state_variables (struct target_ops *self, struct uploaded_tsv **arg1)
3008{
3009 int result;
3010 fprintf_unfiltered (gdb_stdlog, "-> %s->to_upload_trace_state_variables (...)\n", debug_target.to_shortname);
3011 result = debug_target.to_upload_trace_state_variables (&debug_target, arg1);
3012 fprintf_unfiltered (gdb_stdlog, "<- %s->to_upload_trace_state_variables (", debug_target.to_shortname);
3013 target_debug_print_struct_target_ops_p (&debug_target);
3014 fputs_unfiltered (", ", gdb_stdlog);
3015 target_debug_print_struct_uploaded_tsv_pp (arg1);
3016 fputs_unfiltered (") = ", gdb_stdlog);
3017 target_debug_print_int (result);
3018 fputs_unfiltered ("\n", gdb_stdlog);
3019 return result;
3020}
3021
ace92e7d
TT
3022static LONGEST
3023delegate_get_raw_trace_data (struct target_ops *self, gdb_byte *arg1, ULONGEST arg2, LONGEST arg3)
3024{
3025 self = self->beneath;
3026 return self->to_get_raw_trace_data (self, arg1, arg2, arg3);
3027}
3028
3029static LONGEST
3030tdefault_get_raw_trace_data (struct target_ops *self, gdb_byte *arg1, ULONGEST arg2, LONGEST arg3)
3031{
3032 tcomplain ();
3033}
3034
a7068b60
TT
3035static LONGEST
3036debug_get_raw_trace_data (struct target_ops *self, gdb_byte *arg1, ULONGEST arg2, LONGEST arg3)
3037{
3038 LONGEST result;
3039 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_raw_trace_data (...)\n", debug_target.to_shortname);
3040 result = debug_target.to_get_raw_trace_data (&debug_target, arg1, arg2, arg3);
3041 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_raw_trace_data (", debug_target.to_shortname);
3042 target_debug_print_struct_target_ops_p (&debug_target);
3043 fputs_unfiltered (", ", gdb_stdlog);
3044 target_debug_print_gdb_byte_p (arg1);
3045 fputs_unfiltered (", ", gdb_stdlog);
3046 target_debug_print_ULONGEST (arg2);
3047 fputs_unfiltered (", ", gdb_stdlog);
3048 target_debug_print_LONGEST (arg3);
3049 fputs_unfiltered (") = ", gdb_stdlog);
3050 target_debug_print_LONGEST (result);
3051 fputs_unfiltered ("\n", gdb_stdlog);
3052 return result;
3053}
3054
9249843f
TT
3055static int
3056delegate_get_min_fast_tracepoint_insn_len (struct target_ops *self)
3057{
3058 self = self->beneath;
3059 return self->to_get_min_fast_tracepoint_insn_len (self);
3060}
3061
3062static int
3063tdefault_get_min_fast_tracepoint_insn_len (struct target_ops *self)
3064{
3065 return -1;
3066}
3067
a7068b60
TT
3068static int
3069debug_get_min_fast_tracepoint_insn_len (struct target_ops *self)
3070{
3071 int result;
3072 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_min_fast_tracepoint_insn_len (...)\n", debug_target.to_shortname);
3073 result = debug_target.to_get_min_fast_tracepoint_insn_len (&debug_target);
3074 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_min_fast_tracepoint_insn_len (", debug_target.to_shortname);
3075 target_debug_print_struct_target_ops_p (&debug_target);
3076 fputs_unfiltered (") = ", gdb_stdlog);
3077 target_debug_print_int (result);
3078 fputs_unfiltered ("\n", gdb_stdlog);
3079 return result;
3080}
3081
0bcfeddf
TT
3082static void
3083delegate_set_disconnected_tracing (struct target_ops *self, int arg1)
3084{
3085 self = self->beneath;
3086 self->to_set_disconnected_tracing (self, arg1);
3087}
3088
3089static void
3090tdefault_set_disconnected_tracing (struct target_ops *self, int arg1)
3091{
3092}
3093
a7068b60
TT
3094static void
3095debug_set_disconnected_tracing (struct target_ops *self, int arg1)
3096{
3097 fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_disconnected_tracing (...)\n", debug_target.to_shortname);
3098 debug_target.to_set_disconnected_tracing (&debug_target, arg1);
3099 fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_disconnected_tracing (", debug_target.to_shortname);
3100 target_debug_print_struct_target_ops_p (&debug_target);
3101 fputs_unfiltered (", ", gdb_stdlog);
3102 target_debug_print_int (arg1);
3103 fputs_unfiltered (")\n", gdb_stdlog);
3104}
3105
8d526939
TT
3106static void
3107delegate_set_circular_trace_buffer (struct target_ops *self, int arg1)
3108{
3109 self = self->beneath;
3110 self->to_set_circular_trace_buffer (self, arg1);
3111}
3112
3113static void
3114tdefault_set_circular_trace_buffer (struct target_ops *self, int arg1)
3115{
3116}
3117
a7068b60
TT
3118static void
3119debug_set_circular_trace_buffer (struct target_ops *self, int arg1)
3120{
3121 fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_circular_trace_buffer (...)\n", debug_target.to_shortname);
3122 debug_target.to_set_circular_trace_buffer (&debug_target, arg1);
3123 fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_circular_trace_buffer (", debug_target.to_shortname);
3124 target_debug_print_struct_target_ops_p (&debug_target);
3125 fputs_unfiltered (", ", gdb_stdlog);
3126 target_debug_print_int (arg1);
3127 fputs_unfiltered (")\n", gdb_stdlog);
3128}
3129
91df8d1d
TT
3130static void
3131delegate_set_trace_buffer_size (struct target_ops *self, LONGEST arg1)
3132{
3133 self = self->beneath;
3134 self->to_set_trace_buffer_size (self, arg1);
3135}
3136
3137static void
3138tdefault_set_trace_buffer_size (struct target_ops *self, LONGEST arg1)
3139{
3140}
3141
a7068b60
TT
3142static void
3143debug_set_trace_buffer_size (struct target_ops *self, LONGEST arg1)
3144{
3145 fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_trace_buffer_size (...)\n", debug_target.to_shortname);
3146 debug_target.to_set_trace_buffer_size (&debug_target, arg1);
3147 fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_trace_buffer_size (", debug_target.to_shortname);
3148 target_debug_print_struct_target_ops_p (&debug_target);
3149 fputs_unfiltered (", ", gdb_stdlog);
3150 target_debug_print_LONGEST (arg1);
3151 fputs_unfiltered (")\n", gdb_stdlog);
3152}
3153
8586ccaa
TT
3154static int
3155delegate_set_trace_notes (struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
3156{
3157 self = self->beneath;
3158 return self->to_set_trace_notes (self, arg1, arg2, arg3);
3159}
3160
3161static int
3162tdefault_set_trace_notes (struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
3163{
3164 return 0;
3165}
3166
a7068b60
TT
3167static int
3168debug_set_trace_notes (struct target_ops *self, const char *arg1, const char *arg2, const char *arg3)
3169{
3170 int result;
3171 fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_trace_notes (...)\n", debug_target.to_shortname);
3172 result = debug_target.to_set_trace_notes (&debug_target, arg1, arg2, arg3);
3173 fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_trace_notes (", debug_target.to_shortname);
3174 target_debug_print_struct_target_ops_p (&debug_target);
3175 fputs_unfiltered (", ", gdb_stdlog);
3176 target_debug_print_const_char_p (arg1);
3177 fputs_unfiltered (", ", gdb_stdlog);
3178 target_debug_print_const_char_p (arg2);
3179 fputs_unfiltered (", ", gdb_stdlog);
3180 target_debug_print_const_char_p (arg3);
3181 fputs_unfiltered (") = ", gdb_stdlog);
3182 target_debug_print_int (result);
3183 fputs_unfiltered ("\n", gdb_stdlog);
3184 return result;
3185}
3186
9e538d0d
TT
3187static int
3188delegate_core_of_thread (struct target_ops *self, ptid_t arg1)
3189{
3190 self = self->beneath;
3191 return self->to_core_of_thread (self, arg1);
3192}
3193
3194static int
3195tdefault_core_of_thread (struct target_ops *self, ptid_t arg1)
3196{
3197 return -1;
3198}
3199
a7068b60
TT
3200static int
3201debug_core_of_thread (struct target_ops *self, ptid_t arg1)
3202{
3203 int result;
3204 fprintf_unfiltered (gdb_stdlog, "-> %s->to_core_of_thread (...)\n", debug_target.to_shortname);
3205 result = debug_target.to_core_of_thread (&debug_target, arg1);
3206 fprintf_unfiltered (gdb_stdlog, "<- %s->to_core_of_thread (", debug_target.to_shortname);
3207 target_debug_print_struct_target_ops_p (&debug_target);
3208 fputs_unfiltered (", ", gdb_stdlog);
3209 target_debug_print_ptid_t (arg1);
3210 fputs_unfiltered (") = ", gdb_stdlog);
3211 target_debug_print_int (result);
3212 fputs_unfiltered ("\n", gdb_stdlog);
3213 return result;
3214}
3215
eb276a6b
TT
3216static int
3217delegate_verify_memory (struct target_ops *self, const gdb_byte *arg1, CORE_ADDR arg2, ULONGEST arg3)
3218{
3219 self = self->beneath;
3220 return self->to_verify_memory (self, arg1, arg2, arg3);
3221}
3222
a7068b60
TT
3223static int
3224debug_verify_memory (struct target_ops *self, const gdb_byte *arg1, CORE_ADDR arg2, ULONGEST arg3)
3225{
3226 int result;
3227 fprintf_unfiltered (gdb_stdlog, "-> %s->to_verify_memory (...)\n", debug_target.to_shortname);
3228 result = debug_target.to_verify_memory (&debug_target, arg1, arg2, arg3);
3229 fprintf_unfiltered (gdb_stdlog, "<- %s->to_verify_memory (", debug_target.to_shortname);
3230 target_debug_print_struct_target_ops_p (&debug_target);
3231 fputs_unfiltered (", ", gdb_stdlog);
3232 target_debug_print_const_gdb_byte_p (arg1);
3233 fputs_unfiltered (", ", gdb_stdlog);
3234 target_debug_print_CORE_ADDR (arg2);
3235 fputs_unfiltered (", ", gdb_stdlog);
3236 target_debug_print_ULONGEST (arg3);
3237 fputs_unfiltered (") = ", gdb_stdlog);
3238 target_debug_print_int (result);
3239 fputs_unfiltered ("\n", gdb_stdlog);
3240 return result;
3241}
3242
22bcceee
TT
3243static int
3244delegate_get_tib_address (struct target_ops *self, ptid_t arg1, CORE_ADDR *arg2)
3245{
3246 self = self->beneath;
3247 return self->to_get_tib_address (self, arg1, arg2);
3248}
3249
3250static int
3251tdefault_get_tib_address (struct target_ops *self, ptid_t arg1, CORE_ADDR *arg2)
3252{
3253 tcomplain ();
3254}
3255
a7068b60
TT
3256static int
3257debug_get_tib_address (struct target_ops *self, ptid_t arg1, CORE_ADDR *arg2)
3258{
3259 int result;
3260 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_tib_address (...)\n", debug_target.to_shortname);
3261 result = debug_target.to_get_tib_address (&debug_target, arg1, arg2);
3262 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_tib_address (", debug_target.to_shortname);
3263 target_debug_print_struct_target_ops_p (&debug_target);
3264 fputs_unfiltered (", ", gdb_stdlog);
3265 target_debug_print_ptid_t (arg1);
3266 fputs_unfiltered (", ", gdb_stdlog);
3267 target_debug_print_CORE_ADDR_p (arg2);
3268 fputs_unfiltered (") = ", gdb_stdlog);
3269 target_debug_print_int (result);
3270 fputs_unfiltered ("\n", gdb_stdlog);
3271 return result;
3272}
3273
dcd6917f
TT
3274static void
3275delegate_set_permissions (struct target_ops *self)
3276{
3277 self = self->beneath;
3278 self->to_set_permissions (self);
3279}
3280
3281static void
3282tdefault_set_permissions (struct target_ops *self)
3283{
3284}
3285
a7068b60
TT
3286static void
3287debug_set_permissions (struct target_ops *self)
3288{
3289 fprintf_unfiltered (gdb_stdlog, "-> %s->to_set_permissions (...)\n", debug_target.to_shortname);
3290 debug_target.to_set_permissions (&debug_target);
3291 fprintf_unfiltered (gdb_stdlog, "<- %s->to_set_permissions (", debug_target.to_shortname);
3292 target_debug_print_struct_target_ops_p (&debug_target);
3293 fputs_unfiltered (")\n", gdb_stdlog);
3294}
3295
4c3e4425
TT
3296static int
3297delegate_static_tracepoint_marker_at (struct target_ops *self, CORE_ADDR arg1, struct static_tracepoint_marker *arg2)
3298{
3299 self = self->beneath;
3300 return self->to_static_tracepoint_marker_at (self, arg1, arg2);
3301}
3302
3303static int
3304tdefault_static_tracepoint_marker_at (struct target_ops *self, CORE_ADDR arg1, struct static_tracepoint_marker *arg2)
3305{
3306 return 0;
3307}
3308
a7068b60
TT
3309static int
3310debug_static_tracepoint_marker_at (struct target_ops *self, CORE_ADDR arg1, struct static_tracepoint_marker *arg2)
3311{
3312 int result;
3313 fprintf_unfiltered (gdb_stdlog, "-> %s->to_static_tracepoint_marker_at (...)\n", debug_target.to_shortname);
3314 result = debug_target.to_static_tracepoint_marker_at (&debug_target, arg1, arg2);
3315 fprintf_unfiltered (gdb_stdlog, "<- %s->to_static_tracepoint_marker_at (", debug_target.to_shortname);
3316 target_debug_print_struct_target_ops_p (&debug_target);
3317 fputs_unfiltered (", ", gdb_stdlog);
3318 target_debug_print_CORE_ADDR (arg1);
3319 fputs_unfiltered (", ", gdb_stdlog);
3320 target_debug_print_struct_static_tracepoint_marker_p (arg2);
3321 fputs_unfiltered (") = ", gdb_stdlog);
3322 target_debug_print_int (result);
3323 fputs_unfiltered ("\n", gdb_stdlog);
3324 return result;
3325}
3326
d6522a22
TT
3327static VEC(static_tracepoint_marker_p) *
3328delegate_static_tracepoint_markers_by_strid (struct target_ops *self, const char *arg1)
3329{
3330 self = self->beneath;
3331 return self->to_static_tracepoint_markers_by_strid (self, arg1);
3332}
3333
3334static VEC(static_tracepoint_marker_p) *
3335tdefault_static_tracepoint_markers_by_strid (struct target_ops *self, const char *arg1)
3336{
3337 tcomplain ();
3338}
3339
a7068b60
TT
3340static VEC(static_tracepoint_marker_p) *
3341debug_static_tracepoint_markers_by_strid (struct target_ops *self, const char *arg1)
3342{
3343 VEC(static_tracepoint_marker_p) * result;
3344 fprintf_unfiltered (gdb_stdlog, "-> %s->to_static_tracepoint_markers_by_strid (...)\n", debug_target.to_shortname);
3345 result = debug_target.to_static_tracepoint_markers_by_strid (&debug_target, arg1);
3346 fprintf_unfiltered (gdb_stdlog, "<- %s->to_static_tracepoint_markers_by_strid (", debug_target.to_shortname);
3347 target_debug_print_struct_target_ops_p (&debug_target);
3348 fputs_unfiltered (", ", gdb_stdlog);
3349 target_debug_print_const_char_p (arg1);
3350 fputs_unfiltered (") = ", gdb_stdlog);
10f64178 3351 target_debug_print_VEC_static_tracepoint_marker_p_p (result);
a7068b60
TT
3352 fputs_unfiltered ("\n", gdb_stdlog);
3353 return result;
3354}
3355
2098b393 3356static traceframe_info_up
92155eeb
TT
3357delegate_traceframe_info (struct target_ops *self)
3358{
3359 self = self->beneath;
3360 return self->to_traceframe_info (self);
3361}
3362
2098b393 3363static traceframe_info_up
92155eeb
TT
3364tdefault_traceframe_info (struct target_ops *self)
3365{
6a5f844b 3366 tcomplain ();
92155eeb
TT
3367}
3368
2098b393 3369static traceframe_info_up
a7068b60
TT
3370debug_traceframe_info (struct target_ops *self)
3371{
2098b393 3372 traceframe_info_up result;
a7068b60
TT
3373 fprintf_unfiltered (gdb_stdlog, "-> %s->to_traceframe_info (...)\n", debug_target.to_shortname);
3374 result = debug_target.to_traceframe_info (&debug_target);
3375 fprintf_unfiltered (gdb_stdlog, "<- %s->to_traceframe_info (", debug_target.to_shortname);
3376 target_debug_print_struct_target_ops_p (&debug_target);
3377 fputs_unfiltered (") = ", gdb_stdlog);
2098b393 3378 target_debug_print_traceframe_info_up (result);
a7068b60
TT
3379 fputs_unfiltered ("\n", gdb_stdlog);
3380 return result;
3381}
3382
d9db5b21
TT
3383static int
3384delegate_use_agent (struct target_ops *self, int arg1)
3385{
3386 self = self->beneath;
3387 return self->to_use_agent (self, arg1);
3388}
3389
3390static int
3391tdefault_use_agent (struct target_ops *self, int arg1)
3392{
3393 tcomplain ();
3394}
3395
a7068b60
TT
3396static int
3397debug_use_agent (struct target_ops *self, int arg1)
3398{
3399 int result;
3400 fprintf_unfiltered (gdb_stdlog, "-> %s->to_use_agent (...)\n", debug_target.to_shortname);
3401 result = debug_target.to_use_agent (&debug_target, arg1);
3402 fprintf_unfiltered (gdb_stdlog, "<- %s->to_use_agent (", debug_target.to_shortname);
3403 target_debug_print_struct_target_ops_p (&debug_target);
3404 fputs_unfiltered (", ", gdb_stdlog);
3405 target_debug_print_int (arg1);
3406 fputs_unfiltered (") = ", gdb_stdlog);
3407 target_debug_print_int (result);
3408 fputs_unfiltered ("\n", gdb_stdlog);
3409 return result;
3410}
3411
9a7d8b48
TT
3412static int
3413delegate_can_use_agent (struct target_ops *self)
3414{
3415 self = self->beneath;
3416 return self->to_can_use_agent (self);
3417}
3418
3419static int
3420tdefault_can_use_agent (struct target_ops *self)
3421{
3422 return 0;
3423}
3424
a7068b60
TT
3425static int
3426debug_can_use_agent (struct target_ops *self)
3427{
3428 int result;
3429 fprintf_unfiltered (gdb_stdlog, "-> %s->to_can_use_agent (...)\n", debug_target.to_shortname);
3430 result = debug_target.to_can_use_agent (&debug_target);
3431 fprintf_unfiltered (gdb_stdlog, "<- %s->to_can_use_agent (", debug_target.to_shortname);
3432 target_debug_print_struct_target_ops_p (&debug_target);
3433 fputs_unfiltered (") = ", gdb_stdlog);
3434 target_debug_print_int (result);
3435 fputs_unfiltered ("\n", gdb_stdlog);
3436 return result;
3437}
3438
46917d26 3439static int
043c3577 3440delegate_supports_btrace (struct target_ops *self, enum btrace_format arg1)
46917d26
TT
3441{
3442 self = self->beneath;
043c3577 3443 return self->to_supports_btrace (self, arg1);
46917d26
TT
3444}
3445
3446static int
043c3577 3447tdefault_supports_btrace (struct target_ops *self, enum btrace_format arg1)
46917d26
TT
3448{
3449 return 0;
3450}
3451
a7068b60 3452static int
043c3577 3453debug_supports_btrace (struct target_ops *self, enum btrace_format arg1)
a7068b60
TT
3454{
3455 int result;
3456 fprintf_unfiltered (gdb_stdlog, "-> %s->to_supports_btrace (...)\n", debug_target.to_shortname);
043c3577 3457 result = debug_target.to_supports_btrace (&debug_target, arg1);
a7068b60
TT
3458 fprintf_unfiltered (gdb_stdlog, "<- %s->to_supports_btrace (", debug_target.to_shortname);
3459 target_debug_print_struct_target_ops_p (&debug_target);
043c3577
MM
3460 fputs_unfiltered (", ", gdb_stdlog);
3461 target_debug_print_enum_btrace_format (arg1);
a7068b60
TT
3462 fputs_unfiltered (") = ", gdb_stdlog);
3463 target_debug_print_int (result);
3464 fputs_unfiltered ("\n", gdb_stdlog);
3465 return result;
3466}
3467
6dc7fcf4 3468static struct btrace_target_info *
f4abbc16 3469delegate_enable_btrace (struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
6dc7fcf4
TT
3470{
3471 self = self->beneath;
f4abbc16 3472 return self->to_enable_btrace (self, arg1, arg2);
6dc7fcf4
TT
3473}
3474
3475static struct btrace_target_info *
f4abbc16 3476tdefault_enable_btrace (struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
6dc7fcf4
TT
3477{
3478 tcomplain ();
3479}
3480
a7068b60 3481static struct btrace_target_info *
f4abbc16 3482debug_enable_btrace (struct target_ops *self, ptid_t arg1, const struct btrace_config *arg2)
a7068b60
TT
3483{
3484 struct btrace_target_info * result;
3485 fprintf_unfiltered (gdb_stdlog, "-> %s->to_enable_btrace (...)\n", debug_target.to_shortname);
f4abbc16 3486 result = debug_target.to_enable_btrace (&debug_target, arg1, arg2);
a7068b60
TT
3487 fprintf_unfiltered (gdb_stdlog, "<- %s->to_enable_btrace (", debug_target.to_shortname);
3488 target_debug_print_struct_target_ops_p (&debug_target);
3489 fputs_unfiltered (", ", gdb_stdlog);
3490 target_debug_print_ptid_t (arg1);
f4abbc16
MM
3491 fputs_unfiltered (", ", gdb_stdlog);
3492 target_debug_print_const_struct_btrace_config_p (arg2);
a7068b60
TT
3493 fputs_unfiltered (") = ", gdb_stdlog);
3494 target_debug_print_struct_btrace_target_info_p (result);
3495 fputs_unfiltered ("\n", gdb_stdlog);
3496 return result;
3497}
3498
8dc292d3
TT
3499static void
3500delegate_disable_btrace (struct target_ops *self, struct btrace_target_info *arg1)
3501{
3502 self = self->beneath;
3503 self->to_disable_btrace (self, arg1);
3504}
3505
3506static void
3507tdefault_disable_btrace (struct target_ops *self, struct btrace_target_info *arg1)
3508{
3509 tcomplain ();
3510}
3511
a7068b60
TT
3512static void
3513debug_disable_btrace (struct target_ops *self, struct btrace_target_info *arg1)
3514{
3515 fprintf_unfiltered (gdb_stdlog, "-> %s->to_disable_btrace (...)\n", debug_target.to_shortname);
3516 debug_target.to_disable_btrace (&debug_target, arg1);
3517 fprintf_unfiltered (gdb_stdlog, "<- %s->to_disable_btrace (", debug_target.to_shortname);
3518 target_debug_print_struct_target_ops_p (&debug_target);
3519 fputs_unfiltered (", ", gdb_stdlog);
3520 target_debug_print_struct_btrace_target_info_p (arg1);
3521 fputs_unfiltered (")\n", gdb_stdlog);
3522}
3523
9ace480d
TT
3524static void
3525delegate_teardown_btrace (struct target_ops *self, struct btrace_target_info *arg1)
3526{
3527 self = self->beneath;
3528 self->to_teardown_btrace (self, arg1);
3529}
3530
3531static void
3532tdefault_teardown_btrace (struct target_ops *self, struct btrace_target_info *arg1)
3533{
3534 tcomplain ();
3535}
3536
a7068b60
TT
3537static void
3538debug_teardown_btrace (struct target_ops *self, struct btrace_target_info *arg1)
3539{
3540 fprintf_unfiltered (gdb_stdlog, "-> %s->to_teardown_btrace (...)\n", debug_target.to_shortname);
3541 debug_target.to_teardown_btrace (&debug_target, arg1);
3542 fprintf_unfiltered (gdb_stdlog, "<- %s->to_teardown_btrace (", debug_target.to_shortname);
3543 target_debug_print_struct_target_ops_p (&debug_target);
3544 fputs_unfiltered (", ", gdb_stdlog);
3545 target_debug_print_struct_btrace_target_info_p (arg1);
3546 fputs_unfiltered (")\n", gdb_stdlog);
3547}
3548
a8bdc56b 3549static enum btrace_error
734b0e4b 3550delegate_read_btrace (struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
eb5b20d4
TT
3551{
3552 self = self->beneath;
3553 return self->to_read_btrace (self, arg1, arg2, arg3);
3554}
3555
a8bdc56b 3556static enum btrace_error
734b0e4b 3557tdefault_read_btrace (struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
eb5b20d4
TT
3558{
3559 tcomplain ();
3560}
3561
a7068b60 3562static enum btrace_error
734b0e4b 3563debug_read_btrace (struct target_ops *self, struct btrace_data *arg1, struct btrace_target_info *arg2, enum btrace_read_type arg3)
a7068b60
TT
3564{
3565 enum btrace_error result;
3566 fprintf_unfiltered (gdb_stdlog, "-> %s->to_read_btrace (...)\n", debug_target.to_shortname);
3567 result = debug_target.to_read_btrace (&debug_target, arg1, arg2, arg3);
3568 fprintf_unfiltered (gdb_stdlog, "<- %s->to_read_btrace (", debug_target.to_shortname);
3569 target_debug_print_struct_target_ops_p (&debug_target);
3570 fputs_unfiltered (", ", gdb_stdlog);
734b0e4b 3571 target_debug_print_struct_btrace_data_p (arg1);
a7068b60
TT
3572 fputs_unfiltered (", ", gdb_stdlog);
3573 target_debug_print_struct_btrace_target_info_p (arg2);
3574 fputs_unfiltered (", ", gdb_stdlog);
3575 target_debug_print_enum_btrace_read_type (arg3);
3576 fputs_unfiltered (") = ", gdb_stdlog);
3577 target_debug_print_enum_btrace_error (result);
3578 fputs_unfiltered ("\n", gdb_stdlog);
3579 return result;
3580}
3581
f4abbc16
MM
3582static const struct btrace_config *
3583delegate_btrace_conf (struct target_ops *self, const struct btrace_target_info *arg1)
3584{
3585 self = self->beneath;
3586 return self->to_btrace_conf (self, arg1);
3587}
3588
3589static const struct btrace_config *
3590tdefault_btrace_conf (struct target_ops *self, const struct btrace_target_info *arg1)
3591{
3592 return NULL;
3593}
3594
3595static const struct btrace_config *
3596debug_btrace_conf (struct target_ops *self, const struct btrace_target_info *arg1)
3597{
3598 const struct btrace_config * result;
3599 fprintf_unfiltered (gdb_stdlog, "-> %s->to_btrace_conf (...)\n", debug_target.to_shortname);
3600 result = debug_target.to_btrace_conf (&debug_target, arg1);
3601 fprintf_unfiltered (gdb_stdlog, "<- %s->to_btrace_conf (", debug_target.to_shortname);
3602 target_debug_print_struct_target_ops_p (&debug_target);
3603 fputs_unfiltered (", ", gdb_stdlog);
3604 target_debug_print_const_struct_btrace_target_info_p (arg1);
3605 fputs_unfiltered (") = ", gdb_stdlog);
3606 target_debug_print_const_struct_btrace_config_p (result);
3607 fputs_unfiltered ("\n", gdb_stdlog);
3608 return result;
3609}
3610
b158a20f
TW
3611static enum record_method
3612delegate_record_method (struct target_ops *self, ptid_t arg1)
3613{
3614 self = self->beneath;
3615 return self->to_record_method (self, arg1);
3616}
3617
3618static enum record_method
3619tdefault_record_method (struct target_ops *self, ptid_t arg1)
3620{
3621 return RECORD_METHOD_NONE;
3622}
3623
3624static enum record_method
3625debug_record_method (struct target_ops *self, ptid_t arg1)
3626{
3627 enum record_method result;
3628 fprintf_unfiltered (gdb_stdlog, "-> %s->to_record_method (...)\n", debug_target.to_shortname);
3629 result = debug_target.to_record_method (&debug_target, arg1);
3630 fprintf_unfiltered (gdb_stdlog, "<- %s->to_record_method (", debug_target.to_shortname);
3631 target_debug_print_struct_target_ops_p (&debug_target);
3632 fputs_unfiltered (", ", gdb_stdlog);
3633 target_debug_print_ptid_t (arg1);
3634 fputs_unfiltered (") = ", gdb_stdlog);
3635 target_debug_print_enum_record_method (result);
3636 fputs_unfiltered ("\n", gdb_stdlog);
3637 return result;
3638}
3639
ee97f592
TT
3640static void
3641delegate_stop_recording (struct target_ops *self)
3642{
3643 self = self->beneath;
3644 self->to_stop_recording (self);
3645}
3646
3647static void
3648tdefault_stop_recording (struct target_ops *self)
3649{
3650}
3651
a7068b60
TT
3652static void
3653debug_stop_recording (struct target_ops *self)
3654{
3655 fprintf_unfiltered (gdb_stdlog, "-> %s->to_stop_recording (...)\n", debug_target.to_shortname);
3656 debug_target.to_stop_recording (&debug_target);
3657 fprintf_unfiltered (gdb_stdlog, "<- %s->to_stop_recording (", debug_target.to_shortname);
3658 target_debug_print_struct_target_ops_p (&debug_target);
3659 fputs_unfiltered (")\n", gdb_stdlog);
3660}
3661
a432721e
TT
3662static void
3663delegate_info_record (struct target_ops *self)
3664{
3665 self = self->beneath;
3666 self->to_info_record (self);
3667}
3668
3669static void
3670tdefault_info_record (struct target_ops *self)
3671{
3672}
3673
a7068b60
TT
3674static void
3675debug_info_record (struct target_ops *self)
3676{
3677 fprintf_unfiltered (gdb_stdlog, "-> %s->to_info_record (...)\n", debug_target.to_shortname);
3678 debug_target.to_info_record (&debug_target);
3679 fprintf_unfiltered (gdb_stdlog, "<- %s->to_info_record (", debug_target.to_shortname);
3680 target_debug_print_struct_target_ops_p (&debug_target);
3681 fputs_unfiltered (")\n", gdb_stdlog);
3682}
3683
f09e2107
TT
3684static void
3685delegate_save_record (struct target_ops *self, const char *arg1)
3686{
3687 self = self->beneath;
3688 self->to_save_record (self, arg1);
3689}
3690
3691static void
3692tdefault_save_record (struct target_ops *self, const char *arg1)
3693{
3694 tcomplain ();
3695}
3696
a7068b60
TT
3697static void
3698debug_save_record (struct target_ops *self, const char *arg1)
3699{
3700 fprintf_unfiltered (gdb_stdlog, "-> %s->to_save_record (...)\n", debug_target.to_shortname);
3701 debug_target.to_save_record (&debug_target, arg1);
3702 fprintf_unfiltered (gdb_stdlog, "<- %s->to_save_record (", debug_target.to_shortname);
3703 target_debug_print_struct_target_ops_p (&debug_target);
3704 fputs_unfiltered (", ", gdb_stdlog);
3705 target_debug_print_const_char_p (arg1);
3706 fputs_unfiltered (")\n", gdb_stdlog);
3707}
3708
07366925
TT
3709static void
3710delegate_delete_record (struct target_ops *self)
3711{
3712 self = self->beneath;
3713 self->to_delete_record (self);
3714}
3715
3716static void
3717tdefault_delete_record (struct target_ops *self)
3718{
3719 tcomplain ();
3720}
3721
a7068b60
TT
3722static void
3723debug_delete_record (struct target_ops *self)
3724{
3725 fprintf_unfiltered (gdb_stdlog, "-> %s->to_delete_record (...)\n", debug_target.to_shortname);
3726 debug_target.to_delete_record (&debug_target);
3727 fprintf_unfiltered (gdb_stdlog, "<- %s->to_delete_record (", debug_target.to_shortname);
3728 target_debug_print_struct_target_ops_p (&debug_target);
3729 fputs_unfiltered (")\n", gdb_stdlog);
3730}
3731
dd2e9d25 3732static int
a52eab48 3733delegate_record_is_replaying (struct target_ops *self, ptid_t arg1)
dd2e9d25
TT
3734{
3735 self = self->beneath;
a52eab48 3736 return self->to_record_is_replaying (self, arg1);
dd2e9d25
TT
3737}
3738
3739static int
a52eab48 3740tdefault_record_is_replaying (struct target_ops *self, ptid_t arg1)
dd2e9d25
TT
3741{
3742 return 0;
3743}
3744
a7068b60 3745static int
a52eab48 3746debug_record_is_replaying (struct target_ops *self, ptid_t arg1)
a7068b60
TT
3747{
3748 int result;
3749 fprintf_unfiltered (gdb_stdlog, "-> %s->to_record_is_replaying (...)\n", debug_target.to_shortname);
a52eab48 3750 result = debug_target.to_record_is_replaying (&debug_target, arg1);
a7068b60
TT
3751 fprintf_unfiltered (gdb_stdlog, "<- %s->to_record_is_replaying (", debug_target.to_shortname);
3752 target_debug_print_struct_target_ops_p (&debug_target);
a52eab48
MM
3753 fputs_unfiltered (", ", gdb_stdlog);
3754 target_debug_print_ptid_t (arg1);
a7068b60
TT
3755 fputs_unfiltered (") = ", gdb_stdlog);
3756 target_debug_print_int (result);
3757 fputs_unfiltered ("\n", gdb_stdlog);
3758 return result;
3759}
3760
7ff27e9b
MM
3761static int
3762delegate_record_will_replay (struct target_ops *self, ptid_t arg1, int arg2)
3763{
3764 self = self->beneath;
3765 return self->to_record_will_replay (self, arg1, arg2);
3766}
3767
3768static int
3769tdefault_record_will_replay (struct target_ops *self, ptid_t arg1, int arg2)
3770{
3771 return 0;
3772}
3773
3774static int
3775debug_record_will_replay (struct target_ops *self, ptid_t arg1, int arg2)
3776{
3777 int result;
3778 fprintf_unfiltered (gdb_stdlog, "-> %s->to_record_will_replay (...)\n", debug_target.to_shortname);
3779 result = debug_target.to_record_will_replay (&debug_target, arg1, arg2);
3780 fprintf_unfiltered (gdb_stdlog, "<- %s->to_record_will_replay (", debug_target.to_shortname);
3781 target_debug_print_struct_target_ops_p (&debug_target);
3782 fputs_unfiltered (", ", gdb_stdlog);
3783 target_debug_print_ptid_t (arg1);
3784 fputs_unfiltered (", ", gdb_stdlog);
3785 target_debug_print_int (arg2);
3786 fputs_unfiltered (") = ", gdb_stdlog);
3787 target_debug_print_int (result);
3788 fputs_unfiltered ("\n", gdb_stdlog);
3789 return result;
3790}
3791
797094dd
MM
3792static void
3793delegate_record_stop_replaying (struct target_ops *self)
3794{
3795 self = self->beneath;
3796 self->to_record_stop_replaying (self);
3797}
3798
3799static void
3800tdefault_record_stop_replaying (struct target_ops *self)
3801{
3802}
3803
3804static void
3805debug_record_stop_replaying (struct target_ops *self)
3806{
3807 fprintf_unfiltered (gdb_stdlog, "-> %s->to_record_stop_replaying (...)\n", debug_target.to_shortname);
3808 debug_target.to_record_stop_replaying (&debug_target);
3809 fprintf_unfiltered (gdb_stdlog, "<- %s->to_record_stop_replaying (", debug_target.to_shortname);
3810 target_debug_print_struct_target_ops_p (&debug_target);
3811 fputs_unfiltered (")\n", gdb_stdlog);
3812}
3813
671e76cc
TT
3814static void
3815delegate_goto_record_begin (struct target_ops *self)
3816{
3817 self = self->beneath;
3818 self->to_goto_record_begin (self);
3819}
3820
3821static void
3822tdefault_goto_record_begin (struct target_ops *self)
3823{
3824 tcomplain ();
3825}
3826
a7068b60
TT
3827static void
3828debug_goto_record_begin (struct target_ops *self)
3829{
3830 fprintf_unfiltered (gdb_stdlog, "-> %s->to_goto_record_begin (...)\n", debug_target.to_shortname);
3831 debug_target.to_goto_record_begin (&debug_target);
3832 fprintf_unfiltered (gdb_stdlog, "<- %s->to_goto_record_begin (", debug_target.to_shortname);
3833 target_debug_print_struct_target_ops_p (&debug_target);
3834 fputs_unfiltered (")\n", gdb_stdlog);
3835}
3836
e9179bb3
TT
3837static void
3838delegate_goto_record_end (struct target_ops *self)
3839{
3840 self = self->beneath;
3841 self->to_goto_record_end (self);
3842}
3843
3844static void
3845tdefault_goto_record_end (struct target_ops *self)
3846{
3847 tcomplain ();
3848}
3849
a7068b60
TT
3850static void
3851debug_goto_record_end (struct target_ops *self)
3852{
3853 fprintf_unfiltered (gdb_stdlog, "-> %s->to_goto_record_end (...)\n", debug_target.to_shortname);
3854 debug_target.to_goto_record_end (&debug_target);
3855 fprintf_unfiltered (gdb_stdlog, "<- %s->to_goto_record_end (", debug_target.to_shortname);
3856 target_debug_print_struct_target_ops_p (&debug_target);
3857 fputs_unfiltered (")\n", gdb_stdlog);
3858}
3859
05969c84
TT
3860static void
3861delegate_goto_record (struct target_ops *self, ULONGEST arg1)
3862{
3863 self = self->beneath;
3864 self->to_goto_record (self, arg1);
3865}
3866
3867static void
3868tdefault_goto_record (struct target_ops *self, ULONGEST arg1)
3869{
3870 tcomplain ();
3871}
3872
a7068b60
TT
3873static void
3874debug_goto_record (struct target_ops *self, ULONGEST arg1)
3875{
3876 fprintf_unfiltered (gdb_stdlog, "-> %s->to_goto_record (...)\n", debug_target.to_shortname);
3877 debug_target.to_goto_record (&debug_target, arg1);
3878 fprintf_unfiltered (gdb_stdlog, "<- %s->to_goto_record (", debug_target.to_shortname);
3879 target_debug_print_struct_target_ops_p (&debug_target);
3880 fputs_unfiltered (", ", gdb_stdlog);
3881 target_debug_print_ULONGEST (arg1);
3882 fputs_unfiltered (")\n", gdb_stdlog);
3883}
3884
3679abfa 3885static void
9a24775b 3886delegate_insn_history (struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
3679abfa
TT
3887{
3888 self = self->beneath;
3889 self->to_insn_history (self, arg1, arg2);
3890}
3891
3892static void
9a24775b 3893tdefault_insn_history (struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
3679abfa
TT
3894{
3895 tcomplain ();
3896}
3897
a7068b60 3898static void
9a24775b 3899debug_insn_history (struct target_ops *self, int arg1, gdb_disassembly_flags arg2)
a7068b60
TT
3900{
3901 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insn_history (...)\n", debug_target.to_shortname);
3902 debug_target.to_insn_history (&debug_target, arg1, arg2);
3903 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insn_history (", debug_target.to_shortname);
3904 target_debug_print_struct_target_ops_p (&debug_target);
3905 fputs_unfiltered (", ", gdb_stdlog);
3906 target_debug_print_int (arg1);
3907 fputs_unfiltered (", ", gdb_stdlog);
9a24775b 3908 target_debug_print_gdb_disassembly_flags (arg2);
a7068b60
TT
3909 fputs_unfiltered (")\n", gdb_stdlog);
3910}
3911
8444ab58 3912static void
9a24775b 3913delegate_insn_history_from (struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
8444ab58
TT
3914{
3915 self = self->beneath;
3916 self->to_insn_history_from (self, arg1, arg2, arg3);
3917}
3918
3919static void
9a24775b 3920tdefault_insn_history_from (struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
8444ab58
TT
3921{
3922 tcomplain ();
3923}
3924
a7068b60 3925static void
9a24775b 3926debug_insn_history_from (struct target_ops *self, ULONGEST arg1, int arg2, gdb_disassembly_flags arg3)
a7068b60
TT
3927{
3928 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insn_history_from (...)\n", debug_target.to_shortname);
3929 debug_target.to_insn_history_from (&debug_target, arg1, arg2, arg3);
3930 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insn_history_from (", debug_target.to_shortname);
3931 target_debug_print_struct_target_ops_p (&debug_target);
3932 fputs_unfiltered (", ", gdb_stdlog);
3933 target_debug_print_ULONGEST (arg1);
3934 fputs_unfiltered (", ", gdb_stdlog);
3935 target_debug_print_int (arg2);
3936 fputs_unfiltered (", ", gdb_stdlog);
9a24775b 3937 target_debug_print_gdb_disassembly_flags (arg3);
a7068b60
TT
3938 fputs_unfiltered (")\n", gdb_stdlog);
3939}
3940
c29302cc 3941static void
9a24775b 3942delegate_insn_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
c29302cc
TT
3943{
3944 self = self->beneath;
3945 self->to_insn_history_range (self, arg1, arg2, arg3);
3946}
3947
3948static void
9a24775b 3949tdefault_insn_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
c29302cc
TT
3950{
3951 tcomplain ();
3952}
3953
a7068b60 3954static void
9a24775b 3955debug_insn_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, gdb_disassembly_flags arg3)
a7068b60
TT
3956{
3957 fprintf_unfiltered (gdb_stdlog, "-> %s->to_insn_history_range (...)\n", debug_target.to_shortname);
3958 debug_target.to_insn_history_range (&debug_target, arg1, arg2, arg3);
3959 fprintf_unfiltered (gdb_stdlog, "<- %s->to_insn_history_range (", debug_target.to_shortname);
3960 target_debug_print_struct_target_ops_p (&debug_target);
3961 fputs_unfiltered (", ", gdb_stdlog);
3962 target_debug_print_ULONGEST (arg1);
3963 fputs_unfiltered (", ", gdb_stdlog);
3964 target_debug_print_ULONGEST (arg2);
3965 fputs_unfiltered (", ", gdb_stdlog);
9a24775b 3966 target_debug_print_gdb_disassembly_flags (arg3);
a7068b60
TT
3967 fputs_unfiltered (")\n", gdb_stdlog);
3968}
3969
170049d4
TT
3970static void
3971delegate_call_history (struct target_ops *self, int arg1, int arg2)
3972{
3973 self = self->beneath;
3974 self->to_call_history (self, arg1, arg2);
3975}
3976
3977static void
3978tdefault_call_history (struct target_ops *self, int arg1, int arg2)
3979{
3980 tcomplain ();
3981}
3982
a7068b60
TT
3983static void
3984debug_call_history (struct target_ops *self, int arg1, int arg2)
3985{
3986 fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history (...)\n", debug_target.to_shortname);
3987 debug_target.to_call_history (&debug_target, arg1, arg2);
3988 fprintf_unfiltered (gdb_stdlog, "<- %s->to_call_history (", debug_target.to_shortname);
3989 target_debug_print_struct_target_ops_p (&debug_target);
3990 fputs_unfiltered (", ", gdb_stdlog);
3991 target_debug_print_int (arg1);
3992 fputs_unfiltered (", ", gdb_stdlog);
3993 target_debug_print_int (arg2);
3994 fputs_unfiltered (")\n", gdb_stdlog);
3995}
3996
16fc27d6
TT
3997static void
3998delegate_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
3999{
4000 self = self->beneath;
4001 self->to_call_history_from (self, arg1, arg2, arg3);
4002}
4003
4004static void
4005tdefault_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
4006{
4007 tcomplain ();
4008}
4009
a7068b60
TT
4010static void
4011debug_call_history_from (struct target_ops *self, ULONGEST arg1, int arg2, int arg3)
4012{
4013 fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history_from (...)\n", debug_target.to_shortname);
4014 debug_target.to_call_history_from (&debug_target, arg1, arg2, arg3);
4015 fprintf_unfiltered (gdb_stdlog, "<- %s->to_call_history_from (", debug_target.to_shortname);
4016 target_debug_print_struct_target_ops_p (&debug_target);
4017 fputs_unfiltered (", ", gdb_stdlog);
4018 target_debug_print_ULONGEST (arg1);
4019 fputs_unfiltered (", ", gdb_stdlog);
4020 target_debug_print_int (arg2);
4021 fputs_unfiltered (", ", gdb_stdlog);
4022 target_debug_print_int (arg3);
4023 fputs_unfiltered (")\n", gdb_stdlog);
4024}
4025
115d9817
TT
4026static void
4027delegate_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
4028{
4029 self = self->beneath;
4030 self->to_call_history_range (self, arg1, arg2, arg3);
4031}
4032
4033static void
4034tdefault_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
4035{
4036 tcomplain ();
4037}
4038
a7068b60
TT
4039static void
4040debug_call_history_range (struct target_ops *self, ULONGEST arg1, ULONGEST arg2, int arg3)
4041{
4042 fprintf_unfiltered (gdb_stdlog, "-> %s->to_call_history_range (...)\n", debug_target.to_shortname);
4043 debug_target.to_call_history_range (&debug_target, arg1, arg2, arg3);
4044 fprintf_unfiltered (gdb_stdlog, "<- %s->to_call_history_range (", debug_target.to_shortname);
4045 target_debug_print_struct_target_ops_p (&debug_target);
4046 fputs_unfiltered (", ", gdb_stdlog);
4047 target_debug_print_ULONGEST (arg1);
4048 fputs_unfiltered (", ", gdb_stdlog);
4049 target_debug_print_ULONGEST (arg2);
4050 fputs_unfiltered (", ", gdb_stdlog);
4051 target_debug_print_int (arg3);
4052 fputs_unfiltered (")\n", gdb_stdlog);
4053}
4054
0de91722
TT
4055static int
4056delegate_augmented_libraries_svr4_read (struct target_ops *self)
4057{
4058 self = self->beneath;
4059 return self->to_augmented_libraries_svr4_read (self);
4060}
4061
4062static int
4063tdefault_augmented_libraries_svr4_read (struct target_ops *self)
4064{
4065 return 0;
4066}
4067
a7068b60
TT
4068static int
4069debug_augmented_libraries_svr4_read (struct target_ops *self)
4070{
4071 int result;
4072 fprintf_unfiltered (gdb_stdlog, "-> %s->to_augmented_libraries_svr4_read (...)\n", debug_target.to_shortname);
4073 result = debug_target.to_augmented_libraries_svr4_read (&debug_target);
4074 fprintf_unfiltered (gdb_stdlog, "<- %s->to_augmented_libraries_svr4_read (", debug_target.to_shortname);
4075 target_debug_print_struct_target_ops_p (&debug_target);
4076 fputs_unfiltered (") = ", gdb_stdlog);
4077 target_debug_print_int (result);
4078 fputs_unfiltered ("\n", gdb_stdlog);
4079 return result;
4080}
4081
ac01945b
TT
4082static const struct frame_unwind *
4083delegate_get_unwinder (struct target_ops *self)
4084{
4085 self = self->beneath;
4086 return self->to_get_unwinder (self);
4087}
4088
4089static const struct frame_unwind *
4090tdefault_get_unwinder (struct target_ops *self)
4091{
4092 return NULL;
4093}
4094
a7068b60
TT
4095static const struct frame_unwind *
4096debug_get_unwinder (struct target_ops *self)
4097{
4098 const struct frame_unwind * result;
4099 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_unwinder (...)\n", debug_target.to_shortname);
4100 result = debug_target.to_get_unwinder (&debug_target);
4101 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_unwinder (", debug_target.to_shortname);
4102 target_debug_print_struct_target_ops_p (&debug_target);
4103 fputs_unfiltered (") = ", gdb_stdlog);
4104 target_debug_print_const_struct_frame_unwind_p (result);
4105 fputs_unfiltered ("\n", gdb_stdlog);
4106 return result;
4107}
4108
ac01945b
TT
4109static const struct frame_unwind *
4110delegate_get_tailcall_unwinder (struct target_ops *self)
4111{
4112 self = self->beneath;
4113 return self->to_get_tailcall_unwinder (self);
4114}
4115
4116static const struct frame_unwind *
4117tdefault_get_tailcall_unwinder (struct target_ops *self)
4118{
4119 return NULL;
4120}
4121
a7068b60
TT
4122static const struct frame_unwind *
4123debug_get_tailcall_unwinder (struct target_ops *self)
4124{
4125 const struct frame_unwind * result;
4126 fprintf_unfiltered (gdb_stdlog, "-> %s->to_get_tailcall_unwinder (...)\n", debug_target.to_shortname);
4127 result = debug_target.to_get_tailcall_unwinder (&debug_target);
4128 fprintf_unfiltered (gdb_stdlog, "<- %s->to_get_tailcall_unwinder (", debug_target.to_shortname);
4129 target_debug_print_struct_target_ops_p (&debug_target);
4130 fputs_unfiltered (") = ", gdb_stdlog);
4131 target_debug_print_const_struct_frame_unwind_p (result);
4132 fputs_unfiltered ("\n", gdb_stdlog);
4133 return result;
4134}
4135
5fff78c4
MM
4136static void
4137delegate_prepare_to_generate_core (struct target_ops *self)
4138{
4139 self = self->beneath;
4140 self->to_prepare_to_generate_core (self);
4141}
4142
4143static void
4144tdefault_prepare_to_generate_core (struct target_ops *self)
4145{
4146}
4147
a7068b60
TT
4148static void
4149debug_prepare_to_generate_core (struct target_ops *self)
4150{
4151 fprintf_unfiltered (gdb_stdlog, "-> %s->to_prepare_to_generate_core (...)\n", debug_target.to_shortname);
4152 debug_target.to_prepare_to_generate_core (&debug_target);
4153 fprintf_unfiltered (gdb_stdlog, "<- %s->to_prepare_to_generate_core (", debug_target.to_shortname);
4154 target_debug_print_struct_target_ops_p (&debug_target);
4155 fputs_unfiltered (")\n", gdb_stdlog);
4156}
4157
5fff78c4
MM
4158static void
4159delegate_done_generating_core (struct target_ops *self)
4160{
4161 self = self->beneath;
4162 self->to_done_generating_core (self);
4163}
4164
4165static void
4166tdefault_done_generating_core (struct target_ops *self)
4167{
4168}
4169
a7068b60
TT
4170static void
4171debug_done_generating_core (struct target_ops *self)
4172{
4173 fprintf_unfiltered (gdb_stdlog, "-> %s->to_done_generating_core (...)\n", debug_target.to_shortname);
4174 debug_target.to_done_generating_core (&debug_target);
4175 fprintf_unfiltered (gdb_stdlog, "<- %s->to_done_generating_core (", debug_target.to_shortname);
4176 target_debug_print_struct_target_ops_p (&debug_target);
4177 fputs_unfiltered (")\n", gdb_stdlog);
4178}
4179
1101cb7b
TT
4180static void
4181install_delegators (struct target_ops *ops)
4182{
bebd3233
TT
4183 if (ops->to_post_attach == NULL)
4184 ops->to_post_attach = delegate_post_attach;
09da0d0a
TT
4185 if (ops->to_detach == NULL)
4186 ops->to_detach = delegate_detach;
86a0854a
TT
4187 if (ops->to_disconnect == NULL)
4188 ops->to_disconnect = delegate_disconnect;
6b84065d
TT
4189 if (ops->to_resume == NULL)
4190 ops->to_resume = delegate_resume;
85ad3aaf
PA
4191 if (ops->to_commit_resume == NULL)
4192 ops->to_commit_resume = delegate_commit_resume;
6b84065d
TT
4193 if (ops->to_wait == NULL)
4194 ops->to_wait = delegate_wait;
ad5989bd
TT
4195 if (ops->to_fetch_registers == NULL)
4196 ops->to_fetch_registers = delegate_fetch_registers;
6b84065d
TT
4197 if (ops->to_store_registers == NULL)
4198 ops->to_store_registers = delegate_store_registers;
6c628163
TT
4199 if (ops->to_prepare_to_store == NULL)
4200 ops->to_prepare_to_store = delegate_prepare_to_store;
f86e59b2
TT
4201 if (ops->to_files_info == NULL)
4202 ops->to_files_info = delegate_files_info;
6b84065d
TT
4203 if (ops->to_insert_breakpoint == NULL)
4204 ops->to_insert_breakpoint = delegate_insert_breakpoint;
4205 if (ops->to_remove_breakpoint == NULL)
4206 ops->to_remove_breakpoint = delegate_remove_breakpoint;
1cf4d951
PA
4207 if (ops->to_stopped_by_sw_breakpoint == NULL)
4208 ops->to_stopped_by_sw_breakpoint = delegate_stopped_by_sw_breakpoint;
4209 if (ops->to_supports_stopped_by_sw_breakpoint == NULL)
4210 ops->to_supports_stopped_by_sw_breakpoint = delegate_supports_stopped_by_sw_breakpoint;
4211 if (ops->to_stopped_by_hw_breakpoint == NULL)
4212 ops->to_stopped_by_hw_breakpoint = delegate_stopped_by_hw_breakpoint;
4213 if (ops->to_supports_stopped_by_hw_breakpoint == NULL)
4214 ops->to_supports_stopped_by_hw_breakpoint = delegate_supports_stopped_by_hw_breakpoint;
52b51d06
TT
4215 if (ops->to_can_use_hw_breakpoint == NULL)
4216 ops->to_can_use_hw_breakpoint = delegate_can_use_hw_breakpoint;
a134316b
TT
4217 if (ops->to_ranged_break_num_registers == NULL)
4218 ops->to_ranged_break_num_registers = delegate_ranged_break_num_registers;
61b371f9
TT
4219 if (ops->to_insert_hw_breakpoint == NULL)
4220 ops->to_insert_hw_breakpoint = delegate_insert_hw_breakpoint;
418dabac
TT
4221 if (ops->to_remove_hw_breakpoint == NULL)
4222 ops->to_remove_hw_breakpoint = delegate_remove_hw_breakpoint;
61dd109f
TT
4223 if (ops->to_remove_watchpoint == NULL)
4224 ops->to_remove_watchpoint = delegate_remove_watchpoint;
016facd4
TT
4225 if (ops->to_insert_watchpoint == NULL)
4226 ops->to_insert_watchpoint = delegate_insert_watchpoint;
cd4ae029
TT
4227 if (ops->to_insert_mask_watchpoint == NULL)
4228 ops->to_insert_mask_watchpoint = delegate_insert_mask_watchpoint;
8b1c364c
TT
4229 if (ops->to_remove_mask_watchpoint == NULL)
4230 ops->to_remove_mask_watchpoint = delegate_remove_mask_watchpoint;
6b84065d
TT
4231 if (ops->to_stopped_by_watchpoint == NULL)
4232 ops->to_stopped_by_watchpoint = delegate_stopped_by_watchpoint;
4233 if (ops->to_stopped_data_address == NULL)
4234 ops->to_stopped_data_address = delegate_stopped_data_address;
65f160a9
TT
4235 if (ops->to_watchpoint_addr_within_range == NULL)
4236 ops->to_watchpoint_addr_within_range = delegate_watchpoint_addr_within_range;
d03655e4
TT
4237 if (ops->to_region_ok_for_hw_watchpoint == NULL)
4238 ops->to_region_ok_for_hw_watchpoint = delegate_region_ok_for_hw_watchpoint;
77cdffe9
TT
4239 if (ops->to_can_accel_watchpoint_condition == NULL)
4240 ops->to_can_accel_watchpoint_condition = delegate_can_accel_watchpoint_condition;
6c7e5e5c
TT
4241 if (ops->to_masked_watch_num_registers == NULL)
4242 ops->to_masked_watch_num_registers = delegate_masked_watch_num_registers;
750ce8d1
YQ
4243 if (ops->to_can_do_single_step == NULL)
4244 ops->to_can_do_single_step = delegate_can_do_single_step;
0343661d
TT
4245 if (ops->to_terminal_init == NULL)
4246 ops->to_terminal_init = delegate_terminal_init;
ddeaacc9
TT
4247 if (ops->to_terminal_inferior == NULL)
4248 ops->to_terminal_inferior = delegate_terminal_inferior;
74fcbef9
TT
4249 if (ops->to_terminal_ours_for_output == NULL)
4250 ops->to_terminal_ours_for_output = delegate_terminal_ours_for_output;
e4a733f1
TT
4251 if (ops->to_terminal_ours == NULL)
4252 ops->to_terminal_ours = delegate_terminal_ours;
e19e919f
TT
4253 if (ops->to_terminal_info == NULL)
4254 ops->to_terminal_info = delegate_terminal_info;
423a4807
TT
4255 if (ops->to_kill == NULL)
4256 ops->to_kill = delegate_kill;
7634da87
TT
4257 if (ops->to_load == NULL)
4258 ops->to_load = delegate_load;
340ba4bf
TT
4259 if (ops->to_post_startup_inferior == NULL)
4260 ops->to_post_startup_inferior = delegate_post_startup_inferior;
5958ebeb
TT
4261 if (ops->to_insert_fork_catchpoint == NULL)
4262 ops->to_insert_fork_catchpoint = delegate_insert_fork_catchpoint;
e1a21fb7
TT
4263 if (ops->to_remove_fork_catchpoint == NULL)
4264 ops->to_remove_fork_catchpoint = delegate_remove_fork_catchpoint;
7e18a8dc
TT
4265 if (ops->to_insert_vfork_catchpoint == NULL)
4266 ops->to_insert_vfork_catchpoint = delegate_insert_vfork_catchpoint;
95c3375e
TT
4267 if (ops->to_remove_vfork_catchpoint == NULL)
4268 ops->to_remove_vfork_catchpoint = delegate_remove_vfork_catchpoint;
098dba18
TT
4269 if (ops->to_follow_fork == NULL)
4270 ops->to_follow_fork = delegate_follow_fork;
62f64d7a
TT
4271 if (ops->to_insert_exec_catchpoint == NULL)
4272 ops->to_insert_exec_catchpoint = delegate_insert_exec_catchpoint;
cda0f38c
TT
4273 if (ops->to_remove_exec_catchpoint == NULL)
4274 ops->to_remove_exec_catchpoint = delegate_remove_exec_catchpoint;
94585166
DB
4275 if (ops->to_follow_exec == NULL)
4276 ops->to_follow_exec = delegate_follow_exec;
6a9fa051
TT
4277 if (ops->to_set_syscall_catchpoint == NULL)
4278 ops->to_set_syscall_catchpoint = delegate_set_syscall_catchpoint;
0db88c1d
TT
4279 if (ops->to_has_exited == NULL)
4280 ops->to_has_exited = delegate_has_exited;
8d657035
TT
4281 if (ops->to_mourn_inferior == NULL)
4282 ops->to_mourn_inferior = delegate_mourn_inferior;
e88ef65c
TT
4283 if (ops->to_can_run == NULL)
4284 ops->to_can_run = delegate_can_run;
035cad7f
TT
4285 if (ops->to_pass_signals == NULL)
4286 ops->to_pass_signals = delegate_pass_signals;
7d4f8efa
TT
4287 if (ops->to_program_signals == NULL)
4288 ops->to_program_signals = delegate_program_signals;
cbffc065
TT
4289 if (ops->to_thread_alive == NULL)
4290 ops->to_thread_alive = delegate_thread_alive;
e8032dde
PA
4291 if (ops->to_update_thread_list == NULL)
4292 ops->to_update_thread_list = delegate_update_thread_list;
770234d3
TT
4293 if (ops->to_pid_to_str == NULL)
4294 ops->to_pid_to_str = delegate_pid_to_str;
4a7e6dda
TT
4295 if (ops->to_extra_thread_info == NULL)
4296 ops->to_extra_thread_info = delegate_extra_thread_info;
825828fc
TT
4297 if (ops->to_thread_name == NULL)
4298 ops->to_thread_name = delegate_thread_name;
e04ee09e
KB
4299 if (ops->to_thread_handle_to_thread_info == NULL)
4300 ops->to_thread_handle_to_thread_info = delegate_thread_handle_to_thread_info;
46ee7e8d
TT
4301 if (ops->to_stop == NULL)
4302 ops->to_stop = delegate_stop;
bfedc46a
PA
4303 if (ops->to_interrupt == NULL)
4304 ops->to_interrupt = delegate_interrupt;
93692b58
PA
4305 if (ops->to_pass_ctrlc == NULL)
4306 ops->to_pass_ctrlc = delegate_pass_ctrlc;
a53f3625
TT
4307 if (ops->to_rcmd == NULL)
4308 ops->to_rcmd = delegate_rcmd;
830ca330
TT
4309 if (ops->to_pid_to_exec_file == NULL)
4310 ops->to_pid_to_exec_file = delegate_pid_to_exec_file;
d9cb0195
TT
4311 if (ops->to_log_command == NULL)
4312 ops->to_log_command = delegate_log_command;
7e35c012
TT
4313 if (ops->to_get_section_table == NULL)
4314 ops->to_get_section_table = delegate_get_section_table;
6b84065d
TT
4315 if (ops->to_can_async_p == NULL)
4316 ops->to_can_async_p = delegate_can_async_p;
4317 if (ops->to_is_async_p == NULL)
4318 ops->to_is_async_p = delegate_is_async_p;
4319 if (ops->to_async == NULL)
4320 ops->to_async = delegate_async;
65706a29
PA
4321 if (ops->to_thread_events == NULL)
4322 ops->to_thread_events = delegate_thread_events;
b3ccfe11
TT
4323 if (ops->to_supports_non_stop == NULL)
4324 ops->to_supports_non_stop = delegate_supports_non_stop;
fbea99ea
PA
4325 if (ops->to_always_non_stop_p == NULL)
4326 ops->to_always_non_stop_p = delegate_always_non_stop_p;
0b5a2719
TT
4327 if (ops->to_find_memory_regions == NULL)
4328 ops->to_find_memory_regions = delegate_find_memory_regions;
16f796b1
TT
4329 if (ops->to_make_corefile_notes == NULL)
4330 ops->to_make_corefile_notes = delegate_make_corefile_notes;
3dbafbbb
TT
4331 if (ops->to_get_bookmark == NULL)
4332 ops->to_get_bookmark = delegate_get_bookmark;
9bb9d61d
TT
4333 if (ops->to_goto_bookmark == NULL)
4334 ops->to_goto_bookmark = delegate_goto_bookmark;
f0f9ff95
TT
4335 if (ops->to_get_thread_local_address == NULL)
4336 ops->to_get_thread_local_address = delegate_get_thread_local_address;
6b84065d
TT
4337 if (ops->to_xfer_partial == NULL)
4338 ops->to_xfer_partial = delegate_xfer_partial;
09c98b44
DB
4339 if (ops->to_get_memory_xfer_limit == NULL)
4340 ops->to_get_memory_xfer_limit = delegate_get_memory_xfer_limit;
6b2c5a57
TT
4341 if (ops->to_memory_map == NULL)
4342 ops->to_memory_map = delegate_memory_map;
e8a6c6ac
TT
4343 if (ops->to_flash_erase == NULL)
4344 ops->to_flash_erase = delegate_flash_erase;
f6fb2925
TT
4345 if (ops->to_flash_done == NULL)
4346 ops->to_flash_done = delegate_flash_done;
2117c711
TT
4347 if (ops->to_read_description == NULL)
4348 ops->to_read_description = delegate_read_description;
4229b31d
TT
4349 if (ops->to_get_ada_task_ptid == NULL)
4350 ops->to_get_ada_task_ptid = delegate_get_ada_task_ptid;
8de71aab
TT
4351 if (ops->to_auxv_parse == NULL)
4352 ops->to_auxv_parse = delegate_auxv_parse;
58a5184e
TT
4353 if (ops->to_search_memory == NULL)
4354 ops->to_search_memory = delegate_search_memory;
53e1cfc7
TT
4355 if (ops->to_can_execute_reverse == NULL)
4356 ops->to_can_execute_reverse = delegate_can_execute_reverse;
fe31bf5b
TT
4357 if (ops->to_execution_direction == NULL)
4358 ops->to_execution_direction = delegate_execution_direction;
a7304748
TT
4359 if (ops->to_supports_multi_process == NULL)
4360 ops->to_supports_multi_process = delegate_supports_multi_process;
aab1b22d
TT
4361 if (ops->to_supports_enable_disable_tracepoint == NULL)
4362 ops->to_supports_enable_disable_tracepoint = delegate_supports_enable_disable_tracepoint;
9409d39e
TT
4363 if (ops->to_supports_string_tracing == NULL)
4364 ops->to_supports_string_tracing = delegate_supports_string_tracing;
ccfde2a0
TT
4365 if (ops->to_supports_evaluation_of_breakpoint_conditions == NULL)
4366 ops->to_supports_evaluation_of_breakpoint_conditions = delegate_supports_evaluation_of_breakpoint_conditions;
843f59ed
TT
4367 if (ops->to_can_run_breakpoint_commands == NULL)
4368 ops->to_can_run_breakpoint_commands = delegate_can_run_breakpoint_commands;
43eba180
TT
4369 if (ops->to_thread_architecture == NULL)
4370 ops->to_thread_architecture = delegate_thread_architecture;
8eaff7cd
TT
4371 if (ops->to_thread_address_space == NULL)
4372 ops->to_thread_address_space = delegate_thread_address_space;
4bd7dc42
GB
4373 if (ops->to_filesystem_is_local == NULL)
4374 ops->to_filesystem_is_local = delegate_filesystem_is_local;
5536135b
TT
4375 if (ops->to_trace_init == NULL)
4376 ops->to_trace_init = delegate_trace_init;
9a980a22
TT
4377 if (ops->to_download_tracepoint == NULL)
4378 ops->to_download_tracepoint = delegate_download_tracepoint;
719acc4a
TT
4379 if (ops->to_can_download_tracepoint == NULL)
4380 ops->to_can_download_tracepoint = delegate_can_download_tracepoint;
94eb98b9
TT
4381 if (ops->to_download_trace_state_variable == NULL)
4382 ops->to_download_trace_state_variable = delegate_download_trace_state_variable;
151f70f1
TT
4383 if (ops->to_enable_tracepoint == NULL)
4384 ops->to_enable_tracepoint = delegate_enable_tracepoint;
05c41993
TT
4385 if (ops->to_disable_tracepoint == NULL)
4386 ops->to_disable_tracepoint = delegate_disable_tracepoint;
86dd181d
TT
4387 if (ops->to_trace_set_readonly_regions == NULL)
4388 ops->to_trace_set_readonly_regions = delegate_trace_set_readonly_regions;
25da2e80
TT
4389 if (ops->to_trace_start == NULL)
4390 ops->to_trace_start = delegate_trace_start;
4072d4ff
TT
4391 if (ops->to_get_trace_status == NULL)
4392 ops->to_get_trace_status = delegate_get_trace_status;
6fea14cd
TT
4393 if (ops->to_get_tracepoint_status == NULL)
4394 ops->to_get_tracepoint_status = delegate_get_tracepoint_status;
e51c07ea
TT
4395 if (ops->to_trace_stop == NULL)
4396 ops->to_trace_stop = delegate_trace_stop;
afc94e66
TT
4397 if (ops->to_trace_find == NULL)
4398 ops->to_trace_find = delegate_trace_find;
959bcd0b
TT
4399 if (ops->to_get_trace_state_variable_value == NULL)
4400 ops->to_get_trace_state_variable_value = delegate_get_trace_state_variable_value;
a2e6c147
TT
4401 if (ops->to_save_trace_data == NULL)
4402 ops->to_save_trace_data = delegate_save_trace_data;
1e949b00
TT
4403 if (ops->to_upload_tracepoints == NULL)
4404 ops->to_upload_tracepoints = delegate_upload_tracepoints;
08120467
TT
4405 if (ops->to_upload_trace_state_variables == NULL)
4406 ops->to_upload_trace_state_variables = delegate_upload_trace_state_variables;
ace92e7d
TT
4407 if (ops->to_get_raw_trace_data == NULL)
4408 ops->to_get_raw_trace_data = delegate_get_raw_trace_data;
9249843f
TT
4409 if (ops->to_get_min_fast_tracepoint_insn_len == NULL)
4410 ops->to_get_min_fast_tracepoint_insn_len = delegate_get_min_fast_tracepoint_insn_len;
0bcfeddf
TT
4411 if (ops->to_set_disconnected_tracing == NULL)
4412 ops->to_set_disconnected_tracing = delegate_set_disconnected_tracing;
8d526939
TT
4413 if (ops->to_set_circular_trace_buffer == NULL)
4414 ops->to_set_circular_trace_buffer = delegate_set_circular_trace_buffer;
91df8d1d
TT
4415 if (ops->to_set_trace_buffer_size == NULL)
4416 ops->to_set_trace_buffer_size = delegate_set_trace_buffer_size;
8586ccaa
TT
4417 if (ops->to_set_trace_notes == NULL)
4418 ops->to_set_trace_notes = delegate_set_trace_notes;
9e538d0d
TT
4419 if (ops->to_core_of_thread == NULL)
4420 ops->to_core_of_thread = delegate_core_of_thread;
eb276a6b
TT
4421 if (ops->to_verify_memory == NULL)
4422 ops->to_verify_memory = delegate_verify_memory;
22bcceee
TT
4423 if (ops->to_get_tib_address == NULL)
4424 ops->to_get_tib_address = delegate_get_tib_address;
dcd6917f
TT
4425 if (ops->to_set_permissions == NULL)
4426 ops->to_set_permissions = delegate_set_permissions;
4c3e4425
TT
4427 if (ops->to_static_tracepoint_marker_at == NULL)
4428 ops->to_static_tracepoint_marker_at = delegate_static_tracepoint_marker_at;
d6522a22
TT
4429 if (ops->to_static_tracepoint_markers_by_strid == NULL)
4430 ops->to_static_tracepoint_markers_by_strid = delegate_static_tracepoint_markers_by_strid;
92155eeb
TT
4431 if (ops->to_traceframe_info == NULL)
4432 ops->to_traceframe_info = delegate_traceframe_info;
d9db5b21
TT
4433 if (ops->to_use_agent == NULL)
4434 ops->to_use_agent = delegate_use_agent;
9a7d8b48
TT
4435 if (ops->to_can_use_agent == NULL)
4436 ops->to_can_use_agent = delegate_can_use_agent;
46917d26
TT
4437 if (ops->to_supports_btrace == NULL)
4438 ops->to_supports_btrace = delegate_supports_btrace;
6dc7fcf4
TT
4439 if (ops->to_enable_btrace == NULL)
4440 ops->to_enable_btrace = delegate_enable_btrace;
8dc292d3
TT
4441 if (ops->to_disable_btrace == NULL)
4442 ops->to_disable_btrace = delegate_disable_btrace;
9ace480d
TT
4443 if (ops->to_teardown_btrace == NULL)
4444 ops->to_teardown_btrace = delegate_teardown_btrace;
eb5b20d4
TT
4445 if (ops->to_read_btrace == NULL)
4446 ops->to_read_btrace = delegate_read_btrace;
f4abbc16
MM
4447 if (ops->to_btrace_conf == NULL)
4448 ops->to_btrace_conf = delegate_btrace_conf;
b158a20f
TW
4449 if (ops->to_record_method == NULL)
4450 ops->to_record_method = delegate_record_method;
ee97f592
TT
4451 if (ops->to_stop_recording == NULL)
4452 ops->to_stop_recording = delegate_stop_recording;
a432721e
TT
4453 if (ops->to_info_record == NULL)
4454 ops->to_info_record = delegate_info_record;
f09e2107
TT
4455 if (ops->to_save_record == NULL)
4456 ops->to_save_record = delegate_save_record;
07366925
TT
4457 if (ops->to_delete_record == NULL)
4458 ops->to_delete_record = delegate_delete_record;
dd2e9d25
TT
4459 if (ops->to_record_is_replaying == NULL)
4460 ops->to_record_is_replaying = delegate_record_is_replaying;
7ff27e9b
MM
4461 if (ops->to_record_will_replay == NULL)
4462 ops->to_record_will_replay = delegate_record_will_replay;
797094dd
MM
4463 if (ops->to_record_stop_replaying == NULL)
4464 ops->to_record_stop_replaying = delegate_record_stop_replaying;
671e76cc
TT
4465 if (ops->to_goto_record_begin == NULL)
4466 ops->to_goto_record_begin = delegate_goto_record_begin;
e9179bb3
TT
4467 if (ops->to_goto_record_end == NULL)
4468 ops->to_goto_record_end = delegate_goto_record_end;
05969c84
TT
4469 if (ops->to_goto_record == NULL)
4470 ops->to_goto_record = delegate_goto_record;
3679abfa
TT
4471 if (ops->to_insn_history == NULL)
4472 ops->to_insn_history = delegate_insn_history;
8444ab58
TT
4473 if (ops->to_insn_history_from == NULL)
4474 ops->to_insn_history_from = delegate_insn_history_from;
c29302cc
TT
4475 if (ops->to_insn_history_range == NULL)
4476 ops->to_insn_history_range = delegate_insn_history_range;
170049d4
TT
4477 if (ops->to_call_history == NULL)
4478 ops->to_call_history = delegate_call_history;
16fc27d6
TT
4479 if (ops->to_call_history_from == NULL)
4480 ops->to_call_history_from = delegate_call_history_from;
115d9817
TT
4481 if (ops->to_call_history_range == NULL)
4482 ops->to_call_history_range = delegate_call_history_range;
0de91722
TT
4483 if (ops->to_augmented_libraries_svr4_read == NULL)
4484 ops->to_augmented_libraries_svr4_read = delegate_augmented_libraries_svr4_read;
ac01945b
TT
4485 if (ops->to_get_unwinder == NULL)
4486 ops->to_get_unwinder = delegate_get_unwinder;
4487 if (ops->to_get_tailcall_unwinder == NULL)
4488 ops->to_get_tailcall_unwinder = delegate_get_tailcall_unwinder;
5fff78c4
MM
4489 if (ops->to_prepare_to_generate_core == NULL)
4490 ops->to_prepare_to_generate_core = delegate_prepare_to_generate_core;
4491 if (ops->to_done_generating_core == NULL)
4492 ops->to_done_generating_core = delegate_done_generating_core;
1101cb7b
TT
4493}
4494
4495static void
4496install_dummy_methods (struct target_ops *ops)
4497{
bebd3233 4498 ops->to_post_attach = tdefault_post_attach;
09da0d0a 4499 ops->to_detach = tdefault_detach;
86a0854a 4500 ops->to_disconnect = tdefault_disconnect;
6b84065d 4501 ops->to_resume = tdefault_resume;
85ad3aaf 4502 ops->to_commit_resume = tdefault_commit_resume;
0b333c5e 4503 ops->to_wait = default_target_wait;
ad5989bd 4504 ops->to_fetch_registers = tdefault_fetch_registers;
6b84065d 4505 ops->to_store_registers = tdefault_store_registers;
6c628163 4506 ops->to_prepare_to_store = tdefault_prepare_to_store;
f86e59b2 4507 ops->to_files_info = tdefault_files_info;
6b84065d
TT
4508 ops->to_insert_breakpoint = memory_insert_breakpoint;
4509 ops->to_remove_breakpoint = memory_remove_breakpoint;
1cf4d951
PA
4510 ops->to_stopped_by_sw_breakpoint = tdefault_stopped_by_sw_breakpoint;
4511 ops->to_supports_stopped_by_sw_breakpoint = tdefault_supports_stopped_by_sw_breakpoint;
4512 ops->to_stopped_by_hw_breakpoint = tdefault_stopped_by_hw_breakpoint;
4513 ops->to_supports_stopped_by_hw_breakpoint = tdefault_supports_stopped_by_hw_breakpoint;
52b51d06 4514 ops->to_can_use_hw_breakpoint = tdefault_can_use_hw_breakpoint;
a134316b 4515 ops->to_ranged_break_num_registers = tdefault_ranged_break_num_registers;
61b371f9 4516 ops->to_insert_hw_breakpoint = tdefault_insert_hw_breakpoint;
418dabac 4517 ops->to_remove_hw_breakpoint = tdefault_remove_hw_breakpoint;
61dd109f 4518 ops->to_remove_watchpoint = tdefault_remove_watchpoint;
016facd4 4519 ops->to_insert_watchpoint = tdefault_insert_watchpoint;
cd4ae029 4520 ops->to_insert_mask_watchpoint = tdefault_insert_mask_watchpoint;
8b1c364c 4521 ops->to_remove_mask_watchpoint = tdefault_remove_mask_watchpoint;
6b84065d
TT
4522 ops->to_stopped_by_watchpoint = tdefault_stopped_by_watchpoint;
4523 ops->to_stopped_data_address = tdefault_stopped_data_address;
65f160a9 4524 ops->to_watchpoint_addr_within_range = default_watchpoint_addr_within_range;
d03655e4 4525 ops->to_region_ok_for_hw_watchpoint = default_region_ok_for_hw_watchpoint;
77cdffe9 4526 ops->to_can_accel_watchpoint_condition = tdefault_can_accel_watchpoint_condition;
6c7e5e5c 4527 ops->to_masked_watch_num_registers = tdefault_masked_watch_num_registers;
750ce8d1 4528 ops->to_can_do_single_step = tdefault_can_do_single_step;
0343661d 4529 ops->to_terminal_init = tdefault_terminal_init;
ddeaacc9 4530 ops->to_terminal_inferior = tdefault_terminal_inferior;
74fcbef9 4531 ops->to_terminal_ours_for_output = tdefault_terminal_ours_for_output;
e4a733f1 4532 ops->to_terminal_ours = tdefault_terminal_ours;
e19e919f 4533 ops->to_terminal_info = default_terminal_info;
423a4807 4534 ops->to_kill = tdefault_kill;
7634da87 4535 ops->to_load = tdefault_load;
340ba4bf 4536 ops->to_post_startup_inferior = tdefault_post_startup_inferior;
5958ebeb 4537 ops->to_insert_fork_catchpoint = tdefault_insert_fork_catchpoint;
e1a21fb7 4538 ops->to_remove_fork_catchpoint = tdefault_remove_fork_catchpoint;
7e18a8dc 4539 ops->to_insert_vfork_catchpoint = tdefault_insert_vfork_catchpoint;
95c3375e 4540 ops->to_remove_vfork_catchpoint = tdefault_remove_vfork_catchpoint;
098dba18 4541 ops->to_follow_fork = default_follow_fork;
62f64d7a 4542 ops->to_insert_exec_catchpoint = tdefault_insert_exec_catchpoint;
cda0f38c 4543 ops->to_remove_exec_catchpoint = tdefault_remove_exec_catchpoint;
94585166 4544 ops->to_follow_exec = tdefault_follow_exec;
6a9fa051 4545 ops->to_set_syscall_catchpoint = tdefault_set_syscall_catchpoint;
0db88c1d 4546 ops->to_has_exited = tdefault_has_exited;
8d657035 4547 ops->to_mourn_inferior = default_mourn_inferior;
e88ef65c 4548 ops->to_can_run = tdefault_can_run;
035cad7f 4549 ops->to_pass_signals = tdefault_pass_signals;
7d4f8efa 4550 ops->to_program_signals = tdefault_program_signals;
cbffc065 4551 ops->to_thread_alive = tdefault_thread_alive;
e8032dde 4552 ops->to_update_thread_list = tdefault_update_thread_list;
770234d3 4553 ops->to_pid_to_str = default_pid_to_str;
4a7e6dda 4554 ops->to_extra_thread_info = tdefault_extra_thread_info;
825828fc 4555 ops->to_thread_name = tdefault_thread_name;
e04ee09e 4556 ops->to_thread_handle_to_thread_info = tdefault_thread_handle_to_thread_info;
46ee7e8d 4557 ops->to_stop = tdefault_stop;
bfedc46a 4558 ops->to_interrupt = tdefault_interrupt;
93692b58 4559 ops->to_pass_ctrlc = default_target_pass_ctrlc;
a53f3625 4560 ops->to_rcmd = default_rcmd;
830ca330 4561 ops->to_pid_to_exec_file = tdefault_pid_to_exec_file;
d9cb0195 4562 ops->to_log_command = tdefault_log_command;
7e35c012 4563 ops->to_get_section_table = tdefault_get_section_table;
b3ccfe11
TT
4564 ops->to_can_async_p = tdefault_can_async_p;
4565 ops->to_is_async_p = tdefault_is_async_p;
6b84065d 4566 ops->to_async = tdefault_async;
65706a29 4567 ops->to_thread_events = tdefault_thread_events;
b3ccfe11 4568 ops->to_supports_non_stop = tdefault_supports_non_stop;
fbea99ea 4569 ops->to_always_non_stop_p = tdefault_always_non_stop_p;
0b5a2719 4570 ops->to_find_memory_regions = dummy_find_memory_regions;
16f796b1 4571 ops->to_make_corefile_notes = dummy_make_corefile_notes;
3dbafbbb 4572 ops->to_get_bookmark = tdefault_get_bookmark;
9bb9d61d 4573 ops->to_goto_bookmark = tdefault_goto_bookmark;
f0f9ff95 4574 ops->to_get_thread_local_address = tdefault_get_thread_local_address;
6b84065d 4575 ops->to_xfer_partial = tdefault_xfer_partial;
09c98b44 4576 ops->to_get_memory_xfer_limit = tdefault_get_memory_xfer_limit;
6b2c5a57 4577 ops->to_memory_map = tdefault_memory_map;
e8a6c6ac 4578 ops->to_flash_erase = tdefault_flash_erase;
f6fb2925 4579 ops->to_flash_done = tdefault_flash_done;
2117c711 4580 ops->to_read_description = tdefault_read_description;
4229b31d 4581 ops->to_get_ada_task_ptid = default_get_ada_task_ptid;
8de71aab 4582 ops->to_auxv_parse = default_auxv_parse;
58a5184e 4583 ops->to_search_memory = default_search_memory;
53e1cfc7 4584 ops->to_can_execute_reverse = tdefault_can_execute_reverse;
fe31bf5b 4585 ops->to_execution_direction = default_execution_direction;
a7304748 4586 ops->to_supports_multi_process = tdefault_supports_multi_process;
aab1b22d 4587 ops->to_supports_enable_disable_tracepoint = tdefault_supports_enable_disable_tracepoint;
9409d39e 4588 ops->to_supports_string_tracing = tdefault_supports_string_tracing;
ccfde2a0 4589 ops->to_supports_evaluation_of_breakpoint_conditions = tdefault_supports_evaluation_of_breakpoint_conditions;
843f59ed 4590 ops->to_can_run_breakpoint_commands = tdefault_can_run_breakpoint_commands;
43eba180 4591 ops->to_thread_architecture = default_thread_architecture;
8eaff7cd 4592 ops->to_thread_address_space = default_thread_address_space;
4bd7dc42 4593 ops->to_filesystem_is_local = tdefault_filesystem_is_local;
5536135b 4594 ops->to_trace_init = tdefault_trace_init;
9a980a22 4595 ops->to_download_tracepoint = tdefault_download_tracepoint;
719acc4a 4596 ops->to_can_download_tracepoint = tdefault_can_download_tracepoint;
94eb98b9 4597 ops->to_download_trace_state_variable = tdefault_download_trace_state_variable;
151f70f1 4598 ops->to_enable_tracepoint = tdefault_enable_tracepoint;
05c41993 4599 ops->to_disable_tracepoint = tdefault_disable_tracepoint;
86dd181d 4600 ops->to_trace_set_readonly_regions = tdefault_trace_set_readonly_regions;
25da2e80 4601 ops->to_trace_start = tdefault_trace_start;
4072d4ff 4602 ops->to_get_trace_status = tdefault_get_trace_status;
6fea14cd 4603 ops->to_get_tracepoint_status = tdefault_get_tracepoint_status;
e51c07ea 4604 ops->to_trace_stop = tdefault_trace_stop;
afc94e66 4605 ops->to_trace_find = tdefault_trace_find;
959bcd0b 4606 ops->to_get_trace_state_variable_value = tdefault_get_trace_state_variable_value;
a2e6c147 4607 ops->to_save_trace_data = tdefault_save_trace_data;
1e949b00 4608 ops->to_upload_tracepoints = tdefault_upload_tracepoints;
08120467 4609 ops->to_upload_trace_state_variables = tdefault_upload_trace_state_variables;
ace92e7d 4610 ops->to_get_raw_trace_data = tdefault_get_raw_trace_data;
9249843f 4611 ops->to_get_min_fast_tracepoint_insn_len = tdefault_get_min_fast_tracepoint_insn_len;
0bcfeddf 4612 ops->to_set_disconnected_tracing = tdefault_set_disconnected_tracing;
8d526939 4613 ops->to_set_circular_trace_buffer = tdefault_set_circular_trace_buffer;
91df8d1d 4614 ops->to_set_trace_buffer_size = tdefault_set_trace_buffer_size;
8586ccaa 4615 ops->to_set_trace_notes = tdefault_set_trace_notes;
9e538d0d 4616 ops->to_core_of_thread = tdefault_core_of_thread;
936d2992 4617 ops->to_verify_memory = default_verify_memory;
22bcceee 4618 ops->to_get_tib_address = tdefault_get_tib_address;
dcd6917f 4619 ops->to_set_permissions = tdefault_set_permissions;
4c3e4425 4620 ops->to_static_tracepoint_marker_at = tdefault_static_tracepoint_marker_at;
d6522a22 4621 ops->to_static_tracepoint_markers_by_strid = tdefault_static_tracepoint_markers_by_strid;
92155eeb 4622 ops->to_traceframe_info = tdefault_traceframe_info;
d9db5b21 4623 ops->to_use_agent = tdefault_use_agent;
9a7d8b48 4624 ops->to_can_use_agent = tdefault_can_use_agent;
46917d26 4625 ops->to_supports_btrace = tdefault_supports_btrace;
6dc7fcf4 4626 ops->to_enable_btrace = tdefault_enable_btrace;
8dc292d3 4627 ops->to_disable_btrace = tdefault_disable_btrace;
9ace480d 4628 ops->to_teardown_btrace = tdefault_teardown_btrace;
eb5b20d4 4629 ops->to_read_btrace = tdefault_read_btrace;
f4abbc16 4630 ops->to_btrace_conf = tdefault_btrace_conf;
b158a20f 4631 ops->to_record_method = tdefault_record_method;
ee97f592 4632 ops->to_stop_recording = tdefault_stop_recording;
a432721e 4633 ops->to_info_record = tdefault_info_record;
f09e2107 4634 ops->to_save_record = tdefault_save_record;
07366925 4635 ops->to_delete_record = tdefault_delete_record;
dd2e9d25 4636 ops->to_record_is_replaying = tdefault_record_is_replaying;
7ff27e9b 4637 ops->to_record_will_replay = tdefault_record_will_replay;
797094dd 4638 ops->to_record_stop_replaying = tdefault_record_stop_replaying;
671e76cc 4639 ops->to_goto_record_begin = tdefault_goto_record_begin;
e9179bb3 4640 ops->to_goto_record_end = tdefault_goto_record_end;
05969c84 4641 ops->to_goto_record = tdefault_goto_record;
3679abfa 4642 ops->to_insn_history = tdefault_insn_history;
8444ab58 4643 ops->to_insn_history_from = tdefault_insn_history_from;
c29302cc 4644 ops->to_insn_history_range = tdefault_insn_history_range;
170049d4 4645 ops->to_call_history = tdefault_call_history;
16fc27d6 4646 ops->to_call_history_from = tdefault_call_history_from;
115d9817 4647 ops->to_call_history_range = tdefault_call_history_range;
0de91722 4648 ops->to_augmented_libraries_svr4_read = tdefault_augmented_libraries_svr4_read;
ac01945b
TT
4649 ops->to_get_unwinder = tdefault_get_unwinder;
4650 ops->to_get_tailcall_unwinder = tdefault_get_tailcall_unwinder;
5fff78c4
MM
4651 ops->to_prepare_to_generate_core = tdefault_prepare_to_generate_core;
4652 ops->to_done_generating_core = tdefault_done_generating_core;
1101cb7b 4653}
a7068b60
TT
4654
4655static void
4656init_debug_target (struct target_ops *ops)
4657{
4658 ops->to_post_attach = debug_post_attach;
4659 ops->to_detach = debug_detach;
4660 ops->to_disconnect = debug_disconnect;
4661 ops->to_resume = debug_resume;
85ad3aaf 4662 ops->to_commit_resume = debug_commit_resume;
a7068b60
TT
4663 ops->to_wait = debug_wait;
4664 ops->to_fetch_registers = debug_fetch_registers;
4665 ops->to_store_registers = debug_store_registers;
4666 ops->to_prepare_to_store = debug_prepare_to_store;
4667 ops->to_files_info = debug_files_info;
4668 ops->to_insert_breakpoint = debug_insert_breakpoint;
4669 ops->to_remove_breakpoint = debug_remove_breakpoint;
1cf4d951
PA
4670 ops->to_stopped_by_sw_breakpoint = debug_stopped_by_sw_breakpoint;
4671 ops->to_supports_stopped_by_sw_breakpoint = debug_supports_stopped_by_sw_breakpoint;
4672 ops->to_stopped_by_hw_breakpoint = debug_stopped_by_hw_breakpoint;
4673 ops->to_supports_stopped_by_hw_breakpoint = debug_supports_stopped_by_hw_breakpoint;
a7068b60
TT
4674 ops->to_can_use_hw_breakpoint = debug_can_use_hw_breakpoint;
4675 ops->to_ranged_break_num_registers = debug_ranged_break_num_registers;
4676 ops->to_insert_hw_breakpoint = debug_insert_hw_breakpoint;
4677 ops->to_remove_hw_breakpoint = debug_remove_hw_breakpoint;
4678 ops->to_remove_watchpoint = debug_remove_watchpoint;
4679 ops->to_insert_watchpoint = debug_insert_watchpoint;
4680 ops->to_insert_mask_watchpoint = debug_insert_mask_watchpoint;
4681 ops->to_remove_mask_watchpoint = debug_remove_mask_watchpoint;
4682 ops->to_stopped_by_watchpoint = debug_stopped_by_watchpoint;
4683 ops->to_stopped_data_address = debug_stopped_data_address;
4684 ops->to_watchpoint_addr_within_range = debug_watchpoint_addr_within_range;
4685 ops->to_region_ok_for_hw_watchpoint = debug_region_ok_for_hw_watchpoint;
4686 ops->to_can_accel_watchpoint_condition = debug_can_accel_watchpoint_condition;
4687 ops->to_masked_watch_num_registers = debug_masked_watch_num_registers;
750ce8d1 4688 ops->to_can_do_single_step = debug_can_do_single_step;
a7068b60
TT
4689 ops->to_terminal_init = debug_terminal_init;
4690 ops->to_terminal_inferior = debug_terminal_inferior;
4691 ops->to_terminal_ours_for_output = debug_terminal_ours_for_output;
4692 ops->to_terminal_ours = debug_terminal_ours;
a7068b60
TT
4693 ops->to_terminal_info = debug_terminal_info;
4694 ops->to_kill = debug_kill;
4695 ops->to_load = debug_load;
4696 ops->to_post_startup_inferior = debug_post_startup_inferior;
4697 ops->to_insert_fork_catchpoint = debug_insert_fork_catchpoint;
4698 ops->to_remove_fork_catchpoint = debug_remove_fork_catchpoint;
4699 ops->to_insert_vfork_catchpoint = debug_insert_vfork_catchpoint;
4700 ops->to_remove_vfork_catchpoint = debug_remove_vfork_catchpoint;
4701 ops->to_follow_fork = debug_follow_fork;
4702 ops->to_insert_exec_catchpoint = debug_insert_exec_catchpoint;
4703 ops->to_remove_exec_catchpoint = debug_remove_exec_catchpoint;
94585166 4704 ops->to_follow_exec = debug_follow_exec;
a7068b60
TT
4705 ops->to_set_syscall_catchpoint = debug_set_syscall_catchpoint;
4706 ops->to_has_exited = debug_has_exited;
4707 ops->to_mourn_inferior = debug_mourn_inferior;
4708 ops->to_can_run = debug_can_run;
4709 ops->to_pass_signals = debug_pass_signals;
4710 ops->to_program_signals = debug_program_signals;
4711 ops->to_thread_alive = debug_thread_alive;
e8032dde 4712 ops->to_update_thread_list = debug_update_thread_list;
a7068b60
TT
4713 ops->to_pid_to_str = debug_pid_to_str;
4714 ops->to_extra_thread_info = debug_extra_thread_info;
4715 ops->to_thread_name = debug_thread_name;
e04ee09e 4716 ops->to_thread_handle_to_thread_info = debug_thread_handle_to_thread_info;
a7068b60 4717 ops->to_stop = debug_stop;
bfedc46a 4718 ops->to_interrupt = debug_interrupt;
93692b58 4719 ops->to_pass_ctrlc = debug_pass_ctrlc;
a7068b60
TT
4720 ops->to_rcmd = debug_rcmd;
4721 ops->to_pid_to_exec_file = debug_pid_to_exec_file;
4722 ops->to_log_command = debug_log_command;
4723 ops->to_get_section_table = debug_get_section_table;
4724 ops->to_can_async_p = debug_can_async_p;
4725 ops->to_is_async_p = debug_is_async_p;
4726 ops->to_async = debug_async;
65706a29 4727 ops->to_thread_events = debug_thread_events;
a7068b60 4728 ops->to_supports_non_stop = debug_supports_non_stop;
fbea99ea 4729 ops->to_always_non_stop_p = debug_always_non_stop_p;
a7068b60
TT
4730 ops->to_find_memory_regions = debug_find_memory_regions;
4731 ops->to_make_corefile_notes = debug_make_corefile_notes;
4732 ops->to_get_bookmark = debug_get_bookmark;
4733 ops->to_goto_bookmark = debug_goto_bookmark;
4734 ops->to_get_thread_local_address = debug_get_thread_local_address;
4735 ops->to_xfer_partial = debug_xfer_partial;
09c98b44 4736 ops->to_get_memory_xfer_limit = debug_get_memory_xfer_limit;
a7068b60
TT
4737 ops->to_memory_map = debug_memory_map;
4738 ops->to_flash_erase = debug_flash_erase;
4739 ops->to_flash_done = debug_flash_done;
4740 ops->to_read_description = debug_read_description;
4741 ops->to_get_ada_task_ptid = debug_get_ada_task_ptid;
4742 ops->to_auxv_parse = debug_auxv_parse;
4743 ops->to_search_memory = debug_search_memory;
4744 ops->to_can_execute_reverse = debug_can_execute_reverse;
4745 ops->to_execution_direction = debug_execution_direction;
4746 ops->to_supports_multi_process = debug_supports_multi_process;
4747 ops->to_supports_enable_disable_tracepoint = debug_supports_enable_disable_tracepoint;
4748 ops->to_supports_string_tracing = debug_supports_string_tracing;
4749 ops->to_supports_evaluation_of_breakpoint_conditions = debug_supports_evaluation_of_breakpoint_conditions;
4750 ops->to_can_run_breakpoint_commands = debug_can_run_breakpoint_commands;
4751 ops->to_thread_architecture = debug_thread_architecture;
4752 ops->to_thread_address_space = debug_thread_address_space;
4bd7dc42 4753 ops->to_filesystem_is_local = debug_filesystem_is_local;
a7068b60
TT
4754 ops->to_trace_init = debug_trace_init;
4755 ops->to_download_tracepoint = debug_download_tracepoint;
4756 ops->to_can_download_tracepoint = debug_can_download_tracepoint;
4757 ops->to_download_trace_state_variable = debug_download_trace_state_variable;
4758 ops->to_enable_tracepoint = debug_enable_tracepoint;
4759 ops->to_disable_tracepoint = debug_disable_tracepoint;
4760 ops->to_trace_set_readonly_regions = debug_trace_set_readonly_regions;
4761 ops->to_trace_start = debug_trace_start;
4762 ops->to_get_trace_status = debug_get_trace_status;
4763 ops->to_get_tracepoint_status = debug_get_tracepoint_status;
4764 ops->to_trace_stop = debug_trace_stop;
4765 ops->to_trace_find = debug_trace_find;
4766 ops->to_get_trace_state_variable_value = debug_get_trace_state_variable_value;
4767 ops->to_save_trace_data = debug_save_trace_data;
4768 ops->to_upload_tracepoints = debug_upload_tracepoints;
4769 ops->to_upload_trace_state_variables = debug_upload_trace_state_variables;
4770 ops->to_get_raw_trace_data = debug_get_raw_trace_data;
4771 ops->to_get_min_fast_tracepoint_insn_len = debug_get_min_fast_tracepoint_insn_len;
4772 ops->to_set_disconnected_tracing = debug_set_disconnected_tracing;
4773 ops->to_set_circular_trace_buffer = debug_set_circular_trace_buffer;
4774 ops->to_set_trace_buffer_size = debug_set_trace_buffer_size;
4775 ops->to_set_trace_notes = debug_set_trace_notes;
4776 ops->to_core_of_thread = debug_core_of_thread;
4777 ops->to_verify_memory = debug_verify_memory;
4778 ops->to_get_tib_address = debug_get_tib_address;
4779 ops->to_set_permissions = debug_set_permissions;
4780 ops->to_static_tracepoint_marker_at = debug_static_tracepoint_marker_at;
4781 ops->to_static_tracepoint_markers_by_strid = debug_static_tracepoint_markers_by_strid;
4782 ops->to_traceframe_info = debug_traceframe_info;
4783 ops->to_use_agent = debug_use_agent;
4784 ops->to_can_use_agent = debug_can_use_agent;
4785 ops->to_supports_btrace = debug_supports_btrace;
4786 ops->to_enable_btrace = debug_enable_btrace;
4787 ops->to_disable_btrace = debug_disable_btrace;
4788 ops->to_teardown_btrace = debug_teardown_btrace;
4789 ops->to_read_btrace = debug_read_btrace;
f4abbc16 4790 ops->to_btrace_conf = debug_btrace_conf;
b158a20f 4791 ops->to_record_method = debug_record_method;
a7068b60
TT
4792 ops->to_stop_recording = debug_stop_recording;
4793 ops->to_info_record = debug_info_record;
4794 ops->to_save_record = debug_save_record;
4795 ops->to_delete_record = debug_delete_record;
4796 ops->to_record_is_replaying = debug_record_is_replaying;
7ff27e9b 4797 ops->to_record_will_replay = debug_record_will_replay;
797094dd 4798 ops->to_record_stop_replaying = debug_record_stop_replaying;
a7068b60
TT
4799 ops->to_goto_record_begin = debug_goto_record_begin;
4800 ops->to_goto_record_end = debug_goto_record_end;
4801 ops->to_goto_record = debug_goto_record;
4802 ops->to_insn_history = debug_insn_history;
4803 ops->to_insn_history_from = debug_insn_history_from;
4804 ops->to_insn_history_range = debug_insn_history_range;
4805 ops->to_call_history = debug_call_history;
4806 ops->to_call_history_from = debug_call_history_from;
4807 ops->to_call_history_range = debug_call_history_range;
4808 ops->to_augmented_libraries_svr4_read = debug_augmented_libraries_svr4_read;
4809 ops->to_get_unwinder = debug_get_unwinder;
4810 ops->to_get_tailcall_unwinder = debug_get_tailcall_unwinder;
a7068b60
TT
4811 ops->to_prepare_to_generate_core = debug_prepare_to_generate_core;
4812 ops->to_done_generating_core = debug_done_generating_core;
4813}
This page took 1.263177 seconds and 4 git commands to generate.