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