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