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