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