1 /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
4 /* To regenerate this file, run:*/
5 /* make-target-delegates target.h > target-delegates.c */
7 delegate_resume (struct target_ops
*self
, ptid_t arg1
, int arg2
, enum gdb_signal arg3
)
10 self
->to_resume (self
, arg1
, arg2
, arg3
);
14 tdefault_resume (struct target_ops
*self
, ptid_t arg1
, int arg2
, enum gdb_signal arg3
)
20 delegate_wait (struct target_ops
*self
, ptid_t arg1
, struct target_waitstatus
*arg2
, int arg3
)
23 return self
->to_wait (self
, arg1
, arg2
, arg3
);
27 tdefault_wait (struct target_ops
*self
, ptid_t arg1
, struct target_waitstatus
*arg2
, int arg3
)
33 delegate_store_registers (struct target_ops
*self
, struct regcache
*arg1
, int arg2
)
36 self
->to_store_registers (self
, arg1
, arg2
);
40 tdefault_store_registers (struct target_ops
*self
, struct regcache
*arg1
, int arg2
)
46 delegate_insert_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
49 return self
->to_insert_breakpoint (self
, arg1
, arg2
);
53 delegate_remove_breakpoint (struct target_ops
*self
, struct gdbarch
*arg1
, struct bp_target_info
*arg2
)
56 return self
->to_remove_breakpoint (self
, arg1
, arg2
);
60 delegate_stopped_by_watchpoint (struct target_ops
*self
)
63 return self
->to_stopped_by_watchpoint (self
);
67 tdefault_stopped_by_watchpoint (struct target_ops
*self
)
73 delegate_stopped_data_address (struct target_ops
*self
, CORE_ADDR
*arg1
)
76 return self
->to_stopped_data_address (self
, arg1
);
80 tdefault_stopped_data_address (struct target_ops
*self
, CORE_ADDR
*arg1
)
86 delegate_can_async_p (struct target_ops
*self
)
89 return self
->to_can_async_p (self
);
93 delegate_is_async_p (struct target_ops
*self
)
96 return self
->to_is_async_p (self
);
100 delegate_async (struct target_ops
*self
, async_callback_ftype
*arg1
, void *arg2
)
102 self
= self
->beneath
;
103 self
->to_async (self
, arg1
, arg2
);
107 tdefault_async (struct target_ops
*self
, async_callback_ftype
*arg1
, void *arg2
)
112 static enum target_xfer_status
113 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
)
115 self
= self
->beneath
;
116 return self
->to_xfer_partial (self
, arg1
, arg2
, arg3
, arg4
, arg5
, arg6
, arg7
);
119 static enum target_xfer_status
120 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
)
122 return TARGET_XFER_E_IO
;
126 install_delegators (struct target_ops
*ops
)
128 if (ops
->to_resume
== NULL
)
129 ops
->to_resume
= delegate_resume
;
130 if (ops
->to_wait
== NULL
)
131 ops
->to_wait
= delegate_wait
;
132 if (ops
->to_store_registers
== NULL
)
133 ops
->to_store_registers
= delegate_store_registers
;
134 if (ops
->to_insert_breakpoint
== NULL
)
135 ops
->to_insert_breakpoint
= delegate_insert_breakpoint
;
136 if (ops
->to_remove_breakpoint
== NULL
)
137 ops
->to_remove_breakpoint
= delegate_remove_breakpoint
;
138 if (ops
->to_stopped_by_watchpoint
== NULL
)
139 ops
->to_stopped_by_watchpoint
= delegate_stopped_by_watchpoint
;
140 if (ops
->to_stopped_data_address
== NULL
)
141 ops
->to_stopped_data_address
= delegate_stopped_data_address
;
142 if (ops
->to_can_async_p
== NULL
)
143 ops
->to_can_async_p
= delegate_can_async_p
;
144 if (ops
->to_is_async_p
== NULL
)
145 ops
->to_is_async_p
= delegate_is_async_p
;
146 if (ops
->to_async
== NULL
)
147 ops
->to_async
= delegate_async
;
148 if (ops
->to_xfer_partial
== NULL
)
149 ops
->to_xfer_partial
= delegate_xfer_partial
;
153 install_dummy_methods (struct target_ops
*ops
)
155 ops
->to_resume
= tdefault_resume
;
156 ops
->to_wait
= tdefault_wait
;
157 ops
->to_store_registers
= tdefault_store_registers
;
158 ops
->to_insert_breakpoint
= memory_insert_breakpoint
;
159 ops
->to_remove_breakpoint
= memory_remove_breakpoint
;
160 ops
->to_stopped_by_watchpoint
= tdefault_stopped_by_watchpoint
;
161 ops
->to_stopped_data_address
= tdefault_stopped_data_address
;
162 ops
->to_can_async_p
= find_default_can_async_p
;
163 ops
->to_is_async_p
= find_default_is_async_p
;
164 ops
->to_async
= tdefault_async
;
165 ops
->to_xfer_partial
= tdefault_xfer_partial
;