Automatic date update in version.in
[binutils-gdb.git] / gdb / gdbarch.c
blob0edae7f6f0a2465d425bcd59a65e3be233ba40dd
1 /* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
2 /* vi:set ro: */
4 /* Dynamic architecture support for GDB, the GNU debugger.
6 Copyright (C) 1998-2022 Free Software Foundation, Inc.
8 This file is part of GDB.
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
23 /* To regenerate this file, run:
24 ./gdbarch.py
28 /* Maintain the struct gdbarch object. */
30 struct gdbarch
32 /* Has this architecture been fully initialized? */
33 bool initialized_p = false;
35 /* An obstack bound to the lifetime of the architecture. */
36 auto_obstack obstack;
37 /* Registry. */
38 registry<gdbarch> registry_fields;
40 /* basic architectural information. */
41 const struct bfd_arch_info * bfd_arch_info;
42 enum bfd_endian byte_order;
43 enum bfd_endian byte_order_for_code;
44 enum gdb_osabi osabi;
45 const struct target_desc * target_desc;
47 /* target specific vector. */
48 struct gdbarch_tdep_base *tdep = nullptr;
49 gdbarch_dump_tdep_ftype *dump_tdep = nullptr;
51 /* per-architecture data-pointers. */
52 unsigned nr_data = 0;
53 void **data = nullptr;
55 int short_bit = 0;
56 int int_bit = 0;
57 int long_bit = 0;
58 int long_long_bit = 0;
59 int bfloat16_bit = 0;
60 const struct floatformat ** bfloat16_format = 0;
61 int half_bit = 0;
62 const struct floatformat ** half_format = 0;
63 int float_bit = 0;
64 const struct floatformat ** float_format = 0;
65 int double_bit = 0;
66 const struct floatformat ** double_format = 0;
67 int long_double_bit = 0;
68 const struct floatformat ** long_double_format = 0;
69 int wchar_bit = 0;
70 int wchar_signed = 0;
71 gdbarch_floatformat_for_type_ftype *floatformat_for_type = nullptr;
72 int ptr_bit = 0;
73 int addr_bit = 0;
74 int dwarf2_addr_size = 0;
75 int char_signed = 0;
76 gdbarch_read_pc_ftype *read_pc = nullptr;
77 gdbarch_write_pc_ftype *write_pc = nullptr;
78 gdbarch_virtual_frame_pointer_ftype *virtual_frame_pointer = nullptr;
79 gdbarch_pseudo_register_read_ftype *pseudo_register_read = nullptr;
80 gdbarch_pseudo_register_read_value_ftype *pseudo_register_read_value = nullptr;
81 gdbarch_pseudo_register_write_ftype *pseudo_register_write = nullptr;
82 int num_regs = 0;
83 int num_pseudo_regs = 0;
84 gdbarch_ax_pseudo_register_collect_ftype *ax_pseudo_register_collect = nullptr;
85 gdbarch_ax_pseudo_register_push_stack_ftype *ax_pseudo_register_push_stack = nullptr;
86 gdbarch_report_signal_info_ftype *report_signal_info = nullptr;
87 int sp_regnum = 0;
88 int pc_regnum = 0;
89 int ps_regnum = 0;
90 int fp0_regnum = 0;
91 gdbarch_stab_reg_to_regnum_ftype *stab_reg_to_regnum = nullptr;
92 gdbarch_ecoff_reg_to_regnum_ftype *ecoff_reg_to_regnum = nullptr;
93 gdbarch_sdb_reg_to_regnum_ftype *sdb_reg_to_regnum = nullptr;
94 gdbarch_dwarf2_reg_to_regnum_ftype *dwarf2_reg_to_regnum = nullptr;
95 gdbarch_register_name_ftype *register_name = nullptr;
96 gdbarch_register_type_ftype *register_type = nullptr;
97 gdbarch_dummy_id_ftype *dummy_id = nullptr;
98 int deprecated_fp_regnum = 0;
99 gdbarch_push_dummy_call_ftype *push_dummy_call = nullptr;
100 int call_dummy_location = 0;
101 gdbarch_push_dummy_code_ftype *push_dummy_code = nullptr;
102 gdbarch_code_of_frame_writable_ftype *code_of_frame_writable = nullptr;
103 gdbarch_print_registers_info_ftype *print_registers_info = nullptr;
104 gdbarch_print_float_info_ftype *print_float_info = nullptr;
105 gdbarch_print_vector_info_ftype *print_vector_info = nullptr;
106 gdbarch_register_sim_regno_ftype *register_sim_regno = nullptr;
107 gdbarch_cannot_fetch_register_ftype *cannot_fetch_register = nullptr;
108 gdbarch_cannot_store_register_ftype *cannot_store_register = nullptr;
109 gdbarch_get_longjmp_target_ftype *get_longjmp_target = nullptr;
110 int believe_pcc_promotion = 0;
111 gdbarch_convert_register_p_ftype *convert_register_p = nullptr;
112 gdbarch_register_to_value_ftype *register_to_value = nullptr;
113 gdbarch_value_to_register_ftype *value_to_register = nullptr;
114 gdbarch_value_from_register_ftype *value_from_register = nullptr;
115 gdbarch_pointer_to_address_ftype *pointer_to_address = nullptr;
116 gdbarch_address_to_pointer_ftype *address_to_pointer = nullptr;
117 gdbarch_integer_to_address_ftype *integer_to_address = nullptr;
118 gdbarch_return_value_ftype *return_value = nullptr;
119 gdbarch_return_in_first_hidden_param_p_ftype *return_in_first_hidden_param_p = nullptr;
120 gdbarch_skip_prologue_ftype *skip_prologue = nullptr;
121 gdbarch_skip_main_prologue_ftype *skip_main_prologue = nullptr;
122 gdbarch_skip_entrypoint_ftype *skip_entrypoint = nullptr;
123 gdbarch_inner_than_ftype *inner_than = nullptr;
124 gdbarch_breakpoint_from_pc_ftype *breakpoint_from_pc = nullptr;
125 gdbarch_breakpoint_kind_from_pc_ftype *breakpoint_kind_from_pc = nullptr;
126 gdbarch_sw_breakpoint_from_kind_ftype *sw_breakpoint_from_kind = nullptr;
127 gdbarch_breakpoint_kind_from_current_state_ftype *breakpoint_kind_from_current_state = nullptr;
128 gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address = nullptr;
129 gdbarch_memory_insert_breakpoint_ftype *memory_insert_breakpoint = nullptr;
130 gdbarch_memory_remove_breakpoint_ftype *memory_remove_breakpoint = nullptr;
131 CORE_ADDR decr_pc_after_break = 0;
132 CORE_ADDR deprecated_function_start_offset = 0;
133 gdbarch_remote_register_number_ftype *remote_register_number = nullptr;
134 gdbarch_fetch_tls_load_module_address_ftype *fetch_tls_load_module_address = nullptr;
135 gdbarch_get_thread_local_address_ftype *get_thread_local_address = nullptr;
136 CORE_ADDR frame_args_skip = 0;
137 gdbarch_unwind_pc_ftype *unwind_pc = nullptr;
138 gdbarch_unwind_sp_ftype *unwind_sp = nullptr;
139 gdbarch_frame_num_args_ftype *frame_num_args = nullptr;
140 gdbarch_frame_align_ftype *frame_align = nullptr;
141 gdbarch_stabs_argument_has_addr_ftype *stabs_argument_has_addr = nullptr;
142 int frame_red_zone_size = 0;
143 gdbarch_convert_from_func_ptr_addr_ftype *convert_from_func_ptr_addr = nullptr;
144 gdbarch_addr_bits_remove_ftype *addr_bits_remove = nullptr;
145 int significant_addr_bit = 0;
146 gdbarch_memtag_to_string_ftype *memtag_to_string = nullptr;
147 gdbarch_tagged_address_p_ftype *tagged_address_p = nullptr;
148 gdbarch_memtag_matches_p_ftype *memtag_matches_p = nullptr;
149 gdbarch_set_memtags_ftype *set_memtags = nullptr;
150 gdbarch_get_memtag_ftype *get_memtag = nullptr;
151 CORE_ADDR memtag_granule_size = 0;
152 gdbarch_software_single_step_ftype *software_single_step = nullptr;
153 gdbarch_single_step_through_delay_ftype *single_step_through_delay = nullptr;
154 gdbarch_print_insn_ftype *print_insn = nullptr;
155 gdbarch_skip_trampoline_code_ftype *skip_trampoline_code = nullptr;
156 gdbarch_skip_solib_resolver_ftype *skip_solib_resolver = nullptr;
157 gdbarch_in_solib_return_trampoline_ftype *in_solib_return_trampoline = nullptr;
158 gdbarch_in_indirect_branch_thunk_ftype *in_indirect_branch_thunk = nullptr;
159 gdbarch_stack_frame_destroyed_p_ftype *stack_frame_destroyed_p = nullptr;
160 gdbarch_elf_make_msymbol_special_ftype *elf_make_msymbol_special = nullptr;
161 gdbarch_coff_make_msymbol_special_ftype *coff_make_msymbol_special = nullptr;
162 gdbarch_make_symbol_special_ftype *make_symbol_special = nullptr;
163 gdbarch_adjust_dwarf2_addr_ftype *adjust_dwarf2_addr = nullptr;
164 gdbarch_adjust_dwarf2_line_ftype *adjust_dwarf2_line = nullptr;
165 int cannot_step_breakpoint = 0;
166 int have_nonsteppable_watchpoint = 0;
167 gdbarch_address_class_type_flags_ftype *address_class_type_flags = nullptr;
168 gdbarch_address_class_type_flags_to_name_ftype *address_class_type_flags_to_name = nullptr;
169 gdbarch_execute_dwarf_cfa_vendor_op_ftype *execute_dwarf_cfa_vendor_op = nullptr;
170 gdbarch_address_class_name_to_type_flags_ftype *address_class_name_to_type_flags = nullptr;
171 gdbarch_register_reggroup_p_ftype *register_reggroup_p = nullptr;
172 gdbarch_fetch_pointer_argument_ftype *fetch_pointer_argument = nullptr;
173 gdbarch_iterate_over_regset_sections_ftype *iterate_over_regset_sections = nullptr;
174 gdbarch_make_corefile_notes_ftype *make_corefile_notes = nullptr;
175 gdbarch_find_memory_regions_ftype *find_memory_regions = nullptr;
176 gdbarch_create_memtag_section_ftype *create_memtag_section = nullptr;
177 gdbarch_fill_memtag_section_ftype *fill_memtag_section = nullptr;
178 gdbarch_decode_memtag_section_ftype *decode_memtag_section = nullptr;
179 gdbarch_core_xfer_shared_libraries_ftype *core_xfer_shared_libraries = nullptr;
180 gdbarch_core_xfer_shared_libraries_aix_ftype *core_xfer_shared_libraries_aix = nullptr;
181 gdbarch_core_pid_to_str_ftype *core_pid_to_str = nullptr;
182 gdbarch_core_thread_name_ftype *core_thread_name = nullptr;
183 gdbarch_core_xfer_siginfo_ftype *core_xfer_siginfo = nullptr;
184 const char * gcore_bfd_target = 0;
185 int vtable_function_descriptors = 0;
186 int vbit_in_delta = 0;
187 gdbarch_skip_permanent_breakpoint_ftype *skip_permanent_breakpoint = nullptr;
188 ULONGEST max_insn_length = 0;
189 gdbarch_displaced_step_copy_insn_ftype *displaced_step_copy_insn = nullptr;
190 gdbarch_displaced_step_hw_singlestep_ftype *displaced_step_hw_singlestep = nullptr;
191 gdbarch_displaced_step_fixup_ftype *displaced_step_fixup = nullptr;
192 gdbarch_displaced_step_prepare_ftype *displaced_step_prepare = nullptr;
193 gdbarch_displaced_step_finish_ftype *displaced_step_finish = nullptr;
194 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype *displaced_step_copy_insn_closure_by_addr = nullptr;
195 gdbarch_displaced_step_restore_all_in_ptid_ftype *displaced_step_restore_all_in_ptid = nullptr;
196 gdbarch_relocate_instruction_ftype *relocate_instruction = nullptr;
197 gdbarch_overlay_update_ftype *overlay_update = nullptr;
198 gdbarch_core_read_description_ftype *core_read_description = nullptr;
199 int sofun_address_maybe_missing = 0;
200 gdbarch_process_record_ftype *process_record = nullptr;
201 gdbarch_process_record_signal_ftype *process_record_signal = nullptr;
202 gdbarch_gdb_signal_from_target_ftype *gdb_signal_from_target = nullptr;
203 gdbarch_gdb_signal_to_target_ftype *gdb_signal_to_target = nullptr;
204 gdbarch_get_siginfo_type_ftype *get_siginfo_type = nullptr;
205 gdbarch_record_special_symbol_ftype *record_special_symbol = nullptr;
206 gdbarch_get_syscall_number_ftype *get_syscall_number = nullptr;
207 const char * xml_syscall_file = 0;
208 struct syscalls_info * syscalls_info = 0;
209 const char *const * stap_integer_prefixes = 0;
210 const char *const * stap_integer_suffixes = 0;
211 const char *const * stap_register_prefixes = 0;
212 const char *const * stap_register_suffixes = 0;
213 const char *const * stap_register_indirection_prefixes = 0;
214 const char *const * stap_register_indirection_suffixes = 0;
215 const char * stap_gdb_register_prefix = 0;
216 const char * stap_gdb_register_suffix = 0;
217 gdbarch_stap_is_single_operand_ftype *stap_is_single_operand = nullptr;
218 gdbarch_stap_parse_special_token_ftype *stap_parse_special_token = nullptr;
219 gdbarch_stap_adjust_register_ftype *stap_adjust_register = nullptr;
220 gdbarch_dtrace_parse_probe_argument_ftype *dtrace_parse_probe_argument = nullptr;
221 gdbarch_dtrace_probe_is_enabled_ftype *dtrace_probe_is_enabled = nullptr;
222 gdbarch_dtrace_enable_probe_ftype *dtrace_enable_probe = nullptr;
223 gdbarch_dtrace_disable_probe_ftype *dtrace_disable_probe = nullptr;
224 int has_global_solist = 0;
225 int has_global_breakpoints = 0;
226 gdbarch_has_shared_address_space_ftype *has_shared_address_space = nullptr;
227 gdbarch_fast_tracepoint_valid_at_ftype *fast_tracepoint_valid_at = nullptr;
228 gdbarch_guess_tracepoint_registers_ftype *guess_tracepoint_registers = nullptr;
229 gdbarch_auto_charset_ftype *auto_charset = nullptr;
230 gdbarch_auto_wide_charset_ftype *auto_wide_charset = nullptr;
231 const char * solib_symbols_extension = 0;
232 int has_dos_based_file_system = 0;
233 gdbarch_gen_return_address_ftype *gen_return_address = nullptr;
234 gdbarch_info_proc_ftype *info_proc = nullptr;
235 gdbarch_core_info_proc_ftype *core_info_proc = nullptr;
236 gdbarch_iterate_over_objfiles_in_search_order_ftype *iterate_over_objfiles_in_search_order = nullptr;
237 struct ravenscar_arch_ops * ravenscar_ops = 0;
238 gdbarch_insn_is_call_ftype *insn_is_call = nullptr;
239 gdbarch_insn_is_ret_ftype *insn_is_ret = nullptr;
240 gdbarch_insn_is_jump_ftype *insn_is_jump = nullptr;
241 gdbarch_program_breakpoint_here_p_ftype *program_breakpoint_here_p = nullptr;
242 gdbarch_auxv_parse_ftype *auxv_parse = nullptr;
243 gdbarch_print_auxv_entry_ftype *print_auxv_entry = nullptr;
244 gdbarch_vsyscall_range_ftype *vsyscall_range = nullptr;
245 gdbarch_infcall_mmap_ftype *infcall_mmap = nullptr;
246 gdbarch_infcall_munmap_ftype *infcall_munmap = nullptr;
247 gdbarch_gcc_target_options_ftype *gcc_target_options = nullptr;
248 gdbarch_gnu_triplet_regexp_ftype *gnu_triplet_regexp = nullptr;
249 gdbarch_addressable_memory_unit_size_ftype *addressable_memory_unit_size = nullptr;
250 const char * disassembler_options_implicit = 0;
251 char ** disassembler_options = 0;
252 const disasm_options_and_args_t * valid_disassembler_options = 0;
253 gdbarch_type_align_ftype *type_align = nullptr;
254 gdbarch_get_pc_address_flags_ftype *get_pc_address_flags = nullptr;
255 gdbarch_read_core_file_mappings_ftype *read_core_file_mappings = nullptr;
258 /* Create a new ``struct gdbarch'' based on information provided by
259 ``struct gdbarch_info''. */
261 struct gdbarch *
262 gdbarch_alloc (const struct gdbarch_info *info,
263 struct gdbarch_tdep_base *tdep)
265 struct gdbarch *gdbarch;
267 gdbarch = new struct gdbarch;
269 gdbarch->tdep = tdep;
271 gdbarch->bfd_arch_info = info->bfd_arch_info;
272 gdbarch->byte_order = info->byte_order;
273 gdbarch->byte_order_for_code = info->byte_order_for_code;
274 gdbarch->osabi = info->osabi;
275 gdbarch->target_desc = info->target_desc;
277 /* Force the explicit initialization of these. */
278 gdbarch->short_bit = 2*TARGET_CHAR_BIT;
279 gdbarch->int_bit = 4*TARGET_CHAR_BIT;
280 gdbarch->long_bit = 4*TARGET_CHAR_BIT;
281 gdbarch->long_long_bit = 2*gdbarch->long_bit;
282 gdbarch->bfloat16_bit = 2*TARGET_CHAR_BIT;
283 gdbarch->half_bit = 2*TARGET_CHAR_BIT;
284 gdbarch->float_bit = 4*TARGET_CHAR_BIT;
285 gdbarch->double_bit = 8*TARGET_CHAR_BIT;
286 gdbarch->long_double_bit = 8*TARGET_CHAR_BIT;
287 gdbarch->wchar_bit = 4*TARGET_CHAR_BIT;
288 gdbarch->wchar_signed = -1;
289 gdbarch->floatformat_for_type = default_floatformat_for_type;
290 gdbarch->ptr_bit = gdbarch->int_bit;
291 gdbarch->char_signed = -1;
292 gdbarch->virtual_frame_pointer = legacy_virtual_frame_pointer;
293 gdbarch->num_regs = -1;
294 gdbarch->sp_regnum = -1;
295 gdbarch->pc_regnum = -1;
296 gdbarch->ps_regnum = -1;
297 gdbarch->fp0_regnum = -1;
298 gdbarch->stab_reg_to_regnum = no_op_reg_to_regnum;
299 gdbarch->ecoff_reg_to_regnum = no_op_reg_to_regnum;
300 gdbarch->sdb_reg_to_regnum = no_op_reg_to_regnum;
301 gdbarch->dwarf2_reg_to_regnum = no_op_reg_to_regnum;
302 gdbarch->dummy_id = default_dummy_id;
303 gdbarch->deprecated_fp_regnum = -1;
304 gdbarch->call_dummy_location = AT_ENTRY_POINT;
305 gdbarch->code_of_frame_writable = default_code_of_frame_writable;
306 gdbarch->print_registers_info = default_print_registers_info;
307 gdbarch->print_float_info = default_print_float_info;
308 gdbarch->register_sim_regno = legacy_register_sim_regno;
309 gdbarch->cannot_fetch_register = cannot_register_not;
310 gdbarch->cannot_store_register = cannot_register_not;
311 gdbarch->convert_register_p = generic_convert_register_p;
312 gdbarch->value_from_register = default_value_from_register;
313 gdbarch->pointer_to_address = unsigned_pointer_to_address;
314 gdbarch->address_to_pointer = unsigned_address_to_pointer;
315 gdbarch->return_in_first_hidden_param_p = default_return_in_first_hidden_param_p;
316 gdbarch->breakpoint_from_pc = default_breakpoint_from_pc;
317 gdbarch->sw_breakpoint_from_kind = NULL;
318 gdbarch->breakpoint_kind_from_current_state = default_breakpoint_kind_from_current_state;
319 gdbarch->memory_insert_breakpoint = default_memory_insert_breakpoint;
320 gdbarch->memory_remove_breakpoint = default_memory_remove_breakpoint;
321 gdbarch->remote_register_number = default_remote_register_number;
322 gdbarch->unwind_pc = default_unwind_pc;
323 gdbarch->unwind_sp = default_unwind_sp;
324 gdbarch->stabs_argument_has_addr = default_stabs_argument_has_addr;
325 gdbarch->convert_from_func_ptr_addr = convert_from_func_ptr_addr_identity;
326 gdbarch->addr_bits_remove = core_addr_identity;
327 gdbarch->memtag_to_string = default_memtag_to_string;
328 gdbarch->tagged_address_p = default_tagged_address_p;
329 gdbarch->memtag_matches_p = default_memtag_matches_p;
330 gdbarch->set_memtags = default_set_memtags;
331 gdbarch->get_memtag = default_get_memtag;
332 gdbarch->print_insn = default_print_insn;
333 gdbarch->skip_trampoline_code = generic_skip_trampoline_code;
334 gdbarch->skip_solib_resolver = generic_skip_solib_resolver;
335 gdbarch->in_solib_return_trampoline = generic_in_solib_return_trampoline;
336 gdbarch->in_indirect_branch_thunk = default_in_indirect_branch_thunk;
337 gdbarch->stack_frame_destroyed_p = generic_stack_frame_destroyed_p;
338 gdbarch->coff_make_msymbol_special = default_coff_make_msymbol_special;
339 gdbarch->make_symbol_special = default_make_symbol_special;
340 gdbarch->adjust_dwarf2_addr = default_adjust_dwarf2_addr;
341 gdbarch->adjust_dwarf2_line = default_adjust_dwarf2_line;
342 gdbarch->execute_dwarf_cfa_vendor_op = default_execute_dwarf_cfa_vendor_op;
343 gdbarch->register_reggroup_p = default_register_reggroup_p;
344 gdbarch->skip_permanent_breakpoint = default_skip_permanent_breakpoint;
345 gdbarch->displaced_step_hw_singlestep = default_displaced_step_hw_singlestep;
346 gdbarch->displaced_step_fixup = NULL;
347 gdbarch->displaced_step_finish = NULL;
348 gdbarch->relocate_instruction = NULL;
349 gdbarch->has_shared_address_space = default_has_shared_address_space;
350 gdbarch->fast_tracepoint_valid_at = default_fast_tracepoint_valid_at;
351 gdbarch->guess_tracepoint_registers = default_guess_tracepoint_registers;
352 gdbarch->auto_charset = default_auto_charset;
353 gdbarch->auto_wide_charset = default_auto_wide_charset;
354 gdbarch->gen_return_address = default_gen_return_address;
355 gdbarch->iterate_over_objfiles_in_search_order = default_iterate_over_objfiles_in_search_order;
356 gdbarch->ravenscar_ops = NULL;
357 gdbarch->insn_is_call = default_insn_is_call;
358 gdbarch->insn_is_ret = default_insn_is_ret;
359 gdbarch->insn_is_jump = default_insn_is_jump;
360 gdbarch->program_breakpoint_here_p = default_program_breakpoint_here_p;
361 gdbarch->print_auxv_entry = default_print_auxv_entry;
362 gdbarch->vsyscall_range = default_vsyscall_range;
363 gdbarch->infcall_mmap = default_infcall_mmap;
364 gdbarch->infcall_munmap = default_infcall_munmap;
365 gdbarch->gcc_target_options = default_gcc_target_options;
366 gdbarch->gnu_triplet_regexp = default_gnu_triplet_regexp;
367 gdbarch->addressable_memory_unit_size = default_addressable_memory_unit_size;
368 gdbarch->type_align = default_type_align;
369 gdbarch->get_pc_address_flags = default_get_pc_address_flags;
370 gdbarch->read_core_file_mappings = default_read_core_file_mappings;
371 /* gdbarch_alloc() */
373 return gdbarch;
378 /* Ensure that all values in a GDBARCH are reasonable. */
380 static void
381 verify_gdbarch (struct gdbarch *gdbarch)
383 string_file log;
385 /* fundamental */
386 if (gdbarch->byte_order == BFD_ENDIAN_UNKNOWN)
387 log.puts ("\n\tbyte-order");
388 if (gdbarch->bfd_arch_info == NULL)
389 log.puts ("\n\tbfd_arch_info");
390 /* Check those that need to be defined for the given multi-arch level. */
391 /* Skip verify of short_bit, invalid_p == 0 */
392 /* Skip verify of int_bit, invalid_p == 0 */
393 /* Skip verify of long_bit, invalid_p == 0 */
394 /* Skip verify of long_long_bit, invalid_p == 0 */
395 /* Skip verify of bfloat16_bit, invalid_p == 0 */
396 if (gdbarch->bfloat16_format == 0)
397 gdbarch->bfloat16_format = floatformats_bfloat16;
398 /* Skip verify of half_bit, invalid_p == 0 */
399 if (gdbarch->half_format == 0)
400 gdbarch->half_format = floatformats_ieee_half;
401 /* Skip verify of float_bit, invalid_p == 0 */
402 if (gdbarch->float_format == 0)
403 gdbarch->float_format = floatformats_ieee_single;
404 /* Skip verify of double_bit, invalid_p == 0 */
405 if (gdbarch->double_format == 0)
406 gdbarch->double_format = floatformats_ieee_double;
407 /* Skip verify of long_double_bit, invalid_p == 0 */
408 if (gdbarch->long_double_format == 0)
409 gdbarch->long_double_format = floatformats_ieee_double;
410 /* Skip verify of wchar_bit, invalid_p == 0 */
411 if (gdbarch->wchar_signed == -1)
412 gdbarch->wchar_signed = 1;
413 /* Skip verify of floatformat_for_type, invalid_p == 0 */
414 /* Skip verify of ptr_bit, invalid_p == 0 */
415 if (gdbarch->addr_bit == 0)
416 gdbarch->addr_bit = gdbarch_ptr_bit (gdbarch);
417 if (gdbarch->dwarf2_addr_size == 0)
418 gdbarch->dwarf2_addr_size = gdbarch_ptr_bit (gdbarch) / TARGET_CHAR_BIT;
419 if (gdbarch->char_signed == -1)
420 gdbarch->char_signed = 1;
421 /* Skip verify of read_pc, has predicate. */
422 /* Skip verify of write_pc, has predicate. */
423 /* Skip verify of virtual_frame_pointer, invalid_p == 0 */
424 /* Skip verify of pseudo_register_read, has predicate. */
425 /* Skip verify of pseudo_register_read_value, has predicate. */
426 /* Skip verify of pseudo_register_write, has predicate. */
427 if (gdbarch->num_regs == -1)
428 log.puts ("\n\tnum_regs");
429 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
430 /* Skip verify of ax_pseudo_register_collect, has predicate. */
431 /* Skip verify of ax_pseudo_register_push_stack, has predicate. */
432 /* Skip verify of report_signal_info, has predicate. */
433 /* Skip verify of sp_regnum, invalid_p == 0 */
434 /* Skip verify of pc_regnum, invalid_p == 0 */
435 /* Skip verify of ps_regnum, invalid_p == 0 */
436 /* Skip verify of fp0_regnum, invalid_p == 0 */
437 /* Skip verify of stab_reg_to_regnum, invalid_p == 0 */
438 /* Skip verify of ecoff_reg_to_regnum, invalid_p == 0 */
439 /* Skip verify of sdb_reg_to_regnum, invalid_p == 0 */
440 /* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0 */
441 if (gdbarch->register_name == 0)
442 log.puts ("\n\tregister_name");
443 if (gdbarch->register_type == 0)
444 log.puts ("\n\tregister_type");
445 /* Skip verify of dummy_id, invalid_p == 0 */
446 /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
447 /* Skip verify of push_dummy_call, has predicate. */
448 /* Skip verify of call_dummy_location, invalid_p == 0 */
449 /* Skip verify of push_dummy_code, has predicate. */
450 /* Skip verify of code_of_frame_writable, invalid_p == 0 */
451 /* Skip verify of print_registers_info, invalid_p == 0 */
452 /* Skip verify of print_float_info, invalid_p == 0 */
453 /* Skip verify of print_vector_info, has predicate. */
454 /* Skip verify of register_sim_regno, invalid_p == 0 */
455 /* Skip verify of cannot_fetch_register, invalid_p == 0 */
456 /* Skip verify of cannot_store_register, invalid_p == 0 */
457 /* Skip verify of get_longjmp_target, has predicate. */
458 /* Skip verify of believe_pcc_promotion, invalid_p == 0 */
459 /* Skip verify of convert_register_p, invalid_p == 0 */
460 /* Skip verify of register_to_value, invalid_p == 0 */
461 /* Skip verify of value_to_register, invalid_p == 0 */
462 /* Skip verify of value_from_register, invalid_p == 0 */
463 /* Skip verify of pointer_to_address, invalid_p == 0 */
464 /* Skip verify of address_to_pointer, invalid_p == 0 */
465 /* Skip verify of integer_to_address, has predicate. */
466 /* Skip verify of return_value, has predicate. */
467 /* Skip verify of return_in_first_hidden_param_p, invalid_p == 0 */
468 if (gdbarch->skip_prologue == 0)
469 log.puts ("\n\tskip_prologue");
470 /* Skip verify of skip_main_prologue, has predicate. */
471 /* Skip verify of skip_entrypoint, has predicate. */
472 if (gdbarch->inner_than == 0)
473 log.puts ("\n\tinner_than");
474 /* Skip verify of breakpoint_from_pc, invalid_p == 0 */
475 if (gdbarch->breakpoint_kind_from_pc == 0)
476 log.puts ("\n\tbreakpoint_kind_from_pc");
477 /* Skip verify of sw_breakpoint_from_kind, invalid_p == 0 */
478 /* Skip verify of breakpoint_kind_from_current_state, invalid_p == 0 */
479 /* Skip verify of adjust_breakpoint_address, has predicate. */
480 /* Skip verify of memory_insert_breakpoint, invalid_p == 0 */
481 /* Skip verify of memory_remove_breakpoint, invalid_p == 0 */
482 /* Skip verify of decr_pc_after_break, invalid_p == 0 */
483 /* Skip verify of deprecated_function_start_offset, invalid_p == 0 */
484 /* Skip verify of remote_register_number, invalid_p == 0 */
485 /* Skip verify of fetch_tls_load_module_address, has predicate. */
486 /* Skip verify of get_thread_local_address, has predicate. */
487 /* Skip verify of frame_args_skip, invalid_p == 0 */
488 /* Skip verify of unwind_pc, invalid_p == 0 */
489 /* Skip verify of unwind_sp, invalid_p == 0 */
490 /* Skip verify of frame_num_args, has predicate. */
491 /* Skip verify of frame_align, has predicate. */
492 /* Skip verify of stabs_argument_has_addr, invalid_p == 0 */
493 /* Skip verify of frame_red_zone_size, invalid_p == 0 */
494 /* Skip verify of convert_from_func_ptr_addr, invalid_p == 0 */
495 /* Skip verify of addr_bits_remove, invalid_p == 0 */
496 /* Skip verify of significant_addr_bit, invalid_p == 0 */
497 /* Skip verify of memtag_to_string, invalid_p == 0 */
498 /* Skip verify of tagged_address_p, invalid_p == 0 */
499 /* Skip verify of memtag_matches_p, invalid_p == 0 */
500 /* Skip verify of set_memtags, invalid_p == 0 */
501 /* Skip verify of get_memtag, invalid_p == 0 */
502 /* Skip verify of memtag_granule_size, invalid_p == 0 */
503 /* Skip verify of software_single_step, has predicate. */
504 /* Skip verify of single_step_through_delay, has predicate. */
505 /* Skip verify of print_insn, invalid_p == 0 */
506 /* Skip verify of skip_trampoline_code, invalid_p == 0 */
507 /* Skip verify of skip_solib_resolver, invalid_p == 0 */
508 /* Skip verify of in_solib_return_trampoline, invalid_p == 0 */
509 /* Skip verify of in_indirect_branch_thunk, invalid_p == 0 */
510 /* Skip verify of stack_frame_destroyed_p, invalid_p == 0 */
511 /* Skip verify of elf_make_msymbol_special, has predicate. */
512 /* Skip verify of coff_make_msymbol_special, invalid_p == 0 */
513 /* Skip verify of make_symbol_special, invalid_p == 0 */
514 /* Skip verify of adjust_dwarf2_addr, invalid_p == 0 */
515 /* Skip verify of adjust_dwarf2_line, invalid_p == 0 */
516 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */
517 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */
518 /* Skip verify of address_class_type_flags, has predicate. */
519 /* Skip verify of address_class_type_flags_to_name, has predicate. */
520 /* Skip verify of execute_dwarf_cfa_vendor_op, invalid_p == 0 */
521 /* Skip verify of address_class_name_to_type_flags, has predicate. */
522 /* Skip verify of register_reggroup_p, invalid_p == 0 */
523 /* Skip verify of fetch_pointer_argument, has predicate. */
524 /* Skip verify of iterate_over_regset_sections, has predicate. */
525 /* Skip verify of make_corefile_notes, has predicate. */
526 /* Skip verify of find_memory_regions, has predicate. */
527 /* Skip verify of create_memtag_section, has predicate. */
528 /* Skip verify of fill_memtag_section, has predicate. */
529 /* Skip verify of decode_memtag_section, has predicate. */
530 /* Skip verify of core_xfer_shared_libraries, has predicate. */
531 /* Skip verify of core_xfer_shared_libraries_aix, has predicate. */
532 /* Skip verify of core_pid_to_str, has predicate. */
533 /* Skip verify of core_thread_name, has predicate. */
534 /* Skip verify of core_xfer_siginfo, has predicate. */
535 /* Skip verify of gcore_bfd_target, has predicate. */
536 /* Skip verify of vtable_function_descriptors, invalid_p == 0 */
537 /* Skip verify of vbit_in_delta, invalid_p == 0 */
538 /* Skip verify of skip_permanent_breakpoint, invalid_p == 0 */
539 /* Skip verify of max_insn_length, has predicate. */
540 /* Skip verify of displaced_step_copy_insn, has predicate. */
541 /* Skip verify of displaced_step_hw_singlestep, invalid_p == 0 */
542 /* Skip verify of displaced_step_fixup, has predicate. */
543 /* Skip verify of displaced_step_prepare, has predicate. */
544 if ((! gdbarch->displaced_step_finish) != (! gdbarch->displaced_step_prepare))
545 log.puts ("\n\tdisplaced_step_finish");
546 /* Skip verify of displaced_step_copy_insn_closure_by_addr, has predicate. */
547 /* Skip verify of displaced_step_restore_all_in_ptid, invalid_p == 0 */
548 /* Skip verify of relocate_instruction, has predicate. */
549 /* Skip verify of overlay_update, has predicate. */
550 /* Skip verify of core_read_description, has predicate. */
551 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */
552 /* Skip verify of process_record, has predicate. */
553 /* Skip verify of process_record_signal, has predicate. */
554 /* Skip verify of gdb_signal_from_target, has predicate. */
555 /* Skip verify of gdb_signal_to_target, has predicate. */
556 /* Skip verify of get_siginfo_type, has predicate. */
557 /* Skip verify of record_special_symbol, has predicate. */
558 /* Skip verify of get_syscall_number, has predicate. */
559 /* Skip verify of xml_syscall_file, invalid_p == 0 */
560 /* Skip verify of syscalls_info, invalid_p == 0 */
561 /* Skip verify of stap_integer_prefixes, invalid_p == 0 */
562 /* Skip verify of stap_integer_suffixes, invalid_p == 0 */
563 /* Skip verify of stap_register_prefixes, invalid_p == 0 */
564 /* Skip verify of stap_register_suffixes, invalid_p == 0 */
565 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0 */
566 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0 */
567 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0 */
568 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0 */
569 /* Skip verify of stap_is_single_operand, has predicate. */
570 /* Skip verify of stap_parse_special_token, has predicate. */
571 /* Skip verify of stap_adjust_register, has predicate. */
572 /* Skip verify of dtrace_parse_probe_argument, has predicate. */
573 /* Skip verify of dtrace_probe_is_enabled, has predicate. */
574 /* Skip verify of dtrace_enable_probe, has predicate. */
575 /* Skip verify of dtrace_disable_probe, has predicate. */
576 /* Skip verify of has_global_solist, invalid_p == 0 */
577 /* Skip verify of has_global_breakpoints, invalid_p == 0 */
578 /* Skip verify of has_shared_address_space, invalid_p == 0 */
579 /* Skip verify of fast_tracepoint_valid_at, invalid_p == 0 */
580 /* Skip verify of guess_tracepoint_registers, invalid_p == 0 */
581 /* Skip verify of auto_charset, invalid_p == 0 */
582 /* Skip verify of auto_wide_charset, invalid_p == 0 */
583 /* Skip verify of solib_symbols_extension, invalid_p == 0 */
584 /* Skip verify of has_dos_based_file_system, invalid_p == 0 */
585 /* Skip verify of gen_return_address, invalid_p == 0 */
586 /* Skip verify of info_proc, has predicate. */
587 /* Skip verify of core_info_proc, has predicate. */
588 /* Skip verify of iterate_over_objfiles_in_search_order, invalid_p == 0 */
589 /* Skip verify of ravenscar_ops, invalid_p == 0 */
590 /* Skip verify of insn_is_call, invalid_p == 0 */
591 /* Skip verify of insn_is_ret, invalid_p == 0 */
592 /* Skip verify of insn_is_jump, invalid_p == 0 */
593 /* Skip verify of program_breakpoint_here_p, invalid_p == 0 */
594 /* Skip verify of auxv_parse, has predicate. */
595 /* Skip verify of print_auxv_entry, invalid_p == 0 */
596 /* Skip verify of vsyscall_range, invalid_p == 0 */
597 /* Skip verify of infcall_mmap, invalid_p == 0 */
598 /* Skip verify of infcall_munmap, invalid_p == 0 */
599 /* Skip verify of gcc_target_options, invalid_p == 0 */
600 /* Skip verify of gnu_triplet_regexp, invalid_p == 0 */
601 /* Skip verify of addressable_memory_unit_size, invalid_p == 0 */
602 /* Skip verify of disassembler_options_implicit, invalid_p == 0 */
603 /* Skip verify of disassembler_options, invalid_p == 0 */
604 /* Skip verify of valid_disassembler_options, invalid_p == 0 */
605 /* Skip verify of type_align, invalid_p == 0 */
606 /* Skip verify of get_pc_address_flags, invalid_p == 0 */
607 /* Skip verify of read_core_file_mappings, invalid_p == 0 */
608 if (!log.empty ())
609 internal_error (__FILE__, __LINE__,
610 _("verify_gdbarch: the following are invalid ...%s"),
611 log.c_str ());
615 /* Print out the details of the current architecture. */
617 void
618 gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
620 const char *gdb_nm_file = "<not-defined>";
622 #if defined (GDB_NM_FILE)
623 gdb_nm_file = GDB_NM_FILE;
624 #endif
625 gdb_printf (file,
626 "gdbarch_dump: GDB_NM_FILE = %s\n",
627 gdb_nm_file);
628 gdb_printf (file,
629 "gdbarch_dump: bfd_arch_info = %s\n",
630 gdbarch_bfd_arch_info (gdbarch)->printable_name);
631 gdb_printf (file,
632 "gdbarch_dump: byte_order = %s\n",
633 plongest (gdbarch->byte_order));
634 gdb_printf (file,
635 "gdbarch_dump: byte_order_for_code = %s\n",
636 plongest (gdbarch->byte_order_for_code));
637 gdb_printf (file,
638 "gdbarch_dump: osabi = %s\n",
639 plongest (gdbarch->osabi));
640 gdb_printf (file,
641 "gdbarch_dump: target_desc = %s\n",
642 host_address_to_string (gdbarch->target_desc));
643 gdb_printf (file,
644 "gdbarch_dump: short_bit = %s\n",
645 plongest (gdbarch->short_bit));
646 gdb_printf (file,
647 "gdbarch_dump: int_bit = %s\n",
648 plongest (gdbarch->int_bit));
649 gdb_printf (file,
650 "gdbarch_dump: long_bit = %s\n",
651 plongest (gdbarch->long_bit));
652 gdb_printf (file,
653 "gdbarch_dump: long_long_bit = %s\n",
654 plongest (gdbarch->long_long_bit));
655 gdb_printf (file,
656 "gdbarch_dump: bfloat16_bit = %s\n",
657 plongest (gdbarch->bfloat16_bit));
658 gdb_printf (file,
659 "gdbarch_dump: bfloat16_format = %s\n",
660 pformat (gdbarch->bfloat16_format));
661 gdb_printf (file,
662 "gdbarch_dump: half_bit = %s\n",
663 plongest (gdbarch->half_bit));
664 gdb_printf (file,
665 "gdbarch_dump: half_format = %s\n",
666 pformat (gdbarch->half_format));
667 gdb_printf (file,
668 "gdbarch_dump: float_bit = %s\n",
669 plongest (gdbarch->float_bit));
670 gdb_printf (file,
671 "gdbarch_dump: float_format = %s\n",
672 pformat (gdbarch->float_format));
673 gdb_printf (file,
674 "gdbarch_dump: double_bit = %s\n",
675 plongest (gdbarch->double_bit));
676 gdb_printf (file,
677 "gdbarch_dump: double_format = %s\n",
678 pformat (gdbarch->double_format));
679 gdb_printf (file,
680 "gdbarch_dump: long_double_bit = %s\n",
681 plongest (gdbarch->long_double_bit));
682 gdb_printf (file,
683 "gdbarch_dump: long_double_format = %s\n",
684 pformat (gdbarch->long_double_format));
685 gdb_printf (file,
686 "gdbarch_dump: wchar_bit = %s\n",
687 plongest (gdbarch->wchar_bit));
688 gdb_printf (file,
689 "gdbarch_dump: wchar_signed = %s\n",
690 plongest (gdbarch->wchar_signed));
691 gdb_printf (file,
692 "gdbarch_dump: floatformat_for_type = <%s>\n",
693 host_address_to_string (gdbarch->floatformat_for_type));
694 gdb_printf (file,
695 "gdbarch_dump: ptr_bit = %s\n",
696 plongest (gdbarch->ptr_bit));
697 gdb_printf (file,
698 "gdbarch_dump: addr_bit = %s\n",
699 plongest (gdbarch->addr_bit));
700 gdb_printf (file,
701 "gdbarch_dump: dwarf2_addr_size = %s\n",
702 plongest (gdbarch->dwarf2_addr_size));
703 gdb_printf (file,
704 "gdbarch_dump: char_signed = %s\n",
705 plongest (gdbarch->char_signed));
706 gdb_printf (file,
707 "gdbarch_dump: gdbarch_read_pc_p() = %d\n",
708 gdbarch_read_pc_p (gdbarch));
709 gdb_printf (file,
710 "gdbarch_dump: read_pc = <%s>\n",
711 host_address_to_string (gdbarch->read_pc));
712 gdb_printf (file,
713 "gdbarch_dump: gdbarch_write_pc_p() = %d\n",
714 gdbarch_write_pc_p (gdbarch));
715 gdb_printf (file,
716 "gdbarch_dump: write_pc = <%s>\n",
717 host_address_to_string (gdbarch->write_pc));
718 gdb_printf (file,
719 "gdbarch_dump: virtual_frame_pointer = <%s>\n",
720 host_address_to_string (gdbarch->virtual_frame_pointer));
721 gdb_printf (file,
722 "gdbarch_dump: gdbarch_pseudo_register_read_p() = %d\n",
723 gdbarch_pseudo_register_read_p (gdbarch));
724 gdb_printf (file,
725 "gdbarch_dump: pseudo_register_read = <%s>\n",
726 host_address_to_string (gdbarch->pseudo_register_read));
727 gdb_printf (file,
728 "gdbarch_dump: gdbarch_pseudo_register_read_value_p() = %d\n",
729 gdbarch_pseudo_register_read_value_p (gdbarch));
730 gdb_printf (file,
731 "gdbarch_dump: pseudo_register_read_value = <%s>\n",
732 host_address_to_string (gdbarch->pseudo_register_read_value));
733 gdb_printf (file,
734 "gdbarch_dump: gdbarch_pseudo_register_write_p() = %d\n",
735 gdbarch_pseudo_register_write_p (gdbarch));
736 gdb_printf (file,
737 "gdbarch_dump: pseudo_register_write = <%s>\n",
738 host_address_to_string (gdbarch->pseudo_register_write));
739 gdb_printf (file,
740 "gdbarch_dump: num_regs = %s\n",
741 plongest (gdbarch->num_regs));
742 gdb_printf (file,
743 "gdbarch_dump: num_pseudo_regs = %s\n",
744 plongest (gdbarch->num_pseudo_regs));
745 gdb_printf (file,
746 "gdbarch_dump: gdbarch_ax_pseudo_register_collect_p() = %d\n",
747 gdbarch_ax_pseudo_register_collect_p (gdbarch));
748 gdb_printf (file,
749 "gdbarch_dump: ax_pseudo_register_collect = <%s>\n",
750 host_address_to_string (gdbarch->ax_pseudo_register_collect));
751 gdb_printf (file,
752 "gdbarch_dump: gdbarch_ax_pseudo_register_push_stack_p() = %d\n",
753 gdbarch_ax_pseudo_register_push_stack_p (gdbarch));
754 gdb_printf (file,
755 "gdbarch_dump: ax_pseudo_register_push_stack = <%s>\n",
756 host_address_to_string (gdbarch->ax_pseudo_register_push_stack));
757 gdb_printf (file,
758 "gdbarch_dump: gdbarch_report_signal_info_p() = %d\n",
759 gdbarch_report_signal_info_p (gdbarch));
760 gdb_printf (file,
761 "gdbarch_dump: report_signal_info = <%s>\n",
762 host_address_to_string (gdbarch->report_signal_info));
763 gdb_printf (file,
764 "gdbarch_dump: sp_regnum = %s\n",
765 plongest (gdbarch->sp_regnum));
766 gdb_printf (file,
767 "gdbarch_dump: pc_regnum = %s\n",
768 plongest (gdbarch->pc_regnum));
769 gdb_printf (file,
770 "gdbarch_dump: ps_regnum = %s\n",
771 plongest (gdbarch->ps_regnum));
772 gdb_printf (file,
773 "gdbarch_dump: fp0_regnum = %s\n",
774 plongest (gdbarch->fp0_regnum));
775 gdb_printf (file,
776 "gdbarch_dump: stab_reg_to_regnum = <%s>\n",
777 host_address_to_string (gdbarch->stab_reg_to_regnum));
778 gdb_printf (file,
779 "gdbarch_dump: ecoff_reg_to_regnum = <%s>\n",
780 host_address_to_string (gdbarch->ecoff_reg_to_regnum));
781 gdb_printf (file,
782 "gdbarch_dump: sdb_reg_to_regnum = <%s>\n",
783 host_address_to_string (gdbarch->sdb_reg_to_regnum));
784 gdb_printf (file,
785 "gdbarch_dump: dwarf2_reg_to_regnum = <%s>\n",
786 host_address_to_string (gdbarch->dwarf2_reg_to_regnum));
787 gdb_printf (file,
788 "gdbarch_dump: register_name = <%s>\n",
789 host_address_to_string (gdbarch->register_name));
790 gdb_printf (file,
791 "gdbarch_dump: register_type = <%s>\n",
792 host_address_to_string (gdbarch->register_type));
793 gdb_printf (file,
794 "gdbarch_dump: dummy_id = <%s>\n",
795 host_address_to_string (gdbarch->dummy_id));
796 gdb_printf (file,
797 "gdbarch_dump: deprecated_fp_regnum = %s\n",
798 plongest (gdbarch->deprecated_fp_regnum));
799 gdb_printf (file,
800 "gdbarch_dump: gdbarch_push_dummy_call_p() = %d\n",
801 gdbarch_push_dummy_call_p (gdbarch));
802 gdb_printf (file,
803 "gdbarch_dump: push_dummy_call = <%s>\n",
804 host_address_to_string (gdbarch->push_dummy_call));
805 gdb_printf (file,
806 "gdbarch_dump: call_dummy_location = %s\n",
807 plongest (gdbarch->call_dummy_location));
808 gdb_printf (file,
809 "gdbarch_dump: gdbarch_push_dummy_code_p() = %d\n",
810 gdbarch_push_dummy_code_p (gdbarch));
811 gdb_printf (file,
812 "gdbarch_dump: push_dummy_code = <%s>\n",
813 host_address_to_string (gdbarch->push_dummy_code));
814 gdb_printf (file,
815 "gdbarch_dump: code_of_frame_writable = <%s>\n",
816 host_address_to_string (gdbarch->code_of_frame_writable));
817 gdb_printf (file,
818 "gdbarch_dump: print_registers_info = <%s>\n",
819 host_address_to_string (gdbarch->print_registers_info));
820 gdb_printf (file,
821 "gdbarch_dump: print_float_info = <%s>\n",
822 host_address_to_string (gdbarch->print_float_info));
823 gdb_printf (file,
824 "gdbarch_dump: gdbarch_print_vector_info_p() = %d\n",
825 gdbarch_print_vector_info_p (gdbarch));
826 gdb_printf (file,
827 "gdbarch_dump: print_vector_info = <%s>\n",
828 host_address_to_string (gdbarch->print_vector_info));
829 gdb_printf (file,
830 "gdbarch_dump: register_sim_regno = <%s>\n",
831 host_address_to_string (gdbarch->register_sim_regno));
832 gdb_printf (file,
833 "gdbarch_dump: cannot_fetch_register = <%s>\n",
834 host_address_to_string (gdbarch->cannot_fetch_register));
835 gdb_printf (file,
836 "gdbarch_dump: cannot_store_register = <%s>\n",
837 host_address_to_string (gdbarch->cannot_store_register));
838 gdb_printf (file,
839 "gdbarch_dump: gdbarch_get_longjmp_target_p() = %d\n",
840 gdbarch_get_longjmp_target_p (gdbarch));
841 gdb_printf (file,
842 "gdbarch_dump: get_longjmp_target = <%s>\n",
843 host_address_to_string (gdbarch->get_longjmp_target));
844 gdb_printf (file,
845 "gdbarch_dump: believe_pcc_promotion = %s\n",
846 plongest (gdbarch->believe_pcc_promotion));
847 gdb_printf (file,
848 "gdbarch_dump: convert_register_p = <%s>\n",
849 host_address_to_string (gdbarch->convert_register_p));
850 gdb_printf (file,
851 "gdbarch_dump: register_to_value = <%s>\n",
852 host_address_to_string (gdbarch->register_to_value));
853 gdb_printf (file,
854 "gdbarch_dump: value_to_register = <%s>\n",
855 host_address_to_string (gdbarch->value_to_register));
856 gdb_printf (file,
857 "gdbarch_dump: value_from_register = <%s>\n",
858 host_address_to_string (gdbarch->value_from_register));
859 gdb_printf (file,
860 "gdbarch_dump: pointer_to_address = <%s>\n",
861 host_address_to_string (gdbarch->pointer_to_address));
862 gdb_printf (file,
863 "gdbarch_dump: address_to_pointer = <%s>\n",
864 host_address_to_string (gdbarch->address_to_pointer));
865 gdb_printf (file,
866 "gdbarch_dump: gdbarch_integer_to_address_p() = %d\n",
867 gdbarch_integer_to_address_p (gdbarch));
868 gdb_printf (file,
869 "gdbarch_dump: integer_to_address = <%s>\n",
870 host_address_to_string (gdbarch->integer_to_address));
871 gdb_printf (file,
872 "gdbarch_dump: gdbarch_return_value_p() = %d\n",
873 gdbarch_return_value_p (gdbarch));
874 gdb_printf (file,
875 "gdbarch_dump: return_value = <%s>\n",
876 host_address_to_string (gdbarch->return_value));
877 gdb_printf (file,
878 "gdbarch_dump: return_in_first_hidden_param_p = <%s>\n",
879 host_address_to_string (gdbarch->return_in_first_hidden_param_p));
880 gdb_printf (file,
881 "gdbarch_dump: skip_prologue = <%s>\n",
882 host_address_to_string (gdbarch->skip_prologue));
883 gdb_printf (file,
884 "gdbarch_dump: gdbarch_skip_main_prologue_p() = %d\n",
885 gdbarch_skip_main_prologue_p (gdbarch));
886 gdb_printf (file,
887 "gdbarch_dump: skip_main_prologue = <%s>\n",
888 host_address_to_string (gdbarch->skip_main_prologue));
889 gdb_printf (file,
890 "gdbarch_dump: gdbarch_skip_entrypoint_p() = %d\n",
891 gdbarch_skip_entrypoint_p (gdbarch));
892 gdb_printf (file,
893 "gdbarch_dump: skip_entrypoint = <%s>\n",
894 host_address_to_string (gdbarch->skip_entrypoint));
895 gdb_printf (file,
896 "gdbarch_dump: inner_than = <%s>\n",
897 host_address_to_string (gdbarch->inner_than));
898 gdb_printf (file,
899 "gdbarch_dump: breakpoint_from_pc = <%s>\n",
900 host_address_to_string (gdbarch->breakpoint_from_pc));
901 gdb_printf (file,
902 "gdbarch_dump: breakpoint_kind_from_pc = <%s>\n",
903 host_address_to_string (gdbarch->breakpoint_kind_from_pc));
904 gdb_printf (file,
905 "gdbarch_dump: sw_breakpoint_from_kind = <%s>\n",
906 host_address_to_string (gdbarch->sw_breakpoint_from_kind));
907 gdb_printf (file,
908 "gdbarch_dump: breakpoint_kind_from_current_state = <%s>\n",
909 host_address_to_string (gdbarch->breakpoint_kind_from_current_state));
910 gdb_printf (file,
911 "gdbarch_dump: gdbarch_adjust_breakpoint_address_p() = %d\n",
912 gdbarch_adjust_breakpoint_address_p (gdbarch));
913 gdb_printf (file,
914 "gdbarch_dump: adjust_breakpoint_address = <%s>\n",
915 host_address_to_string (gdbarch->adjust_breakpoint_address));
916 gdb_printf (file,
917 "gdbarch_dump: memory_insert_breakpoint = <%s>\n",
918 host_address_to_string (gdbarch->memory_insert_breakpoint));
919 gdb_printf (file,
920 "gdbarch_dump: memory_remove_breakpoint = <%s>\n",
921 host_address_to_string (gdbarch->memory_remove_breakpoint));
922 gdb_printf (file,
923 "gdbarch_dump: decr_pc_after_break = %s\n",
924 core_addr_to_string_nz (gdbarch->decr_pc_after_break));
925 gdb_printf (file,
926 "gdbarch_dump: deprecated_function_start_offset = %s\n",
927 core_addr_to_string_nz (gdbarch->deprecated_function_start_offset));
928 gdb_printf (file,
929 "gdbarch_dump: remote_register_number = <%s>\n",
930 host_address_to_string (gdbarch->remote_register_number));
931 gdb_printf (file,
932 "gdbarch_dump: gdbarch_fetch_tls_load_module_address_p() = %d\n",
933 gdbarch_fetch_tls_load_module_address_p (gdbarch));
934 gdb_printf (file,
935 "gdbarch_dump: fetch_tls_load_module_address = <%s>\n",
936 host_address_to_string (gdbarch->fetch_tls_load_module_address));
937 gdb_printf (file,
938 "gdbarch_dump: gdbarch_get_thread_local_address_p() = %d\n",
939 gdbarch_get_thread_local_address_p (gdbarch));
940 gdb_printf (file,
941 "gdbarch_dump: get_thread_local_address = <%s>\n",
942 host_address_to_string (gdbarch->get_thread_local_address));
943 gdb_printf (file,
944 "gdbarch_dump: frame_args_skip = %s\n",
945 core_addr_to_string_nz (gdbarch->frame_args_skip));
946 gdb_printf (file,
947 "gdbarch_dump: unwind_pc = <%s>\n",
948 host_address_to_string (gdbarch->unwind_pc));
949 gdb_printf (file,
950 "gdbarch_dump: unwind_sp = <%s>\n",
951 host_address_to_string (gdbarch->unwind_sp));
952 gdb_printf (file,
953 "gdbarch_dump: gdbarch_frame_num_args_p() = %d\n",
954 gdbarch_frame_num_args_p (gdbarch));
955 gdb_printf (file,
956 "gdbarch_dump: frame_num_args = <%s>\n",
957 host_address_to_string (gdbarch->frame_num_args));
958 gdb_printf (file,
959 "gdbarch_dump: gdbarch_frame_align_p() = %d\n",
960 gdbarch_frame_align_p (gdbarch));
961 gdb_printf (file,
962 "gdbarch_dump: frame_align = <%s>\n",
963 host_address_to_string (gdbarch->frame_align));
964 gdb_printf (file,
965 "gdbarch_dump: stabs_argument_has_addr = <%s>\n",
966 host_address_to_string (gdbarch->stabs_argument_has_addr));
967 gdb_printf (file,
968 "gdbarch_dump: frame_red_zone_size = %s\n",
969 plongest (gdbarch->frame_red_zone_size));
970 gdb_printf (file,
971 "gdbarch_dump: convert_from_func_ptr_addr = <%s>\n",
972 host_address_to_string (gdbarch->convert_from_func_ptr_addr));
973 gdb_printf (file,
974 "gdbarch_dump: addr_bits_remove = <%s>\n",
975 host_address_to_string (gdbarch->addr_bits_remove));
976 gdb_printf (file,
977 "gdbarch_dump: significant_addr_bit = %s\n",
978 plongest (gdbarch->significant_addr_bit));
979 gdb_printf (file,
980 "gdbarch_dump: memtag_to_string = <%s>\n",
981 host_address_to_string (gdbarch->memtag_to_string));
982 gdb_printf (file,
983 "gdbarch_dump: tagged_address_p = <%s>\n",
984 host_address_to_string (gdbarch->tagged_address_p));
985 gdb_printf (file,
986 "gdbarch_dump: memtag_matches_p = <%s>\n",
987 host_address_to_string (gdbarch->memtag_matches_p));
988 gdb_printf (file,
989 "gdbarch_dump: set_memtags = <%s>\n",
990 host_address_to_string (gdbarch->set_memtags));
991 gdb_printf (file,
992 "gdbarch_dump: get_memtag = <%s>\n",
993 host_address_to_string (gdbarch->get_memtag));
994 gdb_printf (file,
995 "gdbarch_dump: memtag_granule_size = %s\n",
996 core_addr_to_string_nz (gdbarch->memtag_granule_size));
997 gdb_printf (file,
998 "gdbarch_dump: gdbarch_software_single_step_p() = %d\n",
999 gdbarch_software_single_step_p (gdbarch));
1000 gdb_printf (file,
1001 "gdbarch_dump: software_single_step = <%s>\n",
1002 host_address_to_string (gdbarch->software_single_step));
1003 gdb_printf (file,
1004 "gdbarch_dump: gdbarch_single_step_through_delay_p() = %d\n",
1005 gdbarch_single_step_through_delay_p (gdbarch));
1006 gdb_printf (file,
1007 "gdbarch_dump: single_step_through_delay = <%s>\n",
1008 host_address_to_string (gdbarch->single_step_through_delay));
1009 gdb_printf (file,
1010 "gdbarch_dump: print_insn = <%s>\n",
1011 host_address_to_string (gdbarch->print_insn));
1012 gdb_printf (file,
1013 "gdbarch_dump: skip_trampoline_code = <%s>\n",
1014 host_address_to_string (gdbarch->skip_trampoline_code));
1015 gdb_printf (file,
1016 "gdbarch_dump: skip_solib_resolver = <%s>\n",
1017 host_address_to_string (gdbarch->skip_solib_resolver));
1018 gdb_printf (file,
1019 "gdbarch_dump: in_solib_return_trampoline = <%s>\n",
1020 host_address_to_string (gdbarch->in_solib_return_trampoline));
1021 gdb_printf (file,
1022 "gdbarch_dump: in_indirect_branch_thunk = <%s>\n",
1023 host_address_to_string (gdbarch->in_indirect_branch_thunk));
1024 gdb_printf (file,
1025 "gdbarch_dump: stack_frame_destroyed_p = <%s>\n",
1026 host_address_to_string (gdbarch->stack_frame_destroyed_p));
1027 gdb_printf (file,
1028 "gdbarch_dump: gdbarch_elf_make_msymbol_special_p() = %d\n",
1029 gdbarch_elf_make_msymbol_special_p (gdbarch));
1030 gdb_printf (file,
1031 "gdbarch_dump: elf_make_msymbol_special = <%s>\n",
1032 host_address_to_string (gdbarch->elf_make_msymbol_special));
1033 gdb_printf (file,
1034 "gdbarch_dump: coff_make_msymbol_special = <%s>\n",
1035 host_address_to_string (gdbarch->coff_make_msymbol_special));
1036 gdb_printf (file,
1037 "gdbarch_dump: make_symbol_special = <%s>\n",
1038 host_address_to_string (gdbarch->make_symbol_special));
1039 gdb_printf (file,
1040 "gdbarch_dump: adjust_dwarf2_addr = <%s>\n",
1041 host_address_to_string (gdbarch->adjust_dwarf2_addr));
1042 gdb_printf (file,
1043 "gdbarch_dump: adjust_dwarf2_line = <%s>\n",
1044 host_address_to_string (gdbarch->adjust_dwarf2_line));
1045 gdb_printf (file,
1046 "gdbarch_dump: cannot_step_breakpoint = %s\n",
1047 plongest (gdbarch->cannot_step_breakpoint));
1048 gdb_printf (file,
1049 "gdbarch_dump: have_nonsteppable_watchpoint = %s\n",
1050 plongest (gdbarch->have_nonsteppable_watchpoint));
1051 gdb_printf (file,
1052 "gdbarch_dump: gdbarch_address_class_type_flags_p() = %d\n",
1053 gdbarch_address_class_type_flags_p (gdbarch));
1054 gdb_printf (file,
1055 "gdbarch_dump: address_class_type_flags = <%s>\n",
1056 host_address_to_string (gdbarch->address_class_type_flags));
1057 gdb_printf (file,
1058 "gdbarch_dump: gdbarch_address_class_type_flags_to_name_p() = %d\n",
1059 gdbarch_address_class_type_flags_to_name_p (gdbarch));
1060 gdb_printf (file,
1061 "gdbarch_dump: address_class_type_flags_to_name = <%s>\n",
1062 host_address_to_string (gdbarch->address_class_type_flags_to_name));
1063 gdb_printf (file,
1064 "gdbarch_dump: execute_dwarf_cfa_vendor_op = <%s>\n",
1065 host_address_to_string (gdbarch->execute_dwarf_cfa_vendor_op));
1066 gdb_printf (file,
1067 "gdbarch_dump: gdbarch_address_class_name_to_type_flags_p() = %d\n",
1068 gdbarch_address_class_name_to_type_flags_p (gdbarch));
1069 gdb_printf (file,
1070 "gdbarch_dump: address_class_name_to_type_flags = <%s>\n",
1071 host_address_to_string (gdbarch->address_class_name_to_type_flags));
1072 gdb_printf (file,
1073 "gdbarch_dump: register_reggroup_p = <%s>\n",
1074 host_address_to_string (gdbarch->register_reggroup_p));
1075 gdb_printf (file,
1076 "gdbarch_dump: gdbarch_fetch_pointer_argument_p() = %d\n",
1077 gdbarch_fetch_pointer_argument_p (gdbarch));
1078 gdb_printf (file,
1079 "gdbarch_dump: fetch_pointer_argument = <%s>\n",
1080 host_address_to_string (gdbarch->fetch_pointer_argument));
1081 gdb_printf (file,
1082 "gdbarch_dump: gdbarch_iterate_over_regset_sections_p() = %d\n",
1083 gdbarch_iterate_over_regset_sections_p (gdbarch));
1084 gdb_printf (file,
1085 "gdbarch_dump: iterate_over_regset_sections = <%s>\n",
1086 host_address_to_string (gdbarch->iterate_over_regset_sections));
1087 gdb_printf (file,
1088 "gdbarch_dump: gdbarch_make_corefile_notes_p() = %d\n",
1089 gdbarch_make_corefile_notes_p (gdbarch));
1090 gdb_printf (file,
1091 "gdbarch_dump: make_corefile_notes = <%s>\n",
1092 host_address_to_string (gdbarch->make_corefile_notes));
1093 gdb_printf (file,
1094 "gdbarch_dump: gdbarch_find_memory_regions_p() = %d\n",
1095 gdbarch_find_memory_regions_p (gdbarch));
1096 gdb_printf (file,
1097 "gdbarch_dump: find_memory_regions = <%s>\n",
1098 host_address_to_string (gdbarch->find_memory_regions));
1099 gdb_printf (file,
1100 "gdbarch_dump: gdbarch_create_memtag_section_p() = %d\n",
1101 gdbarch_create_memtag_section_p (gdbarch));
1102 gdb_printf (file,
1103 "gdbarch_dump: create_memtag_section = <%s>\n",
1104 host_address_to_string (gdbarch->create_memtag_section));
1105 gdb_printf (file,
1106 "gdbarch_dump: gdbarch_fill_memtag_section_p() = %d\n",
1107 gdbarch_fill_memtag_section_p (gdbarch));
1108 gdb_printf (file,
1109 "gdbarch_dump: fill_memtag_section = <%s>\n",
1110 host_address_to_string (gdbarch->fill_memtag_section));
1111 gdb_printf (file,
1112 "gdbarch_dump: gdbarch_decode_memtag_section_p() = %d\n",
1113 gdbarch_decode_memtag_section_p (gdbarch));
1114 gdb_printf (file,
1115 "gdbarch_dump: decode_memtag_section = <%s>\n",
1116 host_address_to_string (gdbarch->decode_memtag_section));
1117 gdb_printf (file,
1118 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_p() = %d\n",
1119 gdbarch_core_xfer_shared_libraries_p (gdbarch));
1120 gdb_printf (file,
1121 "gdbarch_dump: core_xfer_shared_libraries = <%s>\n",
1122 host_address_to_string (gdbarch->core_xfer_shared_libraries));
1123 gdb_printf (file,
1124 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_aix_p() = %d\n",
1125 gdbarch_core_xfer_shared_libraries_aix_p (gdbarch));
1126 gdb_printf (file,
1127 "gdbarch_dump: core_xfer_shared_libraries_aix = <%s>\n",
1128 host_address_to_string (gdbarch->core_xfer_shared_libraries_aix));
1129 gdb_printf (file,
1130 "gdbarch_dump: gdbarch_core_pid_to_str_p() = %d\n",
1131 gdbarch_core_pid_to_str_p (gdbarch));
1132 gdb_printf (file,
1133 "gdbarch_dump: core_pid_to_str = <%s>\n",
1134 host_address_to_string (gdbarch->core_pid_to_str));
1135 gdb_printf (file,
1136 "gdbarch_dump: gdbarch_core_thread_name_p() = %d\n",
1137 gdbarch_core_thread_name_p (gdbarch));
1138 gdb_printf (file,
1139 "gdbarch_dump: core_thread_name = <%s>\n",
1140 host_address_to_string (gdbarch->core_thread_name));
1141 gdb_printf (file,
1142 "gdbarch_dump: gdbarch_core_xfer_siginfo_p() = %d\n",
1143 gdbarch_core_xfer_siginfo_p (gdbarch));
1144 gdb_printf (file,
1145 "gdbarch_dump: core_xfer_siginfo = <%s>\n",
1146 host_address_to_string (gdbarch->core_xfer_siginfo));
1147 gdb_printf (file,
1148 "gdbarch_dump: gdbarch_gcore_bfd_target_p() = %d\n",
1149 gdbarch_gcore_bfd_target_p (gdbarch));
1150 gdb_printf (file,
1151 "gdbarch_dump: gcore_bfd_target = %s\n",
1152 pstring (gdbarch->gcore_bfd_target));
1153 gdb_printf (file,
1154 "gdbarch_dump: vtable_function_descriptors = %s\n",
1155 plongest (gdbarch->vtable_function_descriptors));
1156 gdb_printf (file,
1157 "gdbarch_dump: vbit_in_delta = %s\n",
1158 plongest (gdbarch->vbit_in_delta));
1159 gdb_printf (file,
1160 "gdbarch_dump: skip_permanent_breakpoint = <%s>\n",
1161 host_address_to_string (gdbarch->skip_permanent_breakpoint));
1162 gdb_printf (file,
1163 "gdbarch_dump: gdbarch_max_insn_length_p() = %d\n",
1164 gdbarch_max_insn_length_p (gdbarch));
1165 gdb_printf (file,
1166 "gdbarch_dump: max_insn_length = %s\n",
1167 plongest (gdbarch->max_insn_length));
1168 gdb_printf (file,
1169 "gdbarch_dump: gdbarch_displaced_step_copy_insn_p() = %d\n",
1170 gdbarch_displaced_step_copy_insn_p (gdbarch));
1171 gdb_printf (file,
1172 "gdbarch_dump: displaced_step_copy_insn = <%s>\n",
1173 host_address_to_string (gdbarch->displaced_step_copy_insn));
1174 gdb_printf (file,
1175 "gdbarch_dump: displaced_step_hw_singlestep = <%s>\n",
1176 host_address_to_string (gdbarch->displaced_step_hw_singlestep));
1177 gdb_printf (file,
1178 "gdbarch_dump: gdbarch_displaced_step_fixup_p() = %d\n",
1179 gdbarch_displaced_step_fixup_p (gdbarch));
1180 gdb_printf (file,
1181 "gdbarch_dump: displaced_step_fixup = <%s>\n",
1182 host_address_to_string (gdbarch->displaced_step_fixup));
1183 gdb_printf (file,
1184 "gdbarch_dump: gdbarch_displaced_step_prepare_p() = %d\n",
1185 gdbarch_displaced_step_prepare_p (gdbarch));
1186 gdb_printf (file,
1187 "gdbarch_dump: displaced_step_prepare = <%s>\n",
1188 host_address_to_string (gdbarch->displaced_step_prepare));
1189 gdb_printf (file,
1190 "gdbarch_dump: displaced_step_finish = <%s>\n",
1191 host_address_to_string (gdbarch->displaced_step_finish));
1192 gdb_printf (file,
1193 "gdbarch_dump: gdbarch_displaced_step_copy_insn_closure_by_addr_p() = %d\n",
1194 gdbarch_displaced_step_copy_insn_closure_by_addr_p (gdbarch));
1195 gdb_printf (file,
1196 "gdbarch_dump: displaced_step_copy_insn_closure_by_addr = <%s>\n",
1197 host_address_to_string (gdbarch->displaced_step_copy_insn_closure_by_addr));
1198 gdb_printf (file,
1199 "gdbarch_dump: displaced_step_restore_all_in_ptid = <%s>\n",
1200 host_address_to_string (gdbarch->displaced_step_restore_all_in_ptid));
1201 gdb_printf (file,
1202 "gdbarch_dump: gdbarch_relocate_instruction_p() = %d\n",
1203 gdbarch_relocate_instruction_p (gdbarch));
1204 gdb_printf (file,
1205 "gdbarch_dump: relocate_instruction = <%s>\n",
1206 host_address_to_string (gdbarch->relocate_instruction));
1207 gdb_printf (file,
1208 "gdbarch_dump: gdbarch_overlay_update_p() = %d\n",
1209 gdbarch_overlay_update_p (gdbarch));
1210 gdb_printf (file,
1211 "gdbarch_dump: overlay_update = <%s>\n",
1212 host_address_to_string (gdbarch->overlay_update));
1213 gdb_printf (file,
1214 "gdbarch_dump: gdbarch_core_read_description_p() = %d\n",
1215 gdbarch_core_read_description_p (gdbarch));
1216 gdb_printf (file,
1217 "gdbarch_dump: core_read_description = <%s>\n",
1218 host_address_to_string (gdbarch->core_read_description));
1219 gdb_printf (file,
1220 "gdbarch_dump: sofun_address_maybe_missing = %s\n",
1221 plongest (gdbarch->sofun_address_maybe_missing));
1222 gdb_printf (file,
1223 "gdbarch_dump: gdbarch_process_record_p() = %d\n",
1224 gdbarch_process_record_p (gdbarch));
1225 gdb_printf (file,
1226 "gdbarch_dump: process_record = <%s>\n",
1227 host_address_to_string (gdbarch->process_record));
1228 gdb_printf (file,
1229 "gdbarch_dump: gdbarch_process_record_signal_p() = %d\n",
1230 gdbarch_process_record_signal_p (gdbarch));
1231 gdb_printf (file,
1232 "gdbarch_dump: process_record_signal = <%s>\n",
1233 host_address_to_string (gdbarch->process_record_signal));
1234 gdb_printf (file,
1235 "gdbarch_dump: gdbarch_gdb_signal_from_target_p() = %d\n",
1236 gdbarch_gdb_signal_from_target_p (gdbarch));
1237 gdb_printf (file,
1238 "gdbarch_dump: gdb_signal_from_target = <%s>\n",
1239 host_address_to_string (gdbarch->gdb_signal_from_target));
1240 gdb_printf (file,
1241 "gdbarch_dump: gdbarch_gdb_signal_to_target_p() = %d\n",
1242 gdbarch_gdb_signal_to_target_p (gdbarch));
1243 gdb_printf (file,
1244 "gdbarch_dump: gdb_signal_to_target = <%s>\n",
1245 host_address_to_string (gdbarch->gdb_signal_to_target));
1246 gdb_printf (file,
1247 "gdbarch_dump: gdbarch_get_siginfo_type_p() = %d\n",
1248 gdbarch_get_siginfo_type_p (gdbarch));
1249 gdb_printf (file,
1250 "gdbarch_dump: get_siginfo_type = <%s>\n",
1251 host_address_to_string (gdbarch->get_siginfo_type));
1252 gdb_printf (file,
1253 "gdbarch_dump: gdbarch_record_special_symbol_p() = %d\n",
1254 gdbarch_record_special_symbol_p (gdbarch));
1255 gdb_printf (file,
1256 "gdbarch_dump: record_special_symbol = <%s>\n",
1257 host_address_to_string (gdbarch->record_special_symbol));
1258 gdb_printf (file,
1259 "gdbarch_dump: gdbarch_get_syscall_number_p() = %d\n",
1260 gdbarch_get_syscall_number_p (gdbarch));
1261 gdb_printf (file,
1262 "gdbarch_dump: get_syscall_number = <%s>\n",
1263 host_address_to_string (gdbarch->get_syscall_number));
1264 gdb_printf (file,
1265 "gdbarch_dump: xml_syscall_file = %s\n",
1266 pstring (gdbarch->xml_syscall_file));
1267 gdb_printf (file,
1268 "gdbarch_dump: syscalls_info = %s\n",
1269 host_address_to_string (gdbarch->syscalls_info));
1270 gdb_printf (file,
1271 "gdbarch_dump: stap_integer_prefixes = %s\n",
1272 pstring_list (gdbarch->stap_integer_prefixes));
1273 gdb_printf (file,
1274 "gdbarch_dump: stap_integer_suffixes = %s\n",
1275 pstring_list (gdbarch->stap_integer_suffixes));
1276 gdb_printf (file,
1277 "gdbarch_dump: stap_register_prefixes = %s\n",
1278 pstring_list (gdbarch->stap_register_prefixes));
1279 gdb_printf (file,
1280 "gdbarch_dump: stap_register_suffixes = %s\n",
1281 pstring_list (gdbarch->stap_register_suffixes));
1282 gdb_printf (file,
1283 "gdbarch_dump: stap_register_indirection_prefixes = %s\n",
1284 pstring_list (gdbarch->stap_register_indirection_prefixes));
1285 gdb_printf (file,
1286 "gdbarch_dump: stap_register_indirection_suffixes = %s\n",
1287 pstring_list (gdbarch->stap_register_indirection_suffixes));
1288 gdb_printf (file,
1289 "gdbarch_dump: stap_gdb_register_prefix = %s\n",
1290 pstring (gdbarch->stap_gdb_register_prefix));
1291 gdb_printf (file,
1292 "gdbarch_dump: stap_gdb_register_suffix = %s\n",
1293 pstring (gdbarch->stap_gdb_register_suffix));
1294 gdb_printf (file,
1295 "gdbarch_dump: gdbarch_stap_is_single_operand_p() = %d\n",
1296 gdbarch_stap_is_single_operand_p (gdbarch));
1297 gdb_printf (file,
1298 "gdbarch_dump: stap_is_single_operand = <%s>\n",
1299 host_address_to_string (gdbarch->stap_is_single_operand));
1300 gdb_printf (file,
1301 "gdbarch_dump: gdbarch_stap_parse_special_token_p() = %d\n",
1302 gdbarch_stap_parse_special_token_p (gdbarch));
1303 gdb_printf (file,
1304 "gdbarch_dump: stap_parse_special_token = <%s>\n",
1305 host_address_to_string (gdbarch->stap_parse_special_token));
1306 gdb_printf (file,
1307 "gdbarch_dump: gdbarch_stap_adjust_register_p() = %d\n",
1308 gdbarch_stap_adjust_register_p (gdbarch));
1309 gdb_printf (file,
1310 "gdbarch_dump: stap_adjust_register = <%s>\n",
1311 host_address_to_string (gdbarch->stap_adjust_register));
1312 gdb_printf (file,
1313 "gdbarch_dump: gdbarch_dtrace_parse_probe_argument_p() = %d\n",
1314 gdbarch_dtrace_parse_probe_argument_p (gdbarch));
1315 gdb_printf (file,
1316 "gdbarch_dump: dtrace_parse_probe_argument = <%s>\n",
1317 host_address_to_string (gdbarch->dtrace_parse_probe_argument));
1318 gdb_printf (file,
1319 "gdbarch_dump: gdbarch_dtrace_probe_is_enabled_p() = %d\n",
1320 gdbarch_dtrace_probe_is_enabled_p (gdbarch));
1321 gdb_printf (file,
1322 "gdbarch_dump: dtrace_probe_is_enabled = <%s>\n",
1323 host_address_to_string (gdbarch->dtrace_probe_is_enabled));
1324 gdb_printf (file,
1325 "gdbarch_dump: gdbarch_dtrace_enable_probe_p() = %d\n",
1326 gdbarch_dtrace_enable_probe_p (gdbarch));
1327 gdb_printf (file,
1328 "gdbarch_dump: dtrace_enable_probe = <%s>\n",
1329 host_address_to_string (gdbarch->dtrace_enable_probe));
1330 gdb_printf (file,
1331 "gdbarch_dump: gdbarch_dtrace_disable_probe_p() = %d\n",
1332 gdbarch_dtrace_disable_probe_p (gdbarch));
1333 gdb_printf (file,
1334 "gdbarch_dump: dtrace_disable_probe = <%s>\n",
1335 host_address_to_string (gdbarch->dtrace_disable_probe));
1336 gdb_printf (file,
1337 "gdbarch_dump: has_global_solist = %s\n",
1338 plongest (gdbarch->has_global_solist));
1339 gdb_printf (file,
1340 "gdbarch_dump: has_global_breakpoints = %s\n",
1341 plongest (gdbarch->has_global_breakpoints));
1342 gdb_printf (file,
1343 "gdbarch_dump: has_shared_address_space = <%s>\n",
1344 host_address_to_string (gdbarch->has_shared_address_space));
1345 gdb_printf (file,
1346 "gdbarch_dump: fast_tracepoint_valid_at = <%s>\n",
1347 host_address_to_string (gdbarch->fast_tracepoint_valid_at));
1348 gdb_printf (file,
1349 "gdbarch_dump: guess_tracepoint_registers = <%s>\n",
1350 host_address_to_string (gdbarch->guess_tracepoint_registers));
1351 gdb_printf (file,
1352 "gdbarch_dump: auto_charset = <%s>\n",
1353 host_address_to_string (gdbarch->auto_charset));
1354 gdb_printf (file,
1355 "gdbarch_dump: auto_wide_charset = <%s>\n",
1356 host_address_to_string (gdbarch->auto_wide_charset));
1357 gdb_printf (file,
1358 "gdbarch_dump: solib_symbols_extension = %s\n",
1359 pstring (gdbarch->solib_symbols_extension));
1360 gdb_printf (file,
1361 "gdbarch_dump: has_dos_based_file_system = %s\n",
1362 plongest (gdbarch->has_dos_based_file_system));
1363 gdb_printf (file,
1364 "gdbarch_dump: gen_return_address = <%s>\n",
1365 host_address_to_string (gdbarch->gen_return_address));
1366 gdb_printf (file,
1367 "gdbarch_dump: gdbarch_info_proc_p() = %d\n",
1368 gdbarch_info_proc_p (gdbarch));
1369 gdb_printf (file,
1370 "gdbarch_dump: info_proc = <%s>\n",
1371 host_address_to_string (gdbarch->info_proc));
1372 gdb_printf (file,
1373 "gdbarch_dump: gdbarch_core_info_proc_p() = %d\n",
1374 gdbarch_core_info_proc_p (gdbarch));
1375 gdb_printf (file,
1376 "gdbarch_dump: core_info_proc = <%s>\n",
1377 host_address_to_string (gdbarch->core_info_proc));
1378 gdb_printf (file,
1379 "gdbarch_dump: iterate_over_objfiles_in_search_order = <%s>\n",
1380 host_address_to_string (gdbarch->iterate_over_objfiles_in_search_order));
1381 gdb_printf (file,
1382 "gdbarch_dump: ravenscar_ops = %s\n",
1383 host_address_to_string (gdbarch->ravenscar_ops));
1384 gdb_printf (file,
1385 "gdbarch_dump: insn_is_call = <%s>\n",
1386 host_address_to_string (gdbarch->insn_is_call));
1387 gdb_printf (file,
1388 "gdbarch_dump: insn_is_ret = <%s>\n",
1389 host_address_to_string (gdbarch->insn_is_ret));
1390 gdb_printf (file,
1391 "gdbarch_dump: insn_is_jump = <%s>\n",
1392 host_address_to_string (gdbarch->insn_is_jump));
1393 gdb_printf (file,
1394 "gdbarch_dump: program_breakpoint_here_p = <%s>\n",
1395 host_address_to_string (gdbarch->program_breakpoint_here_p));
1396 gdb_printf (file,
1397 "gdbarch_dump: gdbarch_auxv_parse_p() = %d\n",
1398 gdbarch_auxv_parse_p (gdbarch));
1399 gdb_printf (file,
1400 "gdbarch_dump: auxv_parse = <%s>\n",
1401 host_address_to_string (gdbarch->auxv_parse));
1402 gdb_printf (file,
1403 "gdbarch_dump: print_auxv_entry = <%s>\n",
1404 host_address_to_string (gdbarch->print_auxv_entry));
1405 gdb_printf (file,
1406 "gdbarch_dump: vsyscall_range = <%s>\n",
1407 host_address_to_string (gdbarch->vsyscall_range));
1408 gdb_printf (file,
1409 "gdbarch_dump: infcall_mmap = <%s>\n",
1410 host_address_to_string (gdbarch->infcall_mmap));
1411 gdb_printf (file,
1412 "gdbarch_dump: infcall_munmap = <%s>\n",
1413 host_address_to_string (gdbarch->infcall_munmap));
1414 gdb_printf (file,
1415 "gdbarch_dump: gcc_target_options = <%s>\n",
1416 host_address_to_string (gdbarch->gcc_target_options));
1417 gdb_printf (file,
1418 "gdbarch_dump: gnu_triplet_regexp = <%s>\n",
1419 host_address_to_string (gdbarch->gnu_triplet_regexp));
1420 gdb_printf (file,
1421 "gdbarch_dump: addressable_memory_unit_size = <%s>\n",
1422 host_address_to_string (gdbarch->addressable_memory_unit_size));
1423 gdb_printf (file,
1424 "gdbarch_dump: disassembler_options_implicit = %s\n",
1425 pstring (gdbarch->disassembler_options_implicit));
1426 gdb_printf (file,
1427 "gdbarch_dump: disassembler_options = %s\n",
1428 pstring_ptr (gdbarch->disassembler_options));
1429 gdb_printf (file,
1430 "gdbarch_dump: valid_disassembler_options = %s\n",
1431 host_address_to_string (gdbarch->valid_disassembler_options));
1432 gdb_printf (file,
1433 "gdbarch_dump: type_align = <%s>\n",
1434 host_address_to_string (gdbarch->type_align));
1435 gdb_printf (file,
1436 "gdbarch_dump: get_pc_address_flags = <%s>\n",
1437 host_address_to_string (gdbarch->get_pc_address_flags));
1438 gdb_printf (file,
1439 "gdbarch_dump: read_core_file_mappings = <%s>\n",
1440 host_address_to_string (gdbarch->read_core_file_mappings));
1441 if (gdbarch->dump_tdep != NULL)
1442 gdbarch->dump_tdep (gdbarch, file);
1446 const struct bfd_arch_info *
1447 gdbarch_bfd_arch_info (struct gdbarch *gdbarch)
1449 gdb_assert (gdbarch != NULL);
1450 if (gdbarch_debug >= 2)
1451 gdb_printf (gdb_stdlog, "gdbarch_bfd_arch_info called\n");
1452 return gdbarch->bfd_arch_info;
1455 enum bfd_endian
1456 gdbarch_byte_order (struct gdbarch *gdbarch)
1458 gdb_assert (gdbarch != NULL);
1459 if (gdbarch_debug >= 2)
1460 gdb_printf (gdb_stdlog, "gdbarch_byte_order called\n");
1461 return gdbarch->byte_order;
1464 enum bfd_endian
1465 gdbarch_byte_order_for_code (struct gdbarch *gdbarch)
1467 gdb_assert (gdbarch != NULL);
1468 if (gdbarch_debug >= 2)
1469 gdb_printf (gdb_stdlog, "gdbarch_byte_order_for_code called\n");
1470 return gdbarch->byte_order_for_code;
1473 enum gdb_osabi
1474 gdbarch_osabi (struct gdbarch *gdbarch)
1476 gdb_assert (gdbarch != NULL);
1477 if (gdbarch_debug >= 2)
1478 gdb_printf (gdb_stdlog, "gdbarch_osabi called\n");
1479 return gdbarch->osabi;
1482 const struct target_desc *
1483 gdbarch_target_desc (struct gdbarch *gdbarch)
1485 gdb_assert (gdbarch != NULL);
1486 if (gdbarch_debug >= 2)
1487 gdb_printf (gdb_stdlog, "gdbarch_target_desc called\n");
1488 return gdbarch->target_desc;
1492 gdbarch_short_bit (struct gdbarch *gdbarch)
1494 gdb_assert (gdbarch != NULL);
1495 /* Skip verify of short_bit, invalid_p == 0 */
1496 if (gdbarch_debug >= 2)
1497 gdb_printf (gdb_stdlog, "gdbarch_short_bit called\n");
1498 return gdbarch->short_bit;
1501 void
1502 set_gdbarch_short_bit (struct gdbarch *gdbarch,
1503 int short_bit)
1505 gdbarch->short_bit = short_bit;
1509 gdbarch_int_bit (struct gdbarch *gdbarch)
1511 gdb_assert (gdbarch != NULL);
1512 /* Skip verify of int_bit, invalid_p == 0 */
1513 if (gdbarch_debug >= 2)
1514 gdb_printf (gdb_stdlog, "gdbarch_int_bit called\n");
1515 return gdbarch->int_bit;
1518 void
1519 set_gdbarch_int_bit (struct gdbarch *gdbarch,
1520 int int_bit)
1522 gdbarch->int_bit = int_bit;
1526 gdbarch_long_bit (struct gdbarch *gdbarch)
1528 gdb_assert (gdbarch != NULL);
1529 /* Skip verify of long_bit, invalid_p == 0 */
1530 if (gdbarch_debug >= 2)
1531 gdb_printf (gdb_stdlog, "gdbarch_long_bit called\n");
1532 return gdbarch->long_bit;
1535 void
1536 set_gdbarch_long_bit (struct gdbarch *gdbarch,
1537 int long_bit)
1539 gdbarch->long_bit = long_bit;
1543 gdbarch_long_long_bit (struct gdbarch *gdbarch)
1545 gdb_assert (gdbarch != NULL);
1546 /* Skip verify of long_long_bit, invalid_p == 0 */
1547 if (gdbarch_debug >= 2)
1548 gdb_printf (gdb_stdlog, "gdbarch_long_long_bit called\n");
1549 return gdbarch->long_long_bit;
1552 void
1553 set_gdbarch_long_long_bit (struct gdbarch *gdbarch,
1554 int long_long_bit)
1556 gdbarch->long_long_bit = long_long_bit;
1560 gdbarch_bfloat16_bit (struct gdbarch *gdbarch)
1562 gdb_assert (gdbarch != NULL);
1563 /* Skip verify of bfloat16_bit, invalid_p == 0 */
1564 if (gdbarch_debug >= 2)
1565 gdb_printf (gdb_stdlog, "gdbarch_bfloat16_bit called\n");
1566 return gdbarch->bfloat16_bit;
1569 void
1570 set_gdbarch_bfloat16_bit (struct gdbarch *gdbarch,
1571 int bfloat16_bit)
1573 gdbarch->bfloat16_bit = bfloat16_bit;
1576 const struct floatformat **
1577 gdbarch_bfloat16_format (struct gdbarch *gdbarch)
1579 gdb_assert (gdbarch != NULL);
1580 if (gdbarch_debug >= 2)
1581 gdb_printf (gdb_stdlog, "gdbarch_bfloat16_format called\n");
1582 return gdbarch->bfloat16_format;
1585 void
1586 set_gdbarch_bfloat16_format (struct gdbarch *gdbarch,
1587 const struct floatformat ** bfloat16_format)
1589 gdbarch->bfloat16_format = bfloat16_format;
1593 gdbarch_half_bit (struct gdbarch *gdbarch)
1595 gdb_assert (gdbarch != NULL);
1596 /* Skip verify of half_bit, invalid_p == 0 */
1597 if (gdbarch_debug >= 2)
1598 gdb_printf (gdb_stdlog, "gdbarch_half_bit called\n");
1599 return gdbarch->half_bit;
1602 void
1603 set_gdbarch_half_bit (struct gdbarch *gdbarch,
1604 int half_bit)
1606 gdbarch->half_bit = half_bit;
1609 const struct floatformat **
1610 gdbarch_half_format (struct gdbarch *gdbarch)
1612 gdb_assert (gdbarch != NULL);
1613 if (gdbarch_debug >= 2)
1614 gdb_printf (gdb_stdlog, "gdbarch_half_format called\n");
1615 return gdbarch->half_format;
1618 void
1619 set_gdbarch_half_format (struct gdbarch *gdbarch,
1620 const struct floatformat ** half_format)
1622 gdbarch->half_format = half_format;
1626 gdbarch_float_bit (struct gdbarch *gdbarch)
1628 gdb_assert (gdbarch != NULL);
1629 /* Skip verify of float_bit, invalid_p == 0 */
1630 if (gdbarch_debug >= 2)
1631 gdb_printf (gdb_stdlog, "gdbarch_float_bit called\n");
1632 return gdbarch->float_bit;
1635 void
1636 set_gdbarch_float_bit (struct gdbarch *gdbarch,
1637 int float_bit)
1639 gdbarch->float_bit = float_bit;
1642 const struct floatformat **
1643 gdbarch_float_format (struct gdbarch *gdbarch)
1645 gdb_assert (gdbarch != NULL);
1646 if (gdbarch_debug >= 2)
1647 gdb_printf (gdb_stdlog, "gdbarch_float_format called\n");
1648 return gdbarch->float_format;
1651 void
1652 set_gdbarch_float_format (struct gdbarch *gdbarch,
1653 const struct floatformat ** float_format)
1655 gdbarch->float_format = float_format;
1659 gdbarch_double_bit (struct gdbarch *gdbarch)
1661 gdb_assert (gdbarch != NULL);
1662 /* Skip verify of double_bit, invalid_p == 0 */
1663 if (gdbarch_debug >= 2)
1664 gdb_printf (gdb_stdlog, "gdbarch_double_bit called\n");
1665 return gdbarch->double_bit;
1668 void
1669 set_gdbarch_double_bit (struct gdbarch *gdbarch,
1670 int double_bit)
1672 gdbarch->double_bit = double_bit;
1675 const struct floatformat **
1676 gdbarch_double_format (struct gdbarch *gdbarch)
1678 gdb_assert (gdbarch != NULL);
1679 if (gdbarch_debug >= 2)
1680 gdb_printf (gdb_stdlog, "gdbarch_double_format called\n");
1681 return gdbarch->double_format;
1684 void
1685 set_gdbarch_double_format (struct gdbarch *gdbarch,
1686 const struct floatformat ** double_format)
1688 gdbarch->double_format = double_format;
1692 gdbarch_long_double_bit (struct gdbarch *gdbarch)
1694 gdb_assert (gdbarch != NULL);
1695 /* Skip verify of long_double_bit, invalid_p == 0 */
1696 if (gdbarch_debug >= 2)
1697 gdb_printf (gdb_stdlog, "gdbarch_long_double_bit called\n");
1698 return gdbarch->long_double_bit;
1701 void
1702 set_gdbarch_long_double_bit (struct gdbarch *gdbarch,
1703 int long_double_bit)
1705 gdbarch->long_double_bit = long_double_bit;
1708 const struct floatformat **
1709 gdbarch_long_double_format (struct gdbarch *gdbarch)
1711 gdb_assert (gdbarch != NULL);
1712 if (gdbarch_debug >= 2)
1713 gdb_printf (gdb_stdlog, "gdbarch_long_double_format called\n");
1714 return gdbarch->long_double_format;
1717 void
1718 set_gdbarch_long_double_format (struct gdbarch *gdbarch,
1719 const struct floatformat ** long_double_format)
1721 gdbarch->long_double_format = long_double_format;
1725 gdbarch_wchar_bit (struct gdbarch *gdbarch)
1727 gdb_assert (gdbarch != NULL);
1728 /* Skip verify of wchar_bit, invalid_p == 0 */
1729 if (gdbarch_debug >= 2)
1730 gdb_printf (gdb_stdlog, "gdbarch_wchar_bit called\n");
1731 return gdbarch->wchar_bit;
1734 void
1735 set_gdbarch_wchar_bit (struct gdbarch *gdbarch,
1736 int wchar_bit)
1738 gdbarch->wchar_bit = wchar_bit;
1742 gdbarch_wchar_signed (struct gdbarch *gdbarch)
1744 gdb_assert (gdbarch != NULL);
1745 /* Check variable changed from pre-default. */
1746 gdb_assert (gdbarch->wchar_signed != -1);
1747 if (gdbarch_debug >= 2)
1748 gdb_printf (gdb_stdlog, "gdbarch_wchar_signed called\n");
1749 return gdbarch->wchar_signed;
1752 void
1753 set_gdbarch_wchar_signed (struct gdbarch *gdbarch,
1754 int wchar_signed)
1756 gdbarch->wchar_signed = wchar_signed;
1759 const struct floatformat **
1760 gdbarch_floatformat_for_type (struct gdbarch *gdbarch, const char *name, int length)
1762 gdb_assert (gdbarch != NULL);
1763 gdb_assert (gdbarch->floatformat_for_type != NULL);
1764 if (gdbarch_debug >= 2)
1765 gdb_printf (gdb_stdlog, "gdbarch_floatformat_for_type called\n");
1766 return gdbarch->floatformat_for_type (gdbarch, name, length);
1769 void
1770 set_gdbarch_floatformat_for_type (struct gdbarch *gdbarch,
1771 gdbarch_floatformat_for_type_ftype floatformat_for_type)
1773 gdbarch->floatformat_for_type = floatformat_for_type;
1777 gdbarch_ptr_bit (struct gdbarch *gdbarch)
1779 gdb_assert (gdbarch != NULL);
1780 /* Skip verify of ptr_bit, invalid_p == 0 */
1781 if (gdbarch_debug >= 2)
1782 gdb_printf (gdb_stdlog, "gdbarch_ptr_bit called\n");
1783 return gdbarch->ptr_bit;
1786 void
1787 set_gdbarch_ptr_bit (struct gdbarch *gdbarch,
1788 int ptr_bit)
1790 gdbarch->ptr_bit = ptr_bit;
1794 gdbarch_addr_bit (struct gdbarch *gdbarch)
1796 gdb_assert (gdbarch != NULL);
1797 /* Check variable changed from pre-default. */
1798 gdb_assert (gdbarch->addr_bit != 0);
1799 if (gdbarch_debug >= 2)
1800 gdb_printf (gdb_stdlog, "gdbarch_addr_bit called\n");
1801 return gdbarch->addr_bit;
1804 void
1805 set_gdbarch_addr_bit (struct gdbarch *gdbarch,
1806 int addr_bit)
1808 gdbarch->addr_bit = addr_bit;
1812 gdbarch_dwarf2_addr_size (struct gdbarch *gdbarch)
1814 gdb_assert (gdbarch != NULL);
1815 /* Check variable changed from pre-default. */
1816 gdb_assert (gdbarch->dwarf2_addr_size != 0);
1817 if (gdbarch_debug >= 2)
1818 gdb_printf (gdb_stdlog, "gdbarch_dwarf2_addr_size called\n");
1819 return gdbarch->dwarf2_addr_size;
1822 void
1823 set_gdbarch_dwarf2_addr_size (struct gdbarch *gdbarch,
1824 int dwarf2_addr_size)
1826 gdbarch->dwarf2_addr_size = dwarf2_addr_size;
1830 gdbarch_char_signed (struct gdbarch *gdbarch)
1832 gdb_assert (gdbarch != NULL);
1833 /* Check variable changed from pre-default. */
1834 gdb_assert (gdbarch->char_signed != -1);
1835 if (gdbarch_debug >= 2)
1836 gdb_printf (gdb_stdlog, "gdbarch_char_signed called\n");
1837 return gdbarch->char_signed;
1840 void
1841 set_gdbarch_char_signed (struct gdbarch *gdbarch,
1842 int char_signed)
1844 gdbarch->char_signed = char_signed;
1847 bool
1848 gdbarch_read_pc_p (struct gdbarch *gdbarch)
1850 gdb_assert (gdbarch != NULL);
1851 return gdbarch->read_pc != NULL;
1854 CORE_ADDR
1855 gdbarch_read_pc (struct gdbarch *gdbarch, readable_regcache *regcache)
1857 gdb_assert (gdbarch != NULL);
1858 gdb_assert (gdbarch->read_pc != NULL);
1859 if (gdbarch_debug >= 2)
1860 gdb_printf (gdb_stdlog, "gdbarch_read_pc called\n");
1861 return gdbarch->read_pc (regcache);
1864 void
1865 set_gdbarch_read_pc (struct gdbarch *gdbarch,
1866 gdbarch_read_pc_ftype read_pc)
1868 gdbarch->read_pc = read_pc;
1871 bool
1872 gdbarch_write_pc_p (struct gdbarch *gdbarch)
1874 gdb_assert (gdbarch != NULL);
1875 return gdbarch->write_pc != NULL;
1878 void
1879 gdbarch_write_pc (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR val)
1881 gdb_assert (gdbarch != NULL);
1882 gdb_assert (gdbarch->write_pc != NULL);
1883 if (gdbarch_debug >= 2)
1884 gdb_printf (gdb_stdlog, "gdbarch_write_pc called\n");
1885 gdbarch->write_pc (regcache, val);
1888 void
1889 set_gdbarch_write_pc (struct gdbarch *gdbarch,
1890 gdbarch_write_pc_ftype write_pc)
1892 gdbarch->write_pc = write_pc;
1895 void
1896 gdbarch_virtual_frame_pointer (struct gdbarch *gdbarch, CORE_ADDR pc, int *frame_regnum, LONGEST *frame_offset)
1898 gdb_assert (gdbarch != NULL);
1899 gdb_assert (gdbarch->virtual_frame_pointer != NULL);
1900 if (gdbarch_debug >= 2)
1901 gdb_printf (gdb_stdlog, "gdbarch_virtual_frame_pointer called\n");
1902 gdbarch->virtual_frame_pointer (gdbarch, pc, frame_regnum, frame_offset);
1905 void
1906 set_gdbarch_virtual_frame_pointer (struct gdbarch *gdbarch,
1907 gdbarch_virtual_frame_pointer_ftype virtual_frame_pointer)
1909 gdbarch->virtual_frame_pointer = virtual_frame_pointer;
1912 bool
1913 gdbarch_pseudo_register_read_p (struct gdbarch *gdbarch)
1915 gdb_assert (gdbarch != NULL);
1916 return gdbarch->pseudo_register_read != NULL;
1919 enum register_status
1920 gdbarch_pseudo_register_read (struct gdbarch *gdbarch, readable_regcache *regcache, int cookednum, gdb_byte *buf)
1922 gdb_assert (gdbarch != NULL);
1923 gdb_assert (gdbarch->pseudo_register_read != NULL);
1924 if (gdbarch_debug >= 2)
1925 gdb_printf (gdb_stdlog, "gdbarch_pseudo_register_read called\n");
1926 return gdbarch->pseudo_register_read (gdbarch, regcache, cookednum, buf);
1929 void
1930 set_gdbarch_pseudo_register_read (struct gdbarch *gdbarch,
1931 gdbarch_pseudo_register_read_ftype pseudo_register_read)
1933 gdbarch->pseudo_register_read = pseudo_register_read;
1936 bool
1937 gdbarch_pseudo_register_read_value_p (struct gdbarch *gdbarch)
1939 gdb_assert (gdbarch != NULL);
1940 return gdbarch->pseudo_register_read_value != NULL;
1943 struct value *
1944 gdbarch_pseudo_register_read_value (struct gdbarch *gdbarch, readable_regcache *regcache, int cookednum)
1946 gdb_assert (gdbarch != NULL);
1947 gdb_assert (gdbarch->pseudo_register_read_value != NULL);
1948 if (gdbarch_debug >= 2)
1949 gdb_printf (gdb_stdlog, "gdbarch_pseudo_register_read_value called\n");
1950 return gdbarch->pseudo_register_read_value (gdbarch, regcache, cookednum);
1953 void
1954 set_gdbarch_pseudo_register_read_value (struct gdbarch *gdbarch,
1955 gdbarch_pseudo_register_read_value_ftype pseudo_register_read_value)
1957 gdbarch->pseudo_register_read_value = pseudo_register_read_value;
1960 bool
1961 gdbarch_pseudo_register_write_p (struct gdbarch *gdbarch)
1963 gdb_assert (gdbarch != NULL);
1964 return gdbarch->pseudo_register_write != NULL;
1967 void
1968 gdbarch_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, int cookednum, const gdb_byte *buf)
1970 gdb_assert (gdbarch != NULL);
1971 gdb_assert (gdbarch->pseudo_register_write != NULL);
1972 if (gdbarch_debug >= 2)
1973 gdb_printf (gdb_stdlog, "gdbarch_pseudo_register_write called\n");
1974 gdbarch->pseudo_register_write (gdbarch, regcache, cookednum, buf);
1977 void
1978 set_gdbarch_pseudo_register_write (struct gdbarch *gdbarch,
1979 gdbarch_pseudo_register_write_ftype pseudo_register_write)
1981 gdbarch->pseudo_register_write = pseudo_register_write;
1985 gdbarch_num_regs (struct gdbarch *gdbarch)
1987 gdb_assert (gdbarch != NULL);
1988 /* Check variable changed from pre-default. */
1989 gdb_assert (gdbarch->num_regs != -1);
1990 if (gdbarch_debug >= 2)
1991 gdb_printf (gdb_stdlog, "gdbarch_num_regs called\n");
1992 return gdbarch->num_regs;
1995 void
1996 set_gdbarch_num_regs (struct gdbarch *gdbarch,
1997 int num_regs)
1999 gdbarch->num_regs = num_regs;
2003 gdbarch_num_pseudo_regs (struct gdbarch *gdbarch)
2005 gdb_assert (gdbarch != NULL);
2006 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
2007 if (gdbarch_debug >= 2)
2008 gdb_printf (gdb_stdlog, "gdbarch_num_pseudo_regs called\n");
2009 return gdbarch->num_pseudo_regs;
2012 void
2013 set_gdbarch_num_pseudo_regs (struct gdbarch *gdbarch,
2014 int num_pseudo_regs)
2016 gdbarch->num_pseudo_regs = num_pseudo_regs;
2019 bool
2020 gdbarch_ax_pseudo_register_collect_p (struct gdbarch *gdbarch)
2022 gdb_assert (gdbarch != NULL);
2023 return gdbarch->ax_pseudo_register_collect != NULL;
2027 gdbarch_ax_pseudo_register_collect (struct gdbarch *gdbarch, struct agent_expr *ax, int reg)
2029 gdb_assert (gdbarch != NULL);
2030 gdb_assert (gdbarch->ax_pseudo_register_collect != NULL);
2031 if (gdbarch_debug >= 2)
2032 gdb_printf (gdb_stdlog, "gdbarch_ax_pseudo_register_collect called\n");
2033 return gdbarch->ax_pseudo_register_collect (gdbarch, ax, reg);
2036 void
2037 set_gdbarch_ax_pseudo_register_collect (struct gdbarch *gdbarch,
2038 gdbarch_ax_pseudo_register_collect_ftype ax_pseudo_register_collect)
2040 gdbarch->ax_pseudo_register_collect = ax_pseudo_register_collect;
2043 bool
2044 gdbarch_ax_pseudo_register_push_stack_p (struct gdbarch *gdbarch)
2046 gdb_assert (gdbarch != NULL);
2047 return gdbarch->ax_pseudo_register_push_stack != NULL;
2051 gdbarch_ax_pseudo_register_push_stack (struct gdbarch *gdbarch, struct agent_expr *ax, int reg)
2053 gdb_assert (gdbarch != NULL);
2054 gdb_assert (gdbarch->ax_pseudo_register_push_stack != NULL);
2055 if (gdbarch_debug >= 2)
2056 gdb_printf (gdb_stdlog, "gdbarch_ax_pseudo_register_push_stack called\n");
2057 return gdbarch->ax_pseudo_register_push_stack (gdbarch, ax, reg);
2060 void
2061 set_gdbarch_ax_pseudo_register_push_stack (struct gdbarch *gdbarch,
2062 gdbarch_ax_pseudo_register_push_stack_ftype ax_pseudo_register_push_stack)
2064 gdbarch->ax_pseudo_register_push_stack = ax_pseudo_register_push_stack;
2067 bool
2068 gdbarch_report_signal_info_p (struct gdbarch *gdbarch)
2070 gdb_assert (gdbarch != NULL);
2071 return gdbarch->report_signal_info != NULL;
2074 void
2075 gdbarch_report_signal_info (struct gdbarch *gdbarch, struct ui_out *uiout, enum gdb_signal siggnal)
2077 gdb_assert (gdbarch != NULL);
2078 gdb_assert (gdbarch->report_signal_info != NULL);
2079 if (gdbarch_debug >= 2)
2080 gdb_printf (gdb_stdlog, "gdbarch_report_signal_info called\n");
2081 gdbarch->report_signal_info (gdbarch, uiout, siggnal);
2084 void
2085 set_gdbarch_report_signal_info (struct gdbarch *gdbarch,
2086 gdbarch_report_signal_info_ftype report_signal_info)
2088 gdbarch->report_signal_info = report_signal_info;
2092 gdbarch_sp_regnum (struct gdbarch *gdbarch)
2094 gdb_assert (gdbarch != NULL);
2095 /* Skip verify of sp_regnum, invalid_p == 0 */
2096 if (gdbarch_debug >= 2)
2097 gdb_printf (gdb_stdlog, "gdbarch_sp_regnum called\n");
2098 return gdbarch->sp_regnum;
2101 void
2102 set_gdbarch_sp_regnum (struct gdbarch *gdbarch,
2103 int sp_regnum)
2105 gdbarch->sp_regnum = sp_regnum;
2109 gdbarch_pc_regnum (struct gdbarch *gdbarch)
2111 gdb_assert (gdbarch != NULL);
2112 /* Skip verify of pc_regnum, invalid_p == 0 */
2113 if (gdbarch_debug >= 2)
2114 gdb_printf (gdb_stdlog, "gdbarch_pc_regnum called\n");
2115 return gdbarch->pc_regnum;
2118 void
2119 set_gdbarch_pc_regnum (struct gdbarch *gdbarch,
2120 int pc_regnum)
2122 gdbarch->pc_regnum = pc_regnum;
2126 gdbarch_ps_regnum (struct gdbarch *gdbarch)
2128 gdb_assert (gdbarch != NULL);
2129 /* Skip verify of ps_regnum, invalid_p == 0 */
2130 if (gdbarch_debug >= 2)
2131 gdb_printf (gdb_stdlog, "gdbarch_ps_regnum called\n");
2132 return gdbarch->ps_regnum;
2135 void
2136 set_gdbarch_ps_regnum (struct gdbarch *gdbarch,
2137 int ps_regnum)
2139 gdbarch->ps_regnum = ps_regnum;
2143 gdbarch_fp0_regnum (struct gdbarch *gdbarch)
2145 gdb_assert (gdbarch != NULL);
2146 /* Skip verify of fp0_regnum, invalid_p == 0 */
2147 if (gdbarch_debug >= 2)
2148 gdb_printf (gdb_stdlog, "gdbarch_fp0_regnum called\n");
2149 return gdbarch->fp0_regnum;
2152 void
2153 set_gdbarch_fp0_regnum (struct gdbarch *gdbarch,
2154 int fp0_regnum)
2156 gdbarch->fp0_regnum = fp0_regnum;
2160 gdbarch_stab_reg_to_regnum (struct gdbarch *gdbarch, int stab_regnr)
2162 gdb_assert (gdbarch != NULL);
2163 gdb_assert (gdbarch->stab_reg_to_regnum != NULL);
2164 if (gdbarch_debug >= 2)
2165 gdb_printf (gdb_stdlog, "gdbarch_stab_reg_to_regnum called\n");
2166 return gdbarch->stab_reg_to_regnum (gdbarch, stab_regnr);
2169 void
2170 set_gdbarch_stab_reg_to_regnum (struct gdbarch *gdbarch,
2171 gdbarch_stab_reg_to_regnum_ftype stab_reg_to_regnum)
2173 gdbarch->stab_reg_to_regnum = stab_reg_to_regnum;
2177 gdbarch_ecoff_reg_to_regnum (struct gdbarch *gdbarch, int ecoff_regnr)
2179 gdb_assert (gdbarch != NULL);
2180 gdb_assert (gdbarch->ecoff_reg_to_regnum != NULL);
2181 if (gdbarch_debug >= 2)
2182 gdb_printf (gdb_stdlog, "gdbarch_ecoff_reg_to_regnum called\n");
2183 return gdbarch->ecoff_reg_to_regnum (gdbarch, ecoff_regnr);
2186 void
2187 set_gdbarch_ecoff_reg_to_regnum (struct gdbarch *gdbarch,
2188 gdbarch_ecoff_reg_to_regnum_ftype ecoff_reg_to_regnum)
2190 gdbarch->ecoff_reg_to_regnum = ecoff_reg_to_regnum;
2194 gdbarch_sdb_reg_to_regnum (struct gdbarch *gdbarch, int sdb_regnr)
2196 gdb_assert (gdbarch != NULL);
2197 gdb_assert (gdbarch->sdb_reg_to_regnum != NULL);
2198 if (gdbarch_debug >= 2)
2199 gdb_printf (gdb_stdlog, "gdbarch_sdb_reg_to_regnum called\n");
2200 return gdbarch->sdb_reg_to_regnum (gdbarch, sdb_regnr);
2203 void
2204 set_gdbarch_sdb_reg_to_regnum (struct gdbarch *gdbarch,
2205 gdbarch_sdb_reg_to_regnum_ftype sdb_reg_to_regnum)
2207 gdbarch->sdb_reg_to_regnum = sdb_reg_to_regnum;
2211 gdbarch_dwarf2_reg_to_regnum (struct gdbarch *gdbarch, int dwarf2_regnr)
2213 gdb_assert (gdbarch != NULL);
2214 gdb_assert (gdbarch->dwarf2_reg_to_regnum != NULL);
2215 if (gdbarch_debug >= 2)
2216 gdb_printf (gdb_stdlog, "gdbarch_dwarf2_reg_to_regnum called\n");
2217 return gdbarch->dwarf2_reg_to_regnum (gdbarch, dwarf2_regnr);
2220 void
2221 set_gdbarch_dwarf2_reg_to_regnum (struct gdbarch *gdbarch,
2222 gdbarch_dwarf2_reg_to_regnum_ftype dwarf2_reg_to_regnum)
2224 gdbarch->dwarf2_reg_to_regnum = dwarf2_reg_to_regnum;
2227 const char *
2228 gdbarch_register_name (struct gdbarch *gdbarch, int regnr)
2230 gdb_assert (gdbarch != NULL);
2231 gdb_assert (gdbarch->register_name != NULL);
2232 if (gdbarch_debug >= 2)
2233 gdb_printf (gdb_stdlog, "gdbarch_register_name called\n");
2234 return gdbarch->register_name (gdbarch, regnr);
2237 void
2238 set_gdbarch_register_name (struct gdbarch *gdbarch,
2239 gdbarch_register_name_ftype register_name)
2241 gdbarch->register_name = register_name;
2244 struct type *
2245 gdbarch_register_type (struct gdbarch *gdbarch, int reg_nr)
2247 gdb_assert (gdbarch != NULL);
2248 gdb_assert (gdbarch->register_type != NULL);
2249 if (gdbarch_debug >= 2)
2250 gdb_printf (gdb_stdlog, "gdbarch_register_type called\n");
2251 return gdbarch->register_type (gdbarch, reg_nr);
2254 void
2255 set_gdbarch_register_type (struct gdbarch *gdbarch,
2256 gdbarch_register_type_ftype register_type)
2258 gdbarch->register_type = register_type;
2261 struct frame_id
2262 gdbarch_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
2264 gdb_assert (gdbarch != NULL);
2265 gdb_assert (gdbarch->dummy_id != NULL);
2266 if (gdbarch_debug >= 2)
2267 gdb_printf (gdb_stdlog, "gdbarch_dummy_id called\n");
2268 return gdbarch->dummy_id (gdbarch, this_frame);
2271 void
2272 set_gdbarch_dummy_id (struct gdbarch *gdbarch,
2273 gdbarch_dummy_id_ftype dummy_id)
2275 gdbarch->dummy_id = dummy_id;
2279 gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch)
2281 gdb_assert (gdbarch != NULL);
2282 /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
2283 if (gdbarch_debug >= 2)
2284 gdb_printf (gdb_stdlog, "gdbarch_deprecated_fp_regnum called\n");
2285 return gdbarch->deprecated_fp_regnum;
2288 void
2289 set_gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch,
2290 int deprecated_fp_regnum)
2292 gdbarch->deprecated_fp_regnum = deprecated_fp_regnum;
2295 bool
2296 gdbarch_push_dummy_call_p (struct gdbarch *gdbarch)
2298 gdb_assert (gdbarch != NULL);
2299 return gdbarch->push_dummy_call != NULL;
2302 CORE_ADDR
2303 gdbarch_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, function_call_return_method return_method, CORE_ADDR struct_addr)
2305 gdb_assert (gdbarch != NULL);
2306 gdb_assert (gdbarch->push_dummy_call != NULL);
2307 if (gdbarch_debug >= 2)
2308 gdb_printf (gdb_stdlog, "gdbarch_push_dummy_call called\n");
2309 return gdbarch->push_dummy_call (gdbarch, function, regcache, bp_addr, nargs, args, sp, return_method, struct_addr);
2312 void
2313 set_gdbarch_push_dummy_call (struct gdbarch *gdbarch,
2314 gdbarch_push_dummy_call_ftype push_dummy_call)
2316 gdbarch->push_dummy_call = push_dummy_call;
2320 gdbarch_call_dummy_location (struct gdbarch *gdbarch)
2322 gdb_assert (gdbarch != NULL);
2323 /* Skip verify of call_dummy_location, invalid_p == 0 */
2324 if (gdbarch_debug >= 2)
2325 gdb_printf (gdb_stdlog, "gdbarch_call_dummy_location called\n");
2326 return gdbarch->call_dummy_location;
2329 void
2330 set_gdbarch_call_dummy_location (struct gdbarch *gdbarch,
2331 int call_dummy_location)
2333 gdbarch->call_dummy_location = call_dummy_location;
2336 bool
2337 gdbarch_push_dummy_code_p (struct gdbarch *gdbarch)
2339 gdb_assert (gdbarch != NULL);
2340 return gdbarch->push_dummy_code != NULL;
2343 CORE_ADDR
2344 gdbarch_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp, CORE_ADDR funaddr, struct value **args, int nargs, struct type *value_type, CORE_ADDR *real_pc, CORE_ADDR *bp_addr, struct regcache *regcache)
2346 gdb_assert (gdbarch != NULL);
2347 gdb_assert (gdbarch->push_dummy_code != NULL);
2348 if (gdbarch_debug >= 2)
2349 gdb_printf (gdb_stdlog, "gdbarch_push_dummy_code called\n");
2350 return gdbarch->push_dummy_code (gdbarch, sp, funaddr, args, nargs, value_type, real_pc, bp_addr, regcache);
2353 void
2354 set_gdbarch_push_dummy_code (struct gdbarch *gdbarch,
2355 gdbarch_push_dummy_code_ftype push_dummy_code)
2357 gdbarch->push_dummy_code = push_dummy_code;
2361 gdbarch_code_of_frame_writable (struct gdbarch *gdbarch, struct frame_info *frame)
2363 gdb_assert (gdbarch != NULL);
2364 gdb_assert (gdbarch->code_of_frame_writable != NULL);
2365 if (gdbarch_debug >= 2)
2366 gdb_printf (gdb_stdlog, "gdbarch_code_of_frame_writable called\n");
2367 return gdbarch->code_of_frame_writable (gdbarch, frame);
2370 void
2371 set_gdbarch_code_of_frame_writable (struct gdbarch *gdbarch,
2372 gdbarch_code_of_frame_writable_ftype code_of_frame_writable)
2374 gdbarch->code_of_frame_writable = code_of_frame_writable;
2377 void
2378 gdbarch_print_registers_info (struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, int regnum, int all)
2380 gdb_assert (gdbarch != NULL);
2381 gdb_assert (gdbarch->print_registers_info != NULL);
2382 if (gdbarch_debug >= 2)
2383 gdb_printf (gdb_stdlog, "gdbarch_print_registers_info called\n");
2384 gdbarch->print_registers_info (gdbarch, file, frame, regnum, all);
2387 void
2388 set_gdbarch_print_registers_info (struct gdbarch *gdbarch,
2389 gdbarch_print_registers_info_ftype print_registers_info)
2391 gdbarch->print_registers_info = print_registers_info;
2394 void
2395 gdbarch_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, const char *args)
2397 gdb_assert (gdbarch != NULL);
2398 gdb_assert (gdbarch->print_float_info != NULL);
2399 if (gdbarch_debug >= 2)
2400 gdb_printf (gdb_stdlog, "gdbarch_print_float_info called\n");
2401 gdbarch->print_float_info (gdbarch, file, frame, args);
2404 void
2405 set_gdbarch_print_float_info (struct gdbarch *gdbarch,
2406 gdbarch_print_float_info_ftype print_float_info)
2408 gdbarch->print_float_info = print_float_info;
2411 bool
2412 gdbarch_print_vector_info_p (struct gdbarch *gdbarch)
2414 gdb_assert (gdbarch != NULL);
2415 return gdbarch->print_vector_info != NULL;
2418 void
2419 gdbarch_print_vector_info (struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, const char *args)
2421 gdb_assert (gdbarch != NULL);
2422 gdb_assert (gdbarch->print_vector_info != NULL);
2423 if (gdbarch_debug >= 2)
2424 gdb_printf (gdb_stdlog, "gdbarch_print_vector_info called\n");
2425 gdbarch->print_vector_info (gdbarch, file, frame, args);
2428 void
2429 set_gdbarch_print_vector_info (struct gdbarch *gdbarch,
2430 gdbarch_print_vector_info_ftype print_vector_info)
2432 gdbarch->print_vector_info = print_vector_info;
2436 gdbarch_register_sim_regno (struct gdbarch *gdbarch, int reg_nr)
2438 gdb_assert (gdbarch != NULL);
2439 gdb_assert (gdbarch->register_sim_regno != NULL);
2440 if (gdbarch_debug >= 2)
2441 gdb_printf (gdb_stdlog, "gdbarch_register_sim_regno called\n");
2442 return gdbarch->register_sim_regno (gdbarch, reg_nr);
2445 void
2446 set_gdbarch_register_sim_regno (struct gdbarch *gdbarch,
2447 gdbarch_register_sim_regno_ftype register_sim_regno)
2449 gdbarch->register_sim_regno = register_sim_regno;
2453 gdbarch_cannot_fetch_register (struct gdbarch *gdbarch, int regnum)
2455 gdb_assert (gdbarch != NULL);
2456 gdb_assert (gdbarch->cannot_fetch_register != NULL);
2457 if (gdbarch_debug >= 2)
2458 gdb_printf (gdb_stdlog, "gdbarch_cannot_fetch_register called\n");
2459 return gdbarch->cannot_fetch_register (gdbarch, regnum);
2462 void
2463 set_gdbarch_cannot_fetch_register (struct gdbarch *gdbarch,
2464 gdbarch_cannot_fetch_register_ftype cannot_fetch_register)
2466 gdbarch->cannot_fetch_register = cannot_fetch_register;
2470 gdbarch_cannot_store_register (struct gdbarch *gdbarch, int regnum)
2472 gdb_assert (gdbarch != NULL);
2473 gdb_assert (gdbarch->cannot_store_register != NULL);
2474 if (gdbarch_debug >= 2)
2475 gdb_printf (gdb_stdlog, "gdbarch_cannot_store_register called\n");
2476 return gdbarch->cannot_store_register (gdbarch, regnum);
2479 void
2480 set_gdbarch_cannot_store_register (struct gdbarch *gdbarch,
2481 gdbarch_cannot_store_register_ftype cannot_store_register)
2483 gdbarch->cannot_store_register = cannot_store_register;
2486 bool
2487 gdbarch_get_longjmp_target_p (struct gdbarch *gdbarch)
2489 gdb_assert (gdbarch != NULL);
2490 return gdbarch->get_longjmp_target != NULL;
2494 gdbarch_get_longjmp_target (struct gdbarch *gdbarch, struct frame_info *frame, CORE_ADDR *pc)
2496 gdb_assert (gdbarch != NULL);
2497 gdb_assert (gdbarch->get_longjmp_target != NULL);
2498 if (gdbarch_debug >= 2)
2499 gdb_printf (gdb_stdlog, "gdbarch_get_longjmp_target called\n");
2500 return gdbarch->get_longjmp_target (frame, pc);
2503 void
2504 set_gdbarch_get_longjmp_target (struct gdbarch *gdbarch,
2505 gdbarch_get_longjmp_target_ftype get_longjmp_target)
2507 gdbarch->get_longjmp_target = get_longjmp_target;
2511 gdbarch_believe_pcc_promotion (struct gdbarch *gdbarch)
2513 gdb_assert (gdbarch != NULL);
2514 /* Skip verify of believe_pcc_promotion, invalid_p == 0 */
2515 if (gdbarch_debug >= 2)
2516 gdb_printf (gdb_stdlog, "gdbarch_believe_pcc_promotion called\n");
2517 return gdbarch->believe_pcc_promotion;
2520 void
2521 set_gdbarch_believe_pcc_promotion (struct gdbarch *gdbarch,
2522 int believe_pcc_promotion)
2524 gdbarch->believe_pcc_promotion = believe_pcc_promotion;
2528 gdbarch_convert_register_p (struct gdbarch *gdbarch, int regnum, struct type *type)
2530 gdb_assert (gdbarch != NULL);
2531 gdb_assert (gdbarch->convert_register_p != NULL);
2532 if (gdbarch_debug >= 2)
2533 gdb_printf (gdb_stdlog, "gdbarch_convert_register_p called\n");
2534 return gdbarch->convert_register_p (gdbarch, regnum, type);
2537 void
2538 set_gdbarch_convert_register_p (struct gdbarch *gdbarch,
2539 gdbarch_convert_register_p_ftype convert_register_p)
2541 gdbarch->convert_register_p = convert_register_p;
2545 gdbarch_register_to_value (struct gdbarch *gdbarch, struct frame_info *frame, int regnum, struct type *type, gdb_byte *buf, int *optimizedp, int *unavailablep)
2547 gdb_assert (gdbarch != NULL);
2548 gdb_assert (gdbarch->register_to_value != NULL);
2549 if (gdbarch_debug >= 2)
2550 gdb_printf (gdb_stdlog, "gdbarch_register_to_value called\n");
2551 return gdbarch->register_to_value (frame, regnum, type, buf, optimizedp, unavailablep);
2554 void
2555 set_gdbarch_register_to_value (struct gdbarch *gdbarch,
2556 gdbarch_register_to_value_ftype register_to_value)
2558 gdbarch->register_to_value = register_to_value;
2561 void
2562 gdbarch_value_to_register (struct gdbarch *gdbarch, struct frame_info *frame, int regnum, struct type *type, const gdb_byte *buf)
2564 gdb_assert (gdbarch != NULL);
2565 gdb_assert (gdbarch->value_to_register != NULL);
2566 if (gdbarch_debug >= 2)
2567 gdb_printf (gdb_stdlog, "gdbarch_value_to_register called\n");
2568 gdbarch->value_to_register (frame, regnum, type, buf);
2571 void
2572 set_gdbarch_value_to_register (struct gdbarch *gdbarch,
2573 gdbarch_value_to_register_ftype value_to_register)
2575 gdbarch->value_to_register = value_to_register;
2578 struct value *
2579 gdbarch_value_from_register (struct gdbarch *gdbarch, struct type *type, int regnum, struct frame_id frame_id)
2581 gdb_assert (gdbarch != NULL);
2582 gdb_assert (gdbarch->value_from_register != NULL);
2583 if (gdbarch_debug >= 2)
2584 gdb_printf (gdb_stdlog, "gdbarch_value_from_register called\n");
2585 return gdbarch->value_from_register (gdbarch, type, regnum, frame_id);
2588 void
2589 set_gdbarch_value_from_register (struct gdbarch *gdbarch,
2590 gdbarch_value_from_register_ftype value_from_register)
2592 gdbarch->value_from_register = value_from_register;
2595 CORE_ADDR
2596 gdbarch_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
2598 gdb_assert (gdbarch != NULL);
2599 gdb_assert (gdbarch->pointer_to_address != NULL);
2600 if (gdbarch_debug >= 2)
2601 gdb_printf (gdb_stdlog, "gdbarch_pointer_to_address called\n");
2602 return gdbarch->pointer_to_address (gdbarch, type, buf);
2605 void
2606 set_gdbarch_pointer_to_address (struct gdbarch *gdbarch,
2607 gdbarch_pointer_to_address_ftype pointer_to_address)
2609 gdbarch->pointer_to_address = pointer_to_address;
2612 void
2613 gdbarch_address_to_pointer (struct gdbarch *gdbarch, struct type *type, gdb_byte *buf, CORE_ADDR addr)
2615 gdb_assert (gdbarch != NULL);
2616 gdb_assert (gdbarch->address_to_pointer != NULL);
2617 if (gdbarch_debug >= 2)
2618 gdb_printf (gdb_stdlog, "gdbarch_address_to_pointer called\n");
2619 gdbarch->address_to_pointer (gdbarch, type, buf, addr);
2622 void
2623 set_gdbarch_address_to_pointer (struct gdbarch *gdbarch,
2624 gdbarch_address_to_pointer_ftype address_to_pointer)
2626 gdbarch->address_to_pointer = address_to_pointer;
2629 bool
2630 gdbarch_integer_to_address_p (struct gdbarch *gdbarch)
2632 gdb_assert (gdbarch != NULL);
2633 return gdbarch->integer_to_address != NULL;
2636 CORE_ADDR
2637 gdbarch_integer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
2639 gdb_assert (gdbarch != NULL);
2640 gdb_assert (gdbarch->integer_to_address != NULL);
2641 if (gdbarch_debug >= 2)
2642 gdb_printf (gdb_stdlog, "gdbarch_integer_to_address called\n");
2643 return gdbarch->integer_to_address (gdbarch, type, buf);
2646 void
2647 set_gdbarch_integer_to_address (struct gdbarch *gdbarch,
2648 gdbarch_integer_to_address_ftype integer_to_address)
2650 gdbarch->integer_to_address = integer_to_address;
2653 bool
2654 gdbarch_return_value_p (struct gdbarch *gdbarch)
2656 gdb_assert (gdbarch != NULL);
2657 return gdbarch->return_value != NULL;
2660 enum return_value_convention
2661 gdbarch_return_value (struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf)
2663 gdb_assert (gdbarch != NULL);
2664 gdb_assert (gdbarch->return_value != NULL);
2665 if (gdbarch_debug >= 2)
2666 gdb_printf (gdb_stdlog, "gdbarch_return_value called\n");
2667 return gdbarch->return_value (gdbarch, function, valtype, regcache, readbuf, writebuf);
2670 void
2671 set_gdbarch_return_value (struct gdbarch *gdbarch,
2672 gdbarch_return_value_ftype return_value)
2674 gdbarch->return_value = return_value;
2678 gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch, struct type *type)
2680 gdb_assert (gdbarch != NULL);
2681 gdb_assert (gdbarch->return_in_first_hidden_param_p != NULL);
2682 if (gdbarch_debug >= 2)
2683 gdb_printf (gdb_stdlog, "gdbarch_return_in_first_hidden_param_p called\n");
2684 return gdbarch->return_in_first_hidden_param_p (gdbarch, type);
2687 void
2688 set_gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
2689 gdbarch_return_in_first_hidden_param_p_ftype return_in_first_hidden_param_p)
2691 gdbarch->return_in_first_hidden_param_p = return_in_first_hidden_param_p;
2694 CORE_ADDR
2695 gdbarch_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR ip)
2697 gdb_assert (gdbarch != NULL);
2698 gdb_assert (gdbarch->skip_prologue != NULL);
2699 if (gdbarch_debug >= 2)
2700 gdb_printf (gdb_stdlog, "gdbarch_skip_prologue called\n");
2701 return gdbarch->skip_prologue (gdbarch, ip);
2704 void
2705 set_gdbarch_skip_prologue (struct gdbarch *gdbarch,
2706 gdbarch_skip_prologue_ftype skip_prologue)
2708 gdbarch->skip_prologue = skip_prologue;
2711 bool
2712 gdbarch_skip_main_prologue_p (struct gdbarch *gdbarch)
2714 gdb_assert (gdbarch != NULL);
2715 return gdbarch->skip_main_prologue != NULL;
2718 CORE_ADDR
2719 gdbarch_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR ip)
2721 gdb_assert (gdbarch != NULL);
2722 gdb_assert (gdbarch->skip_main_prologue != NULL);
2723 if (gdbarch_debug >= 2)
2724 gdb_printf (gdb_stdlog, "gdbarch_skip_main_prologue called\n");
2725 return gdbarch->skip_main_prologue (gdbarch, ip);
2728 void
2729 set_gdbarch_skip_main_prologue (struct gdbarch *gdbarch,
2730 gdbarch_skip_main_prologue_ftype skip_main_prologue)
2732 gdbarch->skip_main_prologue = skip_main_prologue;
2735 bool
2736 gdbarch_skip_entrypoint_p (struct gdbarch *gdbarch)
2738 gdb_assert (gdbarch != NULL);
2739 return gdbarch->skip_entrypoint != NULL;
2742 CORE_ADDR
2743 gdbarch_skip_entrypoint (struct gdbarch *gdbarch, CORE_ADDR ip)
2745 gdb_assert (gdbarch != NULL);
2746 gdb_assert (gdbarch->skip_entrypoint != NULL);
2747 if (gdbarch_debug >= 2)
2748 gdb_printf (gdb_stdlog, "gdbarch_skip_entrypoint called\n");
2749 return gdbarch->skip_entrypoint (gdbarch, ip);
2752 void
2753 set_gdbarch_skip_entrypoint (struct gdbarch *gdbarch,
2754 gdbarch_skip_entrypoint_ftype skip_entrypoint)
2756 gdbarch->skip_entrypoint = skip_entrypoint;
2760 gdbarch_inner_than (struct gdbarch *gdbarch, CORE_ADDR lhs, CORE_ADDR rhs)
2762 gdb_assert (gdbarch != NULL);
2763 gdb_assert (gdbarch->inner_than != NULL);
2764 if (gdbarch_debug >= 2)
2765 gdb_printf (gdb_stdlog, "gdbarch_inner_than called\n");
2766 return gdbarch->inner_than (lhs, rhs);
2769 void
2770 set_gdbarch_inner_than (struct gdbarch *gdbarch,
2771 gdbarch_inner_than_ftype inner_than)
2773 gdbarch->inner_than = inner_than;
2776 const gdb_byte *
2777 gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
2779 gdb_assert (gdbarch != NULL);
2780 gdb_assert (gdbarch->breakpoint_from_pc != NULL);
2781 if (gdbarch_debug >= 2)
2782 gdb_printf (gdb_stdlog, "gdbarch_breakpoint_from_pc called\n");
2783 return gdbarch->breakpoint_from_pc (gdbarch, pcptr, lenptr);
2786 void
2787 set_gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch,
2788 gdbarch_breakpoint_from_pc_ftype breakpoint_from_pc)
2790 gdbarch->breakpoint_from_pc = breakpoint_from_pc;
2794 gdbarch_breakpoint_kind_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr)
2796 gdb_assert (gdbarch != NULL);
2797 gdb_assert (gdbarch->breakpoint_kind_from_pc != NULL);
2798 if (gdbarch_debug >= 2)
2799 gdb_printf (gdb_stdlog, "gdbarch_breakpoint_kind_from_pc called\n");
2800 return gdbarch->breakpoint_kind_from_pc (gdbarch, pcptr);
2803 void
2804 set_gdbarch_breakpoint_kind_from_pc (struct gdbarch *gdbarch,
2805 gdbarch_breakpoint_kind_from_pc_ftype breakpoint_kind_from_pc)
2807 gdbarch->breakpoint_kind_from_pc = breakpoint_kind_from_pc;
2810 const gdb_byte *
2811 gdbarch_sw_breakpoint_from_kind (struct gdbarch *gdbarch, int kind, int *size)
2813 gdb_assert (gdbarch != NULL);
2814 gdb_assert (gdbarch->sw_breakpoint_from_kind != NULL);
2815 if (gdbarch_debug >= 2)
2816 gdb_printf (gdb_stdlog, "gdbarch_sw_breakpoint_from_kind called\n");
2817 return gdbarch->sw_breakpoint_from_kind (gdbarch, kind, size);
2820 void
2821 set_gdbarch_sw_breakpoint_from_kind (struct gdbarch *gdbarch,
2822 gdbarch_sw_breakpoint_from_kind_ftype sw_breakpoint_from_kind)
2824 gdbarch->sw_breakpoint_from_kind = sw_breakpoint_from_kind;
2828 gdbarch_breakpoint_kind_from_current_state (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR *pcptr)
2830 gdb_assert (gdbarch != NULL);
2831 gdb_assert (gdbarch->breakpoint_kind_from_current_state != NULL);
2832 if (gdbarch_debug >= 2)
2833 gdb_printf (gdb_stdlog, "gdbarch_breakpoint_kind_from_current_state called\n");
2834 return gdbarch->breakpoint_kind_from_current_state (gdbarch, regcache, pcptr);
2837 void
2838 set_gdbarch_breakpoint_kind_from_current_state (struct gdbarch *gdbarch,
2839 gdbarch_breakpoint_kind_from_current_state_ftype breakpoint_kind_from_current_state)
2841 gdbarch->breakpoint_kind_from_current_state = breakpoint_kind_from_current_state;
2844 bool
2845 gdbarch_adjust_breakpoint_address_p (struct gdbarch *gdbarch)
2847 gdb_assert (gdbarch != NULL);
2848 return gdbarch->adjust_breakpoint_address != NULL;
2851 CORE_ADDR
2852 gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr)
2854 gdb_assert (gdbarch != NULL);
2855 gdb_assert (gdbarch->adjust_breakpoint_address != NULL);
2856 if (gdbarch_debug >= 2)
2857 gdb_printf (gdb_stdlog, "gdbarch_adjust_breakpoint_address called\n");
2858 return gdbarch->adjust_breakpoint_address (gdbarch, bpaddr);
2861 void
2862 set_gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch,
2863 gdbarch_adjust_breakpoint_address_ftype adjust_breakpoint_address)
2865 gdbarch->adjust_breakpoint_address = adjust_breakpoint_address;
2869 gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
2871 gdb_assert (gdbarch != NULL);
2872 gdb_assert (gdbarch->memory_insert_breakpoint != NULL);
2873 if (gdbarch_debug >= 2)
2874 gdb_printf (gdb_stdlog, "gdbarch_memory_insert_breakpoint called\n");
2875 return gdbarch->memory_insert_breakpoint (gdbarch, bp_tgt);
2878 void
2879 set_gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch,
2880 gdbarch_memory_insert_breakpoint_ftype memory_insert_breakpoint)
2882 gdbarch->memory_insert_breakpoint = memory_insert_breakpoint;
2886 gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
2888 gdb_assert (gdbarch != NULL);
2889 gdb_assert (gdbarch->memory_remove_breakpoint != NULL);
2890 if (gdbarch_debug >= 2)
2891 gdb_printf (gdb_stdlog, "gdbarch_memory_remove_breakpoint called\n");
2892 return gdbarch->memory_remove_breakpoint (gdbarch, bp_tgt);
2895 void
2896 set_gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch,
2897 gdbarch_memory_remove_breakpoint_ftype memory_remove_breakpoint)
2899 gdbarch->memory_remove_breakpoint = memory_remove_breakpoint;
2902 CORE_ADDR
2903 gdbarch_decr_pc_after_break (struct gdbarch *gdbarch)
2905 gdb_assert (gdbarch != NULL);
2906 /* Skip verify of decr_pc_after_break, invalid_p == 0 */
2907 if (gdbarch_debug >= 2)
2908 gdb_printf (gdb_stdlog, "gdbarch_decr_pc_after_break called\n");
2909 return gdbarch->decr_pc_after_break;
2912 void
2913 set_gdbarch_decr_pc_after_break (struct gdbarch *gdbarch,
2914 CORE_ADDR decr_pc_after_break)
2916 gdbarch->decr_pc_after_break = decr_pc_after_break;
2919 CORE_ADDR
2920 gdbarch_deprecated_function_start_offset (struct gdbarch *gdbarch)
2922 gdb_assert (gdbarch != NULL);
2923 /* Skip verify of deprecated_function_start_offset, invalid_p == 0 */
2924 if (gdbarch_debug >= 2)
2925 gdb_printf (gdb_stdlog, "gdbarch_deprecated_function_start_offset called\n");
2926 return gdbarch->deprecated_function_start_offset;
2929 void
2930 set_gdbarch_deprecated_function_start_offset (struct gdbarch *gdbarch,
2931 CORE_ADDR deprecated_function_start_offset)
2933 gdbarch->deprecated_function_start_offset = deprecated_function_start_offset;
2937 gdbarch_remote_register_number (struct gdbarch *gdbarch, int regno)
2939 gdb_assert (gdbarch != NULL);
2940 gdb_assert (gdbarch->remote_register_number != NULL);
2941 if (gdbarch_debug >= 2)
2942 gdb_printf (gdb_stdlog, "gdbarch_remote_register_number called\n");
2943 return gdbarch->remote_register_number (gdbarch, regno);
2946 void
2947 set_gdbarch_remote_register_number (struct gdbarch *gdbarch,
2948 gdbarch_remote_register_number_ftype remote_register_number)
2950 gdbarch->remote_register_number = remote_register_number;
2953 bool
2954 gdbarch_fetch_tls_load_module_address_p (struct gdbarch *gdbarch)
2956 gdb_assert (gdbarch != NULL);
2957 return gdbarch->fetch_tls_load_module_address != NULL;
2960 CORE_ADDR
2961 gdbarch_fetch_tls_load_module_address (struct gdbarch *gdbarch, struct objfile *objfile)
2963 gdb_assert (gdbarch != NULL);
2964 gdb_assert (gdbarch->fetch_tls_load_module_address != NULL);
2965 if (gdbarch_debug >= 2)
2966 gdb_printf (gdb_stdlog, "gdbarch_fetch_tls_load_module_address called\n");
2967 return gdbarch->fetch_tls_load_module_address (objfile);
2970 void
2971 set_gdbarch_fetch_tls_load_module_address (struct gdbarch *gdbarch,
2972 gdbarch_fetch_tls_load_module_address_ftype fetch_tls_load_module_address)
2974 gdbarch->fetch_tls_load_module_address = fetch_tls_load_module_address;
2977 bool
2978 gdbarch_get_thread_local_address_p (struct gdbarch *gdbarch)
2980 gdb_assert (gdbarch != NULL);
2981 return gdbarch->get_thread_local_address != NULL;
2984 CORE_ADDR
2985 gdbarch_get_thread_local_address (struct gdbarch *gdbarch, ptid_t ptid, CORE_ADDR lm_addr, CORE_ADDR offset)
2987 gdb_assert (gdbarch != NULL);
2988 gdb_assert (gdbarch->get_thread_local_address != NULL);
2989 if (gdbarch_debug >= 2)
2990 gdb_printf (gdb_stdlog, "gdbarch_get_thread_local_address called\n");
2991 return gdbarch->get_thread_local_address (gdbarch, ptid, lm_addr, offset);
2994 void
2995 set_gdbarch_get_thread_local_address (struct gdbarch *gdbarch,
2996 gdbarch_get_thread_local_address_ftype get_thread_local_address)
2998 gdbarch->get_thread_local_address = get_thread_local_address;
3001 CORE_ADDR
3002 gdbarch_frame_args_skip (struct gdbarch *gdbarch)
3004 gdb_assert (gdbarch != NULL);
3005 /* Skip verify of frame_args_skip, invalid_p == 0 */
3006 if (gdbarch_debug >= 2)
3007 gdb_printf (gdb_stdlog, "gdbarch_frame_args_skip called\n");
3008 return gdbarch->frame_args_skip;
3011 void
3012 set_gdbarch_frame_args_skip (struct gdbarch *gdbarch,
3013 CORE_ADDR frame_args_skip)
3015 gdbarch->frame_args_skip = frame_args_skip;
3018 CORE_ADDR
3019 gdbarch_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame)
3021 gdb_assert (gdbarch != NULL);
3022 gdb_assert (gdbarch->unwind_pc != NULL);
3023 if (gdbarch_debug >= 2)
3024 gdb_printf (gdb_stdlog, "gdbarch_unwind_pc called\n");
3025 return gdbarch->unwind_pc (gdbarch, next_frame);
3028 void
3029 set_gdbarch_unwind_pc (struct gdbarch *gdbarch,
3030 gdbarch_unwind_pc_ftype unwind_pc)
3032 gdbarch->unwind_pc = unwind_pc;
3035 CORE_ADDR
3036 gdbarch_unwind_sp (struct gdbarch *gdbarch, struct frame_info *next_frame)
3038 gdb_assert (gdbarch != NULL);
3039 gdb_assert (gdbarch->unwind_sp != NULL);
3040 if (gdbarch_debug >= 2)
3041 gdb_printf (gdb_stdlog, "gdbarch_unwind_sp called\n");
3042 return gdbarch->unwind_sp (gdbarch, next_frame);
3045 void
3046 set_gdbarch_unwind_sp (struct gdbarch *gdbarch,
3047 gdbarch_unwind_sp_ftype unwind_sp)
3049 gdbarch->unwind_sp = unwind_sp;
3052 bool
3053 gdbarch_frame_num_args_p (struct gdbarch *gdbarch)
3055 gdb_assert (gdbarch != NULL);
3056 return gdbarch->frame_num_args != NULL;
3060 gdbarch_frame_num_args (struct gdbarch *gdbarch, struct frame_info *frame)
3062 gdb_assert (gdbarch != NULL);
3063 gdb_assert (gdbarch->frame_num_args != NULL);
3064 if (gdbarch_debug >= 2)
3065 gdb_printf (gdb_stdlog, "gdbarch_frame_num_args called\n");
3066 return gdbarch->frame_num_args (frame);
3069 void
3070 set_gdbarch_frame_num_args (struct gdbarch *gdbarch,
3071 gdbarch_frame_num_args_ftype frame_num_args)
3073 gdbarch->frame_num_args = frame_num_args;
3076 bool
3077 gdbarch_frame_align_p (struct gdbarch *gdbarch)
3079 gdb_assert (gdbarch != NULL);
3080 return gdbarch->frame_align != NULL;
3083 CORE_ADDR
3084 gdbarch_frame_align (struct gdbarch *gdbarch, CORE_ADDR address)
3086 gdb_assert (gdbarch != NULL);
3087 gdb_assert (gdbarch->frame_align != NULL);
3088 if (gdbarch_debug >= 2)
3089 gdb_printf (gdb_stdlog, "gdbarch_frame_align called\n");
3090 return gdbarch->frame_align (gdbarch, address);
3093 void
3094 set_gdbarch_frame_align (struct gdbarch *gdbarch,
3095 gdbarch_frame_align_ftype frame_align)
3097 gdbarch->frame_align = frame_align;
3101 gdbarch_stabs_argument_has_addr (struct gdbarch *gdbarch, struct type *type)
3103 gdb_assert (gdbarch != NULL);
3104 gdb_assert (gdbarch->stabs_argument_has_addr != NULL);
3105 if (gdbarch_debug >= 2)
3106 gdb_printf (gdb_stdlog, "gdbarch_stabs_argument_has_addr called\n");
3107 return gdbarch->stabs_argument_has_addr (gdbarch, type);
3110 void
3111 set_gdbarch_stabs_argument_has_addr (struct gdbarch *gdbarch,
3112 gdbarch_stabs_argument_has_addr_ftype stabs_argument_has_addr)
3114 gdbarch->stabs_argument_has_addr = stabs_argument_has_addr;
3118 gdbarch_frame_red_zone_size (struct gdbarch *gdbarch)
3120 gdb_assert (gdbarch != NULL);
3121 /* Skip verify of frame_red_zone_size, invalid_p == 0 */
3122 if (gdbarch_debug >= 2)
3123 gdb_printf (gdb_stdlog, "gdbarch_frame_red_zone_size called\n");
3124 return gdbarch->frame_red_zone_size;
3127 void
3128 set_gdbarch_frame_red_zone_size (struct gdbarch *gdbarch,
3129 int frame_red_zone_size)
3131 gdbarch->frame_red_zone_size = frame_red_zone_size;
3134 CORE_ADDR
3135 gdbarch_convert_from_func_ptr_addr (struct gdbarch *gdbarch, CORE_ADDR addr, struct target_ops *targ)
3137 gdb_assert (gdbarch != NULL);
3138 gdb_assert (gdbarch->convert_from_func_ptr_addr != NULL);
3139 if (gdbarch_debug >= 2)
3140 gdb_printf (gdb_stdlog, "gdbarch_convert_from_func_ptr_addr called\n");
3141 return gdbarch->convert_from_func_ptr_addr (gdbarch, addr, targ);
3144 void
3145 set_gdbarch_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
3146 gdbarch_convert_from_func_ptr_addr_ftype convert_from_func_ptr_addr)
3148 gdbarch->convert_from_func_ptr_addr = convert_from_func_ptr_addr;
3151 CORE_ADDR
3152 gdbarch_addr_bits_remove (struct gdbarch *gdbarch, CORE_ADDR addr)
3154 gdb_assert (gdbarch != NULL);
3155 gdb_assert (gdbarch->addr_bits_remove != NULL);
3156 if (gdbarch_debug >= 2)
3157 gdb_printf (gdb_stdlog, "gdbarch_addr_bits_remove called\n");
3158 return gdbarch->addr_bits_remove (gdbarch, addr);
3161 void
3162 set_gdbarch_addr_bits_remove (struct gdbarch *gdbarch,
3163 gdbarch_addr_bits_remove_ftype addr_bits_remove)
3165 gdbarch->addr_bits_remove = addr_bits_remove;
3169 gdbarch_significant_addr_bit (struct gdbarch *gdbarch)
3171 gdb_assert (gdbarch != NULL);
3172 /* Skip verify of significant_addr_bit, invalid_p == 0 */
3173 if (gdbarch_debug >= 2)
3174 gdb_printf (gdb_stdlog, "gdbarch_significant_addr_bit called\n");
3175 return gdbarch->significant_addr_bit;
3178 void
3179 set_gdbarch_significant_addr_bit (struct gdbarch *gdbarch,
3180 int significant_addr_bit)
3182 gdbarch->significant_addr_bit = significant_addr_bit;
3185 std::string
3186 gdbarch_memtag_to_string (struct gdbarch *gdbarch, struct value *tag)
3188 gdb_assert (gdbarch != NULL);
3189 gdb_assert (gdbarch->memtag_to_string != NULL);
3190 if (gdbarch_debug >= 2)
3191 gdb_printf (gdb_stdlog, "gdbarch_memtag_to_string called\n");
3192 return gdbarch->memtag_to_string (gdbarch, tag);
3195 void
3196 set_gdbarch_memtag_to_string (struct gdbarch *gdbarch,
3197 gdbarch_memtag_to_string_ftype memtag_to_string)
3199 gdbarch->memtag_to_string = memtag_to_string;
3202 bool
3203 gdbarch_tagged_address_p (struct gdbarch *gdbarch, struct value *address)
3205 gdb_assert (gdbarch != NULL);
3206 gdb_assert (gdbarch->tagged_address_p != NULL);
3207 if (gdbarch_debug >= 2)
3208 gdb_printf (gdb_stdlog, "gdbarch_tagged_address_p called\n");
3209 return gdbarch->tagged_address_p (gdbarch, address);
3212 void
3213 set_gdbarch_tagged_address_p (struct gdbarch *gdbarch,
3214 gdbarch_tagged_address_p_ftype tagged_address_p)
3216 gdbarch->tagged_address_p = tagged_address_p;
3219 bool
3220 gdbarch_memtag_matches_p (struct gdbarch *gdbarch, struct value *address)
3222 gdb_assert (gdbarch != NULL);
3223 gdb_assert (gdbarch->memtag_matches_p != NULL);
3224 if (gdbarch_debug >= 2)
3225 gdb_printf (gdb_stdlog, "gdbarch_memtag_matches_p called\n");
3226 return gdbarch->memtag_matches_p (gdbarch, address);
3229 void
3230 set_gdbarch_memtag_matches_p (struct gdbarch *gdbarch,
3231 gdbarch_memtag_matches_p_ftype memtag_matches_p)
3233 gdbarch->memtag_matches_p = memtag_matches_p;
3236 bool
3237 gdbarch_set_memtags (struct gdbarch *gdbarch, struct value *address, size_t length, const gdb::byte_vector &tags, memtag_type tag_type)
3239 gdb_assert (gdbarch != NULL);
3240 gdb_assert (gdbarch->set_memtags != NULL);
3241 if (gdbarch_debug >= 2)
3242 gdb_printf (gdb_stdlog, "gdbarch_set_memtags called\n");
3243 return gdbarch->set_memtags (gdbarch, address, length, tags, tag_type);
3246 void
3247 set_gdbarch_set_memtags (struct gdbarch *gdbarch,
3248 gdbarch_set_memtags_ftype set_memtags)
3250 gdbarch->set_memtags = set_memtags;
3253 struct value *
3254 gdbarch_get_memtag (struct gdbarch *gdbarch, struct value *address, memtag_type tag_type)
3256 gdb_assert (gdbarch != NULL);
3257 gdb_assert (gdbarch->get_memtag != NULL);
3258 if (gdbarch_debug >= 2)
3259 gdb_printf (gdb_stdlog, "gdbarch_get_memtag called\n");
3260 return gdbarch->get_memtag (gdbarch, address, tag_type);
3263 void
3264 set_gdbarch_get_memtag (struct gdbarch *gdbarch,
3265 gdbarch_get_memtag_ftype get_memtag)
3267 gdbarch->get_memtag = get_memtag;
3270 CORE_ADDR
3271 gdbarch_memtag_granule_size (struct gdbarch *gdbarch)
3273 gdb_assert (gdbarch != NULL);
3274 /* Skip verify of memtag_granule_size, invalid_p == 0 */
3275 if (gdbarch_debug >= 2)
3276 gdb_printf (gdb_stdlog, "gdbarch_memtag_granule_size called\n");
3277 return gdbarch->memtag_granule_size;
3280 void
3281 set_gdbarch_memtag_granule_size (struct gdbarch *gdbarch,
3282 CORE_ADDR memtag_granule_size)
3284 gdbarch->memtag_granule_size = memtag_granule_size;
3287 bool
3288 gdbarch_software_single_step_p (struct gdbarch *gdbarch)
3290 gdb_assert (gdbarch != NULL);
3291 return gdbarch->software_single_step != NULL;
3294 std::vector<CORE_ADDR>
3295 gdbarch_software_single_step (struct gdbarch *gdbarch, struct regcache *regcache)
3297 gdb_assert (gdbarch != NULL);
3298 gdb_assert (gdbarch->software_single_step != NULL);
3299 if (gdbarch_debug >= 2)
3300 gdb_printf (gdb_stdlog, "gdbarch_software_single_step called\n");
3301 return gdbarch->software_single_step (regcache);
3304 void
3305 set_gdbarch_software_single_step (struct gdbarch *gdbarch,
3306 gdbarch_software_single_step_ftype software_single_step)
3308 gdbarch->software_single_step = software_single_step;
3311 bool
3312 gdbarch_single_step_through_delay_p (struct gdbarch *gdbarch)
3314 gdb_assert (gdbarch != NULL);
3315 return gdbarch->single_step_through_delay != NULL;
3319 gdbarch_single_step_through_delay (struct gdbarch *gdbarch, struct frame_info *frame)
3321 gdb_assert (gdbarch != NULL);
3322 gdb_assert (gdbarch->single_step_through_delay != NULL);
3323 if (gdbarch_debug >= 2)
3324 gdb_printf (gdb_stdlog, "gdbarch_single_step_through_delay called\n");
3325 return gdbarch->single_step_through_delay (gdbarch, frame);
3328 void
3329 set_gdbarch_single_step_through_delay (struct gdbarch *gdbarch,
3330 gdbarch_single_step_through_delay_ftype single_step_through_delay)
3332 gdbarch->single_step_through_delay = single_step_through_delay;
3336 gdbarch_print_insn (struct gdbarch *gdbarch, bfd_vma vma, struct disassemble_info *info)
3338 gdb_assert (gdbarch != NULL);
3339 gdb_assert (gdbarch->print_insn != NULL);
3340 if (gdbarch_debug >= 2)
3341 gdb_printf (gdb_stdlog, "gdbarch_print_insn called\n");
3342 return gdbarch->print_insn (vma, info);
3345 void
3346 set_gdbarch_print_insn (struct gdbarch *gdbarch,
3347 gdbarch_print_insn_ftype print_insn)
3349 gdbarch->print_insn = print_insn;
3352 CORE_ADDR
3353 gdbarch_skip_trampoline_code (struct gdbarch *gdbarch, struct frame_info *frame, CORE_ADDR pc)
3355 gdb_assert (gdbarch != NULL);
3356 gdb_assert (gdbarch->skip_trampoline_code != NULL);
3357 if (gdbarch_debug >= 2)
3358 gdb_printf (gdb_stdlog, "gdbarch_skip_trampoline_code called\n");
3359 return gdbarch->skip_trampoline_code (frame, pc);
3362 void
3363 set_gdbarch_skip_trampoline_code (struct gdbarch *gdbarch,
3364 gdbarch_skip_trampoline_code_ftype skip_trampoline_code)
3366 gdbarch->skip_trampoline_code = skip_trampoline_code;
3369 CORE_ADDR
3370 gdbarch_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc)
3372 gdb_assert (gdbarch != NULL);
3373 gdb_assert (gdbarch->skip_solib_resolver != NULL);
3374 if (gdbarch_debug >= 2)
3375 gdb_printf (gdb_stdlog, "gdbarch_skip_solib_resolver called\n");
3376 return gdbarch->skip_solib_resolver (gdbarch, pc);
3379 void
3380 set_gdbarch_skip_solib_resolver (struct gdbarch *gdbarch,
3381 gdbarch_skip_solib_resolver_ftype skip_solib_resolver)
3383 gdbarch->skip_solib_resolver = skip_solib_resolver;
3387 gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, const char *name)
3389 gdb_assert (gdbarch != NULL);
3390 gdb_assert (gdbarch->in_solib_return_trampoline != NULL);
3391 if (gdbarch_debug >= 2)
3392 gdb_printf (gdb_stdlog, "gdbarch_in_solib_return_trampoline called\n");
3393 return gdbarch->in_solib_return_trampoline (gdbarch, pc, name);
3396 void
3397 set_gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch,
3398 gdbarch_in_solib_return_trampoline_ftype in_solib_return_trampoline)
3400 gdbarch->in_solib_return_trampoline = in_solib_return_trampoline;
3403 bool
3404 gdbarch_in_indirect_branch_thunk (struct gdbarch *gdbarch, CORE_ADDR pc)
3406 gdb_assert (gdbarch != NULL);
3407 gdb_assert (gdbarch->in_indirect_branch_thunk != NULL);
3408 if (gdbarch_debug >= 2)
3409 gdb_printf (gdb_stdlog, "gdbarch_in_indirect_branch_thunk called\n");
3410 return gdbarch->in_indirect_branch_thunk (gdbarch, pc);
3413 void
3414 set_gdbarch_in_indirect_branch_thunk (struct gdbarch *gdbarch,
3415 gdbarch_in_indirect_branch_thunk_ftype in_indirect_branch_thunk)
3417 gdbarch->in_indirect_branch_thunk = in_indirect_branch_thunk;
3421 gdbarch_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR addr)
3423 gdb_assert (gdbarch != NULL);
3424 gdb_assert (gdbarch->stack_frame_destroyed_p != NULL);
3425 if (gdbarch_debug >= 2)
3426 gdb_printf (gdb_stdlog, "gdbarch_stack_frame_destroyed_p called\n");
3427 return gdbarch->stack_frame_destroyed_p (gdbarch, addr);
3430 void
3431 set_gdbarch_stack_frame_destroyed_p (struct gdbarch *gdbarch,
3432 gdbarch_stack_frame_destroyed_p_ftype stack_frame_destroyed_p)
3434 gdbarch->stack_frame_destroyed_p = stack_frame_destroyed_p;
3437 bool
3438 gdbarch_elf_make_msymbol_special_p (struct gdbarch *gdbarch)
3440 gdb_assert (gdbarch != NULL);
3441 return gdbarch->elf_make_msymbol_special != NULL;
3444 void
3445 gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, asymbol *sym, struct minimal_symbol *msym)
3447 gdb_assert (gdbarch != NULL);
3448 gdb_assert (gdbarch->elf_make_msymbol_special != NULL);
3449 if (gdbarch_debug >= 2)
3450 gdb_printf (gdb_stdlog, "gdbarch_elf_make_msymbol_special called\n");
3451 gdbarch->elf_make_msymbol_special (sym, msym);
3454 void
3455 set_gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch,
3456 gdbarch_elf_make_msymbol_special_ftype elf_make_msymbol_special)
3458 gdbarch->elf_make_msymbol_special = elf_make_msymbol_special;
3461 void
3462 gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch, int val, struct minimal_symbol *msym)
3464 gdb_assert (gdbarch != NULL);
3465 gdb_assert (gdbarch->coff_make_msymbol_special != NULL);
3466 if (gdbarch_debug >= 2)
3467 gdb_printf (gdb_stdlog, "gdbarch_coff_make_msymbol_special called\n");
3468 gdbarch->coff_make_msymbol_special (val, msym);
3471 void
3472 set_gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch,
3473 gdbarch_coff_make_msymbol_special_ftype coff_make_msymbol_special)
3475 gdbarch->coff_make_msymbol_special = coff_make_msymbol_special;
3478 void
3479 gdbarch_make_symbol_special (struct gdbarch *gdbarch, struct symbol *sym, struct objfile *objfile)
3481 gdb_assert (gdbarch != NULL);
3482 gdb_assert (gdbarch->make_symbol_special != NULL);
3483 if (gdbarch_debug >= 2)
3484 gdb_printf (gdb_stdlog, "gdbarch_make_symbol_special called\n");
3485 gdbarch->make_symbol_special (sym, objfile);
3488 void
3489 set_gdbarch_make_symbol_special (struct gdbarch *gdbarch,
3490 gdbarch_make_symbol_special_ftype make_symbol_special)
3492 gdbarch->make_symbol_special = make_symbol_special;
3495 CORE_ADDR
3496 gdbarch_adjust_dwarf2_addr (struct gdbarch *gdbarch, CORE_ADDR pc)
3498 gdb_assert (gdbarch != NULL);
3499 gdb_assert (gdbarch->adjust_dwarf2_addr != NULL);
3500 if (gdbarch_debug >= 2)
3501 gdb_printf (gdb_stdlog, "gdbarch_adjust_dwarf2_addr called\n");
3502 return gdbarch->adjust_dwarf2_addr (pc);
3505 void
3506 set_gdbarch_adjust_dwarf2_addr (struct gdbarch *gdbarch,
3507 gdbarch_adjust_dwarf2_addr_ftype adjust_dwarf2_addr)
3509 gdbarch->adjust_dwarf2_addr = adjust_dwarf2_addr;
3512 CORE_ADDR
3513 gdbarch_adjust_dwarf2_line (struct gdbarch *gdbarch, CORE_ADDR addr, int rel)
3515 gdb_assert (gdbarch != NULL);
3516 gdb_assert (gdbarch->adjust_dwarf2_line != NULL);
3517 if (gdbarch_debug >= 2)
3518 gdb_printf (gdb_stdlog, "gdbarch_adjust_dwarf2_line called\n");
3519 return gdbarch->adjust_dwarf2_line (addr, rel);
3522 void
3523 set_gdbarch_adjust_dwarf2_line (struct gdbarch *gdbarch,
3524 gdbarch_adjust_dwarf2_line_ftype adjust_dwarf2_line)
3526 gdbarch->adjust_dwarf2_line = adjust_dwarf2_line;
3530 gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch)
3532 gdb_assert (gdbarch != NULL);
3533 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */
3534 if (gdbarch_debug >= 2)
3535 gdb_printf (gdb_stdlog, "gdbarch_cannot_step_breakpoint called\n");
3536 return gdbarch->cannot_step_breakpoint;
3539 void
3540 set_gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch,
3541 int cannot_step_breakpoint)
3543 gdbarch->cannot_step_breakpoint = cannot_step_breakpoint;
3547 gdbarch_have_nonsteppable_watchpoint (struct gdbarch *gdbarch)
3549 gdb_assert (gdbarch != NULL);
3550 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */
3551 if (gdbarch_debug >= 2)
3552 gdb_printf (gdb_stdlog, "gdbarch_have_nonsteppable_watchpoint called\n");
3553 return gdbarch->have_nonsteppable_watchpoint;
3556 void
3557 set_gdbarch_have_nonsteppable_watchpoint (struct gdbarch *gdbarch,
3558 int have_nonsteppable_watchpoint)
3560 gdbarch->have_nonsteppable_watchpoint = have_nonsteppable_watchpoint;
3563 bool
3564 gdbarch_address_class_type_flags_p (struct gdbarch *gdbarch)
3566 gdb_assert (gdbarch != NULL);
3567 return gdbarch->address_class_type_flags != NULL;
3570 type_instance_flags
3571 gdbarch_address_class_type_flags (struct gdbarch *gdbarch, int byte_size, int dwarf2_addr_class)
3573 gdb_assert (gdbarch != NULL);
3574 gdb_assert (gdbarch->address_class_type_flags != NULL);
3575 if (gdbarch_debug >= 2)
3576 gdb_printf (gdb_stdlog, "gdbarch_address_class_type_flags called\n");
3577 return gdbarch->address_class_type_flags (byte_size, dwarf2_addr_class);
3580 void
3581 set_gdbarch_address_class_type_flags (struct gdbarch *gdbarch,
3582 gdbarch_address_class_type_flags_ftype address_class_type_flags)
3584 gdbarch->address_class_type_flags = address_class_type_flags;
3587 bool
3588 gdbarch_address_class_type_flags_to_name_p (struct gdbarch *gdbarch)
3590 gdb_assert (gdbarch != NULL);
3591 return gdbarch->address_class_type_flags_to_name != NULL;
3594 const char *
3595 gdbarch_address_class_type_flags_to_name (struct gdbarch *gdbarch, type_instance_flags type_flags)
3597 gdb_assert (gdbarch != NULL);
3598 gdb_assert (gdbarch->address_class_type_flags_to_name != NULL);
3599 if (gdbarch_debug >= 2)
3600 gdb_printf (gdb_stdlog, "gdbarch_address_class_type_flags_to_name called\n");
3601 return gdbarch->address_class_type_flags_to_name (gdbarch, type_flags);
3604 void
3605 set_gdbarch_address_class_type_flags_to_name (struct gdbarch *gdbarch,
3606 gdbarch_address_class_type_flags_to_name_ftype address_class_type_flags_to_name)
3608 gdbarch->address_class_type_flags_to_name = address_class_type_flags_to_name;
3611 bool
3612 gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch *gdbarch, gdb_byte op, struct dwarf2_frame_state *fs)
3614 gdb_assert (gdbarch != NULL);
3615 gdb_assert (gdbarch->execute_dwarf_cfa_vendor_op != NULL);
3616 if (gdbarch_debug >= 2)
3617 gdb_printf (gdb_stdlog, "gdbarch_execute_dwarf_cfa_vendor_op called\n");
3618 return gdbarch->execute_dwarf_cfa_vendor_op (gdbarch, op, fs);
3621 void
3622 set_gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch *gdbarch,
3623 gdbarch_execute_dwarf_cfa_vendor_op_ftype execute_dwarf_cfa_vendor_op)
3625 gdbarch->execute_dwarf_cfa_vendor_op = execute_dwarf_cfa_vendor_op;
3628 bool
3629 gdbarch_address_class_name_to_type_flags_p (struct gdbarch *gdbarch)
3631 gdb_assert (gdbarch != NULL);
3632 return gdbarch->address_class_name_to_type_flags != NULL;
3635 bool
3636 gdbarch_address_class_name_to_type_flags (struct gdbarch *gdbarch, const char *name, type_instance_flags *type_flags_ptr)
3638 gdb_assert (gdbarch != NULL);
3639 gdb_assert (gdbarch->address_class_name_to_type_flags != NULL);
3640 if (gdbarch_debug >= 2)
3641 gdb_printf (gdb_stdlog, "gdbarch_address_class_name_to_type_flags called\n");
3642 return gdbarch->address_class_name_to_type_flags (gdbarch, name, type_flags_ptr);
3645 void
3646 set_gdbarch_address_class_name_to_type_flags (struct gdbarch *gdbarch,
3647 gdbarch_address_class_name_to_type_flags_ftype address_class_name_to_type_flags)
3649 gdbarch->address_class_name_to_type_flags = address_class_name_to_type_flags;
3653 gdbarch_register_reggroup_p (struct gdbarch *gdbarch, int regnum, const struct reggroup *reggroup)
3655 gdb_assert (gdbarch != NULL);
3656 gdb_assert (gdbarch->register_reggroup_p != NULL);
3657 if (gdbarch_debug >= 2)
3658 gdb_printf (gdb_stdlog, "gdbarch_register_reggroup_p called\n");
3659 return gdbarch->register_reggroup_p (gdbarch, regnum, reggroup);
3662 void
3663 set_gdbarch_register_reggroup_p (struct gdbarch *gdbarch,
3664 gdbarch_register_reggroup_p_ftype register_reggroup_p)
3666 gdbarch->register_reggroup_p = register_reggroup_p;
3669 bool
3670 gdbarch_fetch_pointer_argument_p (struct gdbarch *gdbarch)
3672 gdb_assert (gdbarch != NULL);
3673 return gdbarch->fetch_pointer_argument != NULL;
3676 CORE_ADDR
3677 gdbarch_fetch_pointer_argument (struct gdbarch *gdbarch, struct frame_info *frame, int argi, struct type *type)
3679 gdb_assert (gdbarch != NULL);
3680 gdb_assert (gdbarch->fetch_pointer_argument != NULL);
3681 if (gdbarch_debug >= 2)
3682 gdb_printf (gdb_stdlog, "gdbarch_fetch_pointer_argument called\n");
3683 return gdbarch->fetch_pointer_argument (frame, argi, type);
3686 void
3687 set_gdbarch_fetch_pointer_argument (struct gdbarch *gdbarch,
3688 gdbarch_fetch_pointer_argument_ftype fetch_pointer_argument)
3690 gdbarch->fetch_pointer_argument = fetch_pointer_argument;
3693 bool
3694 gdbarch_iterate_over_regset_sections_p (struct gdbarch *gdbarch)
3696 gdb_assert (gdbarch != NULL);
3697 return gdbarch->iterate_over_regset_sections != NULL;
3700 void
3701 gdbarch_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
3703 gdb_assert (gdbarch != NULL);
3704 gdb_assert (gdbarch->iterate_over_regset_sections != NULL);
3705 if (gdbarch_debug >= 2)
3706 gdb_printf (gdb_stdlog, "gdbarch_iterate_over_regset_sections called\n");
3707 gdbarch->iterate_over_regset_sections (gdbarch, cb, cb_data, regcache);
3710 void
3711 set_gdbarch_iterate_over_regset_sections (struct gdbarch *gdbarch,
3712 gdbarch_iterate_over_regset_sections_ftype iterate_over_regset_sections)
3714 gdbarch->iterate_over_regset_sections = iterate_over_regset_sections;
3717 bool
3718 gdbarch_make_corefile_notes_p (struct gdbarch *gdbarch)
3720 gdb_assert (gdbarch != NULL);
3721 return gdbarch->make_corefile_notes != NULL;
3724 gdb::unique_xmalloc_ptr<char>
3725 gdbarch_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
3727 gdb_assert (gdbarch != NULL);
3728 gdb_assert (gdbarch->make_corefile_notes != NULL);
3729 if (gdbarch_debug >= 2)
3730 gdb_printf (gdb_stdlog, "gdbarch_make_corefile_notes called\n");
3731 return gdbarch->make_corefile_notes (gdbarch, obfd, note_size);
3734 void
3735 set_gdbarch_make_corefile_notes (struct gdbarch *gdbarch,
3736 gdbarch_make_corefile_notes_ftype make_corefile_notes)
3738 gdbarch->make_corefile_notes = make_corefile_notes;
3741 bool
3742 gdbarch_find_memory_regions_p (struct gdbarch *gdbarch)
3744 gdb_assert (gdbarch != NULL);
3745 return gdbarch->find_memory_regions != NULL;
3749 gdbarch_find_memory_regions (struct gdbarch *gdbarch, find_memory_region_ftype func, void *data)
3751 gdb_assert (gdbarch != NULL);
3752 gdb_assert (gdbarch->find_memory_regions != NULL);
3753 if (gdbarch_debug >= 2)
3754 gdb_printf (gdb_stdlog, "gdbarch_find_memory_regions called\n");
3755 return gdbarch->find_memory_regions (gdbarch, func, data);
3758 void
3759 set_gdbarch_find_memory_regions (struct gdbarch *gdbarch,
3760 gdbarch_find_memory_regions_ftype find_memory_regions)
3762 gdbarch->find_memory_regions = find_memory_regions;
3765 bool
3766 gdbarch_create_memtag_section_p (struct gdbarch *gdbarch)
3768 gdb_assert (gdbarch != NULL);
3769 return gdbarch->create_memtag_section != NULL;
3772 asection *
3773 gdbarch_create_memtag_section (struct gdbarch *gdbarch, bfd *obfd, CORE_ADDR address, size_t size)
3775 gdb_assert (gdbarch != NULL);
3776 gdb_assert (gdbarch->create_memtag_section != NULL);
3777 if (gdbarch_debug >= 2)
3778 gdb_printf (gdb_stdlog, "gdbarch_create_memtag_section called\n");
3779 return gdbarch->create_memtag_section (gdbarch, obfd, address, size);
3782 void
3783 set_gdbarch_create_memtag_section (struct gdbarch *gdbarch,
3784 gdbarch_create_memtag_section_ftype create_memtag_section)
3786 gdbarch->create_memtag_section = create_memtag_section;
3789 bool
3790 gdbarch_fill_memtag_section_p (struct gdbarch *gdbarch)
3792 gdb_assert (gdbarch != NULL);
3793 return gdbarch->fill_memtag_section != NULL;
3796 bool
3797 gdbarch_fill_memtag_section (struct gdbarch *gdbarch, asection *osec)
3799 gdb_assert (gdbarch != NULL);
3800 gdb_assert (gdbarch->fill_memtag_section != NULL);
3801 if (gdbarch_debug >= 2)
3802 gdb_printf (gdb_stdlog, "gdbarch_fill_memtag_section called\n");
3803 return gdbarch->fill_memtag_section (gdbarch, osec);
3806 void
3807 set_gdbarch_fill_memtag_section (struct gdbarch *gdbarch,
3808 gdbarch_fill_memtag_section_ftype fill_memtag_section)
3810 gdbarch->fill_memtag_section = fill_memtag_section;
3813 bool
3814 gdbarch_decode_memtag_section_p (struct gdbarch *gdbarch)
3816 gdb_assert (gdbarch != NULL);
3817 return gdbarch->decode_memtag_section != NULL;
3820 gdb::byte_vector
3821 gdbarch_decode_memtag_section (struct gdbarch *gdbarch, bfd_section *section, int type, CORE_ADDR address, size_t length)
3823 gdb_assert (gdbarch != NULL);
3824 gdb_assert (gdbarch->decode_memtag_section != NULL);
3825 if (gdbarch_debug >= 2)
3826 gdb_printf (gdb_stdlog, "gdbarch_decode_memtag_section called\n");
3827 return gdbarch->decode_memtag_section (gdbarch, section, type, address, length);
3830 void
3831 set_gdbarch_decode_memtag_section (struct gdbarch *gdbarch,
3832 gdbarch_decode_memtag_section_ftype decode_memtag_section)
3834 gdbarch->decode_memtag_section = decode_memtag_section;
3837 bool
3838 gdbarch_core_xfer_shared_libraries_p (struct gdbarch *gdbarch)
3840 gdb_assert (gdbarch != NULL);
3841 return gdbarch->core_xfer_shared_libraries != NULL;
3844 ULONGEST
3845 gdbarch_core_xfer_shared_libraries (struct gdbarch *gdbarch, gdb_byte *readbuf, ULONGEST offset, ULONGEST len)
3847 gdb_assert (gdbarch != NULL);
3848 gdb_assert (gdbarch->core_xfer_shared_libraries != NULL);
3849 if (gdbarch_debug >= 2)
3850 gdb_printf (gdb_stdlog, "gdbarch_core_xfer_shared_libraries called\n");
3851 return gdbarch->core_xfer_shared_libraries (gdbarch, readbuf, offset, len);
3854 void
3855 set_gdbarch_core_xfer_shared_libraries (struct gdbarch *gdbarch,
3856 gdbarch_core_xfer_shared_libraries_ftype core_xfer_shared_libraries)
3858 gdbarch->core_xfer_shared_libraries = core_xfer_shared_libraries;
3861 bool
3862 gdbarch_core_xfer_shared_libraries_aix_p (struct gdbarch *gdbarch)
3864 gdb_assert (gdbarch != NULL);
3865 return gdbarch->core_xfer_shared_libraries_aix != NULL;
3868 ULONGEST
3869 gdbarch_core_xfer_shared_libraries_aix (struct gdbarch *gdbarch, gdb_byte *readbuf, ULONGEST offset, ULONGEST len)
3871 gdb_assert (gdbarch != NULL);
3872 gdb_assert (gdbarch->core_xfer_shared_libraries_aix != NULL);
3873 if (gdbarch_debug >= 2)
3874 gdb_printf (gdb_stdlog, "gdbarch_core_xfer_shared_libraries_aix called\n");
3875 return gdbarch->core_xfer_shared_libraries_aix (gdbarch, readbuf, offset, len);
3878 void
3879 set_gdbarch_core_xfer_shared_libraries_aix (struct gdbarch *gdbarch,
3880 gdbarch_core_xfer_shared_libraries_aix_ftype core_xfer_shared_libraries_aix)
3882 gdbarch->core_xfer_shared_libraries_aix = core_xfer_shared_libraries_aix;
3885 bool
3886 gdbarch_core_pid_to_str_p (struct gdbarch *gdbarch)
3888 gdb_assert (gdbarch != NULL);
3889 return gdbarch->core_pid_to_str != NULL;
3892 std::string
3893 gdbarch_core_pid_to_str (struct gdbarch *gdbarch, ptid_t ptid)
3895 gdb_assert (gdbarch != NULL);
3896 gdb_assert (gdbarch->core_pid_to_str != NULL);
3897 if (gdbarch_debug >= 2)
3898 gdb_printf (gdb_stdlog, "gdbarch_core_pid_to_str called\n");
3899 return gdbarch->core_pid_to_str (gdbarch, ptid);
3902 void
3903 set_gdbarch_core_pid_to_str (struct gdbarch *gdbarch,
3904 gdbarch_core_pid_to_str_ftype core_pid_to_str)
3906 gdbarch->core_pid_to_str = core_pid_to_str;
3909 bool
3910 gdbarch_core_thread_name_p (struct gdbarch *gdbarch)
3912 gdb_assert (gdbarch != NULL);
3913 return gdbarch->core_thread_name != NULL;
3916 const char *
3917 gdbarch_core_thread_name (struct gdbarch *gdbarch, struct thread_info *thr)
3919 gdb_assert (gdbarch != NULL);
3920 gdb_assert (gdbarch->core_thread_name != NULL);
3921 if (gdbarch_debug >= 2)
3922 gdb_printf (gdb_stdlog, "gdbarch_core_thread_name called\n");
3923 return gdbarch->core_thread_name (gdbarch, thr);
3926 void
3927 set_gdbarch_core_thread_name (struct gdbarch *gdbarch,
3928 gdbarch_core_thread_name_ftype core_thread_name)
3930 gdbarch->core_thread_name = core_thread_name;
3933 bool
3934 gdbarch_core_xfer_siginfo_p (struct gdbarch *gdbarch)
3936 gdb_assert (gdbarch != NULL);
3937 return gdbarch->core_xfer_siginfo != NULL;
3940 LONGEST
3941 gdbarch_core_xfer_siginfo (struct gdbarch *gdbarch, gdb_byte *readbuf, ULONGEST offset, ULONGEST len)
3943 gdb_assert (gdbarch != NULL);
3944 gdb_assert (gdbarch->core_xfer_siginfo != NULL);
3945 if (gdbarch_debug >= 2)
3946 gdb_printf (gdb_stdlog, "gdbarch_core_xfer_siginfo called\n");
3947 return gdbarch->core_xfer_siginfo (gdbarch, readbuf, offset, len);
3950 void
3951 set_gdbarch_core_xfer_siginfo (struct gdbarch *gdbarch,
3952 gdbarch_core_xfer_siginfo_ftype core_xfer_siginfo)
3954 gdbarch->core_xfer_siginfo = core_xfer_siginfo;
3957 bool
3958 gdbarch_gcore_bfd_target_p (struct gdbarch *gdbarch)
3960 gdb_assert (gdbarch != NULL);
3961 return gdbarch->gcore_bfd_target != 0;
3964 const char *
3965 gdbarch_gcore_bfd_target (struct gdbarch *gdbarch)
3967 gdb_assert (gdbarch != NULL);
3968 /* Check variable changed from pre-default. */
3969 gdb_assert (gdbarch->gcore_bfd_target != 0);
3970 if (gdbarch_debug >= 2)
3971 gdb_printf (gdb_stdlog, "gdbarch_gcore_bfd_target called\n");
3972 return gdbarch->gcore_bfd_target;
3975 void
3976 set_gdbarch_gcore_bfd_target (struct gdbarch *gdbarch,
3977 const char * gcore_bfd_target)
3979 gdbarch->gcore_bfd_target = gcore_bfd_target;
3983 gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch)
3985 gdb_assert (gdbarch != NULL);
3986 /* Skip verify of vtable_function_descriptors, invalid_p == 0 */
3987 if (gdbarch_debug >= 2)
3988 gdb_printf (gdb_stdlog, "gdbarch_vtable_function_descriptors called\n");
3989 return gdbarch->vtable_function_descriptors;
3992 void
3993 set_gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch,
3994 int vtable_function_descriptors)
3996 gdbarch->vtable_function_descriptors = vtable_function_descriptors;
4000 gdbarch_vbit_in_delta (struct gdbarch *gdbarch)
4002 gdb_assert (gdbarch != NULL);
4003 /* Skip verify of vbit_in_delta, invalid_p == 0 */
4004 if (gdbarch_debug >= 2)
4005 gdb_printf (gdb_stdlog, "gdbarch_vbit_in_delta called\n");
4006 return gdbarch->vbit_in_delta;
4009 void
4010 set_gdbarch_vbit_in_delta (struct gdbarch *gdbarch,
4011 int vbit_in_delta)
4013 gdbarch->vbit_in_delta = vbit_in_delta;
4016 void
4017 gdbarch_skip_permanent_breakpoint (struct gdbarch *gdbarch, struct regcache *regcache)
4019 gdb_assert (gdbarch != NULL);
4020 gdb_assert (gdbarch->skip_permanent_breakpoint != NULL);
4021 if (gdbarch_debug >= 2)
4022 gdb_printf (gdb_stdlog, "gdbarch_skip_permanent_breakpoint called\n");
4023 gdbarch->skip_permanent_breakpoint (regcache);
4026 void
4027 set_gdbarch_skip_permanent_breakpoint (struct gdbarch *gdbarch,
4028 gdbarch_skip_permanent_breakpoint_ftype skip_permanent_breakpoint)
4030 gdbarch->skip_permanent_breakpoint = skip_permanent_breakpoint;
4033 bool
4034 gdbarch_max_insn_length_p (struct gdbarch *gdbarch)
4036 gdb_assert (gdbarch != NULL);
4037 return gdbarch->max_insn_length != 0;
4040 ULONGEST
4041 gdbarch_max_insn_length (struct gdbarch *gdbarch)
4043 gdb_assert (gdbarch != NULL);
4044 /* Check variable changed from pre-default. */
4045 gdb_assert (gdbarch->max_insn_length != 0);
4046 if (gdbarch_debug >= 2)
4047 gdb_printf (gdb_stdlog, "gdbarch_max_insn_length called\n");
4048 return gdbarch->max_insn_length;
4051 void
4052 set_gdbarch_max_insn_length (struct gdbarch *gdbarch,
4053 ULONGEST max_insn_length)
4055 gdbarch->max_insn_length = max_insn_length;
4058 bool
4059 gdbarch_displaced_step_copy_insn_p (struct gdbarch *gdbarch)
4061 gdb_assert (gdbarch != NULL);
4062 return gdbarch->displaced_step_copy_insn != NULL;
4065 displaced_step_copy_insn_closure_up
4066 gdbarch_displaced_step_copy_insn (struct gdbarch *gdbarch, CORE_ADDR from, CORE_ADDR to, struct regcache *regs)
4068 gdb_assert (gdbarch != NULL);
4069 gdb_assert (gdbarch->displaced_step_copy_insn != NULL);
4070 if (gdbarch_debug >= 2)
4071 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_copy_insn called\n");
4072 return gdbarch->displaced_step_copy_insn (gdbarch, from, to, regs);
4075 void
4076 set_gdbarch_displaced_step_copy_insn (struct gdbarch *gdbarch,
4077 gdbarch_displaced_step_copy_insn_ftype displaced_step_copy_insn)
4079 gdbarch->displaced_step_copy_insn = displaced_step_copy_insn;
4082 bool
4083 gdbarch_displaced_step_hw_singlestep (struct gdbarch *gdbarch)
4085 gdb_assert (gdbarch != NULL);
4086 gdb_assert (gdbarch->displaced_step_hw_singlestep != NULL);
4087 if (gdbarch_debug >= 2)
4088 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_hw_singlestep called\n");
4089 return gdbarch->displaced_step_hw_singlestep (gdbarch);
4092 void
4093 set_gdbarch_displaced_step_hw_singlestep (struct gdbarch *gdbarch,
4094 gdbarch_displaced_step_hw_singlestep_ftype displaced_step_hw_singlestep)
4096 gdbarch->displaced_step_hw_singlestep = displaced_step_hw_singlestep;
4099 bool
4100 gdbarch_displaced_step_fixup_p (struct gdbarch *gdbarch)
4102 gdb_assert (gdbarch != NULL);
4103 return gdbarch->displaced_step_fixup != NULL;
4106 void
4107 gdbarch_displaced_step_fixup (struct gdbarch *gdbarch, struct displaced_step_copy_insn_closure *closure, CORE_ADDR from, CORE_ADDR to, struct regcache *regs)
4109 gdb_assert (gdbarch != NULL);
4110 gdb_assert (gdbarch->displaced_step_fixup != NULL);
4111 /* Do not check predicate: gdbarch->displaced_step_fixup != NULL, allow call. */
4112 if (gdbarch_debug >= 2)
4113 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_fixup called\n");
4114 gdbarch->displaced_step_fixup (gdbarch, closure, from, to, regs);
4117 void
4118 set_gdbarch_displaced_step_fixup (struct gdbarch *gdbarch,
4119 gdbarch_displaced_step_fixup_ftype displaced_step_fixup)
4121 gdbarch->displaced_step_fixup = displaced_step_fixup;
4124 bool
4125 gdbarch_displaced_step_prepare_p (struct gdbarch *gdbarch)
4127 gdb_assert (gdbarch != NULL);
4128 return gdbarch->displaced_step_prepare != NULL;
4131 displaced_step_prepare_status
4132 gdbarch_displaced_step_prepare (struct gdbarch *gdbarch, thread_info *thread, CORE_ADDR &displaced_pc)
4134 gdb_assert (gdbarch != NULL);
4135 gdb_assert (gdbarch->displaced_step_prepare != NULL);
4136 if (gdbarch_debug >= 2)
4137 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_prepare called\n");
4138 return gdbarch->displaced_step_prepare (gdbarch, thread, displaced_pc);
4141 void
4142 set_gdbarch_displaced_step_prepare (struct gdbarch *gdbarch,
4143 gdbarch_displaced_step_prepare_ftype displaced_step_prepare)
4145 gdbarch->displaced_step_prepare = displaced_step_prepare;
4148 displaced_step_finish_status
4149 gdbarch_displaced_step_finish (struct gdbarch *gdbarch, thread_info *thread, gdb_signal sig)
4151 gdb_assert (gdbarch != NULL);
4152 gdb_assert (gdbarch->displaced_step_finish != NULL);
4153 if (gdbarch_debug >= 2)
4154 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_finish called\n");
4155 return gdbarch->displaced_step_finish (gdbarch, thread, sig);
4158 void
4159 set_gdbarch_displaced_step_finish (struct gdbarch *gdbarch,
4160 gdbarch_displaced_step_finish_ftype displaced_step_finish)
4162 gdbarch->displaced_step_finish = displaced_step_finish;
4165 bool
4166 gdbarch_displaced_step_copy_insn_closure_by_addr_p (struct gdbarch *gdbarch)
4168 gdb_assert (gdbarch != NULL);
4169 return gdbarch->displaced_step_copy_insn_closure_by_addr != NULL;
4172 const displaced_step_copy_insn_closure *
4173 gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch *gdbarch, inferior *inf, CORE_ADDR addr)
4175 gdb_assert (gdbarch != NULL);
4176 gdb_assert (gdbarch->displaced_step_copy_insn_closure_by_addr != NULL);
4177 if (gdbarch_debug >= 2)
4178 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_copy_insn_closure_by_addr called\n");
4179 return gdbarch->displaced_step_copy_insn_closure_by_addr (inf, addr);
4182 void
4183 set_gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch *gdbarch,
4184 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype displaced_step_copy_insn_closure_by_addr)
4186 gdbarch->displaced_step_copy_insn_closure_by_addr = displaced_step_copy_insn_closure_by_addr;
4189 void
4190 gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch *gdbarch, inferior *parent_inf, ptid_t child_ptid)
4192 gdb_assert (gdbarch != NULL);
4193 gdb_assert (gdbarch->displaced_step_restore_all_in_ptid != NULL);
4194 if (gdbarch_debug >= 2)
4195 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_restore_all_in_ptid called\n");
4196 gdbarch->displaced_step_restore_all_in_ptid (parent_inf, child_ptid);
4199 void
4200 set_gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch *gdbarch,
4201 gdbarch_displaced_step_restore_all_in_ptid_ftype displaced_step_restore_all_in_ptid)
4203 gdbarch->displaced_step_restore_all_in_ptid = displaced_step_restore_all_in_ptid;
4206 bool
4207 gdbarch_relocate_instruction_p (struct gdbarch *gdbarch)
4209 gdb_assert (gdbarch != NULL);
4210 return gdbarch->relocate_instruction != NULL;
4213 void
4214 gdbarch_relocate_instruction (struct gdbarch *gdbarch, CORE_ADDR *to, CORE_ADDR from)
4216 gdb_assert (gdbarch != NULL);
4217 gdb_assert (gdbarch->relocate_instruction != NULL);
4218 /* Do not check predicate: gdbarch->relocate_instruction != NULL, allow call. */
4219 if (gdbarch_debug >= 2)
4220 gdb_printf (gdb_stdlog, "gdbarch_relocate_instruction called\n");
4221 gdbarch->relocate_instruction (gdbarch, to, from);
4224 void
4225 set_gdbarch_relocate_instruction (struct gdbarch *gdbarch,
4226 gdbarch_relocate_instruction_ftype relocate_instruction)
4228 gdbarch->relocate_instruction = relocate_instruction;
4231 bool
4232 gdbarch_overlay_update_p (struct gdbarch *gdbarch)
4234 gdb_assert (gdbarch != NULL);
4235 return gdbarch->overlay_update != NULL;
4238 void
4239 gdbarch_overlay_update (struct gdbarch *gdbarch, struct obj_section *osect)
4241 gdb_assert (gdbarch != NULL);
4242 gdb_assert (gdbarch->overlay_update != NULL);
4243 if (gdbarch_debug >= 2)
4244 gdb_printf (gdb_stdlog, "gdbarch_overlay_update called\n");
4245 gdbarch->overlay_update (osect);
4248 void
4249 set_gdbarch_overlay_update (struct gdbarch *gdbarch,
4250 gdbarch_overlay_update_ftype overlay_update)
4252 gdbarch->overlay_update = overlay_update;
4255 bool
4256 gdbarch_core_read_description_p (struct gdbarch *gdbarch)
4258 gdb_assert (gdbarch != NULL);
4259 return gdbarch->core_read_description != NULL;
4262 const struct target_desc *
4263 gdbarch_core_read_description (struct gdbarch *gdbarch, struct target_ops *target, bfd *abfd)
4265 gdb_assert (gdbarch != NULL);
4266 gdb_assert (gdbarch->core_read_description != NULL);
4267 if (gdbarch_debug >= 2)
4268 gdb_printf (gdb_stdlog, "gdbarch_core_read_description called\n");
4269 return gdbarch->core_read_description (gdbarch, target, abfd);
4272 void
4273 set_gdbarch_core_read_description (struct gdbarch *gdbarch,
4274 gdbarch_core_read_description_ftype core_read_description)
4276 gdbarch->core_read_description = core_read_description;
4280 gdbarch_sofun_address_maybe_missing (struct gdbarch *gdbarch)
4282 gdb_assert (gdbarch != NULL);
4283 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */
4284 if (gdbarch_debug >= 2)
4285 gdb_printf (gdb_stdlog, "gdbarch_sofun_address_maybe_missing called\n");
4286 return gdbarch->sofun_address_maybe_missing;
4289 void
4290 set_gdbarch_sofun_address_maybe_missing (struct gdbarch *gdbarch,
4291 int sofun_address_maybe_missing)
4293 gdbarch->sofun_address_maybe_missing = sofun_address_maybe_missing;
4296 bool
4297 gdbarch_process_record_p (struct gdbarch *gdbarch)
4299 gdb_assert (gdbarch != NULL);
4300 return gdbarch->process_record != NULL;
4304 gdbarch_process_record (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr)
4306 gdb_assert (gdbarch != NULL);
4307 gdb_assert (gdbarch->process_record != NULL);
4308 if (gdbarch_debug >= 2)
4309 gdb_printf (gdb_stdlog, "gdbarch_process_record called\n");
4310 return gdbarch->process_record (gdbarch, regcache, addr);
4313 void
4314 set_gdbarch_process_record (struct gdbarch *gdbarch,
4315 gdbarch_process_record_ftype process_record)
4317 gdbarch->process_record = process_record;
4320 bool
4321 gdbarch_process_record_signal_p (struct gdbarch *gdbarch)
4323 gdb_assert (gdbarch != NULL);
4324 return gdbarch->process_record_signal != NULL;
4328 gdbarch_process_record_signal (struct gdbarch *gdbarch, struct regcache *regcache, enum gdb_signal signal)
4330 gdb_assert (gdbarch != NULL);
4331 gdb_assert (gdbarch->process_record_signal != NULL);
4332 if (gdbarch_debug >= 2)
4333 gdb_printf (gdb_stdlog, "gdbarch_process_record_signal called\n");
4334 return gdbarch->process_record_signal (gdbarch, regcache, signal);
4337 void
4338 set_gdbarch_process_record_signal (struct gdbarch *gdbarch,
4339 gdbarch_process_record_signal_ftype process_record_signal)
4341 gdbarch->process_record_signal = process_record_signal;
4344 bool
4345 gdbarch_gdb_signal_from_target_p (struct gdbarch *gdbarch)
4347 gdb_assert (gdbarch != NULL);
4348 return gdbarch->gdb_signal_from_target != NULL;
4351 enum gdb_signal
4352 gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch, int signo)
4354 gdb_assert (gdbarch != NULL);
4355 gdb_assert (gdbarch->gdb_signal_from_target != NULL);
4356 if (gdbarch_debug >= 2)
4357 gdb_printf (gdb_stdlog, "gdbarch_gdb_signal_from_target called\n");
4358 return gdbarch->gdb_signal_from_target (gdbarch, signo);
4361 void
4362 set_gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch,
4363 gdbarch_gdb_signal_from_target_ftype gdb_signal_from_target)
4365 gdbarch->gdb_signal_from_target = gdb_signal_from_target;
4368 bool
4369 gdbarch_gdb_signal_to_target_p (struct gdbarch *gdbarch)
4371 gdb_assert (gdbarch != NULL);
4372 return gdbarch->gdb_signal_to_target != NULL;
4376 gdbarch_gdb_signal_to_target (struct gdbarch *gdbarch, enum gdb_signal signal)
4378 gdb_assert (gdbarch != NULL);
4379 gdb_assert (gdbarch->gdb_signal_to_target != NULL);
4380 if (gdbarch_debug >= 2)
4381 gdb_printf (gdb_stdlog, "gdbarch_gdb_signal_to_target called\n");
4382 return gdbarch->gdb_signal_to_target (gdbarch, signal);
4385 void
4386 set_gdbarch_gdb_signal_to_target (struct gdbarch *gdbarch,
4387 gdbarch_gdb_signal_to_target_ftype gdb_signal_to_target)
4389 gdbarch->gdb_signal_to_target = gdb_signal_to_target;
4392 bool
4393 gdbarch_get_siginfo_type_p (struct gdbarch *gdbarch)
4395 gdb_assert (gdbarch != NULL);
4396 return gdbarch->get_siginfo_type != NULL;
4399 struct type *
4400 gdbarch_get_siginfo_type (struct gdbarch *gdbarch)
4402 gdb_assert (gdbarch != NULL);
4403 gdb_assert (gdbarch->get_siginfo_type != NULL);
4404 if (gdbarch_debug >= 2)
4405 gdb_printf (gdb_stdlog, "gdbarch_get_siginfo_type called\n");
4406 return gdbarch->get_siginfo_type (gdbarch);
4409 void
4410 set_gdbarch_get_siginfo_type (struct gdbarch *gdbarch,
4411 gdbarch_get_siginfo_type_ftype get_siginfo_type)
4413 gdbarch->get_siginfo_type = get_siginfo_type;
4416 bool
4417 gdbarch_record_special_symbol_p (struct gdbarch *gdbarch)
4419 gdb_assert (gdbarch != NULL);
4420 return gdbarch->record_special_symbol != NULL;
4423 void
4424 gdbarch_record_special_symbol (struct gdbarch *gdbarch, struct objfile *objfile, asymbol *sym)
4426 gdb_assert (gdbarch != NULL);
4427 gdb_assert (gdbarch->record_special_symbol != NULL);
4428 if (gdbarch_debug >= 2)
4429 gdb_printf (gdb_stdlog, "gdbarch_record_special_symbol called\n");
4430 gdbarch->record_special_symbol (gdbarch, objfile, sym);
4433 void
4434 set_gdbarch_record_special_symbol (struct gdbarch *gdbarch,
4435 gdbarch_record_special_symbol_ftype record_special_symbol)
4437 gdbarch->record_special_symbol = record_special_symbol;
4440 bool
4441 gdbarch_get_syscall_number_p (struct gdbarch *gdbarch)
4443 gdb_assert (gdbarch != NULL);
4444 return gdbarch->get_syscall_number != NULL;
4447 LONGEST
4448 gdbarch_get_syscall_number (struct gdbarch *gdbarch, thread_info *thread)
4450 gdb_assert (gdbarch != NULL);
4451 gdb_assert (gdbarch->get_syscall_number != NULL);
4452 if (gdbarch_debug >= 2)
4453 gdb_printf (gdb_stdlog, "gdbarch_get_syscall_number called\n");
4454 return gdbarch->get_syscall_number (gdbarch, thread);
4457 void
4458 set_gdbarch_get_syscall_number (struct gdbarch *gdbarch,
4459 gdbarch_get_syscall_number_ftype get_syscall_number)
4461 gdbarch->get_syscall_number = get_syscall_number;
4464 const char *
4465 gdbarch_xml_syscall_file (struct gdbarch *gdbarch)
4467 gdb_assert (gdbarch != NULL);
4468 /* Skip verify of xml_syscall_file, invalid_p == 0 */
4469 if (gdbarch_debug >= 2)
4470 gdb_printf (gdb_stdlog, "gdbarch_xml_syscall_file called\n");
4471 return gdbarch->xml_syscall_file;
4474 void
4475 set_gdbarch_xml_syscall_file (struct gdbarch *gdbarch,
4476 const char * xml_syscall_file)
4478 gdbarch->xml_syscall_file = xml_syscall_file;
4481 struct syscalls_info *
4482 gdbarch_syscalls_info (struct gdbarch *gdbarch)
4484 gdb_assert (gdbarch != NULL);
4485 /* Skip verify of syscalls_info, invalid_p == 0 */
4486 if (gdbarch_debug >= 2)
4487 gdb_printf (gdb_stdlog, "gdbarch_syscalls_info called\n");
4488 return gdbarch->syscalls_info;
4491 void
4492 set_gdbarch_syscalls_info (struct gdbarch *gdbarch,
4493 struct syscalls_info * syscalls_info)
4495 gdbarch->syscalls_info = syscalls_info;
4498 const char *const *
4499 gdbarch_stap_integer_prefixes (struct gdbarch *gdbarch)
4501 gdb_assert (gdbarch != NULL);
4502 /* Skip verify of stap_integer_prefixes, invalid_p == 0 */
4503 if (gdbarch_debug >= 2)
4504 gdb_printf (gdb_stdlog, "gdbarch_stap_integer_prefixes called\n");
4505 return gdbarch->stap_integer_prefixes;
4508 void
4509 set_gdbarch_stap_integer_prefixes (struct gdbarch *gdbarch,
4510 const char *const * stap_integer_prefixes)
4512 gdbarch->stap_integer_prefixes = stap_integer_prefixes;
4515 const char *const *
4516 gdbarch_stap_integer_suffixes (struct gdbarch *gdbarch)
4518 gdb_assert (gdbarch != NULL);
4519 /* Skip verify of stap_integer_suffixes, invalid_p == 0 */
4520 if (gdbarch_debug >= 2)
4521 gdb_printf (gdb_stdlog, "gdbarch_stap_integer_suffixes called\n");
4522 return gdbarch->stap_integer_suffixes;
4525 void
4526 set_gdbarch_stap_integer_suffixes (struct gdbarch *gdbarch,
4527 const char *const * stap_integer_suffixes)
4529 gdbarch->stap_integer_suffixes = stap_integer_suffixes;
4532 const char *const *
4533 gdbarch_stap_register_prefixes (struct gdbarch *gdbarch)
4535 gdb_assert (gdbarch != NULL);
4536 /* Skip verify of stap_register_prefixes, invalid_p == 0 */
4537 if (gdbarch_debug >= 2)
4538 gdb_printf (gdb_stdlog, "gdbarch_stap_register_prefixes called\n");
4539 return gdbarch->stap_register_prefixes;
4542 void
4543 set_gdbarch_stap_register_prefixes (struct gdbarch *gdbarch,
4544 const char *const * stap_register_prefixes)
4546 gdbarch->stap_register_prefixes = stap_register_prefixes;
4549 const char *const *
4550 gdbarch_stap_register_suffixes (struct gdbarch *gdbarch)
4552 gdb_assert (gdbarch != NULL);
4553 /* Skip verify of stap_register_suffixes, invalid_p == 0 */
4554 if (gdbarch_debug >= 2)
4555 gdb_printf (gdb_stdlog, "gdbarch_stap_register_suffixes called\n");
4556 return gdbarch->stap_register_suffixes;
4559 void
4560 set_gdbarch_stap_register_suffixes (struct gdbarch *gdbarch,
4561 const char *const * stap_register_suffixes)
4563 gdbarch->stap_register_suffixes = stap_register_suffixes;
4566 const char *const *
4567 gdbarch_stap_register_indirection_prefixes (struct gdbarch *gdbarch)
4569 gdb_assert (gdbarch != NULL);
4570 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0 */
4571 if (gdbarch_debug >= 2)
4572 gdb_printf (gdb_stdlog, "gdbarch_stap_register_indirection_prefixes called\n");
4573 return gdbarch->stap_register_indirection_prefixes;
4576 void
4577 set_gdbarch_stap_register_indirection_prefixes (struct gdbarch *gdbarch,
4578 const char *const * stap_register_indirection_prefixes)
4580 gdbarch->stap_register_indirection_prefixes = stap_register_indirection_prefixes;
4583 const char *const *
4584 gdbarch_stap_register_indirection_suffixes (struct gdbarch *gdbarch)
4586 gdb_assert (gdbarch != NULL);
4587 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0 */
4588 if (gdbarch_debug >= 2)
4589 gdb_printf (gdb_stdlog, "gdbarch_stap_register_indirection_suffixes called\n");
4590 return gdbarch->stap_register_indirection_suffixes;
4593 void
4594 set_gdbarch_stap_register_indirection_suffixes (struct gdbarch *gdbarch,
4595 const char *const * stap_register_indirection_suffixes)
4597 gdbarch->stap_register_indirection_suffixes = stap_register_indirection_suffixes;
4600 const char *
4601 gdbarch_stap_gdb_register_prefix (struct gdbarch *gdbarch)
4603 gdb_assert (gdbarch != NULL);
4604 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0 */
4605 if (gdbarch_debug >= 2)
4606 gdb_printf (gdb_stdlog, "gdbarch_stap_gdb_register_prefix called\n");
4607 return gdbarch->stap_gdb_register_prefix;
4610 void
4611 set_gdbarch_stap_gdb_register_prefix (struct gdbarch *gdbarch,
4612 const char * stap_gdb_register_prefix)
4614 gdbarch->stap_gdb_register_prefix = stap_gdb_register_prefix;
4617 const char *
4618 gdbarch_stap_gdb_register_suffix (struct gdbarch *gdbarch)
4620 gdb_assert (gdbarch != NULL);
4621 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0 */
4622 if (gdbarch_debug >= 2)
4623 gdb_printf (gdb_stdlog, "gdbarch_stap_gdb_register_suffix called\n");
4624 return gdbarch->stap_gdb_register_suffix;
4627 void
4628 set_gdbarch_stap_gdb_register_suffix (struct gdbarch *gdbarch,
4629 const char * stap_gdb_register_suffix)
4631 gdbarch->stap_gdb_register_suffix = stap_gdb_register_suffix;
4634 bool
4635 gdbarch_stap_is_single_operand_p (struct gdbarch *gdbarch)
4637 gdb_assert (gdbarch != NULL);
4638 return gdbarch->stap_is_single_operand != NULL;
4642 gdbarch_stap_is_single_operand (struct gdbarch *gdbarch, const char *s)
4644 gdb_assert (gdbarch != NULL);
4645 gdb_assert (gdbarch->stap_is_single_operand != NULL);
4646 if (gdbarch_debug >= 2)
4647 gdb_printf (gdb_stdlog, "gdbarch_stap_is_single_operand called\n");
4648 return gdbarch->stap_is_single_operand (gdbarch, s);
4651 void
4652 set_gdbarch_stap_is_single_operand (struct gdbarch *gdbarch,
4653 gdbarch_stap_is_single_operand_ftype stap_is_single_operand)
4655 gdbarch->stap_is_single_operand = stap_is_single_operand;
4658 bool
4659 gdbarch_stap_parse_special_token_p (struct gdbarch *gdbarch)
4661 gdb_assert (gdbarch != NULL);
4662 return gdbarch->stap_parse_special_token != NULL;
4665 expr::operation_up
4666 gdbarch_stap_parse_special_token (struct gdbarch *gdbarch, struct stap_parse_info *p)
4668 gdb_assert (gdbarch != NULL);
4669 gdb_assert (gdbarch->stap_parse_special_token != NULL);
4670 if (gdbarch_debug >= 2)
4671 gdb_printf (gdb_stdlog, "gdbarch_stap_parse_special_token called\n");
4672 return gdbarch->stap_parse_special_token (gdbarch, p);
4675 void
4676 set_gdbarch_stap_parse_special_token (struct gdbarch *gdbarch,
4677 gdbarch_stap_parse_special_token_ftype stap_parse_special_token)
4679 gdbarch->stap_parse_special_token = stap_parse_special_token;
4682 bool
4683 gdbarch_stap_adjust_register_p (struct gdbarch *gdbarch)
4685 gdb_assert (gdbarch != NULL);
4686 return gdbarch->stap_adjust_register != NULL;
4689 std::string
4690 gdbarch_stap_adjust_register (struct gdbarch *gdbarch, struct stap_parse_info *p, const std::string &regname, int regnum)
4692 gdb_assert (gdbarch != NULL);
4693 gdb_assert (gdbarch->stap_adjust_register != NULL);
4694 if (gdbarch_debug >= 2)
4695 gdb_printf (gdb_stdlog, "gdbarch_stap_adjust_register called\n");
4696 return gdbarch->stap_adjust_register (gdbarch, p, regname, regnum);
4699 void
4700 set_gdbarch_stap_adjust_register (struct gdbarch *gdbarch,
4701 gdbarch_stap_adjust_register_ftype stap_adjust_register)
4703 gdbarch->stap_adjust_register = stap_adjust_register;
4706 bool
4707 gdbarch_dtrace_parse_probe_argument_p (struct gdbarch *gdbarch)
4709 gdb_assert (gdbarch != NULL);
4710 return gdbarch->dtrace_parse_probe_argument != NULL;
4713 expr::operation_up
4714 gdbarch_dtrace_parse_probe_argument (struct gdbarch *gdbarch, int narg)
4716 gdb_assert (gdbarch != NULL);
4717 gdb_assert (gdbarch->dtrace_parse_probe_argument != NULL);
4718 if (gdbarch_debug >= 2)
4719 gdb_printf (gdb_stdlog, "gdbarch_dtrace_parse_probe_argument called\n");
4720 return gdbarch->dtrace_parse_probe_argument (gdbarch, narg);
4723 void
4724 set_gdbarch_dtrace_parse_probe_argument (struct gdbarch *gdbarch,
4725 gdbarch_dtrace_parse_probe_argument_ftype dtrace_parse_probe_argument)
4727 gdbarch->dtrace_parse_probe_argument = dtrace_parse_probe_argument;
4730 bool
4731 gdbarch_dtrace_probe_is_enabled_p (struct gdbarch *gdbarch)
4733 gdb_assert (gdbarch != NULL);
4734 return gdbarch->dtrace_probe_is_enabled != NULL;
4738 gdbarch_dtrace_probe_is_enabled (struct gdbarch *gdbarch, CORE_ADDR addr)
4740 gdb_assert (gdbarch != NULL);
4741 gdb_assert (gdbarch->dtrace_probe_is_enabled != NULL);
4742 if (gdbarch_debug >= 2)
4743 gdb_printf (gdb_stdlog, "gdbarch_dtrace_probe_is_enabled called\n");
4744 return gdbarch->dtrace_probe_is_enabled (gdbarch, addr);
4747 void
4748 set_gdbarch_dtrace_probe_is_enabled (struct gdbarch *gdbarch,
4749 gdbarch_dtrace_probe_is_enabled_ftype dtrace_probe_is_enabled)
4751 gdbarch->dtrace_probe_is_enabled = dtrace_probe_is_enabled;
4754 bool
4755 gdbarch_dtrace_enable_probe_p (struct gdbarch *gdbarch)
4757 gdb_assert (gdbarch != NULL);
4758 return gdbarch->dtrace_enable_probe != NULL;
4761 void
4762 gdbarch_dtrace_enable_probe (struct gdbarch *gdbarch, CORE_ADDR addr)
4764 gdb_assert (gdbarch != NULL);
4765 gdb_assert (gdbarch->dtrace_enable_probe != NULL);
4766 if (gdbarch_debug >= 2)
4767 gdb_printf (gdb_stdlog, "gdbarch_dtrace_enable_probe called\n");
4768 gdbarch->dtrace_enable_probe (gdbarch, addr);
4771 void
4772 set_gdbarch_dtrace_enable_probe (struct gdbarch *gdbarch,
4773 gdbarch_dtrace_enable_probe_ftype dtrace_enable_probe)
4775 gdbarch->dtrace_enable_probe = dtrace_enable_probe;
4778 bool
4779 gdbarch_dtrace_disable_probe_p (struct gdbarch *gdbarch)
4781 gdb_assert (gdbarch != NULL);
4782 return gdbarch->dtrace_disable_probe != NULL;
4785 void
4786 gdbarch_dtrace_disable_probe (struct gdbarch *gdbarch, CORE_ADDR addr)
4788 gdb_assert (gdbarch != NULL);
4789 gdb_assert (gdbarch->dtrace_disable_probe != NULL);
4790 if (gdbarch_debug >= 2)
4791 gdb_printf (gdb_stdlog, "gdbarch_dtrace_disable_probe called\n");
4792 gdbarch->dtrace_disable_probe (gdbarch, addr);
4795 void
4796 set_gdbarch_dtrace_disable_probe (struct gdbarch *gdbarch,
4797 gdbarch_dtrace_disable_probe_ftype dtrace_disable_probe)
4799 gdbarch->dtrace_disable_probe = dtrace_disable_probe;
4803 gdbarch_has_global_solist (struct gdbarch *gdbarch)
4805 gdb_assert (gdbarch != NULL);
4806 /* Skip verify of has_global_solist, invalid_p == 0 */
4807 if (gdbarch_debug >= 2)
4808 gdb_printf (gdb_stdlog, "gdbarch_has_global_solist called\n");
4809 return gdbarch->has_global_solist;
4812 void
4813 set_gdbarch_has_global_solist (struct gdbarch *gdbarch,
4814 int has_global_solist)
4816 gdbarch->has_global_solist = has_global_solist;
4820 gdbarch_has_global_breakpoints (struct gdbarch *gdbarch)
4822 gdb_assert (gdbarch != NULL);
4823 /* Skip verify of has_global_breakpoints, invalid_p == 0 */
4824 if (gdbarch_debug >= 2)
4825 gdb_printf (gdb_stdlog, "gdbarch_has_global_breakpoints called\n");
4826 return gdbarch->has_global_breakpoints;
4829 void
4830 set_gdbarch_has_global_breakpoints (struct gdbarch *gdbarch,
4831 int has_global_breakpoints)
4833 gdbarch->has_global_breakpoints = has_global_breakpoints;
4837 gdbarch_has_shared_address_space (struct gdbarch *gdbarch)
4839 gdb_assert (gdbarch != NULL);
4840 gdb_assert (gdbarch->has_shared_address_space != NULL);
4841 if (gdbarch_debug >= 2)
4842 gdb_printf (gdb_stdlog, "gdbarch_has_shared_address_space called\n");
4843 return gdbarch->has_shared_address_space (gdbarch);
4846 void
4847 set_gdbarch_has_shared_address_space (struct gdbarch *gdbarch,
4848 gdbarch_has_shared_address_space_ftype has_shared_address_space)
4850 gdbarch->has_shared_address_space = has_shared_address_space;
4854 gdbarch_fast_tracepoint_valid_at (struct gdbarch *gdbarch, CORE_ADDR addr, std::string *msg)
4856 gdb_assert (gdbarch != NULL);
4857 gdb_assert (gdbarch->fast_tracepoint_valid_at != NULL);
4858 if (gdbarch_debug >= 2)
4859 gdb_printf (gdb_stdlog, "gdbarch_fast_tracepoint_valid_at called\n");
4860 return gdbarch->fast_tracepoint_valid_at (gdbarch, addr, msg);
4863 void
4864 set_gdbarch_fast_tracepoint_valid_at (struct gdbarch *gdbarch,
4865 gdbarch_fast_tracepoint_valid_at_ftype fast_tracepoint_valid_at)
4867 gdbarch->fast_tracepoint_valid_at = fast_tracepoint_valid_at;
4870 void
4871 gdbarch_guess_tracepoint_registers (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr)
4873 gdb_assert (gdbarch != NULL);
4874 gdb_assert (gdbarch->guess_tracepoint_registers != NULL);
4875 if (gdbarch_debug >= 2)
4876 gdb_printf (gdb_stdlog, "gdbarch_guess_tracepoint_registers called\n");
4877 gdbarch->guess_tracepoint_registers (gdbarch, regcache, addr);
4880 void
4881 set_gdbarch_guess_tracepoint_registers (struct gdbarch *gdbarch,
4882 gdbarch_guess_tracepoint_registers_ftype guess_tracepoint_registers)
4884 gdbarch->guess_tracepoint_registers = guess_tracepoint_registers;
4887 const char *
4888 gdbarch_auto_charset (struct gdbarch *gdbarch)
4890 gdb_assert (gdbarch != NULL);
4891 gdb_assert (gdbarch->auto_charset != NULL);
4892 if (gdbarch_debug >= 2)
4893 gdb_printf (gdb_stdlog, "gdbarch_auto_charset called\n");
4894 return gdbarch->auto_charset ();
4897 void
4898 set_gdbarch_auto_charset (struct gdbarch *gdbarch,
4899 gdbarch_auto_charset_ftype auto_charset)
4901 gdbarch->auto_charset = auto_charset;
4904 const char *
4905 gdbarch_auto_wide_charset (struct gdbarch *gdbarch)
4907 gdb_assert (gdbarch != NULL);
4908 gdb_assert (gdbarch->auto_wide_charset != NULL);
4909 if (gdbarch_debug >= 2)
4910 gdb_printf (gdb_stdlog, "gdbarch_auto_wide_charset called\n");
4911 return gdbarch->auto_wide_charset ();
4914 void
4915 set_gdbarch_auto_wide_charset (struct gdbarch *gdbarch,
4916 gdbarch_auto_wide_charset_ftype auto_wide_charset)
4918 gdbarch->auto_wide_charset = auto_wide_charset;
4921 const char *
4922 gdbarch_solib_symbols_extension (struct gdbarch *gdbarch)
4924 gdb_assert (gdbarch != NULL);
4925 /* Skip verify of solib_symbols_extension, invalid_p == 0 */
4926 if (gdbarch_debug >= 2)
4927 gdb_printf (gdb_stdlog, "gdbarch_solib_symbols_extension called\n");
4928 return gdbarch->solib_symbols_extension;
4931 void
4932 set_gdbarch_solib_symbols_extension (struct gdbarch *gdbarch,
4933 const char * solib_symbols_extension)
4935 gdbarch->solib_symbols_extension = solib_symbols_extension;
4939 gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch)
4941 gdb_assert (gdbarch != NULL);
4942 /* Skip verify of has_dos_based_file_system, invalid_p == 0 */
4943 if (gdbarch_debug >= 2)
4944 gdb_printf (gdb_stdlog, "gdbarch_has_dos_based_file_system called\n");
4945 return gdbarch->has_dos_based_file_system;
4948 void
4949 set_gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch,
4950 int has_dos_based_file_system)
4952 gdbarch->has_dos_based_file_system = has_dos_based_file_system;
4955 void
4956 gdbarch_gen_return_address (struct gdbarch *gdbarch, struct agent_expr *ax, struct axs_value *value, CORE_ADDR scope)
4958 gdb_assert (gdbarch != NULL);
4959 gdb_assert (gdbarch->gen_return_address != NULL);
4960 if (gdbarch_debug >= 2)
4961 gdb_printf (gdb_stdlog, "gdbarch_gen_return_address called\n");
4962 gdbarch->gen_return_address (gdbarch, ax, value, scope);
4965 void
4966 set_gdbarch_gen_return_address (struct gdbarch *gdbarch,
4967 gdbarch_gen_return_address_ftype gen_return_address)
4969 gdbarch->gen_return_address = gen_return_address;
4972 bool
4973 gdbarch_info_proc_p (struct gdbarch *gdbarch)
4975 gdb_assert (gdbarch != NULL);
4976 return gdbarch->info_proc != NULL;
4979 void
4980 gdbarch_info_proc (struct gdbarch *gdbarch, const char *args, enum info_proc_what what)
4982 gdb_assert (gdbarch != NULL);
4983 gdb_assert (gdbarch->info_proc != NULL);
4984 if (gdbarch_debug >= 2)
4985 gdb_printf (gdb_stdlog, "gdbarch_info_proc called\n");
4986 gdbarch->info_proc (gdbarch, args, what);
4989 void
4990 set_gdbarch_info_proc (struct gdbarch *gdbarch,
4991 gdbarch_info_proc_ftype info_proc)
4993 gdbarch->info_proc = info_proc;
4996 bool
4997 gdbarch_core_info_proc_p (struct gdbarch *gdbarch)
4999 gdb_assert (gdbarch != NULL);
5000 return gdbarch->core_info_proc != NULL;
5003 void
5004 gdbarch_core_info_proc (struct gdbarch *gdbarch, const char *args, enum info_proc_what what)
5006 gdb_assert (gdbarch != NULL);
5007 gdb_assert (gdbarch->core_info_proc != NULL);
5008 if (gdbarch_debug >= 2)
5009 gdb_printf (gdb_stdlog, "gdbarch_core_info_proc called\n");
5010 gdbarch->core_info_proc (gdbarch, args, what);
5013 void
5014 set_gdbarch_core_info_proc (struct gdbarch *gdbarch,
5015 gdbarch_core_info_proc_ftype core_info_proc)
5017 gdbarch->core_info_proc = core_info_proc;
5020 void
5021 gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch *gdbarch, iterate_over_objfiles_in_search_order_cb_ftype cb, struct objfile *current_objfile)
5023 gdb_assert (gdbarch != NULL);
5024 gdb_assert (gdbarch->iterate_over_objfiles_in_search_order != NULL);
5025 if (gdbarch_debug >= 2)
5026 gdb_printf (gdb_stdlog, "gdbarch_iterate_over_objfiles_in_search_order called\n");
5027 gdbarch->iterate_over_objfiles_in_search_order (gdbarch, cb, current_objfile);
5030 void
5031 set_gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch *gdbarch,
5032 gdbarch_iterate_over_objfiles_in_search_order_ftype iterate_over_objfiles_in_search_order)
5034 gdbarch->iterate_over_objfiles_in_search_order = iterate_over_objfiles_in_search_order;
5037 struct ravenscar_arch_ops *
5038 gdbarch_ravenscar_ops (struct gdbarch *gdbarch)
5040 gdb_assert (gdbarch != NULL);
5041 /* Skip verify of ravenscar_ops, invalid_p == 0 */
5042 if (gdbarch_debug >= 2)
5043 gdb_printf (gdb_stdlog, "gdbarch_ravenscar_ops called\n");
5044 return gdbarch->ravenscar_ops;
5047 void
5048 set_gdbarch_ravenscar_ops (struct gdbarch *gdbarch,
5049 struct ravenscar_arch_ops * ravenscar_ops)
5051 gdbarch->ravenscar_ops = ravenscar_ops;
5055 gdbarch_insn_is_call (struct gdbarch *gdbarch, CORE_ADDR addr)
5057 gdb_assert (gdbarch != NULL);
5058 gdb_assert (gdbarch->insn_is_call != NULL);
5059 if (gdbarch_debug >= 2)
5060 gdb_printf (gdb_stdlog, "gdbarch_insn_is_call called\n");
5061 return gdbarch->insn_is_call (gdbarch, addr);
5064 void
5065 set_gdbarch_insn_is_call (struct gdbarch *gdbarch,
5066 gdbarch_insn_is_call_ftype insn_is_call)
5068 gdbarch->insn_is_call = insn_is_call;
5072 gdbarch_insn_is_ret (struct gdbarch *gdbarch, CORE_ADDR addr)
5074 gdb_assert (gdbarch != NULL);
5075 gdb_assert (gdbarch->insn_is_ret != NULL);
5076 if (gdbarch_debug >= 2)
5077 gdb_printf (gdb_stdlog, "gdbarch_insn_is_ret called\n");
5078 return gdbarch->insn_is_ret (gdbarch, addr);
5081 void
5082 set_gdbarch_insn_is_ret (struct gdbarch *gdbarch,
5083 gdbarch_insn_is_ret_ftype insn_is_ret)
5085 gdbarch->insn_is_ret = insn_is_ret;
5089 gdbarch_insn_is_jump (struct gdbarch *gdbarch, CORE_ADDR addr)
5091 gdb_assert (gdbarch != NULL);
5092 gdb_assert (gdbarch->insn_is_jump != NULL);
5093 if (gdbarch_debug >= 2)
5094 gdb_printf (gdb_stdlog, "gdbarch_insn_is_jump called\n");
5095 return gdbarch->insn_is_jump (gdbarch, addr);
5098 void
5099 set_gdbarch_insn_is_jump (struct gdbarch *gdbarch,
5100 gdbarch_insn_is_jump_ftype insn_is_jump)
5102 gdbarch->insn_is_jump = insn_is_jump;
5105 bool
5106 gdbarch_program_breakpoint_here_p (struct gdbarch *gdbarch, CORE_ADDR address)
5108 gdb_assert (gdbarch != NULL);
5109 gdb_assert (gdbarch->program_breakpoint_here_p != NULL);
5110 if (gdbarch_debug >= 2)
5111 gdb_printf (gdb_stdlog, "gdbarch_program_breakpoint_here_p called\n");
5112 return gdbarch->program_breakpoint_here_p (gdbarch, address);
5115 void
5116 set_gdbarch_program_breakpoint_here_p (struct gdbarch *gdbarch,
5117 gdbarch_program_breakpoint_here_p_ftype program_breakpoint_here_p)
5119 gdbarch->program_breakpoint_here_p = program_breakpoint_here_p;
5122 bool
5123 gdbarch_auxv_parse_p (struct gdbarch *gdbarch)
5125 gdb_assert (gdbarch != NULL);
5126 return gdbarch->auxv_parse != NULL;
5130 gdbarch_auxv_parse (struct gdbarch *gdbarch, gdb_byte **readptr, gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
5132 gdb_assert (gdbarch != NULL);
5133 gdb_assert (gdbarch->auxv_parse != NULL);
5134 if (gdbarch_debug >= 2)
5135 gdb_printf (gdb_stdlog, "gdbarch_auxv_parse called\n");
5136 return gdbarch->auxv_parse (gdbarch, readptr, endptr, typep, valp);
5139 void
5140 set_gdbarch_auxv_parse (struct gdbarch *gdbarch,
5141 gdbarch_auxv_parse_ftype auxv_parse)
5143 gdbarch->auxv_parse = auxv_parse;
5146 void
5147 gdbarch_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file, CORE_ADDR type, CORE_ADDR val)
5149 gdb_assert (gdbarch != NULL);
5150 gdb_assert (gdbarch->print_auxv_entry != NULL);
5151 if (gdbarch_debug >= 2)
5152 gdb_printf (gdb_stdlog, "gdbarch_print_auxv_entry called\n");
5153 gdbarch->print_auxv_entry (gdbarch, file, type, val);
5156 void
5157 set_gdbarch_print_auxv_entry (struct gdbarch *gdbarch,
5158 gdbarch_print_auxv_entry_ftype print_auxv_entry)
5160 gdbarch->print_auxv_entry = print_auxv_entry;
5164 gdbarch_vsyscall_range (struct gdbarch *gdbarch, struct mem_range *range)
5166 gdb_assert (gdbarch != NULL);
5167 gdb_assert (gdbarch->vsyscall_range != NULL);
5168 if (gdbarch_debug >= 2)
5169 gdb_printf (gdb_stdlog, "gdbarch_vsyscall_range called\n");
5170 return gdbarch->vsyscall_range (gdbarch, range);
5173 void
5174 set_gdbarch_vsyscall_range (struct gdbarch *gdbarch,
5175 gdbarch_vsyscall_range_ftype vsyscall_range)
5177 gdbarch->vsyscall_range = vsyscall_range;
5180 CORE_ADDR
5181 gdbarch_infcall_mmap (struct gdbarch *gdbarch, CORE_ADDR size, unsigned prot)
5183 gdb_assert (gdbarch != NULL);
5184 gdb_assert (gdbarch->infcall_mmap != NULL);
5185 if (gdbarch_debug >= 2)
5186 gdb_printf (gdb_stdlog, "gdbarch_infcall_mmap called\n");
5187 return gdbarch->infcall_mmap (size, prot);
5190 void
5191 set_gdbarch_infcall_mmap (struct gdbarch *gdbarch,
5192 gdbarch_infcall_mmap_ftype infcall_mmap)
5194 gdbarch->infcall_mmap = infcall_mmap;
5197 void
5198 gdbarch_infcall_munmap (struct gdbarch *gdbarch, CORE_ADDR addr, CORE_ADDR size)
5200 gdb_assert (gdbarch != NULL);
5201 gdb_assert (gdbarch->infcall_munmap != NULL);
5202 if (gdbarch_debug >= 2)
5203 gdb_printf (gdb_stdlog, "gdbarch_infcall_munmap called\n");
5204 gdbarch->infcall_munmap (addr, size);
5207 void
5208 set_gdbarch_infcall_munmap (struct gdbarch *gdbarch,
5209 gdbarch_infcall_munmap_ftype infcall_munmap)
5211 gdbarch->infcall_munmap = infcall_munmap;
5214 std::string
5215 gdbarch_gcc_target_options (struct gdbarch *gdbarch)
5217 gdb_assert (gdbarch != NULL);
5218 gdb_assert (gdbarch->gcc_target_options != NULL);
5219 if (gdbarch_debug >= 2)
5220 gdb_printf (gdb_stdlog, "gdbarch_gcc_target_options called\n");
5221 return gdbarch->gcc_target_options (gdbarch);
5224 void
5225 set_gdbarch_gcc_target_options (struct gdbarch *gdbarch,
5226 gdbarch_gcc_target_options_ftype gcc_target_options)
5228 gdbarch->gcc_target_options = gcc_target_options;
5231 const char *
5232 gdbarch_gnu_triplet_regexp (struct gdbarch *gdbarch)
5234 gdb_assert (gdbarch != NULL);
5235 gdb_assert (gdbarch->gnu_triplet_regexp != NULL);
5236 if (gdbarch_debug >= 2)
5237 gdb_printf (gdb_stdlog, "gdbarch_gnu_triplet_regexp called\n");
5238 return gdbarch->gnu_triplet_regexp (gdbarch);
5241 void
5242 set_gdbarch_gnu_triplet_regexp (struct gdbarch *gdbarch,
5243 gdbarch_gnu_triplet_regexp_ftype gnu_triplet_regexp)
5245 gdbarch->gnu_triplet_regexp = gnu_triplet_regexp;
5249 gdbarch_addressable_memory_unit_size (struct gdbarch *gdbarch)
5251 gdb_assert (gdbarch != NULL);
5252 gdb_assert (gdbarch->addressable_memory_unit_size != NULL);
5253 if (gdbarch_debug >= 2)
5254 gdb_printf (gdb_stdlog, "gdbarch_addressable_memory_unit_size called\n");
5255 return gdbarch->addressable_memory_unit_size (gdbarch);
5258 void
5259 set_gdbarch_addressable_memory_unit_size (struct gdbarch *gdbarch,
5260 gdbarch_addressable_memory_unit_size_ftype addressable_memory_unit_size)
5262 gdbarch->addressable_memory_unit_size = addressable_memory_unit_size;
5265 const char *
5266 gdbarch_disassembler_options_implicit (struct gdbarch *gdbarch)
5268 gdb_assert (gdbarch != NULL);
5269 /* Skip verify of disassembler_options_implicit, invalid_p == 0 */
5270 if (gdbarch_debug >= 2)
5271 gdb_printf (gdb_stdlog, "gdbarch_disassembler_options_implicit called\n");
5272 return gdbarch->disassembler_options_implicit;
5275 void
5276 set_gdbarch_disassembler_options_implicit (struct gdbarch *gdbarch,
5277 const char * disassembler_options_implicit)
5279 gdbarch->disassembler_options_implicit = disassembler_options_implicit;
5282 char **
5283 gdbarch_disassembler_options (struct gdbarch *gdbarch)
5285 gdb_assert (gdbarch != NULL);
5286 /* Skip verify of disassembler_options, invalid_p == 0 */
5287 if (gdbarch_debug >= 2)
5288 gdb_printf (gdb_stdlog, "gdbarch_disassembler_options called\n");
5289 return gdbarch->disassembler_options;
5292 void
5293 set_gdbarch_disassembler_options (struct gdbarch *gdbarch,
5294 char ** disassembler_options)
5296 gdbarch->disassembler_options = disassembler_options;
5299 const disasm_options_and_args_t *
5300 gdbarch_valid_disassembler_options (struct gdbarch *gdbarch)
5302 gdb_assert (gdbarch != NULL);
5303 /* Skip verify of valid_disassembler_options, invalid_p == 0 */
5304 if (gdbarch_debug >= 2)
5305 gdb_printf (gdb_stdlog, "gdbarch_valid_disassembler_options called\n");
5306 return gdbarch->valid_disassembler_options;
5309 void
5310 set_gdbarch_valid_disassembler_options (struct gdbarch *gdbarch,
5311 const disasm_options_and_args_t * valid_disassembler_options)
5313 gdbarch->valid_disassembler_options = valid_disassembler_options;
5316 ULONGEST
5317 gdbarch_type_align (struct gdbarch *gdbarch, struct type *type)
5319 gdb_assert (gdbarch != NULL);
5320 gdb_assert (gdbarch->type_align != NULL);
5321 if (gdbarch_debug >= 2)
5322 gdb_printf (gdb_stdlog, "gdbarch_type_align called\n");
5323 return gdbarch->type_align (gdbarch, type);
5326 void
5327 set_gdbarch_type_align (struct gdbarch *gdbarch,
5328 gdbarch_type_align_ftype type_align)
5330 gdbarch->type_align = type_align;
5333 std::string
5334 gdbarch_get_pc_address_flags (struct gdbarch *gdbarch, frame_info *frame, CORE_ADDR pc)
5336 gdb_assert (gdbarch != NULL);
5337 gdb_assert (gdbarch->get_pc_address_flags != NULL);
5338 if (gdbarch_debug >= 2)
5339 gdb_printf (gdb_stdlog, "gdbarch_get_pc_address_flags called\n");
5340 return gdbarch->get_pc_address_flags (frame, pc);
5343 void
5344 set_gdbarch_get_pc_address_flags (struct gdbarch *gdbarch,
5345 gdbarch_get_pc_address_flags_ftype get_pc_address_flags)
5347 gdbarch->get_pc_address_flags = get_pc_address_flags;
5350 void
5351 gdbarch_read_core_file_mappings (struct gdbarch *gdbarch, struct bfd *cbfd, read_core_file_mappings_pre_loop_ftype pre_loop_cb, read_core_file_mappings_loop_ftype loop_cb)
5353 gdb_assert (gdbarch != NULL);
5354 gdb_assert (gdbarch->read_core_file_mappings != NULL);
5355 if (gdbarch_debug >= 2)
5356 gdb_printf (gdb_stdlog, "gdbarch_read_core_file_mappings called\n");
5357 gdbarch->read_core_file_mappings (gdbarch, cbfd, pre_loop_cb, loop_cb);
5360 void
5361 set_gdbarch_read_core_file_mappings (struct gdbarch *gdbarch,
5362 gdbarch_read_core_file_mappings_ftype read_core_file_mappings)
5364 gdbarch->read_core_file_mappings = read_core_file_mappings;