Automatic date update in version.in
[binutils-gdb.git] / gdb / gdbarch-gen.c
blobd05c7a3cbdf1f5c0aaf0315b923716b6fd705d44
1 /* 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-2024 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 gdbarch_tdep_up tdep;
49 gdbarch_dump_tdep_ftype *dump_tdep = nullptr;
51 int short_bit = 2*TARGET_CHAR_BIT;
52 int int_bit = 4*TARGET_CHAR_BIT;
53 int long_bit = 4*TARGET_CHAR_BIT;
54 int long_long_bit = 2*4*TARGET_CHAR_BIT;
55 int bfloat16_bit = 2*TARGET_CHAR_BIT;
56 const struct floatformat ** bfloat16_format = floatformats_bfloat16;
57 int half_bit = 2*TARGET_CHAR_BIT;
58 const struct floatformat ** half_format = floatformats_ieee_half;
59 int float_bit = 4*TARGET_CHAR_BIT;
60 const struct floatformat ** float_format = floatformats_ieee_single;
61 int double_bit = 8*TARGET_CHAR_BIT;
62 const struct floatformat ** double_format = floatformats_ieee_double;
63 int long_double_bit = 8*TARGET_CHAR_BIT;
64 const struct floatformat ** long_double_format = floatformats_ieee_double;
65 int wchar_bit = 4*TARGET_CHAR_BIT;
66 int wchar_signed = -1;
67 gdbarch_floatformat_for_type_ftype *floatformat_for_type = default_floatformat_for_type;
68 int ptr_bit = 4*TARGET_CHAR_BIT;
69 int addr_bit = 0;
70 int dwarf2_addr_size = 0;
71 int char_signed = -1;
72 gdbarch_read_pc_ftype *read_pc = nullptr;
73 gdbarch_write_pc_ftype *write_pc = nullptr;
74 gdbarch_virtual_frame_pointer_ftype *virtual_frame_pointer = legacy_virtual_frame_pointer;
75 gdbarch_pseudo_register_read_ftype *pseudo_register_read = nullptr;
76 gdbarch_pseudo_register_read_value_ftype *pseudo_register_read_value = nullptr;
77 gdbarch_pseudo_register_write_ftype *pseudo_register_write = nullptr;
78 gdbarch_deprecated_pseudo_register_write_ftype *deprecated_pseudo_register_write = nullptr;
79 int num_regs = -1;
80 int num_pseudo_regs = 0;
81 gdbarch_ax_pseudo_register_collect_ftype *ax_pseudo_register_collect = nullptr;
82 gdbarch_ax_pseudo_register_push_stack_ftype *ax_pseudo_register_push_stack = nullptr;
83 gdbarch_report_signal_info_ftype *report_signal_info = nullptr;
84 int sp_regnum = -1;
85 int pc_regnum = -1;
86 int ps_regnum = -1;
87 int fp0_regnum = -1;
88 gdbarch_stab_reg_to_regnum_ftype *stab_reg_to_regnum = no_op_reg_to_regnum;
89 gdbarch_ecoff_reg_to_regnum_ftype *ecoff_reg_to_regnum = no_op_reg_to_regnum;
90 gdbarch_sdb_reg_to_regnum_ftype *sdb_reg_to_regnum = no_op_reg_to_regnum;
91 gdbarch_dwarf2_reg_to_regnum_ftype *dwarf2_reg_to_regnum = no_op_reg_to_regnum;
92 gdbarch_register_name_ftype *register_name = nullptr;
93 gdbarch_register_type_ftype *register_type = nullptr;
94 gdbarch_dummy_id_ftype *dummy_id = default_dummy_id;
95 int deprecated_fp_regnum = -1;
96 gdbarch_push_dummy_call_ftype *push_dummy_call = nullptr;
97 enum call_dummy_location_type call_dummy_location = AT_ENTRY_POINT;
98 gdbarch_push_dummy_code_ftype *push_dummy_code = nullptr;
99 gdbarch_code_of_frame_writable_ftype *code_of_frame_writable = default_code_of_frame_writable;
100 gdbarch_print_registers_info_ftype *print_registers_info = default_print_registers_info;
101 gdbarch_print_float_info_ftype *print_float_info = default_print_float_info;
102 gdbarch_print_vector_info_ftype *print_vector_info = nullptr;
103 gdbarch_register_sim_regno_ftype *register_sim_regno = legacy_register_sim_regno;
104 gdbarch_cannot_fetch_register_ftype *cannot_fetch_register = cannot_register_not;
105 gdbarch_cannot_store_register_ftype *cannot_store_register = cannot_register_not;
106 gdbarch_get_longjmp_target_ftype *get_longjmp_target = nullptr;
107 int believe_pcc_promotion = 0;
108 gdbarch_convert_register_p_ftype *convert_register_p = generic_convert_register_p;
109 gdbarch_register_to_value_ftype *register_to_value = nullptr;
110 gdbarch_value_to_register_ftype *value_to_register = nullptr;
111 gdbarch_value_from_register_ftype *value_from_register = default_value_from_register;
112 gdbarch_pointer_to_address_ftype *pointer_to_address = unsigned_pointer_to_address;
113 gdbarch_address_to_pointer_ftype *address_to_pointer = unsigned_address_to_pointer;
114 gdbarch_integer_to_address_ftype *integer_to_address = nullptr;
115 gdbarch_return_value_ftype *return_value = nullptr;
116 gdbarch_return_value_as_value_ftype *return_value_as_value = default_gdbarch_return_value;
117 gdbarch_get_return_buf_addr_ftype *get_return_buf_addr = default_get_return_buf_addr;
118 gdbarch_dwarf2_omit_typedef_p_ftype *dwarf2_omit_typedef_p = default_dwarf2_omit_typedef_p;
119 gdbarch_update_call_site_pc_ftype *update_call_site_pc = default_update_call_site_pc;
120 gdbarch_return_in_first_hidden_param_p_ftype *return_in_first_hidden_param_p = default_return_in_first_hidden_param_p;
121 gdbarch_skip_prologue_ftype *skip_prologue = nullptr;
122 gdbarch_skip_main_prologue_ftype *skip_main_prologue = nullptr;
123 gdbarch_skip_entrypoint_ftype *skip_entrypoint = nullptr;
124 gdbarch_inner_than_ftype *inner_than = nullptr;
125 gdbarch_breakpoint_from_pc_ftype *breakpoint_from_pc = default_breakpoint_from_pc;
126 gdbarch_breakpoint_kind_from_pc_ftype *breakpoint_kind_from_pc = nullptr;
127 gdbarch_sw_breakpoint_from_kind_ftype *sw_breakpoint_from_kind = NULL;
128 gdbarch_breakpoint_kind_from_current_state_ftype *breakpoint_kind_from_current_state = default_breakpoint_kind_from_current_state;
129 gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address = nullptr;
130 gdbarch_memory_insert_breakpoint_ftype *memory_insert_breakpoint = default_memory_insert_breakpoint;
131 gdbarch_memory_remove_breakpoint_ftype *memory_remove_breakpoint = default_memory_remove_breakpoint;
132 CORE_ADDR decr_pc_after_break = 0;
133 CORE_ADDR deprecated_function_start_offset = 0;
134 gdbarch_remote_register_number_ftype *remote_register_number = default_remote_register_number;
135 gdbarch_fetch_tls_load_module_address_ftype *fetch_tls_load_module_address = nullptr;
136 gdbarch_get_thread_local_address_ftype *get_thread_local_address = nullptr;
137 CORE_ADDR frame_args_skip = 0;
138 gdbarch_unwind_pc_ftype *unwind_pc = default_unwind_pc;
139 gdbarch_unwind_sp_ftype *unwind_sp = default_unwind_sp;
140 gdbarch_frame_num_args_ftype *frame_num_args = nullptr;
141 gdbarch_frame_align_ftype *frame_align = nullptr;
142 gdbarch_stabs_argument_has_addr_ftype *stabs_argument_has_addr = default_stabs_argument_has_addr;
143 int frame_red_zone_size = 0;
144 gdbarch_convert_from_func_ptr_addr_ftype *convert_from_func_ptr_addr = convert_from_func_ptr_addr_identity;
145 gdbarch_addr_bits_remove_ftype *addr_bits_remove = core_addr_identity;
146 gdbarch_remove_non_address_bits_watchpoint_ftype *remove_non_address_bits_watchpoint = default_remove_non_address_bits;
147 gdbarch_remove_non_address_bits_breakpoint_ftype *remove_non_address_bits_breakpoint = default_remove_non_address_bits;
148 gdbarch_remove_non_address_bits_memory_ftype *remove_non_address_bits_memory = default_remove_non_address_bits;
149 gdbarch_memtag_to_string_ftype *memtag_to_string = default_memtag_to_string;
150 gdbarch_tagged_address_p_ftype *tagged_address_p = default_tagged_address_p;
151 gdbarch_memtag_matches_p_ftype *memtag_matches_p = default_memtag_matches_p;
152 gdbarch_set_memtags_ftype *set_memtags = default_set_memtags;
153 gdbarch_get_memtag_ftype *get_memtag = default_get_memtag;
154 CORE_ADDR memtag_granule_size = 0;
155 gdbarch_software_single_step_ftype *software_single_step = nullptr;
156 gdbarch_single_step_through_delay_ftype *single_step_through_delay = nullptr;
157 gdbarch_print_insn_ftype *print_insn = default_print_insn;
158 gdbarch_skip_trampoline_code_ftype *skip_trampoline_code = generic_skip_trampoline_code;
159 const solib_ops * so_ops = &solib_target_so_ops;
160 gdbarch_skip_solib_resolver_ftype *skip_solib_resolver = generic_skip_solib_resolver;
161 gdbarch_in_solib_return_trampoline_ftype *in_solib_return_trampoline = generic_in_solib_return_trampoline;
162 gdbarch_in_indirect_branch_thunk_ftype *in_indirect_branch_thunk = default_in_indirect_branch_thunk;
163 gdbarch_stack_frame_destroyed_p_ftype *stack_frame_destroyed_p = generic_stack_frame_destroyed_p;
164 gdbarch_elf_make_msymbol_special_ftype *elf_make_msymbol_special = nullptr;
165 gdbarch_coff_make_msymbol_special_ftype *coff_make_msymbol_special = default_coff_make_msymbol_special;
166 gdbarch_make_symbol_special_ftype *make_symbol_special = default_make_symbol_special;
167 gdbarch_adjust_dwarf2_addr_ftype *adjust_dwarf2_addr = default_adjust_dwarf2_addr;
168 gdbarch_adjust_dwarf2_line_ftype *adjust_dwarf2_line = default_adjust_dwarf2_line;
169 int cannot_step_breakpoint = 0;
170 int have_nonsteppable_watchpoint = 0;
171 gdbarch_address_class_type_flags_ftype *address_class_type_flags = nullptr;
172 gdbarch_address_class_type_flags_to_name_ftype *address_class_type_flags_to_name = nullptr;
173 gdbarch_execute_dwarf_cfa_vendor_op_ftype *execute_dwarf_cfa_vendor_op = default_execute_dwarf_cfa_vendor_op;
174 gdbarch_address_class_name_to_type_flags_ftype *address_class_name_to_type_flags = nullptr;
175 gdbarch_register_reggroup_p_ftype *register_reggroup_p = default_register_reggroup_p;
176 gdbarch_fetch_pointer_argument_ftype *fetch_pointer_argument = nullptr;
177 gdbarch_iterate_over_regset_sections_ftype *iterate_over_regset_sections = nullptr;
178 gdbarch_make_corefile_notes_ftype *make_corefile_notes = nullptr;
179 gdbarch_find_memory_regions_ftype *find_memory_regions = nullptr;
180 gdbarch_create_memtag_section_ftype *create_memtag_section = nullptr;
181 gdbarch_fill_memtag_section_ftype *fill_memtag_section = nullptr;
182 gdbarch_decode_memtag_section_ftype *decode_memtag_section = nullptr;
183 gdbarch_core_xfer_shared_libraries_ftype *core_xfer_shared_libraries = nullptr;
184 gdbarch_core_xfer_shared_libraries_aix_ftype *core_xfer_shared_libraries_aix = nullptr;
185 gdbarch_core_pid_to_str_ftype *core_pid_to_str = nullptr;
186 gdbarch_core_thread_name_ftype *core_thread_name = nullptr;
187 gdbarch_core_xfer_siginfo_ftype *core_xfer_siginfo = nullptr;
188 gdbarch_core_read_x86_xsave_layout_ftype *core_read_x86_xsave_layout = nullptr;
189 const char * gcore_bfd_target = 0;
190 int vtable_function_descriptors = 0;
191 int vbit_in_delta = 0;
192 gdbarch_skip_permanent_breakpoint_ftype *skip_permanent_breakpoint = default_skip_permanent_breakpoint;
193 ULONGEST max_insn_length = 0;
194 gdbarch_displaced_step_copy_insn_ftype *displaced_step_copy_insn = nullptr;
195 gdbarch_displaced_step_hw_singlestep_ftype *displaced_step_hw_singlestep = default_displaced_step_hw_singlestep;
196 gdbarch_displaced_step_fixup_ftype *displaced_step_fixup = NULL;
197 gdbarch_displaced_step_prepare_ftype *displaced_step_prepare = nullptr;
198 gdbarch_displaced_step_finish_ftype *displaced_step_finish = NULL;
199 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype *displaced_step_copy_insn_closure_by_addr = nullptr;
200 gdbarch_displaced_step_restore_all_in_ptid_ftype *displaced_step_restore_all_in_ptid = nullptr;
201 ULONGEST displaced_step_buffer_length = 0;
202 gdbarch_relocate_instruction_ftype *relocate_instruction = NULL;
203 gdbarch_overlay_update_ftype *overlay_update = nullptr;
204 gdbarch_core_read_description_ftype *core_read_description = nullptr;
205 int sofun_address_maybe_missing = 0;
206 gdbarch_process_record_ftype *process_record = nullptr;
207 gdbarch_process_record_signal_ftype *process_record_signal = nullptr;
208 gdbarch_gdb_signal_from_target_ftype *gdb_signal_from_target = nullptr;
209 gdbarch_gdb_signal_to_target_ftype *gdb_signal_to_target = nullptr;
210 gdbarch_get_siginfo_type_ftype *get_siginfo_type = nullptr;
211 gdbarch_record_special_symbol_ftype *record_special_symbol = nullptr;
212 gdbarch_get_syscall_number_ftype *get_syscall_number = nullptr;
213 const char * xml_syscall_file = 0;
214 struct syscalls_info * syscalls_info = 0;
215 const char *const * stap_integer_prefixes = 0;
216 const char *const * stap_integer_suffixes = 0;
217 const char *const * stap_register_prefixes = 0;
218 const char *const * stap_register_suffixes = 0;
219 const char *const * stap_register_indirection_prefixes = 0;
220 const char *const * stap_register_indirection_suffixes = 0;
221 const char * stap_gdb_register_prefix = 0;
222 const char * stap_gdb_register_suffix = 0;
223 gdbarch_stap_is_single_operand_ftype *stap_is_single_operand = nullptr;
224 gdbarch_stap_parse_special_token_ftype *stap_parse_special_token = nullptr;
225 gdbarch_stap_adjust_register_ftype *stap_adjust_register = nullptr;
226 gdbarch_dtrace_parse_probe_argument_ftype *dtrace_parse_probe_argument = nullptr;
227 gdbarch_dtrace_probe_is_enabled_ftype *dtrace_probe_is_enabled = nullptr;
228 gdbarch_dtrace_enable_probe_ftype *dtrace_enable_probe = nullptr;
229 gdbarch_dtrace_disable_probe_ftype *dtrace_disable_probe = nullptr;
230 int has_global_solist = 0;
231 int has_global_breakpoints = 0;
232 gdbarch_has_shared_address_space_ftype *has_shared_address_space = default_has_shared_address_space;
233 gdbarch_fast_tracepoint_valid_at_ftype *fast_tracepoint_valid_at = default_fast_tracepoint_valid_at;
234 gdbarch_guess_tracepoint_registers_ftype *guess_tracepoint_registers = default_guess_tracepoint_registers;
235 gdbarch_auto_charset_ftype *auto_charset = default_auto_charset;
236 gdbarch_auto_wide_charset_ftype *auto_wide_charset = default_auto_wide_charset;
237 const char * solib_symbols_extension = 0;
238 int has_dos_based_file_system = 0;
239 gdbarch_gen_return_address_ftype *gen_return_address = default_gen_return_address;
240 gdbarch_info_proc_ftype *info_proc = nullptr;
241 gdbarch_core_info_proc_ftype *core_info_proc = nullptr;
242 gdbarch_iterate_over_objfiles_in_search_order_ftype *iterate_over_objfiles_in_search_order = default_iterate_over_objfiles_in_search_order;
243 struct ravenscar_arch_ops * ravenscar_ops = NULL;
244 gdbarch_insn_is_call_ftype *insn_is_call = default_insn_is_call;
245 gdbarch_insn_is_ret_ftype *insn_is_ret = default_insn_is_ret;
246 gdbarch_insn_is_jump_ftype *insn_is_jump = default_insn_is_jump;
247 gdbarch_program_breakpoint_here_p_ftype *program_breakpoint_here_p = default_program_breakpoint_here_p;
248 gdbarch_auxv_parse_ftype *auxv_parse = nullptr;
249 gdbarch_print_auxv_entry_ftype *print_auxv_entry = default_print_auxv_entry;
250 gdbarch_vsyscall_range_ftype *vsyscall_range = default_vsyscall_range;
251 gdbarch_infcall_mmap_ftype *infcall_mmap = default_infcall_mmap;
252 gdbarch_infcall_munmap_ftype *infcall_munmap = default_infcall_munmap;
253 gdbarch_gcc_target_options_ftype *gcc_target_options = default_gcc_target_options;
254 gdbarch_gnu_triplet_regexp_ftype *gnu_triplet_regexp = default_gnu_triplet_regexp;
255 gdbarch_addressable_memory_unit_size_ftype *addressable_memory_unit_size = default_addressable_memory_unit_size;
256 const char * disassembler_options_implicit = 0;
257 std::string * disassembler_options = 0;
258 const disasm_options_and_args_t * valid_disassembler_options = 0;
259 gdbarch_type_align_ftype *type_align = default_type_align;
260 gdbarch_get_pc_address_flags_ftype *get_pc_address_flags = default_get_pc_address_flags;
261 gdbarch_read_core_file_mappings_ftype *read_core_file_mappings = default_read_core_file_mappings;
262 gdbarch_use_target_description_from_corefile_notes_ftype *use_target_description_from_corefile_notes = default_use_target_description_from_corefile_notes;
265 /* Create a new ``struct gdbarch'' based on information provided by
266 ``struct gdbarch_info''. */
268 struct gdbarch *
269 gdbarch_alloc (const struct gdbarch_info *info,
270 gdbarch_tdep_up tdep)
272 struct gdbarch *gdbarch;
274 gdbarch = new struct gdbarch;
276 gdbarch->tdep = std::move (tdep);
278 gdbarch->bfd_arch_info = info->bfd_arch_info;
279 gdbarch->byte_order = info->byte_order;
280 gdbarch->byte_order_for_code = info->byte_order_for_code;
281 gdbarch->osabi = info->osabi;
282 gdbarch->target_desc = info->target_desc;
284 return gdbarch;
289 /* Ensure that all values in a GDBARCH are reasonable. */
291 static void
292 verify_gdbarch (struct gdbarch *gdbarch)
294 string_file log;
296 /* fundamental */
297 if (gdbarch->byte_order == BFD_ENDIAN_UNKNOWN)
298 log.puts ("\n\tbyte-order");
299 if (gdbarch->bfd_arch_info == NULL)
300 log.puts ("\n\tbfd_arch_info");
301 /* Check those that need to be defined for the given multi-arch level. */
302 /* Skip verify of short_bit, invalid_p == 0. */
303 /* Skip verify of int_bit, invalid_p == 0. */
304 /* Skip verify of long_bit, invalid_p == 0. */
305 /* Skip verify of long_long_bit, invalid_p == 0. */
306 /* Skip verify of bfloat16_bit, invalid_p == 0. */
307 /* Skip verify of bfloat16_format, invalid_p == 0. */
308 /* Skip verify of half_bit, invalid_p == 0. */
309 /* Skip verify of half_format, invalid_p == 0. */
310 /* Skip verify of float_bit, invalid_p == 0. */
311 /* Skip verify of float_format, invalid_p == 0. */
312 /* Skip verify of double_bit, invalid_p == 0. */
313 /* Skip verify of double_format, invalid_p == 0. */
314 /* Skip verify of long_double_bit, invalid_p == 0. */
315 /* Skip verify of long_double_format, invalid_p == 0. */
316 /* Skip verify of wchar_bit, invalid_p == 0. */
317 if (gdbarch->wchar_signed == -1)
318 gdbarch->wchar_signed = 1;
319 /* Skip verify of wchar_signed, invalid_p == 0. */
320 /* Skip verify of floatformat_for_type, invalid_p == 0. */
321 /* Skip verify of ptr_bit, invalid_p == 0. */
322 if (gdbarch->addr_bit == 0)
323 gdbarch->addr_bit = gdbarch_ptr_bit (gdbarch);
324 /* Skip verify of addr_bit, invalid_p == 0. */
325 if (gdbarch->dwarf2_addr_size == 0)
326 gdbarch->dwarf2_addr_size = gdbarch_ptr_bit (gdbarch) / TARGET_CHAR_BIT;
327 /* Skip verify of dwarf2_addr_size, invalid_p == 0. */
328 if (gdbarch->char_signed == -1)
329 gdbarch->char_signed = 1;
330 /* Skip verify of char_signed, invalid_p == 0. */
331 /* Skip verify of read_pc, has predicate. */
332 /* Skip verify of write_pc, has predicate. */
333 /* Skip verify of virtual_frame_pointer, invalid_p == 0. */
334 /* Skip verify of pseudo_register_read, has predicate. */
335 /* Skip verify of pseudo_register_read_value, has predicate. */
336 /* Skip verify of pseudo_register_write, has predicate. */
337 /* Skip verify of deprecated_pseudo_register_write, has predicate. */
338 if (gdbarch->num_regs == -1)
339 log.puts ("\n\tnum_regs");
340 /* Skip verify of num_pseudo_regs, invalid_p == 0. */
341 /* Skip verify of ax_pseudo_register_collect, has predicate. */
342 /* Skip verify of ax_pseudo_register_push_stack, has predicate. */
343 /* Skip verify of report_signal_info, has predicate. */
344 /* Skip verify of sp_regnum, invalid_p == 0. */
345 /* Skip verify of pc_regnum, invalid_p == 0. */
346 /* Skip verify of ps_regnum, invalid_p == 0. */
347 /* Skip verify of fp0_regnum, invalid_p == 0. */
348 /* Skip verify of stab_reg_to_regnum, invalid_p == 0. */
349 /* Skip verify of ecoff_reg_to_regnum, invalid_p == 0. */
350 /* Skip verify of sdb_reg_to_regnum, invalid_p == 0. */
351 /* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0. */
352 if (gdbarch->register_name == 0)
353 log.puts ("\n\tregister_name");
354 if (gdbarch->register_type == 0)
355 log.puts ("\n\tregister_type");
356 /* Skip verify of dummy_id, invalid_p == 0. */
357 /* Skip verify of deprecated_fp_regnum, invalid_p == 0. */
358 /* Skip verify of push_dummy_call, has predicate. */
359 /* Skip verify of call_dummy_location, invalid_p == 0. */
360 /* Skip verify of push_dummy_code, has predicate. */
361 /* Skip verify of code_of_frame_writable, invalid_p == 0. */
362 /* Skip verify of print_registers_info, invalid_p == 0. */
363 /* Skip verify of print_float_info, invalid_p == 0. */
364 /* Skip verify of print_vector_info, has predicate. */
365 /* Skip verify of register_sim_regno, invalid_p == 0. */
366 /* Skip verify of cannot_fetch_register, invalid_p == 0. */
367 /* Skip verify of cannot_store_register, invalid_p == 0. */
368 /* Skip verify of get_longjmp_target, has predicate. */
369 /* Skip verify of believe_pcc_promotion, invalid_p == 0. */
370 /* Skip verify of convert_register_p, invalid_p == 0. */
371 /* Skip verify of register_to_value, invalid_p == 0. */
372 /* Skip verify of value_to_register, invalid_p == 0. */
373 /* Skip verify of value_from_register, invalid_p == 0. */
374 /* Skip verify of pointer_to_address, invalid_p == 0. */
375 /* Skip verify of address_to_pointer, invalid_p == 0. */
376 /* Skip verify of integer_to_address, has predicate. */
377 /* Skip verify of return_value, invalid_p == 0. */
378 if ((gdbarch->return_value_as_value == default_gdbarch_return_value) == (gdbarch->return_value == nullptr))
379 log.puts ("\n\treturn_value_as_value");
380 /* Skip verify of get_return_buf_addr, invalid_p == 0. */
381 /* Skip verify of dwarf2_omit_typedef_p, invalid_p == 0. */
382 /* Skip verify of update_call_site_pc, invalid_p == 0. */
383 /* Skip verify of return_in_first_hidden_param_p, invalid_p == 0. */
384 if (gdbarch->skip_prologue == 0)
385 log.puts ("\n\tskip_prologue");
386 /* Skip verify of skip_main_prologue, has predicate. */
387 /* Skip verify of skip_entrypoint, has predicate. */
388 if (gdbarch->inner_than == 0)
389 log.puts ("\n\tinner_than");
390 /* Skip verify of breakpoint_from_pc, invalid_p == 0. */
391 if (gdbarch->breakpoint_kind_from_pc == 0)
392 log.puts ("\n\tbreakpoint_kind_from_pc");
393 /* Skip verify of sw_breakpoint_from_kind, invalid_p == 0. */
394 /* Skip verify of breakpoint_kind_from_current_state, invalid_p == 0. */
395 /* Skip verify of adjust_breakpoint_address, has predicate. */
396 /* Skip verify of memory_insert_breakpoint, invalid_p == 0. */
397 /* Skip verify of memory_remove_breakpoint, invalid_p == 0. */
398 /* Skip verify of decr_pc_after_break, invalid_p == 0. */
399 /* Skip verify of deprecated_function_start_offset, invalid_p == 0. */
400 /* Skip verify of remote_register_number, invalid_p == 0. */
401 /* Skip verify of fetch_tls_load_module_address, has predicate. */
402 /* Skip verify of get_thread_local_address, has predicate. */
403 /* Skip verify of frame_args_skip, invalid_p == 0. */
404 /* Skip verify of unwind_pc, invalid_p == 0. */
405 /* Skip verify of unwind_sp, invalid_p == 0. */
406 /* Skip verify of frame_num_args, has predicate. */
407 /* Skip verify of frame_align, has predicate. */
408 /* Skip verify of stabs_argument_has_addr, invalid_p == 0. */
409 /* Skip verify of frame_red_zone_size, invalid_p == 0. */
410 /* Skip verify of convert_from_func_ptr_addr, invalid_p == 0. */
411 /* Skip verify of addr_bits_remove, invalid_p == 0. */
412 /* Skip verify of remove_non_address_bits_watchpoint, invalid_p == 0. */
413 /* Skip verify of remove_non_address_bits_breakpoint, invalid_p == 0. */
414 /* Skip verify of remove_non_address_bits_memory, invalid_p == 0. */
415 /* Skip verify of memtag_to_string, invalid_p == 0. */
416 /* Skip verify of tagged_address_p, invalid_p == 0. */
417 /* Skip verify of memtag_matches_p, invalid_p == 0. */
418 /* Skip verify of set_memtags, invalid_p == 0. */
419 /* Skip verify of get_memtag, invalid_p == 0. */
420 /* Skip verify of memtag_granule_size, invalid_p == 0. */
421 /* Skip verify of software_single_step, has predicate. */
422 /* Skip verify of single_step_through_delay, has predicate. */
423 /* Skip verify of print_insn, invalid_p == 0. */
424 /* Skip verify of skip_trampoline_code, invalid_p == 0. */
425 /* Skip verify of so_ops, invalid_p == 0. */
426 /* Skip verify of skip_solib_resolver, invalid_p == 0. */
427 /* Skip verify of in_solib_return_trampoline, invalid_p == 0. */
428 /* Skip verify of in_indirect_branch_thunk, invalid_p == 0. */
429 /* Skip verify of stack_frame_destroyed_p, invalid_p == 0. */
430 /* Skip verify of elf_make_msymbol_special, has predicate. */
431 /* Skip verify of coff_make_msymbol_special, invalid_p == 0. */
432 /* Skip verify of make_symbol_special, invalid_p == 0. */
433 /* Skip verify of adjust_dwarf2_addr, invalid_p == 0. */
434 /* Skip verify of adjust_dwarf2_line, invalid_p == 0. */
435 /* Skip verify of cannot_step_breakpoint, invalid_p == 0. */
436 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0. */
437 /* Skip verify of address_class_type_flags, has predicate. */
438 /* Skip verify of address_class_type_flags_to_name, has predicate. */
439 /* Skip verify of execute_dwarf_cfa_vendor_op, invalid_p == 0. */
440 /* Skip verify of address_class_name_to_type_flags, has predicate. */
441 /* Skip verify of register_reggroup_p, invalid_p == 0. */
442 /* Skip verify of fetch_pointer_argument, has predicate. */
443 /* Skip verify of iterate_over_regset_sections, has predicate. */
444 /* Skip verify of make_corefile_notes, has predicate. */
445 /* Skip verify of find_memory_regions, has predicate. */
446 /* Skip verify of create_memtag_section, has predicate. */
447 /* Skip verify of fill_memtag_section, has predicate. */
448 /* Skip verify of decode_memtag_section, has predicate. */
449 /* Skip verify of core_xfer_shared_libraries, has predicate. */
450 /* Skip verify of core_xfer_shared_libraries_aix, has predicate. */
451 /* Skip verify of core_pid_to_str, has predicate. */
452 /* Skip verify of core_thread_name, has predicate. */
453 /* Skip verify of core_xfer_siginfo, has predicate. */
454 /* Skip verify of core_read_x86_xsave_layout, has predicate. */
455 /* Skip verify of gcore_bfd_target, has predicate. */
456 /* Skip verify of vtable_function_descriptors, invalid_p == 0. */
457 /* Skip verify of vbit_in_delta, invalid_p == 0. */
458 /* Skip verify of skip_permanent_breakpoint, invalid_p == 0. */
459 /* Skip verify of max_insn_length, has predicate. */
460 /* Skip verify of displaced_step_copy_insn, has predicate. */
461 /* Skip verify of displaced_step_hw_singlestep, invalid_p == 0. */
462 if ((gdbarch->displaced_step_copy_insn == nullptr) != (gdbarch->displaced_step_fixup == nullptr))
463 log.puts ("\n\tdisplaced_step_fixup");
464 /* Skip verify of displaced_step_prepare, has predicate. */
465 if ((! gdbarch->displaced_step_finish) != (! gdbarch->displaced_step_prepare))
466 log.puts ("\n\tdisplaced_step_finish");
467 /* Skip verify of displaced_step_copy_insn_closure_by_addr, has predicate. */
468 /* Skip verify of displaced_step_restore_all_in_ptid, invalid_p == 0. */
469 if (gdbarch->displaced_step_buffer_length == 0)
470 gdbarch->displaced_step_buffer_length = gdbarch->max_insn_length;
471 if (gdbarch->displaced_step_buffer_length < gdbarch->max_insn_length)
472 log.puts ("\n\tdisplaced_step_buffer_length");
473 /* Skip verify of relocate_instruction, has predicate. */
474 /* Skip verify of overlay_update, has predicate. */
475 /* Skip verify of core_read_description, has predicate. */
476 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0. */
477 /* Skip verify of process_record, has predicate. */
478 /* Skip verify of process_record_signal, has predicate. */
479 /* Skip verify of gdb_signal_from_target, has predicate. */
480 /* Skip verify of gdb_signal_to_target, has predicate. */
481 /* Skip verify of get_siginfo_type, has predicate. */
482 /* Skip verify of record_special_symbol, has predicate. */
483 /* Skip verify of get_syscall_number, has predicate. */
484 /* Skip verify of xml_syscall_file, invalid_p == 0. */
485 /* Skip verify of syscalls_info, invalid_p == 0. */
486 /* Skip verify of stap_integer_prefixes, invalid_p == 0. */
487 /* Skip verify of stap_integer_suffixes, invalid_p == 0. */
488 /* Skip verify of stap_register_prefixes, invalid_p == 0. */
489 /* Skip verify of stap_register_suffixes, invalid_p == 0. */
490 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0. */
491 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0. */
492 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0. */
493 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0. */
494 /* Skip verify of stap_is_single_operand, has predicate. */
495 /* Skip verify of stap_parse_special_token, has predicate. */
496 /* Skip verify of stap_adjust_register, has predicate. */
497 /* Skip verify of dtrace_parse_probe_argument, has predicate. */
498 /* Skip verify of dtrace_probe_is_enabled, has predicate. */
499 /* Skip verify of dtrace_enable_probe, has predicate. */
500 /* Skip verify of dtrace_disable_probe, has predicate. */
501 /* Skip verify of has_global_solist, invalid_p == 0. */
502 /* Skip verify of has_global_breakpoints, invalid_p == 0. */
503 /* Skip verify of has_shared_address_space, invalid_p == 0. */
504 /* Skip verify of fast_tracepoint_valid_at, invalid_p == 0. */
505 /* Skip verify of guess_tracepoint_registers, invalid_p == 0. */
506 /* Skip verify of auto_charset, invalid_p == 0. */
507 /* Skip verify of auto_wide_charset, invalid_p == 0. */
508 /* Skip verify of solib_symbols_extension, invalid_p == 0. */
509 /* Skip verify of has_dos_based_file_system, invalid_p == 0. */
510 /* Skip verify of gen_return_address, invalid_p == 0. */
511 /* Skip verify of info_proc, has predicate. */
512 /* Skip verify of core_info_proc, has predicate. */
513 /* Skip verify of iterate_over_objfiles_in_search_order, invalid_p == 0. */
514 /* Skip verify of ravenscar_ops, invalid_p == 0. */
515 /* Skip verify of insn_is_call, invalid_p == 0. */
516 /* Skip verify of insn_is_ret, invalid_p == 0. */
517 /* Skip verify of insn_is_jump, invalid_p == 0. */
518 /* Skip verify of program_breakpoint_here_p, invalid_p == 0. */
519 /* Skip verify of auxv_parse, has predicate. */
520 /* Skip verify of print_auxv_entry, invalid_p == 0. */
521 /* Skip verify of vsyscall_range, invalid_p == 0. */
522 /* Skip verify of infcall_mmap, invalid_p == 0. */
523 /* Skip verify of infcall_munmap, invalid_p == 0. */
524 /* Skip verify of gcc_target_options, invalid_p == 0. */
525 /* Skip verify of gnu_triplet_regexp, invalid_p == 0. */
526 /* Skip verify of addressable_memory_unit_size, invalid_p == 0. */
527 /* Skip verify of disassembler_options_implicit, invalid_p == 0. */
528 /* Skip verify of disassembler_options, invalid_p == 0. */
529 /* Skip verify of valid_disassembler_options, invalid_p == 0. */
530 /* Skip verify of type_align, invalid_p == 0. */
531 /* Skip verify of get_pc_address_flags, invalid_p == 0. */
532 /* Skip verify of read_core_file_mappings, invalid_p == 0. */
533 /* Skip verify of use_target_description_from_corefile_notes, invalid_p == 0. */
534 if (!log.empty ())
535 internal_error (_("verify_gdbarch: the following are invalid ...%s"),
536 log.c_str ());
540 /* Print out the details of the current architecture. */
542 void
543 gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
545 const char *gdb_nm_file = "<not-defined>";
547 #if defined (GDB_NM_FILE)
548 gdb_nm_file = GDB_NM_FILE;
549 #endif
550 gdb_printf (file,
551 "gdbarch_dump: GDB_NM_FILE = %s\n",
552 gdb_nm_file);
553 gdb_printf (file,
554 "gdbarch_dump: bfd_arch_info = %s\n",
555 gdbarch_bfd_arch_info (gdbarch)->printable_name);
556 gdb_printf (file,
557 "gdbarch_dump: byte_order = %s\n",
558 plongest (gdbarch->byte_order));
559 gdb_printf (file,
560 "gdbarch_dump: byte_order_for_code = %s\n",
561 plongest (gdbarch->byte_order_for_code));
562 gdb_printf (file,
563 "gdbarch_dump: osabi = %s\n",
564 plongest (gdbarch->osabi));
565 gdb_printf (file,
566 "gdbarch_dump: target_desc = %s\n",
567 host_address_to_string (gdbarch->target_desc));
568 gdb_printf (file,
569 "gdbarch_dump: short_bit = %s\n",
570 plongest (gdbarch->short_bit));
571 gdb_printf (file,
572 "gdbarch_dump: int_bit = %s\n",
573 plongest (gdbarch->int_bit));
574 gdb_printf (file,
575 "gdbarch_dump: long_bit = %s\n",
576 plongest (gdbarch->long_bit));
577 gdb_printf (file,
578 "gdbarch_dump: long_long_bit = %s\n",
579 plongest (gdbarch->long_long_bit));
580 gdb_printf (file,
581 "gdbarch_dump: bfloat16_bit = %s\n",
582 plongest (gdbarch->bfloat16_bit));
583 gdb_printf (file,
584 "gdbarch_dump: bfloat16_format = %s\n",
585 pformat (gdbarch, gdbarch->bfloat16_format));
586 gdb_printf (file,
587 "gdbarch_dump: half_bit = %s\n",
588 plongest (gdbarch->half_bit));
589 gdb_printf (file,
590 "gdbarch_dump: half_format = %s\n",
591 pformat (gdbarch, gdbarch->half_format));
592 gdb_printf (file,
593 "gdbarch_dump: float_bit = %s\n",
594 plongest (gdbarch->float_bit));
595 gdb_printf (file,
596 "gdbarch_dump: float_format = %s\n",
597 pformat (gdbarch, gdbarch->float_format));
598 gdb_printf (file,
599 "gdbarch_dump: double_bit = %s\n",
600 plongest (gdbarch->double_bit));
601 gdb_printf (file,
602 "gdbarch_dump: double_format = %s\n",
603 pformat (gdbarch, gdbarch->double_format));
604 gdb_printf (file,
605 "gdbarch_dump: long_double_bit = %s\n",
606 plongest (gdbarch->long_double_bit));
607 gdb_printf (file,
608 "gdbarch_dump: long_double_format = %s\n",
609 pformat (gdbarch, gdbarch->long_double_format));
610 gdb_printf (file,
611 "gdbarch_dump: wchar_bit = %s\n",
612 plongest (gdbarch->wchar_bit));
613 gdb_printf (file,
614 "gdbarch_dump: wchar_signed = %s\n",
615 plongest (gdbarch->wchar_signed));
616 gdb_printf (file,
617 "gdbarch_dump: floatformat_for_type = <%s>\n",
618 host_address_to_string (gdbarch->floatformat_for_type));
619 gdb_printf (file,
620 "gdbarch_dump: ptr_bit = %s\n",
621 plongest (gdbarch->ptr_bit));
622 gdb_printf (file,
623 "gdbarch_dump: addr_bit = %s\n",
624 plongest (gdbarch->addr_bit));
625 gdb_printf (file,
626 "gdbarch_dump: dwarf2_addr_size = %s\n",
627 plongest (gdbarch->dwarf2_addr_size));
628 gdb_printf (file,
629 "gdbarch_dump: char_signed = %s\n",
630 plongest (gdbarch->char_signed));
631 gdb_printf (file,
632 "gdbarch_dump: gdbarch_read_pc_p() = %d\n",
633 gdbarch_read_pc_p (gdbarch));
634 gdb_printf (file,
635 "gdbarch_dump: read_pc = <%s>\n",
636 host_address_to_string (gdbarch->read_pc));
637 gdb_printf (file,
638 "gdbarch_dump: gdbarch_write_pc_p() = %d\n",
639 gdbarch_write_pc_p (gdbarch));
640 gdb_printf (file,
641 "gdbarch_dump: write_pc = <%s>\n",
642 host_address_to_string (gdbarch->write_pc));
643 gdb_printf (file,
644 "gdbarch_dump: virtual_frame_pointer = <%s>\n",
645 host_address_to_string (gdbarch->virtual_frame_pointer));
646 gdb_printf (file,
647 "gdbarch_dump: gdbarch_pseudo_register_read_p() = %d\n",
648 gdbarch_pseudo_register_read_p (gdbarch));
649 gdb_printf (file,
650 "gdbarch_dump: pseudo_register_read = <%s>\n",
651 host_address_to_string (gdbarch->pseudo_register_read));
652 gdb_printf (file,
653 "gdbarch_dump: gdbarch_pseudo_register_read_value_p() = %d\n",
654 gdbarch_pseudo_register_read_value_p (gdbarch));
655 gdb_printf (file,
656 "gdbarch_dump: pseudo_register_read_value = <%s>\n",
657 host_address_to_string (gdbarch->pseudo_register_read_value));
658 gdb_printf (file,
659 "gdbarch_dump: gdbarch_pseudo_register_write_p() = %d\n",
660 gdbarch_pseudo_register_write_p (gdbarch));
661 gdb_printf (file,
662 "gdbarch_dump: pseudo_register_write = <%s>\n",
663 host_address_to_string (gdbarch->pseudo_register_write));
664 gdb_printf (file,
665 "gdbarch_dump: gdbarch_deprecated_pseudo_register_write_p() = %d\n",
666 gdbarch_deprecated_pseudo_register_write_p (gdbarch));
667 gdb_printf (file,
668 "gdbarch_dump: deprecated_pseudo_register_write = <%s>\n",
669 host_address_to_string (gdbarch->deprecated_pseudo_register_write));
670 gdb_printf (file,
671 "gdbarch_dump: num_regs = %s\n",
672 plongest (gdbarch->num_regs));
673 gdb_printf (file,
674 "gdbarch_dump: num_pseudo_regs = %s\n",
675 plongest (gdbarch->num_pseudo_regs));
676 gdb_printf (file,
677 "gdbarch_dump: gdbarch_ax_pseudo_register_collect_p() = %d\n",
678 gdbarch_ax_pseudo_register_collect_p (gdbarch));
679 gdb_printf (file,
680 "gdbarch_dump: ax_pseudo_register_collect = <%s>\n",
681 host_address_to_string (gdbarch->ax_pseudo_register_collect));
682 gdb_printf (file,
683 "gdbarch_dump: gdbarch_ax_pseudo_register_push_stack_p() = %d\n",
684 gdbarch_ax_pseudo_register_push_stack_p (gdbarch));
685 gdb_printf (file,
686 "gdbarch_dump: ax_pseudo_register_push_stack = <%s>\n",
687 host_address_to_string (gdbarch->ax_pseudo_register_push_stack));
688 gdb_printf (file,
689 "gdbarch_dump: gdbarch_report_signal_info_p() = %d\n",
690 gdbarch_report_signal_info_p (gdbarch));
691 gdb_printf (file,
692 "gdbarch_dump: report_signal_info = <%s>\n",
693 host_address_to_string (gdbarch->report_signal_info));
694 gdb_printf (file,
695 "gdbarch_dump: sp_regnum = %s\n",
696 plongest (gdbarch->sp_regnum));
697 gdb_printf (file,
698 "gdbarch_dump: pc_regnum = %s\n",
699 plongest (gdbarch->pc_regnum));
700 gdb_printf (file,
701 "gdbarch_dump: ps_regnum = %s\n",
702 plongest (gdbarch->ps_regnum));
703 gdb_printf (file,
704 "gdbarch_dump: fp0_regnum = %s\n",
705 plongest (gdbarch->fp0_regnum));
706 gdb_printf (file,
707 "gdbarch_dump: stab_reg_to_regnum = <%s>\n",
708 host_address_to_string (gdbarch->stab_reg_to_regnum));
709 gdb_printf (file,
710 "gdbarch_dump: ecoff_reg_to_regnum = <%s>\n",
711 host_address_to_string (gdbarch->ecoff_reg_to_regnum));
712 gdb_printf (file,
713 "gdbarch_dump: sdb_reg_to_regnum = <%s>\n",
714 host_address_to_string (gdbarch->sdb_reg_to_regnum));
715 gdb_printf (file,
716 "gdbarch_dump: dwarf2_reg_to_regnum = <%s>\n",
717 host_address_to_string (gdbarch->dwarf2_reg_to_regnum));
718 gdb_printf (file,
719 "gdbarch_dump: register_name = <%s>\n",
720 host_address_to_string (gdbarch->register_name));
721 gdb_printf (file,
722 "gdbarch_dump: register_type = <%s>\n",
723 host_address_to_string (gdbarch->register_type));
724 gdb_printf (file,
725 "gdbarch_dump: dummy_id = <%s>\n",
726 host_address_to_string (gdbarch->dummy_id));
727 gdb_printf (file,
728 "gdbarch_dump: deprecated_fp_regnum = %s\n",
729 plongest (gdbarch->deprecated_fp_regnum));
730 gdb_printf (file,
731 "gdbarch_dump: gdbarch_push_dummy_call_p() = %d\n",
732 gdbarch_push_dummy_call_p (gdbarch));
733 gdb_printf (file,
734 "gdbarch_dump: push_dummy_call = <%s>\n",
735 host_address_to_string (gdbarch->push_dummy_call));
736 gdb_printf (file,
737 "gdbarch_dump: call_dummy_location = %s\n",
738 plongest (gdbarch->call_dummy_location));
739 gdb_printf (file,
740 "gdbarch_dump: gdbarch_push_dummy_code_p() = %d\n",
741 gdbarch_push_dummy_code_p (gdbarch));
742 gdb_printf (file,
743 "gdbarch_dump: push_dummy_code = <%s>\n",
744 host_address_to_string (gdbarch->push_dummy_code));
745 gdb_printf (file,
746 "gdbarch_dump: code_of_frame_writable = <%s>\n",
747 host_address_to_string (gdbarch->code_of_frame_writable));
748 gdb_printf (file,
749 "gdbarch_dump: print_registers_info = <%s>\n",
750 host_address_to_string (gdbarch->print_registers_info));
751 gdb_printf (file,
752 "gdbarch_dump: print_float_info = <%s>\n",
753 host_address_to_string (gdbarch->print_float_info));
754 gdb_printf (file,
755 "gdbarch_dump: gdbarch_print_vector_info_p() = %d\n",
756 gdbarch_print_vector_info_p (gdbarch));
757 gdb_printf (file,
758 "gdbarch_dump: print_vector_info = <%s>\n",
759 host_address_to_string (gdbarch->print_vector_info));
760 gdb_printf (file,
761 "gdbarch_dump: register_sim_regno = <%s>\n",
762 host_address_to_string (gdbarch->register_sim_regno));
763 gdb_printf (file,
764 "gdbarch_dump: cannot_fetch_register = <%s>\n",
765 host_address_to_string (gdbarch->cannot_fetch_register));
766 gdb_printf (file,
767 "gdbarch_dump: cannot_store_register = <%s>\n",
768 host_address_to_string (gdbarch->cannot_store_register));
769 gdb_printf (file,
770 "gdbarch_dump: gdbarch_get_longjmp_target_p() = %d\n",
771 gdbarch_get_longjmp_target_p (gdbarch));
772 gdb_printf (file,
773 "gdbarch_dump: get_longjmp_target = <%s>\n",
774 host_address_to_string (gdbarch->get_longjmp_target));
775 gdb_printf (file,
776 "gdbarch_dump: believe_pcc_promotion = %s\n",
777 plongest (gdbarch->believe_pcc_promotion));
778 gdb_printf (file,
779 "gdbarch_dump: convert_register_p = <%s>\n",
780 host_address_to_string (gdbarch->convert_register_p));
781 gdb_printf (file,
782 "gdbarch_dump: register_to_value = <%s>\n",
783 host_address_to_string (gdbarch->register_to_value));
784 gdb_printf (file,
785 "gdbarch_dump: value_to_register = <%s>\n",
786 host_address_to_string (gdbarch->value_to_register));
787 gdb_printf (file,
788 "gdbarch_dump: value_from_register = <%s>\n",
789 host_address_to_string (gdbarch->value_from_register));
790 gdb_printf (file,
791 "gdbarch_dump: pointer_to_address = <%s>\n",
792 host_address_to_string (gdbarch->pointer_to_address));
793 gdb_printf (file,
794 "gdbarch_dump: address_to_pointer = <%s>\n",
795 host_address_to_string (gdbarch->address_to_pointer));
796 gdb_printf (file,
797 "gdbarch_dump: gdbarch_integer_to_address_p() = %d\n",
798 gdbarch_integer_to_address_p (gdbarch));
799 gdb_printf (file,
800 "gdbarch_dump: integer_to_address = <%s>\n",
801 host_address_to_string (gdbarch->integer_to_address));
802 gdb_printf (file,
803 "gdbarch_dump: return_value = <%s>\n",
804 host_address_to_string (gdbarch->return_value));
805 gdb_printf (file,
806 "gdbarch_dump: return_value_as_value = <%s>\n",
807 host_address_to_string (gdbarch->return_value_as_value));
808 gdb_printf (file,
809 "gdbarch_dump: get_return_buf_addr = <%s>\n",
810 host_address_to_string (gdbarch->get_return_buf_addr));
811 gdb_printf (file,
812 "gdbarch_dump: dwarf2_omit_typedef_p = <%s>\n",
813 host_address_to_string (gdbarch->dwarf2_omit_typedef_p));
814 gdb_printf (file,
815 "gdbarch_dump: update_call_site_pc = <%s>\n",
816 host_address_to_string (gdbarch->update_call_site_pc));
817 gdb_printf (file,
818 "gdbarch_dump: return_in_first_hidden_param_p = <%s>\n",
819 host_address_to_string (gdbarch->return_in_first_hidden_param_p));
820 gdb_printf (file,
821 "gdbarch_dump: skip_prologue = <%s>\n",
822 host_address_to_string (gdbarch->skip_prologue));
823 gdb_printf (file,
824 "gdbarch_dump: gdbarch_skip_main_prologue_p() = %d\n",
825 gdbarch_skip_main_prologue_p (gdbarch));
826 gdb_printf (file,
827 "gdbarch_dump: skip_main_prologue = <%s>\n",
828 host_address_to_string (gdbarch->skip_main_prologue));
829 gdb_printf (file,
830 "gdbarch_dump: gdbarch_skip_entrypoint_p() = %d\n",
831 gdbarch_skip_entrypoint_p (gdbarch));
832 gdb_printf (file,
833 "gdbarch_dump: skip_entrypoint = <%s>\n",
834 host_address_to_string (gdbarch->skip_entrypoint));
835 gdb_printf (file,
836 "gdbarch_dump: inner_than = <%s>\n",
837 host_address_to_string (gdbarch->inner_than));
838 gdb_printf (file,
839 "gdbarch_dump: breakpoint_from_pc = <%s>\n",
840 host_address_to_string (gdbarch->breakpoint_from_pc));
841 gdb_printf (file,
842 "gdbarch_dump: breakpoint_kind_from_pc = <%s>\n",
843 host_address_to_string (gdbarch->breakpoint_kind_from_pc));
844 gdb_printf (file,
845 "gdbarch_dump: sw_breakpoint_from_kind = <%s>\n",
846 host_address_to_string (gdbarch->sw_breakpoint_from_kind));
847 gdb_printf (file,
848 "gdbarch_dump: breakpoint_kind_from_current_state = <%s>\n",
849 host_address_to_string (gdbarch->breakpoint_kind_from_current_state));
850 gdb_printf (file,
851 "gdbarch_dump: gdbarch_adjust_breakpoint_address_p() = %d\n",
852 gdbarch_adjust_breakpoint_address_p (gdbarch));
853 gdb_printf (file,
854 "gdbarch_dump: adjust_breakpoint_address = <%s>\n",
855 host_address_to_string (gdbarch->adjust_breakpoint_address));
856 gdb_printf (file,
857 "gdbarch_dump: memory_insert_breakpoint = <%s>\n",
858 host_address_to_string (gdbarch->memory_insert_breakpoint));
859 gdb_printf (file,
860 "gdbarch_dump: memory_remove_breakpoint = <%s>\n",
861 host_address_to_string (gdbarch->memory_remove_breakpoint));
862 gdb_printf (file,
863 "gdbarch_dump: decr_pc_after_break = %s\n",
864 core_addr_to_string_nz (gdbarch->decr_pc_after_break));
865 gdb_printf (file,
866 "gdbarch_dump: deprecated_function_start_offset = %s\n",
867 core_addr_to_string_nz (gdbarch->deprecated_function_start_offset));
868 gdb_printf (file,
869 "gdbarch_dump: remote_register_number = <%s>\n",
870 host_address_to_string (gdbarch->remote_register_number));
871 gdb_printf (file,
872 "gdbarch_dump: gdbarch_fetch_tls_load_module_address_p() = %d\n",
873 gdbarch_fetch_tls_load_module_address_p (gdbarch));
874 gdb_printf (file,
875 "gdbarch_dump: fetch_tls_load_module_address = <%s>\n",
876 host_address_to_string (gdbarch->fetch_tls_load_module_address));
877 gdb_printf (file,
878 "gdbarch_dump: gdbarch_get_thread_local_address_p() = %d\n",
879 gdbarch_get_thread_local_address_p (gdbarch));
880 gdb_printf (file,
881 "gdbarch_dump: get_thread_local_address = <%s>\n",
882 host_address_to_string (gdbarch->get_thread_local_address));
883 gdb_printf (file,
884 "gdbarch_dump: frame_args_skip = %s\n",
885 core_addr_to_string_nz (gdbarch->frame_args_skip));
886 gdb_printf (file,
887 "gdbarch_dump: unwind_pc = <%s>\n",
888 host_address_to_string (gdbarch->unwind_pc));
889 gdb_printf (file,
890 "gdbarch_dump: unwind_sp = <%s>\n",
891 host_address_to_string (gdbarch->unwind_sp));
892 gdb_printf (file,
893 "gdbarch_dump: gdbarch_frame_num_args_p() = %d\n",
894 gdbarch_frame_num_args_p (gdbarch));
895 gdb_printf (file,
896 "gdbarch_dump: frame_num_args = <%s>\n",
897 host_address_to_string (gdbarch->frame_num_args));
898 gdb_printf (file,
899 "gdbarch_dump: gdbarch_frame_align_p() = %d\n",
900 gdbarch_frame_align_p (gdbarch));
901 gdb_printf (file,
902 "gdbarch_dump: frame_align = <%s>\n",
903 host_address_to_string (gdbarch->frame_align));
904 gdb_printf (file,
905 "gdbarch_dump: stabs_argument_has_addr = <%s>\n",
906 host_address_to_string (gdbarch->stabs_argument_has_addr));
907 gdb_printf (file,
908 "gdbarch_dump: frame_red_zone_size = %s\n",
909 plongest (gdbarch->frame_red_zone_size));
910 gdb_printf (file,
911 "gdbarch_dump: convert_from_func_ptr_addr = <%s>\n",
912 host_address_to_string (gdbarch->convert_from_func_ptr_addr));
913 gdb_printf (file,
914 "gdbarch_dump: addr_bits_remove = <%s>\n",
915 host_address_to_string (gdbarch->addr_bits_remove));
916 gdb_printf (file,
917 "gdbarch_dump: remove_non_address_bits_watchpoint = <%s>\n",
918 host_address_to_string (gdbarch->remove_non_address_bits_watchpoint));
919 gdb_printf (file,
920 "gdbarch_dump: remove_non_address_bits_breakpoint = <%s>\n",
921 host_address_to_string (gdbarch->remove_non_address_bits_breakpoint));
922 gdb_printf (file,
923 "gdbarch_dump: remove_non_address_bits_memory = <%s>\n",
924 host_address_to_string (gdbarch->remove_non_address_bits_memory));
925 gdb_printf (file,
926 "gdbarch_dump: memtag_to_string = <%s>\n",
927 host_address_to_string (gdbarch->memtag_to_string));
928 gdb_printf (file,
929 "gdbarch_dump: tagged_address_p = <%s>\n",
930 host_address_to_string (gdbarch->tagged_address_p));
931 gdb_printf (file,
932 "gdbarch_dump: memtag_matches_p = <%s>\n",
933 host_address_to_string (gdbarch->memtag_matches_p));
934 gdb_printf (file,
935 "gdbarch_dump: set_memtags = <%s>\n",
936 host_address_to_string (gdbarch->set_memtags));
937 gdb_printf (file,
938 "gdbarch_dump: get_memtag = <%s>\n",
939 host_address_to_string (gdbarch->get_memtag));
940 gdb_printf (file,
941 "gdbarch_dump: memtag_granule_size = %s\n",
942 core_addr_to_string_nz (gdbarch->memtag_granule_size));
943 gdb_printf (file,
944 "gdbarch_dump: gdbarch_software_single_step_p() = %d\n",
945 gdbarch_software_single_step_p (gdbarch));
946 gdb_printf (file,
947 "gdbarch_dump: software_single_step = <%s>\n",
948 host_address_to_string (gdbarch->software_single_step));
949 gdb_printf (file,
950 "gdbarch_dump: gdbarch_single_step_through_delay_p() = %d\n",
951 gdbarch_single_step_through_delay_p (gdbarch));
952 gdb_printf (file,
953 "gdbarch_dump: single_step_through_delay = <%s>\n",
954 host_address_to_string (gdbarch->single_step_through_delay));
955 gdb_printf (file,
956 "gdbarch_dump: print_insn = <%s>\n",
957 host_address_to_string (gdbarch->print_insn));
958 gdb_printf (file,
959 "gdbarch_dump: skip_trampoline_code = <%s>\n",
960 host_address_to_string (gdbarch->skip_trampoline_code));
961 gdb_printf (file,
962 "gdbarch_dump: so_ops = %s\n",
963 host_address_to_string (gdbarch->so_ops));
964 gdb_printf (file,
965 "gdbarch_dump: skip_solib_resolver = <%s>\n",
966 host_address_to_string (gdbarch->skip_solib_resolver));
967 gdb_printf (file,
968 "gdbarch_dump: in_solib_return_trampoline = <%s>\n",
969 host_address_to_string (gdbarch->in_solib_return_trampoline));
970 gdb_printf (file,
971 "gdbarch_dump: in_indirect_branch_thunk = <%s>\n",
972 host_address_to_string (gdbarch->in_indirect_branch_thunk));
973 gdb_printf (file,
974 "gdbarch_dump: stack_frame_destroyed_p = <%s>\n",
975 host_address_to_string (gdbarch->stack_frame_destroyed_p));
976 gdb_printf (file,
977 "gdbarch_dump: gdbarch_elf_make_msymbol_special_p() = %d\n",
978 gdbarch_elf_make_msymbol_special_p (gdbarch));
979 gdb_printf (file,
980 "gdbarch_dump: elf_make_msymbol_special = <%s>\n",
981 host_address_to_string (gdbarch->elf_make_msymbol_special));
982 gdb_printf (file,
983 "gdbarch_dump: coff_make_msymbol_special = <%s>\n",
984 host_address_to_string (gdbarch->coff_make_msymbol_special));
985 gdb_printf (file,
986 "gdbarch_dump: make_symbol_special = <%s>\n",
987 host_address_to_string (gdbarch->make_symbol_special));
988 gdb_printf (file,
989 "gdbarch_dump: adjust_dwarf2_addr = <%s>\n",
990 host_address_to_string (gdbarch->adjust_dwarf2_addr));
991 gdb_printf (file,
992 "gdbarch_dump: adjust_dwarf2_line = <%s>\n",
993 host_address_to_string (gdbarch->adjust_dwarf2_line));
994 gdb_printf (file,
995 "gdbarch_dump: cannot_step_breakpoint = %s\n",
996 plongest (gdbarch->cannot_step_breakpoint));
997 gdb_printf (file,
998 "gdbarch_dump: have_nonsteppable_watchpoint = %s\n",
999 plongest (gdbarch->have_nonsteppable_watchpoint));
1000 gdb_printf (file,
1001 "gdbarch_dump: gdbarch_address_class_type_flags_p() = %d\n",
1002 gdbarch_address_class_type_flags_p (gdbarch));
1003 gdb_printf (file,
1004 "gdbarch_dump: address_class_type_flags = <%s>\n",
1005 host_address_to_string (gdbarch->address_class_type_flags));
1006 gdb_printf (file,
1007 "gdbarch_dump: gdbarch_address_class_type_flags_to_name_p() = %d\n",
1008 gdbarch_address_class_type_flags_to_name_p (gdbarch));
1009 gdb_printf (file,
1010 "gdbarch_dump: address_class_type_flags_to_name = <%s>\n",
1011 host_address_to_string (gdbarch->address_class_type_flags_to_name));
1012 gdb_printf (file,
1013 "gdbarch_dump: execute_dwarf_cfa_vendor_op = <%s>\n",
1014 host_address_to_string (gdbarch->execute_dwarf_cfa_vendor_op));
1015 gdb_printf (file,
1016 "gdbarch_dump: gdbarch_address_class_name_to_type_flags_p() = %d\n",
1017 gdbarch_address_class_name_to_type_flags_p (gdbarch));
1018 gdb_printf (file,
1019 "gdbarch_dump: address_class_name_to_type_flags = <%s>\n",
1020 host_address_to_string (gdbarch->address_class_name_to_type_flags));
1021 gdb_printf (file,
1022 "gdbarch_dump: register_reggroup_p = <%s>\n",
1023 host_address_to_string (gdbarch->register_reggroup_p));
1024 gdb_printf (file,
1025 "gdbarch_dump: gdbarch_fetch_pointer_argument_p() = %d\n",
1026 gdbarch_fetch_pointer_argument_p (gdbarch));
1027 gdb_printf (file,
1028 "gdbarch_dump: fetch_pointer_argument = <%s>\n",
1029 host_address_to_string (gdbarch->fetch_pointer_argument));
1030 gdb_printf (file,
1031 "gdbarch_dump: gdbarch_iterate_over_regset_sections_p() = %d\n",
1032 gdbarch_iterate_over_regset_sections_p (gdbarch));
1033 gdb_printf (file,
1034 "gdbarch_dump: iterate_over_regset_sections = <%s>\n",
1035 host_address_to_string (gdbarch->iterate_over_regset_sections));
1036 gdb_printf (file,
1037 "gdbarch_dump: gdbarch_make_corefile_notes_p() = %d\n",
1038 gdbarch_make_corefile_notes_p (gdbarch));
1039 gdb_printf (file,
1040 "gdbarch_dump: make_corefile_notes = <%s>\n",
1041 host_address_to_string (gdbarch->make_corefile_notes));
1042 gdb_printf (file,
1043 "gdbarch_dump: gdbarch_find_memory_regions_p() = %d\n",
1044 gdbarch_find_memory_regions_p (gdbarch));
1045 gdb_printf (file,
1046 "gdbarch_dump: find_memory_regions = <%s>\n",
1047 host_address_to_string (gdbarch->find_memory_regions));
1048 gdb_printf (file,
1049 "gdbarch_dump: gdbarch_create_memtag_section_p() = %d\n",
1050 gdbarch_create_memtag_section_p (gdbarch));
1051 gdb_printf (file,
1052 "gdbarch_dump: create_memtag_section = <%s>\n",
1053 host_address_to_string (gdbarch->create_memtag_section));
1054 gdb_printf (file,
1055 "gdbarch_dump: gdbarch_fill_memtag_section_p() = %d\n",
1056 gdbarch_fill_memtag_section_p (gdbarch));
1057 gdb_printf (file,
1058 "gdbarch_dump: fill_memtag_section = <%s>\n",
1059 host_address_to_string (gdbarch->fill_memtag_section));
1060 gdb_printf (file,
1061 "gdbarch_dump: gdbarch_decode_memtag_section_p() = %d\n",
1062 gdbarch_decode_memtag_section_p (gdbarch));
1063 gdb_printf (file,
1064 "gdbarch_dump: decode_memtag_section = <%s>\n",
1065 host_address_to_string (gdbarch->decode_memtag_section));
1066 gdb_printf (file,
1067 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_p() = %d\n",
1068 gdbarch_core_xfer_shared_libraries_p (gdbarch));
1069 gdb_printf (file,
1070 "gdbarch_dump: core_xfer_shared_libraries = <%s>\n",
1071 host_address_to_string (gdbarch->core_xfer_shared_libraries));
1072 gdb_printf (file,
1073 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_aix_p() = %d\n",
1074 gdbarch_core_xfer_shared_libraries_aix_p (gdbarch));
1075 gdb_printf (file,
1076 "gdbarch_dump: core_xfer_shared_libraries_aix = <%s>\n",
1077 host_address_to_string (gdbarch->core_xfer_shared_libraries_aix));
1078 gdb_printf (file,
1079 "gdbarch_dump: gdbarch_core_pid_to_str_p() = %d\n",
1080 gdbarch_core_pid_to_str_p (gdbarch));
1081 gdb_printf (file,
1082 "gdbarch_dump: core_pid_to_str = <%s>\n",
1083 host_address_to_string (gdbarch->core_pid_to_str));
1084 gdb_printf (file,
1085 "gdbarch_dump: gdbarch_core_thread_name_p() = %d\n",
1086 gdbarch_core_thread_name_p (gdbarch));
1087 gdb_printf (file,
1088 "gdbarch_dump: core_thread_name = <%s>\n",
1089 host_address_to_string (gdbarch->core_thread_name));
1090 gdb_printf (file,
1091 "gdbarch_dump: gdbarch_core_xfer_siginfo_p() = %d\n",
1092 gdbarch_core_xfer_siginfo_p (gdbarch));
1093 gdb_printf (file,
1094 "gdbarch_dump: core_xfer_siginfo = <%s>\n",
1095 host_address_to_string (gdbarch->core_xfer_siginfo));
1096 gdb_printf (file,
1097 "gdbarch_dump: gdbarch_core_read_x86_xsave_layout_p() = %d\n",
1098 gdbarch_core_read_x86_xsave_layout_p (gdbarch));
1099 gdb_printf (file,
1100 "gdbarch_dump: core_read_x86_xsave_layout = <%s>\n",
1101 host_address_to_string (gdbarch->core_read_x86_xsave_layout));
1102 gdb_printf (file,
1103 "gdbarch_dump: gdbarch_gcore_bfd_target_p() = %d\n",
1104 gdbarch_gcore_bfd_target_p (gdbarch));
1105 gdb_printf (file,
1106 "gdbarch_dump: gcore_bfd_target = %s\n",
1107 pstring (gdbarch->gcore_bfd_target));
1108 gdb_printf (file,
1109 "gdbarch_dump: vtable_function_descriptors = %s\n",
1110 plongest (gdbarch->vtable_function_descriptors));
1111 gdb_printf (file,
1112 "gdbarch_dump: vbit_in_delta = %s\n",
1113 plongest (gdbarch->vbit_in_delta));
1114 gdb_printf (file,
1115 "gdbarch_dump: skip_permanent_breakpoint = <%s>\n",
1116 host_address_to_string (gdbarch->skip_permanent_breakpoint));
1117 gdb_printf (file,
1118 "gdbarch_dump: gdbarch_max_insn_length_p() = %d\n",
1119 gdbarch_max_insn_length_p (gdbarch));
1120 gdb_printf (file,
1121 "gdbarch_dump: max_insn_length = %s\n",
1122 plongest (gdbarch->max_insn_length));
1123 gdb_printf (file,
1124 "gdbarch_dump: gdbarch_displaced_step_copy_insn_p() = %d\n",
1125 gdbarch_displaced_step_copy_insn_p (gdbarch));
1126 gdb_printf (file,
1127 "gdbarch_dump: displaced_step_copy_insn = <%s>\n",
1128 host_address_to_string (gdbarch->displaced_step_copy_insn));
1129 gdb_printf (file,
1130 "gdbarch_dump: displaced_step_hw_singlestep = <%s>\n",
1131 host_address_to_string (gdbarch->displaced_step_hw_singlestep));
1132 gdb_printf (file,
1133 "gdbarch_dump: displaced_step_fixup = <%s>\n",
1134 host_address_to_string (gdbarch->displaced_step_fixup));
1135 gdb_printf (file,
1136 "gdbarch_dump: gdbarch_displaced_step_prepare_p() = %d\n",
1137 gdbarch_displaced_step_prepare_p (gdbarch));
1138 gdb_printf (file,
1139 "gdbarch_dump: displaced_step_prepare = <%s>\n",
1140 host_address_to_string (gdbarch->displaced_step_prepare));
1141 gdb_printf (file,
1142 "gdbarch_dump: displaced_step_finish = <%s>\n",
1143 host_address_to_string (gdbarch->displaced_step_finish));
1144 gdb_printf (file,
1145 "gdbarch_dump: gdbarch_displaced_step_copy_insn_closure_by_addr_p() = %d\n",
1146 gdbarch_displaced_step_copy_insn_closure_by_addr_p (gdbarch));
1147 gdb_printf (file,
1148 "gdbarch_dump: displaced_step_copy_insn_closure_by_addr = <%s>\n",
1149 host_address_to_string (gdbarch->displaced_step_copy_insn_closure_by_addr));
1150 gdb_printf (file,
1151 "gdbarch_dump: displaced_step_restore_all_in_ptid = <%s>\n",
1152 host_address_to_string (gdbarch->displaced_step_restore_all_in_ptid));
1153 gdb_printf (file,
1154 "gdbarch_dump: displaced_step_buffer_length = %s\n",
1155 plongest (gdbarch->displaced_step_buffer_length));
1156 gdb_printf (file,
1157 "gdbarch_dump: gdbarch_relocate_instruction_p() = %d\n",
1158 gdbarch_relocate_instruction_p (gdbarch));
1159 gdb_printf (file,
1160 "gdbarch_dump: relocate_instruction = <%s>\n",
1161 host_address_to_string (gdbarch->relocate_instruction));
1162 gdb_printf (file,
1163 "gdbarch_dump: gdbarch_overlay_update_p() = %d\n",
1164 gdbarch_overlay_update_p (gdbarch));
1165 gdb_printf (file,
1166 "gdbarch_dump: overlay_update = <%s>\n",
1167 host_address_to_string (gdbarch->overlay_update));
1168 gdb_printf (file,
1169 "gdbarch_dump: gdbarch_core_read_description_p() = %d\n",
1170 gdbarch_core_read_description_p (gdbarch));
1171 gdb_printf (file,
1172 "gdbarch_dump: core_read_description = <%s>\n",
1173 host_address_to_string (gdbarch->core_read_description));
1174 gdb_printf (file,
1175 "gdbarch_dump: sofun_address_maybe_missing = %s\n",
1176 plongest (gdbarch->sofun_address_maybe_missing));
1177 gdb_printf (file,
1178 "gdbarch_dump: gdbarch_process_record_p() = %d\n",
1179 gdbarch_process_record_p (gdbarch));
1180 gdb_printf (file,
1181 "gdbarch_dump: process_record = <%s>\n",
1182 host_address_to_string (gdbarch->process_record));
1183 gdb_printf (file,
1184 "gdbarch_dump: gdbarch_process_record_signal_p() = %d\n",
1185 gdbarch_process_record_signal_p (gdbarch));
1186 gdb_printf (file,
1187 "gdbarch_dump: process_record_signal = <%s>\n",
1188 host_address_to_string (gdbarch->process_record_signal));
1189 gdb_printf (file,
1190 "gdbarch_dump: gdbarch_gdb_signal_from_target_p() = %d\n",
1191 gdbarch_gdb_signal_from_target_p (gdbarch));
1192 gdb_printf (file,
1193 "gdbarch_dump: gdb_signal_from_target = <%s>\n",
1194 host_address_to_string (gdbarch->gdb_signal_from_target));
1195 gdb_printf (file,
1196 "gdbarch_dump: gdbarch_gdb_signal_to_target_p() = %d\n",
1197 gdbarch_gdb_signal_to_target_p (gdbarch));
1198 gdb_printf (file,
1199 "gdbarch_dump: gdb_signal_to_target = <%s>\n",
1200 host_address_to_string (gdbarch->gdb_signal_to_target));
1201 gdb_printf (file,
1202 "gdbarch_dump: gdbarch_get_siginfo_type_p() = %d\n",
1203 gdbarch_get_siginfo_type_p (gdbarch));
1204 gdb_printf (file,
1205 "gdbarch_dump: get_siginfo_type = <%s>\n",
1206 host_address_to_string (gdbarch->get_siginfo_type));
1207 gdb_printf (file,
1208 "gdbarch_dump: gdbarch_record_special_symbol_p() = %d\n",
1209 gdbarch_record_special_symbol_p (gdbarch));
1210 gdb_printf (file,
1211 "gdbarch_dump: record_special_symbol = <%s>\n",
1212 host_address_to_string (gdbarch->record_special_symbol));
1213 gdb_printf (file,
1214 "gdbarch_dump: gdbarch_get_syscall_number_p() = %d\n",
1215 gdbarch_get_syscall_number_p (gdbarch));
1216 gdb_printf (file,
1217 "gdbarch_dump: get_syscall_number = <%s>\n",
1218 host_address_to_string (gdbarch->get_syscall_number));
1219 gdb_printf (file,
1220 "gdbarch_dump: xml_syscall_file = %s\n",
1221 pstring (gdbarch->xml_syscall_file));
1222 gdb_printf (file,
1223 "gdbarch_dump: syscalls_info = %s\n",
1224 host_address_to_string (gdbarch->syscalls_info));
1225 gdb_printf (file,
1226 "gdbarch_dump: stap_integer_prefixes = %s\n",
1227 pstring_list (gdbarch->stap_integer_prefixes));
1228 gdb_printf (file,
1229 "gdbarch_dump: stap_integer_suffixes = %s\n",
1230 pstring_list (gdbarch->stap_integer_suffixes));
1231 gdb_printf (file,
1232 "gdbarch_dump: stap_register_prefixes = %s\n",
1233 pstring_list (gdbarch->stap_register_prefixes));
1234 gdb_printf (file,
1235 "gdbarch_dump: stap_register_suffixes = %s\n",
1236 pstring_list (gdbarch->stap_register_suffixes));
1237 gdb_printf (file,
1238 "gdbarch_dump: stap_register_indirection_prefixes = %s\n",
1239 pstring_list (gdbarch->stap_register_indirection_prefixes));
1240 gdb_printf (file,
1241 "gdbarch_dump: stap_register_indirection_suffixes = %s\n",
1242 pstring_list (gdbarch->stap_register_indirection_suffixes));
1243 gdb_printf (file,
1244 "gdbarch_dump: stap_gdb_register_prefix = %s\n",
1245 pstring (gdbarch->stap_gdb_register_prefix));
1246 gdb_printf (file,
1247 "gdbarch_dump: stap_gdb_register_suffix = %s\n",
1248 pstring (gdbarch->stap_gdb_register_suffix));
1249 gdb_printf (file,
1250 "gdbarch_dump: gdbarch_stap_is_single_operand_p() = %d\n",
1251 gdbarch_stap_is_single_operand_p (gdbarch));
1252 gdb_printf (file,
1253 "gdbarch_dump: stap_is_single_operand = <%s>\n",
1254 host_address_to_string (gdbarch->stap_is_single_operand));
1255 gdb_printf (file,
1256 "gdbarch_dump: gdbarch_stap_parse_special_token_p() = %d\n",
1257 gdbarch_stap_parse_special_token_p (gdbarch));
1258 gdb_printf (file,
1259 "gdbarch_dump: stap_parse_special_token = <%s>\n",
1260 host_address_to_string (gdbarch->stap_parse_special_token));
1261 gdb_printf (file,
1262 "gdbarch_dump: gdbarch_stap_adjust_register_p() = %d\n",
1263 gdbarch_stap_adjust_register_p (gdbarch));
1264 gdb_printf (file,
1265 "gdbarch_dump: stap_adjust_register = <%s>\n",
1266 host_address_to_string (gdbarch->stap_adjust_register));
1267 gdb_printf (file,
1268 "gdbarch_dump: gdbarch_dtrace_parse_probe_argument_p() = %d\n",
1269 gdbarch_dtrace_parse_probe_argument_p (gdbarch));
1270 gdb_printf (file,
1271 "gdbarch_dump: dtrace_parse_probe_argument = <%s>\n",
1272 host_address_to_string (gdbarch->dtrace_parse_probe_argument));
1273 gdb_printf (file,
1274 "gdbarch_dump: gdbarch_dtrace_probe_is_enabled_p() = %d\n",
1275 gdbarch_dtrace_probe_is_enabled_p (gdbarch));
1276 gdb_printf (file,
1277 "gdbarch_dump: dtrace_probe_is_enabled = <%s>\n",
1278 host_address_to_string (gdbarch->dtrace_probe_is_enabled));
1279 gdb_printf (file,
1280 "gdbarch_dump: gdbarch_dtrace_enable_probe_p() = %d\n",
1281 gdbarch_dtrace_enable_probe_p (gdbarch));
1282 gdb_printf (file,
1283 "gdbarch_dump: dtrace_enable_probe = <%s>\n",
1284 host_address_to_string (gdbarch->dtrace_enable_probe));
1285 gdb_printf (file,
1286 "gdbarch_dump: gdbarch_dtrace_disable_probe_p() = %d\n",
1287 gdbarch_dtrace_disable_probe_p (gdbarch));
1288 gdb_printf (file,
1289 "gdbarch_dump: dtrace_disable_probe = <%s>\n",
1290 host_address_to_string (gdbarch->dtrace_disable_probe));
1291 gdb_printf (file,
1292 "gdbarch_dump: has_global_solist = %s\n",
1293 plongest (gdbarch->has_global_solist));
1294 gdb_printf (file,
1295 "gdbarch_dump: has_global_breakpoints = %s\n",
1296 plongest (gdbarch->has_global_breakpoints));
1297 gdb_printf (file,
1298 "gdbarch_dump: has_shared_address_space = <%s>\n",
1299 host_address_to_string (gdbarch->has_shared_address_space));
1300 gdb_printf (file,
1301 "gdbarch_dump: fast_tracepoint_valid_at = <%s>\n",
1302 host_address_to_string (gdbarch->fast_tracepoint_valid_at));
1303 gdb_printf (file,
1304 "gdbarch_dump: guess_tracepoint_registers = <%s>\n",
1305 host_address_to_string (gdbarch->guess_tracepoint_registers));
1306 gdb_printf (file,
1307 "gdbarch_dump: auto_charset = <%s>\n",
1308 host_address_to_string (gdbarch->auto_charset));
1309 gdb_printf (file,
1310 "gdbarch_dump: auto_wide_charset = <%s>\n",
1311 host_address_to_string (gdbarch->auto_wide_charset));
1312 gdb_printf (file,
1313 "gdbarch_dump: solib_symbols_extension = %s\n",
1314 pstring (gdbarch->solib_symbols_extension));
1315 gdb_printf (file,
1316 "gdbarch_dump: has_dos_based_file_system = %s\n",
1317 plongest (gdbarch->has_dos_based_file_system));
1318 gdb_printf (file,
1319 "gdbarch_dump: gen_return_address = <%s>\n",
1320 host_address_to_string (gdbarch->gen_return_address));
1321 gdb_printf (file,
1322 "gdbarch_dump: gdbarch_info_proc_p() = %d\n",
1323 gdbarch_info_proc_p (gdbarch));
1324 gdb_printf (file,
1325 "gdbarch_dump: info_proc = <%s>\n",
1326 host_address_to_string (gdbarch->info_proc));
1327 gdb_printf (file,
1328 "gdbarch_dump: gdbarch_core_info_proc_p() = %d\n",
1329 gdbarch_core_info_proc_p (gdbarch));
1330 gdb_printf (file,
1331 "gdbarch_dump: core_info_proc = <%s>\n",
1332 host_address_to_string (gdbarch->core_info_proc));
1333 gdb_printf (file,
1334 "gdbarch_dump: iterate_over_objfiles_in_search_order = <%s>\n",
1335 host_address_to_string (gdbarch->iterate_over_objfiles_in_search_order));
1336 gdb_printf (file,
1337 "gdbarch_dump: ravenscar_ops = %s\n",
1338 host_address_to_string (gdbarch->ravenscar_ops));
1339 gdb_printf (file,
1340 "gdbarch_dump: insn_is_call = <%s>\n",
1341 host_address_to_string (gdbarch->insn_is_call));
1342 gdb_printf (file,
1343 "gdbarch_dump: insn_is_ret = <%s>\n",
1344 host_address_to_string (gdbarch->insn_is_ret));
1345 gdb_printf (file,
1346 "gdbarch_dump: insn_is_jump = <%s>\n",
1347 host_address_to_string (gdbarch->insn_is_jump));
1348 gdb_printf (file,
1349 "gdbarch_dump: program_breakpoint_here_p = <%s>\n",
1350 host_address_to_string (gdbarch->program_breakpoint_here_p));
1351 gdb_printf (file,
1352 "gdbarch_dump: gdbarch_auxv_parse_p() = %d\n",
1353 gdbarch_auxv_parse_p (gdbarch));
1354 gdb_printf (file,
1355 "gdbarch_dump: auxv_parse = <%s>\n",
1356 host_address_to_string (gdbarch->auxv_parse));
1357 gdb_printf (file,
1358 "gdbarch_dump: print_auxv_entry = <%s>\n",
1359 host_address_to_string (gdbarch->print_auxv_entry));
1360 gdb_printf (file,
1361 "gdbarch_dump: vsyscall_range = <%s>\n",
1362 host_address_to_string (gdbarch->vsyscall_range));
1363 gdb_printf (file,
1364 "gdbarch_dump: infcall_mmap = <%s>\n",
1365 host_address_to_string (gdbarch->infcall_mmap));
1366 gdb_printf (file,
1367 "gdbarch_dump: infcall_munmap = <%s>\n",
1368 host_address_to_string (gdbarch->infcall_munmap));
1369 gdb_printf (file,
1370 "gdbarch_dump: gcc_target_options = <%s>\n",
1371 host_address_to_string (gdbarch->gcc_target_options));
1372 gdb_printf (file,
1373 "gdbarch_dump: gnu_triplet_regexp = <%s>\n",
1374 host_address_to_string (gdbarch->gnu_triplet_regexp));
1375 gdb_printf (file,
1376 "gdbarch_dump: addressable_memory_unit_size = <%s>\n",
1377 host_address_to_string (gdbarch->addressable_memory_unit_size));
1378 gdb_printf (file,
1379 "gdbarch_dump: disassembler_options_implicit = %s\n",
1380 pstring (gdbarch->disassembler_options_implicit));
1381 gdb_printf (file,
1382 "gdbarch_dump: disassembler_options = %s\n",
1383 pstring_ptr (gdbarch->disassembler_options));
1384 gdb_printf (file,
1385 "gdbarch_dump: valid_disassembler_options = %s\n",
1386 host_address_to_string (gdbarch->valid_disassembler_options));
1387 gdb_printf (file,
1388 "gdbarch_dump: type_align = <%s>\n",
1389 host_address_to_string (gdbarch->type_align));
1390 gdb_printf (file,
1391 "gdbarch_dump: get_pc_address_flags = <%s>\n",
1392 host_address_to_string (gdbarch->get_pc_address_flags));
1393 gdb_printf (file,
1394 "gdbarch_dump: read_core_file_mappings = <%s>\n",
1395 host_address_to_string (gdbarch->read_core_file_mappings));
1396 gdb_printf (file,
1397 "gdbarch_dump: use_target_description_from_corefile_notes = <%s>\n",
1398 host_address_to_string (gdbarch->use_target_description_from_corefile_notes));
1399 if (gdbarch->dump_tdep != NULL)
1400 gdbarch->dump_tdep (gdbarch, file);
1404 const struct bfd_arch_info *
1405 gdbarch_bfd_arch_info (struct gdbarch *gdbarch)
1407 gdb_assert (gdbarch != NULL);
1408 if (gdbarch_debug >= 2)
1409 gdb_printf (gdb_stdlog, "gdbarch_bfd_arch_info called\n");
1410 return gdbarch->bfd_arch_info;
1413 enum bfd_endian
1414 gdbarch_byte_order (struct gdbarch *gdbarch)
1416 gdb_assert (gdbarch != NULL);
1417 if (gdbarch_debug >= 2)
1418 gdb_printf (gdb_stdlog, "gdbarch_byte_order called\n");
1419 return gdbarch->byte_order;
1422 enum bfd_endian
1423 gdbarch_byte_order_for_code (struct gdbarch *gdbarch)
1425 gdb_assert (gdbarch != NULL);
1426 if (gdbarch_debug >= 2)
1427 gdb_printf (gdb_stdlog, "gdbarch_byte_order_for_code called\n");
1428 return gdbarch->byte_order_for_code;
1431 enum gdb_osabi
1432 gdbarch_osabi (struct gdbarch *gdbarch)
1434 gdb_assert (gdbarch != NULL);
1435 if (gdbarch_debug >= 2)
1436 gdb_printf (gdb_stdlog, "gdbarch_osabi called\n");
1437 return gdbarch->osabi;
1440 const struct target_desc *
1441 gdbarch_target_desc (struct gdbarch *gdbarch)
1443 gdb_assert (gdbarch != NULL);
1444 if (gdbarch_debug >= 2)
1445 gdb_printf (gdb_stdlog, "gdbarch_target_desc called\n");
1446 return gdbarch->target_desc;
1450 gdbarch_short_bit (struct gdbarch *gdbarch)
1452 gdb_assert (gdbarch != NULL);
1453 /* Skip verify of short_bit, invalid_p == 0. */
1454 if (gdbarch_debug >= 2)
1455 gdb_printf (gdb_stdlog, "gdbarch_short_bit called\n");
1456 return gdbarch->short_bit;
1459 void
1460 set_gdbarch_short_bit (struct gdbarch *gdbarch,
1461 int short_bit)
1463 gdbarch->short_bit = short_bit;
1467 gdbarch_int_bit (struct gdbarch *gdbarch)
1469 gdb_assert (gdbarch != NULL);
1470 /* Skip verify of int_bit, invalid_p == 0. */
1471 if (gdbarch_debug >= 2)
1472 gdb_printf (gdb_stdlog, "gdbarch_int_bit called\n");
1473 return gdbarch->int_bit;
1476 void
1477 set_gdbarch_int_bit (struct gdbarch *gdbarch,
1478 int int_bit)
1480 gdbarch->int_bit = int_bit;
1484 gdbarch_long_bit (struct gdbarch *gdbarch)
1486 gdb_assert (gdbarch != NULL);
1487 /* Skip verify of long_bit, invalid_p == 0. */
1488 if (gdbarch_debug >= 2)
1489 gdb_printf (gdb_stdlog, "gdbarch_long_bit called\n");
1490 return gdbarch->long_bit;
1493 void
1494 set_gdbarch_long_bit (struct gdbarch *gdbarch,
1495 int long_bit)
1497 gdbarch->long_bit = long_bit;
1501 gdbarch_long_long_bit (struct gdbarch *gdbarch)
1503 gdb_assert (gdbarch != NULL);
1504 /* Skip verify of long_long_bit, invalid_p == 0. */
1505 if (gdbarch_debug >= 2)
1506 gdb_printf (gdb_stdlog, "gdbarch_long_long_bit called\n");
1507 return gdbarch->long_long_bit;
1510 void
1511 set_gdbarch_long_long_bit (struct gdbarch *gdbarch,
1512 int long_long_bit)
1514 gdbarch->long_long_bit = long_long_bit;
1518 gdbarch_bfloat16_bit (struct gdbarch *gdbarch)
1520 gdb_assert (gdbarch != NULL);
1521 /* Skip verify of bfloat16_bit, invalid_p == 0. */
1522 if (gdbarch_debug >= 2)
1523 gdb_printf (gdb_stdlog, "gdbarch_bfloat16_bit called\n");
1524 return gdbarch->bfloat16_bit;
1527 void
1528 set_gdbarch_bfloat16_bit (struct gdbarch *gdbarch,
1529 int bfloat16_bit)
1531 gdbarch->bfloat16_bit = bfloat16_bit;
1534 const struct floatformat **
1535 gdbarch_bfloat16_format (struct gdbarch *gdbarch)
1537 gdb_assert (gdbarch != NULL);
1538 /* Skip verify of bfloat16_format, invalid_p == 0. */
1539 if (gdbarch_debug >= 2)
1540 gdb_printf (gdb_stdlog, "gdbarch_bfloat16_format called\n");
1541 return gdbarch->bfloat16_format;
1544 void
1545 set_gdbarch_bfloat16_format (struct gdbarch *gdbarch,
1546 const struct floatformat ** bfloat16_format)
1548 gdbarch->bfloat16_format = bfloat16_format;
1552 gdbarch_half_bit (struct gdbarch *gdbarch)
1554 gdb_assert (gdbarch != NULL);
1555 /* Skip verify of half_bit, invalid_p == 0. */
1556 if (gdbarch_debug >= 2)
1557 gdb_printf (gdb_stdlog, "gdbarch_half_bit called\n");
1558 return gdbarch->half_bit;
1561 void
1562 set_gdbarch_half_bit (struct gdbarch *gdbarch,
1563 int half_bit)
1565 gdbarch->half_bit = half_bit;
1568 const struct floatformat **
1569 gdbarch_half_format (struct gdbarch *gdbarch)
1571 gdb_assert (gdbarch != NULL);
1572 /* Skip verify of half_format, invalid_p == 0. */
1573 if (gdbarch_debug >= 2)
1574 gdb_printf (gdb_stdlog, "gdbarch_half_format called\n");
1575 return gdbarch->half_format;
1578 void
1579 set_gdbarch_half_format (struct gdbarch *gdbarch,
1580 const struct floatformat ** half_format)
1582 gdbarch->half_format = half_format;
1586 gdbarch_float_bit (struct gdbarch *gdbarch)
1588 gdb_assert (gdbarch != NULL);
1589 /* Skip verify of float_bit, invalid_p == 0. */
1590 if (gdbarch_debug >= 2)
1591 gdb_printf (gdb_stdlog, "gdbarch_float_bit called\n");
1592 return gdbarch->float_bit;
1595 void
1596 set_gdbarch_float_bit (struct gdbarch *gdbarch,
1597 int float_bit)
1599 gdbarch->float_bit = float_bit;
1602 const struct floatformat **
1603 gdbarch_float_format (struct gdbarch *gdbarch)
1605 gdb_assert (gdbarch != NULL);
1606 /* Skip verify of float_format, invalid_p == 0. */
1607 if (gdbarch_debug >= 2)
1608 gdb_printf (gdb_stdlog, "gdbarch_float_format called\n");
1609 return gdbarch->float_format;
1612 void
1613 set_gdbarch_float_format (struct gdbarch *gdbarch,
1614 const struct floatformat ** float_format)
1616 gdbarch->float_format = float_format;
1620 gdbarch_double_bit (struct gdbarch *gdbarch)
1622 gdb_assert (gdbarch != NULL);
1623 /* Skip verify of double_bit, invalid_p == 0. */
1624 if (gdbarch_debug >= 2)
1625 gdb_printf (gdb_stdlog, "gdbarch_double_bit called\n");
1626 return gdbarch->double_bit;
1629 void
1630 set_gdbarch_double_bit (struct gdbarch *gdbarch,
1631 int double_bit)
1633 gdbarch->double_bit = double_bit;
1636 const struct floatformat **
1637 gdbarch_double_format (struct gdbarch *gdbarch)
1639 gdb_assert (gdbarch != NULL);
1640 /* Skip verify of double_format, invalid_p == 0. */
1641 if (gdbarch_debug >= 2)
1642 gdb_printf (gdb_stdlog, "gdbarch_double_format called\n");
1643 return gdbarch->double_format;
1646 void
1647 set_gdbarch_double_format (struct gdbarch *gdbarch,
1648 const struct floatformat ** double_format)
1650 gdbarch->double_format = double_format;
1654 gdbarch_long_double_bit (struct gdbarch *gdbarch)
1656 gdb_assert (gdbarch != NULL);
1657 /* Skip verify of long_double_bit, invalid_p == 0. */
1658 if (gdbarch_debug >= 2)
1659 gdb_printf (gdb_stdlog, "gdbarch_long_double_bit called\n");
1660 return gdbarch->long_double_bit;
1663 void
1664 set_gdbarch_long_double_bit (struct gdbarch *gdbarch,
1665 int long_double_bit)
1667 gdbarch->long_double_bit = long_double_bit;
1670 const struct floatformat **
1671 gdbarch_long_double_format (struct gdbarch *gdbarch)
1673 gdb_assert (gdbarch != NULL);
1674 /* Skip verify of long_double_format, invalid_p == 0. */
1675 if (gdbarch_debug >= 2)
1676 gdb_printf (gdb_stdlog, "gdbarch_long_double_format called\n");
1677 return gdbarch->long_double_format;
1680 void
1681 set_gdbarch_long_double_format (struct gdbarch *gdbarch,
1682 const struct floatformat ** long_double_format)
1684 gdbarch->long_double_format = long_double_format;
1688 gdbarch_wchar_bit (struct gdbarch *gdbarch)
1690 gdb_assert (gdbarch != NULL);
1691 /* Skip verify of wchar_bit, invalid_p == 0. */
1692 if (gdbarch_debug >= 2)
1693 gdb_printf (gdb_stdlog, "gdbarch_wchar_bit called\n");
1694 return gdbarch->wchar_bit;
1697 void
1698 set_gdbarch_wchar_bit (struct gdbarch *gdbarch,
1699 int wchar_bit)
1701 gdbarch->wchar_bit = wchar_bit;
1705 gdbarch_wchar_signed (struct gdbarch *gdbarch)
1707 gdb_assert (gdbarch != NULL);
1708 /* Check variable changed from its initial value. */
1709 gdb_assert (gdbarch->wchar_signed != -1);
1710 if (gdbarch_debug >= 2)
1711 gdb_printf (gdb_stdlog, "gdbarch_wchar_signed called\n");
1712 return gdbarch->wchar_signed;
1715 void
1716 set_gdbarch_wchar_signed (struct gdbarch *gdbarch,
1717 int wchar_signed)
1719 gdbarch->wchar_signed = wchar_signed;
1722 const struct floatformat **
1723 gdbarch_floatformat_for_type (struct gdbarch *gdbarch, const char *name, int length)
1725 gdb_assert (gdbarch != NULL);
1726 gdb_assert (gdbarch->floatformat_for_type != NULL);
1727 if (gdbarch_debug >= 2)
1728 gdb_printf (gdb_stdlog, "gdbarch_floatformat_for_type called\n");
1729 return gdbarch->floatformat_for_type (gdbarch, name, length);
1732 void
1733 set_gdbarch_floatformat_for_type (struct gdbarch *gdbarch,
1734 gdbarch_floatformat_for_type_ftype floatformat_for_type)
1736 gdbarch->floatformat_for_type = floatformat_for_type;
1740 gdbarch_ptr_bit (struct gdbarch *gdbarch)
1742 gdb_assert (gdbarch != NULL);
1743 /* Skip verify of ptr_bit, invalid_p == 0. */
1744 if (gdbarch_debug >= 2)
1745 gdb_printf (gdb_stdlog, "gdbarch_ptr_bit called\n");
1746 return gdbarch->ptr_bit;
1749 void
1750 set_gdbarch_ptr_bit (struct gdbarch *gdbarch,
1751 int ptr_bit)
1753 gdbarch->ptr_bit = ptr_bit;
1757 gdbarch_addr_bit (struct gdbarch *gdbarch)
1759 gdb_assert (gdbarch != NULL);
1760 /* Check variable changed from its initial value. */
1761 gdb_assert (gdbarch->addr_bit != 0);
1762 if (gdbarch_debug >= 2)
1763 gdb_printf (gdb_stdlog, "gdbarch_addr_bit called\n");
1764 return gdbarch->addr_bit;
1767 void
1768 set_gdbarch_addr_bit (struct gdbarch *gdbarch,
1769 int addr_bit)
1771 gdbarch->addr_bit = addr_bit;
1775 gdbarch_dwarf2_addr_size (struct gdbarch *gdbarch)
1777 gdb_assert (gdbarch != NULL);
1778 /* Check variable changed from its initial value. */
1779 gdb_assert (gdbarch->dwarf2_addr_size != 0);
1780 if (gdbarch_debug >= 2)
1781 gdb_printf (gdb_stdlog, "gdbarch_dwarf2_addr_size called\n");
1782 return gdbarch->dwarf2_addr_size;
1785 void
1786 set_gdbarch_dwarf2_addr_size (struct gdbarch *gdbarch,
1787 int dwarf2_addr_size)
1789 gdbarch->dwarf2_addr_size = dwarf2_addr_size;
1793 gdbarch_char_signed (struct gdbarch *gdbarch)
1795 gdb_assert (gdbarch != NULL);
1796 /* Check variable changed from its initial value. */
1797 gdb_assert (gdbarch->char_signed != -1);
1798 if (gdbarch_debug >= 2)
1799 gdb_printf (gdb_stdlog, "gdbarch_char_signed called\n");
1800 return gdbarch->char_signed;
1803 void
1804 set_gdbarch_char_signed (struct gdbarch *gdbarch,
1805 int char_signed)
1807 gdbarch->char_signed = char_signed;
1810 bool
1811 gdbarch_read_pc_p (struct gdbarch *gdbarch)
1813 gdb_assert (gdbarch != NULL);
1814 return gdbarch->read_pc != NULL;
1817 CORE_ADDR
1818 gdbarch_read_pc (struct gdbarch *gdbarch, readable_regcache *regcache)
1820 gdb_assert (gdbarch != NULL);
1821 gdb_assert (gdbarch->read_pc != NULL);
1822 if (gdbarch_debug >= 2)
1823 gdb_printf (gdb_stdlog, "gdbarch_read_pc called\n");
1824 return gdbarch->read_pc (regcache);
1827 void
1828 set_gdbarch_read_pc (struct gdbarch *gdbarch,
1829 gdbarch_read_pc_ftype read_pc)
1831 gdbarch->read_pc = read_pc;
1834 bool
1835 gdbarch_write_pc_p (struct gdbarch *gdbarch)
1837 gdb_assert (gdbarch != NULL);
1838 return gdbarch->write_pc != NULL;
1841 void
1842 gdbarch_write_pc (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR val)
1844 gdb_assert (gdbarch != NULL);
1845 gdb_assert (gdbarch->write_pc != NULL);
1846 if (gdbarch_debug >= 2)
1847 gdb_printf (gdb_stdlog, "gdbarch_write_pc called\n");
1848 gdbarch->write_pc (regcache, val);
1851 void
1852 set_gdbarch_write_pc (struct gdbarch *gdbarch,
1853 gdbarch_write_pc_ftype write_pc)
1855 gdbarch->write_pc = write_pc;
1858 void
1859 gdbarch_virtual_frame_pointer (struct gdbarch *gdbarch, CORE_ADDR pc, int *frame_regnum, LONGEST *frame_offset)
1861 gdb_assert (gdbarch != NULL);
1862 gdb_assert (gdbarch->virtual_frame_pointer != NULL);
1863 if (gdbarch_debug >= 2)
1864 gdb_printf (gdb_stdlog, "gdbarch_virtual_frame_pointer called\n");
1865 gdbarch->virtual_frame_pointer (gdbarch, pc, frame_regnum, frame_offset);
1868 void
1869 set_gdbarch_virtual_frame_pointer (struct gdbarch *gdbarch,
1870 gdbarch_virtual_frame_pointer_ftype virtual_frame_pointer)
1872 gdbarch->virtual_frame_pointer = virtual_frame_pointer;
1875 bool
1876 gdbarch_pseudo_register_read_p (struct gdbarch *gdbarch)
1878 gdb_assert (gdbarch != NULL);
1879 return gdbarch->pseudo_register_read != NULL;
1882 enum register_status
1883 gdbarch_pseudo_register_read (struct gdbarch *gdbarch, readable_regcache *regcache, int cookednum, gdb_byte *buf)
1885 gdb_assert (gdbarch != NULL);
1886 gdb_assert (gdbarch->pseudo_register_read != NULL);
1887 if (gdbarch_debug >= 2)
1888 gdb_printf (gdb_stdlog, "gdbarch_pseudo_register_read called\n");
1889 return gdbarch->pseudo_register_read (gdbarch, regcache, cookednum, buf);
1892 void
1893 set_gdbarch_pseudo_register_read (struct gdbarch *gdbarch,
1894 gdbarch_pseudo_register_read_ftype pseudo_register_read)
1896 gdbarch->pseudo_register_read = pseudo_register_read;
1899 bool
1900 gdbarch_pseudo_register_read_value_p (struct gdbarch *gdbarch)
1902 gdb_assert (gdbarch != NULL);
1903 return gdbarch->pseudo_register_read_value != NULL;
1906 struct value *
1907 gdbarch_pseudo_register_read_value (struct gdbarch *gdbarch, const frame_info_ptr &next_frame, int cookednum)
1909 gdb_assert (gdbarch != NULL);
1910 gdb_assert (gdbarch->pseudo_register_read_value != NULL);
1911 if (gdbarch_debug >= 2)
1912 gdb_printf (gdb_stdlog, "gdbarch_pseudo_register_read_value called\n");
1913 return gdbarch->pseudo_register_read_value (gdbarch, next_frame, cookednum);
1916 void
1917 set_gdbarch_pseudo_register_read_value (struct gdbarch *gdbarch,
1918 gdbarch_pseudo_register_read_value_ftype pseudo_register_read_value)
1920 gdbarch->pseudo_register_read_value = pseudo_register_read_value;
1923 bool
1924 gdbarch_pseudo_register_write_p (struct gdbarch *gdbarch)
1926 gdb_assert (gdbarch != NULL);
1927 return gdbarch->pseudo_register_write != NULL;
1930 void
1931 gdbarch_pseudo_register_write (struct gdbarch *gdbarch, const frame_info_ptr &next_frame, int pseudo_reg_num, gdb::array_view<const gdb_byte> buf)
1933 gdb_assert (gdbarch != NULL);
1934 gdb_assert (gdbarch->pseudo_register_write != NULL);
1935 if (gdbarch_debug >= 2)
1936 gdb_printf (gdb_stdlog, "gdbarch_pseudo_register_write called\n");
1937 gdbarch->pseudo_register_write (gdbarch, next_frame, pseudo_reg_num, buf);
1940 void
1941 set_gdbarch_pseudo_register_write (struct gdbarch *gdbarch,
1942 gdbarch_pseudo_register_write_ftype pseudo_register_write)
1944 gdbarch->pseudo_register_write = pseudo_register_write;
1947 bool
1948 gdbarch_deprecated_pseudo_register_write_p (struct gdbarch *gdbarch)
1950 gdb_assert (gdbarch != NULL);
1951 return gdbarch->deprecated_pseudo_register_write != NULL;
1954 void
1955 gdbarch_deprecated_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, int cookednum, const gdb_byte *buf)
1957 gdb_assert (gdbarch != NULL);
1958 gdb_assert (gdbarch->deprecated_pseudo_register_write != NULL);
1959 if (gdbarch_debug >= 2)
1960 gdb_printf (gdb_stdlog, "gdbarch_deprecated_pseudo_register_write called\n");
1961 gdbarch->deprecated_pseudo_register_write (gdbarch, regcache, cookednum, buf);
1964 void
1965 set_gdbarch_deprecated_pseudo_register_write (struct gdbarch *gdbarch,
1966 gdbarch_deprecated_pseudo_register_write_ftype deprecated_pseudo_register_write)
1968 gdbarch->deprecated_pseudo_register_write = deprecated_pseudo_register_write;
1972 gdbarch_num_regs (struct gdbarch *gdbarch)
1974 gdb_assert (gdbarch != NULL);
1975 /* Check variable changed from its initial value. */
1976 gdb_assert (gdbarch->num_regs != -1);
1977 if (gdbarch_debug >= 2)
1978 gdb_printf (gdb_stdlog, "gdbarch_num_regs called\n");
1979 return gdbarch->num_regs;
1982 void
1983 set_gdbarch_num_regs (struct gdbarch *gdbarch,
1984 int num_regs)
1986 gdbarch->num_regs = num_regs;
1990 gdbarch_num_pseudo_regs (struct gdbarch *gdbarch)
1992 gdb_assert (gdbarch != NULL);
1993 /* Skip verify of num_pseudo_regs, invalid_p == 0. */
1994 if (gdbarch_debug >= 2)
1995 gdb_printf (gdb_stdlog, "gdbarch_num_pseudo_regs called\n");
1996 return gdbarch->num_pseudo_regs;
1999 void
2000 set_gdbarch_num_pseudo_regs (struct gdbarch *gdbarch,
2001 int num_pseudo_regs)
2003 gdbarch->num_pseudo_regs = num_pseudo_regs;
2006 bool
2007 gdbarch_ax_pseudo_register_collect_p (struct gdbarch *gdbarch)
2009 gdb_assert (gdbarch != NULL);
2010 return gdbarch->ax_pseudo_register_collect != NULL;
2014 gdbarch_ax_pseudo_register_collect (struct gdbarch *gdbarch, struct agent_expr *ax, int reg)
2016 gdb_assert (gdbarch != NULL);
2017 gdb_assert (gdbarch->ax_pseudo_register_collect != NULL);
2018 if (gdbarch_debug >= 2)
2019 gdb_printf (gdb_stdlog, "gdbarch_ax_pseudo_register_collect called\n");
2020 return gdbarch->ax_pseudo_register_collect (gdbarch, ax, reg);
2023 void
2024 set_gdbarch_ax_pseudo_register_collect (struct gdbarch *gdbarch,
2025 gdbarch_ax_pseudo_register_collect_ftype ax_pseudo_register_collect)
2027 gdbarch->ax_pseudo_register_collect = ax_pseudo_register_collect;
2030 bool
2031 gdbarch_ax_pseudo_register_push_stack_p (struct gdbarch *gdbarch)
2033 gdb_assert (gdbarch != NULL);
2034 return gdbarch->ax_pseudo_register_push_stack != NULL;
2038 gdbarch_ax_pseudo_register_push_stack (struct gdbarch *gdbarch, struct agent_expr *ax, int reg)
2040 gdb_assert (gdbarch != NULL);
2041 gdb_assert (gdbarch->ax_pseudo_register_push_stack != NULL);
2042 if (gdbarch_debug >= 2)
2043 gdb_printf (gdb_stdlog, "gdbarch_ax_pseudo_register_push_stack called\n");
2044 return gdbarch->ax_pseudo_register_push_stack (gdbarch, ax, reg);
2047 void
2048 set_gdbarch_ax_pseudo_register_push_stack (struct gdbarch *gdbarch,
2049 gdbarch_ax_pseudo_register_push_stack_ftype ax_pseudo_register_push_stack)
2051 gdbarch->ax_pseudo_register_push_stack = ax_pseudo_register_push_stack;
2054 bool
2055 gdbarch_report_signal_info_p (struct gdbarch *gdbarch)
2057 gdb_assert (gdbarch != NULL);
2058 return gdbarch->report_signal_info != NULL;
2061 void
2062 gdbarch_report_signal_info (struct gdbarch *gdbarch, struct ui_out *uiout, enum gdb_signal siggnal)
2064 gdb_assert (gdbarch != NULL);
2065 gdb_assert (gdbarch->report_signal_info != NULL);
2066 if (gdbarch_debug >= 2)
2067 gdb_printf (gdb_stdlog, "gdbarch_report_signal_info called\n");
2068 gdbarch->report_signal_info (gdbarch, uiout, siggnal);
2071 void
2072 set_gdbarch_report_signal_info (struct gdbarch *gdbarch,
2073 gdbarch_report_signal_info_ftype report_signal_info)
2075 gdbarch->report_signal_info = report_signal_info;
2079 gdbarch_sp_regnum (struct gdbarch *gdbarch)
2081 gdb_assert (gdbarch != NULL);
2082 /* Skip verify of sp_regnum, invalid_p == 0. */
2083 if (gdbarch_debug >= 2)
2084 gdb_printf (gdb_stdlog, "gdbarch_sp_regnum called\n");
2085 return gdbarch->sp_regnum;
2088 void
2089 set_gdbarch_sp_regnum (struct gdbarch *gdbarch,
2090 int sp_regnum)
2092 gdbarch->sp_regnum = sp_regnum;
2096 gdbarch_pc_regnum (struct gdbarch *gdbarch)
2098 gdb_assert (gdbarch != NULL);
2099 /* Skip verify of pc_regnum, invalid_p == 0. */
2100 if (gdbarch_debug >= 2)
2101 gdb_printf (gdb_stdlog, "gdbarch_pc_regnum called\n");
2102 return gdbarch->pc_regnum;
2105 void
2106 set_gdbarch_pc_regnum (struct gdbarch *gdbarch,
2107 int pc_regnum)
2109 gdbarch->pc_regnum = pc_regnum;
2113 gdbarch_ps_regnum (struct gdbarch *gdbarch)
2115 gdb_assert (gdbarch != NULL);
2116 /* Skip verify of ps_regnum, invalid_p == 0. */
2117 if (gdbarch_debug >= 2)
2118 gdb_printf (gdb_stdlog, "gdbarch_ps_regnum called\n");
2119 return gdbarch->ps_regnum;
2122 void
2123 set_gdbarch_ps_regnum (struct gdbarch *gdbarch,
2124 int ps_regnum)
2126 gdbarch->ps_regnum = ps_regnum;
2130 gdbarch_fp0_regnum (struct gdbarch *gdbarch)
2132 gdb_assert (gdbarch != NULL);
2133 /* Skip verify of fp0_regnum, invalid_p == 0. */
2134 if (gdbarch_debug >= 2)
2135 gdb_printf (gdb_stdlog, "gdbarch_fp0_regnum called\n");
2136 return gdbarch->fp0_regnum;
2139 void
2140 set_gdbarch_fp0_regnum (struct gdbarch *gdbarch,
2141 int fp0_regnum)
2143 gdbarch->fp0_regnum = fp0_regnum;
2147 gdbarch_stab_reg_to_regnum (struct gdbarch *gdbarch, int stab_regnr)
2149 gdb_assert (gdbarch != NULL);
2150 gdb_assert (gdbarch->stab_reg_to_regnum != NULL);
2151 if (gdbarch_debug >= 2)
2152 gdb_printf (gdb_stdlog, "gdbarch_stab_reg_to_regnum called\n");
2153 return gdbarch->stab_reg_to_regnum (gdbarch, stab_regnr);
2156 void
2157 set_gdbarch_stab_reg_to_regnum (struct gdbarch *gdbarch,
2158 gdbarch_stab_reg_to_regnum_ftype stab_reg_to_regnum)
2160 gdbarch->stab_reg_to_regnum = stab_reg_to_regnum;
2164 gdbarch_ecoff_reg_to_regnum (struct gdbarch *gdbarch, int ecoff_regnr)
2166 gdb_assert (gdbarch != NULL);
2167 gdb_assert (gdbarch->ecoff_reg_to_regnum != NULL);
2168 if (gdbarch_debug >= 2)
2169 gdb_printf (gdb_stdlog, "gdbarch_ecoff_reg_to_regnum called\n");
2170 return gdbarch->ecoff_reg_to_regnum (gdbarch, ecoff_regnr);
2173 void
2174 set_gdbarch_ecoff_reg_to_regnum (struct gdbarch *gdbarch,
2175 gdbarch_ecoff_reg_to_regnum_ftype ecoff_reg_to_regnum)
2177 gdbarch->ecoff_reg_to_regnum = ecoff_reg_to_regnum;
2181 gdbarch_sdb_reg_to_regnum (struct gdbarch *gdbarch, int sdb_regnr)
2183 gdb_assert (gdbarch != NULL);
2184 gdb_assert (gdbarch->sdb_reg_to_regnum != NULL);
2185 if (gdbarch_debug >= 2)
2186 gdb_printf (gdb_stdlog, "gdbarch_sdb_reg_to_regnum called\n");
2187 return gdbarch->sdb_reg_to_regnum (gdbarch, sdb_regnr);
2190 void
2191 set_gdbarch_sdb_reg_to_regnum (struct gdbarch *gdbarch,
2192 gdbarch_sdb_reg_to_regnum_ftype sdb_reg_to_regnum)
2194 gdbarch->sdb_reg_to_regnum = sdb_reg_to_regnum;
2198 gdbarch_dwarf2_reg_to_regnum (struct gdbarch *gdbarch, int dwarf2_regnr)
2200 gdb_assert (gdbarch != NULL);
2201 gdb_assert (gdbarch->dwarf2_reg_to_regnum != NULL);
2202 if (gdbarch_debug >= 2)
2203 gdb_printf (gdb_stdlog, "gdbarch_dwarf2_reg_to_regnum called\n");
2204 return gdbarch->dwarf2_reg_to_regnum (gdbarch, dwarf2_regnr);
2207 void
2208 set_gdbarch_dwarf2_reg_to_regnum (struct gdbarch *gdbarch,
2209 gdbarch_dwarf2_reg_to_regnum_ftype dwarf2_reg_to_regnum)
2211 gdbarch->dwarf2_reg_to_regnum = dwarf2_reg_to_regnum;
2214 const char *
2215 gdbarch_register_name (struct gdbarch *gdbarch, int regnr)
2217 gdb_assert (gdbarch != NULL);
2218 gdb_assert (gdbarch->register_name != NULL);
2219 gdb_assert (regnr >= 0);
2220 gdb_assert (regnr < gdbarch_num_cooked_regs (gdbarch));
2221 if (gdbarch_debug >= 2)
2222 gdb_printf (gdb_stdlog, "gdbarch_register_name called\n");
2223 auto result = gdbarch->register_name (gdbarch, regnr);
2224 gdb_assert (result != nullptr);
2225 return result;
2228 void
2229 set_gdbarch_register_name (struct gdbarch *gdbarch,
2230 gdbarch_register_name_ftype register_name)
2232 gdbarch->register_name = register_name;
2235 struct type *
2236 gdbarch_register_type (struct gdbarch *gdbarch, int reg_nr)
2238 gdb_assert (gdbarch != NULL);
2239 gdb_assert (gdbarch->register_type != NULL);
2240 if (gdbarch_debug >= 2)
2241 gdb_printf (gdb_stdlog, "gdbarch_register_type called\n");
2242 return gdbarch->register_type (gdbarch, reg_nr);
2245 void
2246 set_gdbarch_register_type (struct gdbarch *gdbarch,
2247 gdbarch_register_type_ftype register_type)
2249 gdbarch->register_type = register_type;
2252 struct frame_id
2253 gdbarch_dummy_id (struct gdbarch *gdbarch, const frame_info_ptr &this_frame)
2255 gdb_assert (gdbarch != NULL);
2256 gdb_assert (gdbarch->dummy_id != NULL);
2257 if (gdbarch_debug >= 2)
2258 gdb_printf (gdb_stdlog, "gdbarch_dummy_id called\n");
2259 return gdbarch->dummy_id (gdbarch, this_frame);
2262 void
2263 set_gdbarch_dummy_id (struct gdbarch *gdbarch,
2264 gdbarch_dummy_id_ftype dummy_id)
2266 gdbarch->dummy_id = dummy_id;
2270 gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch)
2272 gdb_assert (gdbarch != NULL);
2273 /* Skip verify of deprecated_fp_regnum, invalid_p == 0. */
2274 if (gdbarch_debug >= 2)
2275 gdb_printf (gdb_stdlog, "gdbarch_deprecated_fp_regnum called\n");
2276 return gdbarch->deprecated_fp_regnum;
2279 void
2280 set_gdbarch_deprecated_fp_regnum (struct gdbarch *gdbarch,
2281 int deprecated_fp_regnum)
2283 gdbarch->deprecated_fp_regnum = deprecated_fp_regnum;
2286 bool
2287 gdbarch_push_dummy_call_p (struct gdbarch *gdbarch)
2289 gdb_assert (gdbarch != NULL);
2290 return gdbarch->push_dummy_call != NULL;
2293 CORE_ADDR
2294 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)
2296 gdb_assert (gdbarch != NULL);
2297 gdb_assert (gdbarch->push_dummy_call != NULL);
2298 if (gdbarch_debug >= 2)
2299 gdb_printf (gdb_stdlog, "gdbarch_push_dummy_call called\n");
2300 return gdbarch->push_dummy_call (gdbarch, function, regcache, bp_addr, nargs, args, sp, return_method, struct_addr);
2303 void
2304 set_gdbarch_push_dummy_call (struct gdbarch *gdbarch,
2305 gdbarch_push_dummy_call_ftype push_dummy_call)
2307 gdbarch->push_dummy_call = push_dummy_call;
2310 enum call_dummy_location_type
2311 gdbarch_call_dummy_location (struct gdbarch *gdbarch)
2313 gdb_assert (gdbarch != NULL);
2314 /* Skip verify of call_dummy_location, invalid_p == 0. */
2315 if (gdbarch_debug >= 2)
2316 gdb_printf (gdb_stdlog, "gdbarch_call_dummy_location called\n");
2317 return gdbarch->call_dummy_location;
2320 void
2321 set_gdbarch_call_dummy_location (struct gdbarch *gdbarch,
2322 enum call_dummy_location_type call_dummy_location)
2324 gdbarch->call_dummy_location = call_dummy_location;
2327 bool
2328 gdbarch_push_dummy_code_p (struct gdbarch *gdbarch)
2330 gdb_assert (gdbarch != NULL);
2331 return gdbarch->push_dummy_code != NULL;
2334 CORE_ADDR
2335 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)
2337 gdb_assert (gdbarch != NULL);
2338 gdb_assert (gdbarch->push_dummy_code != NULL);
2339 if (gdbarch_debug >= 2)
2340 gdb_printf (gdb_stdlog, "gdbarch_push_dummy_code called\n");
2341 return gdbarch->push_dummy_code (gdbarch, sp, funaddr, args, nargs, value_type, real_pc, bp_addr, regcache);
2344 void
2345 set_gdbarch_push_dummy_code (struct gdbarch *gdbarch,
2346 gdbarch_push_dummy_code_ftype push_dummy_code)
2348 gdbarch->push_dummy_code = push_dummy_code;
2352 gdbarch_code_of_frame_writable (struct gdbarch *gdbarch, const frame_info_ptr &frame)
2354 gdb_assert (gdbarch != NULL);
2355 gdb_assert (gdbarch->code_of_frame_writable != NULL);
2356 if (gdbarch_debug >= 2)
2357 gdb_printf (gdb_stdlog, "gdbarch_code_of_frame_writable called\n");
2358 return gdbarch->code_of_frame_writable (gdbarch, frame);
2361 void
2362 set_gdbarch_code_of_frame_writable (struct gdbarch *gdbarch,
2363 gdbarch_code_of_frame_writable_ftype code_of_frame_writable)
2365 gdbarch->code_of_frame_writable = code_of_frame_writable;
2368 void
2369 gdbarch_print_registers_info (struct gdbarch *gdbarch, struct ui_file *file, const frame_info_ptr &frame, int regnum, int all)
2371 gdb_assert (gdbarch != NULL);
2372 gdb_assert (gdbarch->print_registers_info != NULL);
2373 if (gdbarch_debug >= 2)
2374 gdb_printf (gdb_stdlog, "gdbarch_print_registers_info called\n");
2375 gdbarch->print_registers_info (gdbarch, file, frame, regnum, all);
2378 void
2379 set_gdbarch_print_registers_info (struct gdbarch *gdbarch,
2380 gdbarch_print_registers_info_ftype print_registers_info)
2382 gdbarch->print_registers_info = print_registers_info;
2385 void
2386 gdbarch_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, const frame_info_ptr &frame, const char *args)
2388 gdb_assert (gdbarch != NULL);
2389 gdb_assert (gdbarch->print_float_info != NULL);
2390 if (gdbarch_debug >= 2)
2391 gdb_printf (gdb_stdlog, "gdbarch_print_float_info called\n");
2392 gdbarch->print_float_info (gdbarch, file, frame, args);
2395 void
2396 set_gdbarch_print_float_info (struct gdbarch *gdbarch,
2397 gdbarch_print_float_info_ftype print_float_info)
2399 gdbarch->print_float_info = print_float_info;
2402 bool
2403 gdbarch_print_vector_info_p (struct gdbarch *gdbarch)
2405 gdb_assert (gdbarch != NULL);
2406 return gdbarch->print_vector_info != NULL;
2409 void
2410 gdbarch_print_vector_info (struct gdbarch *gdbarch, struct ui_file *file, const frame_info_ptr &frame, const char *args)
2412 gdb_assert (gdbarch != NULL);
2413 gdb_assert (gdbarch->print_vector_info != NULL);
2414 if (gdbarch_debug >= 2)
2415 gdb_printf (gdb_stdlog, "gdbarch_print_vector_info called\n");
2416 gdbarch->print_vector_info (gdbarch, file, frame, args);
2419 void
2420 set_gdbarch_print_vector_info (struct gdbarch *gdbarch,
2421 gdbarch_print_vector_info_ftype print_vector_info)
2423 gdbarch->print_vector_info = print_vector_info;
2427 gdbarch_register_sim_regno (struct gdbarch *gdbarch, int reg_nr)
2429 gdb_assert (gdbarch != NULL);
2430 gdb_assert (gdbarch->register_sim_regno != NULL);
2431 if (gdbarch_debug >= 2)
2432 gdb_printf (gdb_stdlog, "gdbarch_register_sim_regno called\n");
2433 return gdbarch->register_sim_regno (gdbarch, reg_nr);
2436 void
2437 set_gdbarch_register_sim_regno (struct gdbarch *gdbarch,
2438 gdbarch_register_sim_regno_ftype register_sim_regno)
2440 gdbarch->register_sim_regno = register_sim_regno;
2444 gdbarch_cannot_fetch_register (struct gdbarch *gdbarch, int regnum)
2446 gdb_assert (gdbarch != NULL);
2447 gdb_assert (gdbarch->cannot_fetch_register != NULL);
2448 if (gdbarch_debug >= 2)
2449 gdb_printf (gdb_stdlog, "gdbarch_cannot_fetch_register called\n");
2450 return gdbarch->cannot_fetch_register (gdbarch, regnum);
2453 void
2454 set_gdbarch_cannot_fetch_register (struct gdbarch *gdbarch,
2455 gdbarch_cannot_fetch_register_ftype cannot_fetch_register)
2457 gdbarch->cannot_fetch_register = cannot_fetch_register;
2461 gdbarch_cannot_store_register (struct gdbarch *gdbarch, int regnum)
2463 gdb_assert (gdbarch != NULL);
2464 gdb_assert (gdbarch->cannot_store_register != NULL);
2465 if (gdbarch_debug >= 2)
2466 gdb_printf (gdb_stdlog, "gdbarch_cannot_store_register called\n");
2467 return gdbarch->cannot_store_register (gdbarch, regnum);
2470 void
2471 set_gdbarch_cannot_store_register (struct gdbarch *gdbarch,
2472 gdbarch_cannot_store_register_ftype cannot_store_register)
2474 gdbarch->cannot_store_register = cannot_store_register;
2477 bool
2478 gdbarch_get_longjmp_target_p (struct gdbarch *gdbarch)
2480 gdb_assert (gdbarch != NULL);
2481 return gdbarch->get_longjmp_target != NULL;
2485 gdbarch_get_longjmp_target (struct gdbarch *gdbarch, const frame_info_ptr &frame, CORE_ADDR *pc)
2487 gdb_assert (gdbarch != NULL);
2488 gdb_assert (gdbarch->get_longjmp_target != NULL);
2489 if (gdbarch_debug >= 2)
2490 gdb_printf (gdb_stdlog, "gdbarch_get_longjmp_target called\n");
2491 return gdbarch->get_longjmp_target (frame, pc);
2494 void
2495 set_gdbarch_get_longjmp_target (struct gdbarch *gdbarch,
2496 gdbarch_get_longjmp_target_ftype get_longjmp_target)
2498 gdbarch->get_longjmp_target = get_longjmp_target;
2502 gdbarch_believe_pcc_promotion (struct gdbarch *gdbarch)
2504 gdb_assert (gdbarch != NULL);
2505 /* Skip verify of believe_pcc_promotion, invalid_p == 0. */
2506 if (gdbarch_debug >= 2)
2507 gdb_printf (gdb_stdlog, "gdbarch_believe_pcc_promotion called\n");
2508 return gdbarch->believe_pcc_promotion;
2511 void
2512 set_gdbarch_believe_pcc_promotion (struct gdbarch *gdbarch,
2513 int believe_pcc_promotion)
2515 gdbarch->believe_pcc_promotion = believe_pcc_promotion;
2519 gdbarch_convert_register_p (struct gdbarch *gdbarch, int regnum, struct type *type)
2521 gdb_assert (gdbarch != NULL);
2522 gdb_assert (gdbarch->convert_register_p != NULL);
2523 if (gdbarch_debug >= 2)
2524 gdb_printf (gdb_stdlog, "gdbarch_convert_register_p called\n");
2525 return gdbarch->convert_register_p (gdbarch, regnum, type);
2528 void
2529 set_gdbarch_convert_register_p (struct gdbarch *gdbarch,
2530 gdbarch_convert_register_p_ftype convert_register_p)
2532 gdbarch->convert_register_p = convert_register_p;
2536 gdbarch_register_to_value (struct gdbarch *gdbarch, const frame_info_ptr &frame, int regnum, struct type *type, gdb_byte *buf, int *optimizedp, int *unavailablep)
2538 gdb_assert (gdbarch != NULL);
2539 gdb_assert (gdbarch->register_to_value != NULL);
2540 if (gdbarch_debug >= 2)
2541 gdb_printf (gdb_stdlog, "gdbarch_register_to_value called\n");
2542 return gdbarch->register_to_value (frame, regnum, type, buf, optimizedp, unavailablep);
2545 void
2546 set_gdbarch_register_to_value (struct gdbarch *gdbarch,
2547 gdbarch_register_to_value_ftype register_to_value)
2549 gdbarch->register_to_value = register_to_value;
2552 void
2553 gdbarch_value_to_register (struct gdbarch *gdbarch, const frame_info_ptr &frame, int regnum, struct type *type, const gdb_byte *buf)
2555 gdb_assert (gdbarch != NULL);
2556 gdb_assert (gdbarch->value_to_register != NULL);
2557 if (gdbarch_debug >= 2)
2558 gdb_printf (gdb_stdlog, "gdbarch_value_to_register called\n");
2559 gdbarch->value_to_register (frame, regnum, type, buf);
2562 void
2563 set_gdbarch_value_to_register (struct gdbarch *gdbarch,
2564 gdbarch_value_to_register_ftype value_to_register)
2566 gdbarch->value_to_register = value_to_register;
2569 struct value *
2570 gdbarch_value_from_register (struct gdbarch *gdbarch, struct type *type, int regnum, const frame_info_ptr &this_frame)
2572 gdb_assert (gdbarch != NULL);
2573 gdb_assert (gdbarch->value_from_register != NULL);
2574 if (gdbarch_debug >= 2)
2575 gdb_printf (gdb_stdlog, "gdbarch_value_from_register called\n");
2576 return gdbarch->value_from_register (gdbarch, type, regnum, this_frame);
2579 void
2580 set_gdbarch_value_from_register (struct gdbarch *gdbarch,
2581 gdbarch_value_from_register_ftype value_from_register)
2583 gdbarch->value_from_register = value_from_register;
2586 CORE_ADDR
2587 gdbarch_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
2589 gdb_assert (gdbarch != NULL);
2590 gdb_assert (gdbarch->pointer_to_address != NULL);
2591 if (gdbarch_debug >= 2)
2592 gdb_printf (gdb_stdlog, "gdbarch_pointer_to_address called\n");
2593 return gdbarch->pointer_to_address (gdbarch, type, buf);
2596 void
2597 set_gdbarch_pointer_to_address (struct gdbarch *gdbarch,
2598 gdbarch_pointer_to_address_ftype pointer_to_address)
2600 gdbarch->pointer_to_address = pointer_to_address;
2603 void
2604 gdbarch_address_to_pointer (struct gdbarch *gdbarch, struct type *type, gdb_byte *buf, CORE_ADDR addr)
2606 gdb_assert (gdbarch != NULL);
2607 gdb_assert (gdbarch->address_to_pointer != NULL);
2608 if (gdbarch_debug >= 2)
2609 gdb_printf (gdb_stdlog, "gdbarch_address_to_pointer called\n");
2610 gdbarch->address_to_pointer (gdbarch, type, buf, addr);
2613 void
2614 set_gdbarch_address_to_pointer (struct gdbarch *gdbarch,
2615 gdbarch_address_to_pointer_ftype address_to_pointer)
2617 gdbarch->address_to_pointer = address_to_pointer;
2620 bool
2621 gdbarch_integer_to_address_p (struct gdbarch *gdbarch)
2623 gdb_assert (gdbarch != NULL);
2624 return gdbarch->integer_to_address != NULL;
2627 CORE_ADDR
2628 gdbarch_integer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
2630 gdb_assert (gdbarch != NULL);
2631 gdb_assert (gdbarch->integer_to_address != NULL);
2632 if (gdbarch_debug >= 2)
2633 gdb_printf (gdb_stdlog, "gdbarch_integer_to_address called\n");
2634 return gdbarch->integer_to_address (gdbarch, type, buf);
2637 void
2638 set_gdbarch_integer_to_address (struct gdbarch *gdbarch,
2639 gdbarch_integer_to_address_ftype integer_to_address)
2641 gdbarch->integer_to_address = integer_to_address;
2644 void
2645 set_gdbarch_return_value (struct gdbarch *gdbarch,
2646 gdbarch_return_value_ftype return_value)
2648 gdbarch->return_value = return_value;
2651 enum return_value_convention
2652 gdbarch_return_value_as_value (struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, struct value **read_value, const gdb_byte *writebuf)
2654 gdb_assert (gdbarch != NULL);
2655 gdb_assert (gdbarch->return_value_as_value != NULL);
2656 if (gdbarch_debug >= 2)
2657 gdb_printf (gdb_stdlog, "gdbarch_return_value_as_value called\n");
2658 return gdbarch->return_value_as_value (gdbarch, function, valtype, regcache, read_value, writebuf);
2661 void
2662 set_gdbarch_return_value_as_value (struct gdbarch *gdbarch,
2663 gdbarch_return_value_as_value_ftype return_value_as_value)
2665 gdbarch->return_value_as_value = return_value_as_value;
2668 CORE_ADDR
2669 gdbarch_get_return_buf_addr (struct gdbarch *gdbarch, struct type *val_type, const frame_info_ptr &cur_frame)
2671 gdb_assert (gdbarch != NULL);
2672 gdb_assert (gdbarch->get_return_buf_addr != NULL);
2673 if (gdbarch_debug >= 2)
2674 gdb_printf (gdb_stdlog, "gdbarch_get_return_buf_addr called\n");
2675 return gdbarch->get_return_buf_addr (val_type, cur_frame);
2678 void
2679 set_gdbarch_get_return_buf_addr (struct gdbarch *gdbarch,
2680 gdbarch_get_return_buf_addr_ftype get_return_buf_addr)
2682 gdbarch->get_return_buf_addr = get_return_buf_addr;
2685 bool
2686 gdbarch_dwarf2_omit_typedef_p (struct gdbarch *gdbarch, struct type *target_type, const char *producer, const char *name)
2688 gdb_assert (gdbarch != NULL);
2689 gdb_assert (gdbarch->dwarf2_omit_typedef_p != NULL);
2690 if (gdbarch_debug >= 2)
2691 gdb_printf (gdb_stdlog, "gdbarch_dwarf2_omit_typedef_p called\n");
2692 return gdbarch->dwarf2_omit_typedef_p (target_type, producer, name);
2695 void
2696 set_gdbarch_dwarf2_omit_typedef_p (struct gdbarch *gdbarch,
2697 gdbarch_dwarf2_omit_typedef_p_ftype dwarf2_omit_typedef_p)
2699 gdbarch->dwarf2_omit_typedef_p = dwarf2_omit_typedef_p;
2702 CORE_ADDR
2703 gdbarch_update_call_site_pc (struct gdbarch *gdbarch, CORE_ADDR pc)
2705 gdb_assert (gdbarch != NULL);
2706 gdb_assert (gdbarch->update_call_site_pc != NULL);
2707 if (gdbarch_debug >= 2)
2708 gdb_printf (gdb_stdlog, "gdbarch_update_call_site_pc called\n");
2709 return gdbarch->update_call_site_pc (gdbarch, pc);
2712 void
2713 set_gdbarch_update_call_site_pc (struct gdbarch *gdbarch,
2714 gdbarch_update_call_site_pc_ftype update_call_site_pc)
2716 gdbarch->update_call_site_pc = update_call_site_pc;
2720 gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch, struct type *type)
2722 gdb_assert (gdbarch != NULL);
2723 gdb_assert (gdbarch->return_in_first_hidden_param_p != NULL);
2724 if (gdbarch_debug >= 2)
2725 gdb_printf (gdb_stdlog, "gdbarch_return_in_first_hidden_param_p called\n");
2726 return gdbarch->return_in_first_hidden_param_p (gdbarch, type);
2729 void
2730 set_gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
2731 gdbarch_return_in_first_hidden_param_p_ftype return_in_first_hidden_param_p)
2733 gdbarch->return_in_first_hidden_param_p = return_in_first_hidden_param_p;
2736 CORE_ADDR
2737 gdbarch_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR ip)
2739 gdb_assert (gdbarch != NULL);
2740 gdb_assert (gdbarch->skip_prologue != NULL);
2741 if (gdbarch_debug >= 2)
2742 gdb_printf (gdb_stdlog, "gdbarch_skip_prologue called\n");
2743 return gdbarch->skip_prologue (gdbarch, ip);
2746 void
2747 set_gdbarch_skip_prologue (struct gdbarch *gdbarch,
2748 gdbarch_skip_prologue_ftype skip_prologue)
2750 gdbarch->skip_prologue = skip_prologue;
2753 bool
2754 gdbarch_skip_main_prologue_p (struct gdbarch *gdbarch)
2756 gdb_assert (gdbarch != NULL);
2757 return gdbarch->skip_main_prologue != NULL;
2760 CORE_ADDR
2761 gdbarch_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR ip)
2763 gdb_assert (gdbarch != NULL);
2764 gdb_assert (gdbarch->skip_main_prologue != NULL);
2765 if (gdbarch_debug >= 2)
2766 gdb_printf (gdb_stdlog, "gdbarch_skip_main_prologue called\n");
2767 return gdbarch->skip_main_prologue (gdbarch, ip);
2770 void
2771 set_gdbarch_skip_main_prologue (struct gdbarch *gdbarch,
2772 gdbarch_skip_main_prologue_ftype skip_main_prologue)
2774 gdbarch->skip_main_prologue = skip_main_prologue;
2777 bool
2778 gdbarch_skip_entrypoint_p (struct gdbarch *gdbarch)
2780 gdb_assert (gdbarch != NULL);
2781 return gdbarch->skip_entrypoint != NULL;
2784 CORE_ADDR
2785 gdbarch_skip_entrypoint (struct gdbarch *gdbarch, CORE_ADDR ip)
2787 gdb_assert (gdbarch != NULL);
2788 gdb_assert (gdbarch->skip_entrypoint != NULL);
2789 if (gdbarch_debug >= 2)
2790 gdb_printf (gdb_stdlog, "gdbarch_skip_entrypoint called\n");
2791 return gdbarch->skip_entrypoint (gdbarch, ip);
2794 void
2795 set_gdbarch_skip_entrypoint (struct gdbarch *gdbarch,
2796 gdbarch_skip_entrypoint_ftype skip_entrypoint)
2798 gdbarch->skip_entrypoint = skip_entrypoint;
2801 bool
2802 gdbarch_inner_than (struct gdbarch *gdbarch, CORE_ADDR lhs, CORE_ADDR rhs)
2804 gdb_assert (gdbarch != NULL);
2805 gdb_assert (gdbarch->inner_than != NULL);
2806 if (gdbarch_debug >= 2)
2807 gdb_printf (gdb_stdlog, "gdbarch_inner_than called\n");
2808 return gdbarch->inner_than (lhs, rhs);
2811 void
2812 set_gdbarch_inner_than (struct gdbarch *gdbarch,
2813 gdbarch_inner_than_ftype inner_than)
2815 gdbarch->inner_than = inner_than;
2818 const gdb_byte *
2819 gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
2821 gdb_assert (gdbarch != NULL);
2822 gdb_assert (gdbarch->breakpoint_from_pc != NULL);
2823 if (gdbarch_debug >= 2)
2824 gdb_printf (gdb_stdlog, "gdbarch_breakpoint_from_pc called\n");
2825 return gdbarch->breakpoint_from_pc (gdbarch, pcptr, lenptr);
2828 void
2829 set_gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch,
2830 gdbarch_breakpoint_from_pc_ftype breakpoint_from_pc)
2832 gdbarch->breakpoint_from_pc = breakpoint_from_pc;
2836 gdbarch_breakpoint_kind_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr)
2838 gdb_assert (gdbarch != NULL);
2839 gdb_assert (gdbarch->breakpoint_kind_from_pc != NULL);
2840 if (gdbarch_debug >= 2)
2841 gdb_printf (gdb_stdlog, "gdbarch_breakpoint_kind_from_pc called\n");
2842 return gdbarch->breakpoint_kind_from_pc (gdbarch, pcptr);
2845 void
2846 set_gdbarch_breakpoint_kind_from_pc (struct gdbarch *gdbarch,
2847 gdbarch_breakpoint_kind_from_pc_ftype breakpoint_kind_from_pc)
2849 gdbarch->breakpoint_kind_from_pc = breakpoint_kind_from_pc;
2852 const gdb_byte *
2853 gdbarch_sw_breakpoint_from_kind (struct gdbarch *gdbarch, int kind, int *size)
2855 gdb_assert (gdbarch != NULL);
2856 gdb_assert (gdbarch->sw_breakpoint_from_kind != NULL);
2857 if (gdbarch_debug >= 2)
2858 gdb_printf (gdb_stdlog, "gdbarch_sw_breakpoint_from_kind called\n");
2859 return gdbarch->sw_breakpoint_from_kind (gdbarch, kind, size);
2862 void
2863 set_gdbarch_sw_breakpoint_from_kind (struct gdbarch *gdbarch,
2864 gdbarch_sw_breakpoint_from_kind_ftype sw_breakpoint_from_kind)
2866 gdbarch->sw_breakpoint_from_kind = sw_breakpoint_from_kind;
2870 gdbarch_breakpoint_kind_from_current_state (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR *pcptr)
2872 gdb_assert (gdbarch != NULL);
2873 gdb_assert (gdbarch->breakpoint_kind_from_current_state != NULL);
2874 if (gdbarch_debug >= 2)
2875 gdb_printf (gdb_stdlog, "gdbarch_breakpoint_kind_from_current_state called\n");
2876 return gdbarch->breakpoint_kind_from_current_state (gdbarch, regcache, pcptr);
2879 void
2880 set_gdbarch_breakpoint_kind_from_current_state (struct gdbarch *gdbarch,
2881 gdbarch_breakpoint_kind_from_current_state_ftype breakpoint_kind_from_current_state)
2883 gdbarch->breakpoint_kind_from_current_state = breakpoint_kind_from_current_state;
2886 bool
2887 gdbarch_adjust_breakpoint_address_p (struct gdbarch *gdbarch)
2889 gdb_assert (gdbarch != NULL);
2890 return gdbarch->adjust_breakpoint_address != NULL;
2893 CORE_ADDR
2894 gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr)
2896 gdb_assert (gdbarch != NULL);
2897 gdb_assert (gdbarch->adjust_breakpoint_address != NULL);
2898 if (gdbarch_debug >= 2)
2899 gdb_printf (gdb_stdlog, "gdbarch_adjust_breakpoint_address called\n");
2900 return gdbarch->adjust_breakpoint_address (gdbarch, bpaddr);
2903 void
2904 set_gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch,
2905 gdbarch_adjust_breakpoint_address_ftype adjust_breakpoint_address)
2907 gdbarch->adjust_breakpoint_address = adjust_breakpoint_address;
2911 gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
2913 gdb_assert (gdbarch != NULL);
2914 gdb_assert (gdbarch->memory_insert_breakpoint != NULL);
2915 if (gdbarch_debug >= 2)
2916 gdb_printf (gdb_stdlog, "gdbarch_memory_insert_breakpoint called\n");
2917 return gdbarch->memory_insert_breakpoint (gdbarch, bp_tgt);
2920 void
2921 set_gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch,
2922 gdbarch_memory_insert_breakpoint_ftype memory_insert_breakpoint)
2924 gdbarch->memory_insert_breakpoint = memory_insert_breakpoint;
2928 gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
2930 gdb_assert (gdbarch != NULL);
2931 gdb_assert (gdbarch->memory_remove_breakpoint != NULL);
2932 if (gdbarch_debug >= 2)
2933 gdb_printf (gdb_stdlog, "gdbarch_memory_remove_breakpoint called\n");
2934 return gdbarch->memory_remove_breakpoint (gdbarch, bp_tgt);
2937 void
2938 set_gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch,
2939 gdbarch_memory_remove_breakpoint_ftype memory_remove_breakpoint)
2941 gdbarch->memory_remove_breakpoint = memory_remove_breakpoint;
2944 CORE_ADDR
2945 gdbarch_decr_pc_after_break (struct gdbarch *gdbarch)
2947 gdb_assert (gdbarch != NULL);
2948 /* Skip verify of decr_pc_after_break, invalid_p == 0. */
2949 if (gdbarch_debug >= 2)
2950 gdb_printf (gdb_stdlog, "gdbarch_decr_pc_after_break called\n");
2951 return gdbarch->decr_pc_after_break;
2954 void
2955 set_gdbarch_decr_pc_after_break (struct gdbarch *gdbarch,
2956 CORE_ADDR decr_pc_after_break)
2958 gdbarch->decr_pc_after_break = decr_pc_after_break;
2961 CORE_ADDR
2962 gdbarch_deprecated_function_start_offset (struct gdbarch *gdbarch)
2964 gdb_assert (gdbarch != NULL);
2965 /* Skip verify of deprecated_function_start_offset, invalid_p == 0. */
2966 if (gdbarch_debug >= 2)
2967 gdb_printf (gdb_stdlog, "gdbarch_deprecated_function_start_offset called\n");
2968 return gdbarch->deprecated_function_start_offset;
2971 void
2972 set_gdbarch_deprecated_function_start_offset (struct gdbarch *gdbarch,
2973 CORE_ADDR deprecated_function_start_offset)
2975 gdbarch->deprecated_function_start_offset = deprecated_function_start_offset;
2979 gdbarch_remote_register_number (struct gdbarch *gdbarch, int regno)
2981 gdb_assert (gdbarch != NULL);
2982 gdb_assert (gdbarch->remote_register_number != NULL);
2983 if (gdbarch_debug >= 2)
2984 gdb_printf (gdb_stdlog, "gdbarch_remote_register_number called\n");
2985 return gdbarch->remote_register_number (gdbarch, regno);
2988 void
2989 set_gdbarch_remote_register_number (struct gdbarch *gdbarch,
2990 gdbarch_remote_register_number_ftype remote_register_number)
2992 gdbarch->remote_register_number = remote_register_number;
2995 bool
2996 gdbarch_fetch_tls_load_module_address_p (struct gdbarch *gdbarch)
2998 gdb_assert (gdbarch != NULL);
2999 return gdbarch->fetch_tls_load_module_address != NULL;
3002 CORE_ADDR
3003 gdbarch_fetch_tls_load_module_address (struct gdbarch *gdbarch, struct objfile *objfile)
3005 gdb_assert (gdbarch != NULL);
3006 gdb_assert (gdbarch->fetch_tls_load_module_address != NULL);
3007 if (gdbarch_debug >= 2)
3008 gdb_printf (gdb_stdlog, "gdbarch_fetch_tls_load_module_address called\n");
3009 return gdbarch->fetch_tls_load_module_address (objfile);
3012 void
3013 set_gdbarch_fetch_tls_load_module_address (struct gdbarch *gdbarch,
3014 gdbarch_fetch_tls_load_module_address_ftype fetch_tls_load_module_address)
3016 gdbarch->fetch_tls_load_module_address = fetch_tls_load_module_address;
3019 bool
3020 gdbarch_get_thread_local_address_p (struct gdbarch *gdbarch)
3022 gdb_assert (gdbarch != NULL);
3023 return gdbarch->get_thread_local_address != NULL;
3026 CORE_ADDR
3027 gdbarch_get_thread_local_address (struct gdbarch *gdbarch, ptid_t ptid, CORE_ADDR lm_addr, CORE_ADDR offset)
3029 gdb_assert (gdbarch != NULL);
3030 gdb_assert (gdbarch->get_thread_local_address != NULL);
3031 if (gdbarch_debug >= 2)
3032 gdb_printf (gdb_stdlog, "gdbarch_get_thread_local_address called\n");
3033 return gdbarch->get_thread_local_address (gdbarch, ptid, lm_addr, offset);
3036 void
3037 set_gdbarch_get_thread_local_address (struct gdbarch *gdbarch,
3038 gdbarch_get_thread_local_address_ftype get_thread_local_address)
3040 gdbarch->get_thread_local_address = get_thread_local_address;
3043 CORE_ADDR
3044 gdbarch_frame_args_skip (struct gdbarch *gdbarch)
3046 gdb_assert (gdbarch != NULL);
3047 /* Skip verify of frame_args_skip, invalid_p == 0. */
3048 if (gdbarch_debug >= 2)
3049 gdb_printf (gdb_stdlog, "gdbarch_frame_args_skip called\n");
3050 return gdbarch->frame_args_skip;
3053 void
3054 set_gdbarch_frame_args_skip (struct gdbarch *gdbarch,
3055 CORE_ADDR frame_args_skip)
3057 gdbarch->frame_args_skip = frame_args_skip;
3060 CORE_ADDR
3061 gdbarch_unwind_pc (struct gdbarch *gdbarch, const frame_info_ptr &next_frame)
3063 gdb_assert (gdbarch != NULL);
3064 gdb_assert (gdbarch->unwind_pc != NULL);
3065 if (gdbarch_debug >= 2)
3066 gdb_printf (gdb_stdlog, "gdbarch_unwind_pc called\n");
3067 return gdbarch->unwind_pc (gdbarch, next_frame);
3070 void
3071 set_gdbarch_unwind_pc (struct gdbarch *gdbarch,
3072 gdbarch_unwind_pc_ftype unwind_pc)
3074 gdbarch->unwind_pc = unwind_pc;
3077 CORE_ADDR
3078 gdbarch_unwind_sp (struct gdbarch *gdbarch, const frame_info_ptr &next_frame)
3080 gdb_assert (gdbarch != NULL);
3081 gdb_assert (gdbarch->unwind_sp != NULL);
3082 if (gdbarch_debug >= 2)
3083 gdb_printf (gdb_stdlog, "gdbarch_unwind_sp called\n");
3084 return gdbarch->unwind_sp (gdbarch, next_frame);
3087 void
3088 set_gdbarch_unwind_sp (struct gdbarch *gdbarch,
3089 gdbarch_unwind_sp_ftype unwind_sp)
3091 gdbarch->unwind_sp = unwind_sp;
3094 bool
3095 gdbarch_frame_num_args_p (struct gdbarch *gdbarch)
3097 gdb_assert (gdbarch != NULL);
3098 return gdbarch->frame_num_args != NULL;
3102 gdbarch_frame_num_args (struct gdbarch *gdbarch, const frame_info_ptr &frame)
3104 gdb_assert (gdbarch != NULL);
3105 gdb_assert (gdbarch->frame_num_args != NULL);
3106 if (gdbarch_debug >= 2)
3107 gdb_printf (gdb_stdlog, "gdbarch_frame_num_args called\n");
3108 return gdbarch->frame_num_args (frame);
3111 void
3112 set_gdbarch_frame_num_args (struct gdbarch *gdbarch,
3113 gdbarch_frame_num_args_ftype frame_num_args)
3115 gdbarch->frame_num_args = frame_num_args;
3118 bool
3119 gdbarch_frame_align_p (struct gdbarch *gdbarch)
3121 gdb_assert (gdbarch != NULL);
3122 return gdbarch->frame_align != NULL;
3125 CORE_ADDR
3126 gdbarch_frame_align (struct gdbarch *gdbarch, CORE_ADDR address)
3128 gdb_assert (gdbarch != NULL);
3129 gdb_assert (gdbarch->frame_align != NULL);
3130 if (gdbarch_debug >= 2)
3131 gdb_printf (gdb_stdlog, "gdbarch_frame_align called\n");
3132 return gdbarch->frame_align (gdbarch, address);
3135 void
3136 set_gdbarch_frame_align (struct gdbarch *gdbarch,
3137 gdbarch_frame_align_ftype frame_align)
3139 gdbarch->frame_align = frame_align;
3143 gdbarch_stabs_argument_has_addr (struct gdbarch *gdbarch, struct type *type)
3145 gdb_assert (gdbarch != NULL);
3146 gdb_assert (gdbarch->stabs_argument_has_addr != NULL);
3147 if (gdbarch_debug >= 2)
3148 gdb_printf (gdb_stdlog, "gdbarch_stabs_argument_has_addr called\n");
3149 return gdbarch->stabs_argument_has_addr (gdbarch, type);
3152 void
3153 set_gdbarch_stabs_argument_has_addr (struct gdbarch *gdbarch,
3154 gdbarch_stabs_argument_has_addr_ftype stabs_argument_has_addr)
3156 gdbarch->stabs_argument_has_addr = stabs_argument_has_addr;
3160 gdbarch_frame_red_zone_size (struct gdbarch *gdbarch)
3162 gdb_assert (gdbarch != NULL);
3163 /* Skip verify of frame_red_zone_size, invalid_p == 0. */
3164 if (gdbarch_debug >= 2)
3165 gdb_printf (gdb_stdlog, "gdbarch_frame_red_zone_size called\n");
3166 return gdbarch->frame_red_zone_size;
3169 void
3170 set_gdbarch_frame_red_zone_size (struct gdbarch *gdbarch,
3171 int frame_red_zone_size)
3173 gdbarch->frame_red_zone_size = frame_red_zone_size;
3176 CORE_ADDR
3177 gdbarch_convert_from_func_ptr_addr (struct gdbarch *gdbarch, CORE_ADDR addr, struct target_ops *targ)
3179 gdb_assert (gdbarch != NULL);
3180 gdb_assert (gdbarch->convert_from_func_ptr_addr != NULL);
3181 if (gdbarch_debug >= 2)
3182 gdb_printf (gdb_stdlog, "gdbarch_convert_from_func_ptr_addr called\n");
3183 return gdbarch->convert_from_func_ptr_addr (gdbarch, addr, targ);
3186 void
3187 set_gdbarch_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
3188 gdbarch_convert_from_func_ptr_addr_ftype convert_from_func_ptr_addr)
3190 gdbarch->convert_from_func_ptr_addr = convert_from_func_ptr_addr;
3193 CORE_ADDR
3194 gdbarch_addr_bits_remove (struct gdbarch *gdbarch, CORE_ADDR addr)
3196 gdb_assert (gdbarch != NULL);
3197 gdb_assert (gdbarch->addr_bits_remove != NULL);
3198 if (gdbarch_debug >= 2)
3199 gdb_printf (gdb_stdlog, "gdbarch_addr_bits_remove called\n");
3200 return gdbarch->addr_bits_remove (gdbarch, addr);
3203 void
3204 set_gdbarch_addr_bits_remove (struct gdbarch *gdbarch,
3205 gdbarch_addr_bits_remove_ftype addr_bits_remove)
3207 gdbarch->addr_bits_remove = addr_bits_remove;
3210 CORE_ADDR
3211 gdbarch_remove_non_address_bits_watchpoint (struct gdbarch *gdbarch, CORE_ADDR pointer)
3213 gdb_assert (gdbarch != NULL);
3214 gdb_assert (gdbarch->remove_non_address_bits_watchpoint != NULL);
3215 if (gdbarch_debug >= 2)
3216 gdb_printf (gdb_stdlog, "gdbarch_remove_non_address_bits_watchpoint called\n");
3217 return gdbarch->remove_non_address_bits_watchpoint (gdbarch, pointer);
3220 void
3221 set_gdbarch_remove_non_address_bits_watchpoint (struct gdbarch *gdbarch,
3222 gdbarch_remove_non_address_bits_watchpoint_ftype remove_non_address_bits_watchpoint)
3224 gdbarch->remove_non_address_bits_watchpoint = remove_non_address_bits_watchpoint;
3227 CORE_ADDR
3228 gdbarch_remove_non_address_bits_breakpoint (struct gdbarch *gdbarch, CORE_ADDR pointer)
3230 gdb_assert (gdbarch != NULL);
3231 gdb_assert (gdbarch->remove_non_address_bits_breakpoint != NULL);
3232 if (gdbarch_debug >= 2)
3233 gdb_printf (gdb_stdlog, "gdbarch_remove_non_address_bits_breakpoint called\n");
3234 return gdbarch->remove_non_address_bits_breakpoint (gdbarch, pointer);
3237 void
3238 set_gdbarch_remove_non_address_bits_breakpoint (struct gdbarch *gdbarch,
3239 gdbarch_remove_non_address_bits_breakpoint_ftype remove_non_address_bits_breakpoint)
3241 gdbarch->remove_non_address_bits_breakpoint = remove_non_address_bits_breakpoint;
3244 CORE_ADDR
3245 gdbarch_remove_non_address_bits_memory (struct gdbarch *gdbarch, CORE_ADDR pointer)
3247 gdb_assert (gdbarch != NULL);
3248 gdb_assert (gdbarch->remove_non_address_bits_memory != NULL);
3249 if (gdbarch_debug >= 2)
3250 gdb_printf (gdb_stdlog, "gdbarch_remove_non_address_bits_memory called\n");
3251 return gdbarch->remove_non_address_bits_memory (gdbarch, pointer);
3254 void
3255 set_gdbarch_remove_non_address_bits_memory (struct gdbarch *gdbarch,
3256 gdbarch_remove_non_address_bits_memory_ftype remove_non_address_bits_memory)
3258 gdbarch->remove_non_address_bits_memory = remove_non_address_bits_memory;
3261 std::string
3262 gdbarch_memtag_to_string (struct gdbarch *gdbarch, struct value *tag)
3264 gdb_assert (gdbarch != NULL);
3265 gdb_assert (gdbarch->memtag_to_string != NULL);
3266 if (gdbarch_debug >= 2)
3267 gdb_printf (gdb_stdlog, "gdbarch_memtag_to_string called\n");
3268 return gdbarch->memtag_to_string (gdbarch, tag);
3271 void
3272 set_gdbarch_memtag_to_string (struct gdbarch *gdbarch,
3273 gdbarch_memtag_to_string_ftype memtag_to_string)
3275 gdbarch->memtag_to_string = memtag_to_string;
3278 bool
3279 gdbarch_tagged_address_p (struct gdbarch *gdbarch, CORE_ADDR address)
3281 gdb_assert (gdbarch != NULL);
3282 gdb_assert (gdbarch->tagged_address_p != NULL);
3283 if (gdbarch_debug >= 2)
3284 gdb_printf (gdb_stdlog, "gdbarch_tagged_address_p called\n");
3285 return gdbarch->tagged_address_p (gdbarch, address);
3288 void
3289 set_gdbarch_tagged_address_p (struct gdbarch *gdbarch,
3290 gdbarch_tagged_address_p_ftype tagged_address_p)
3292 gdbarch->tagged_address_p = tagged_address_p;
3295 bool
3296 gdbarch_memtag_matches_p (struct gdbarch *gdbarch, struct value *address)
3298 gdb_assert (gdbarch != NULL);
3299 gdb_assert (gdbarch->memtag_matches_p != NULL);
3300 if (gdbarch_debug >= 2)
3301 gdb_printf (gdb_stdlog, "gdbarch_memtag_matches_p called\n");
3302 return gdbarch->memtag_matches_p (gdbarch, address);
3305 void
3306 set_gdbarch_memtag_matches_p (struct gdbarch *gdbarch,
3307 gdbarch_memtag_matches_p_ftype memtag_matches_p)
3309 gdbarch->memtag_matches_p = memtag_matches_p;
3312 bool
3313 gdbarch_set_memtags (struct gdbarch *gdbarch, struct value *address, size_t length, const gdb::byte_vector &tags, memtag_type tag_type)
3315 gdb_assert (gdbarch != NULL);
3316 gdb_assert (gdbarch->set_memtags != NULL);
3317 if (gdbarch_debug >= 2)
3318 gdb_printf (gdb_stdlog, "gdbarch_set_memtags called\n");
3319 return gdbarch->set_memtags (gdbarch, address, length, tags, tag_type);
3322 void
3323 set_gdbarch_set_memtags (struct gdbarch *gdbarch,
3324 gdbarch_set_memtags_ftype set_memtags)
3326 gdbarch->set_memtags = set_memtags;
3329 struct value *
3330 gdbarch_get_memtag (struct gdbarch *gdbarch, struct value *address, memtag_type tag_type)
3332 gdb_assert (gdbarch != NULL);
3333 gdb_assert (gdbarch->get_memtag != NULL);
3334 if (gdbarch_debug >= 2)
3335 gdb_printf (gdb_stdlog, "gdbarch_get_memtag called\n");
3336 return gdbarch->get_memtag (gdbarch, address, tag_type);
3339 void
3340 set_gdbarch_get_memtag (struct gdbarch *gdbarch,
3341 gdbarch_get_memtag_ftype get_memtag)
3343 gdbarch->get_memtag = get_memtag;
3346 CORE_ADDR
3347 gdbarch_memtag_granule_size (struct gdbarch *gdbarch)
3349 gdb_assert (gdbarch != NULL);
3350 /* Skip verify of memtag_granule_size, invalid_p == 0. */
3351 if (gdbarch_debug >= 2)
3352 gdb_printf (gdb_stdlog, "gdbarch_memtag_granule_size called\n");
3353 return gdbarch->memtag_granule_size;
3356 void
3357 set_gdbarch_memtag_granule_size (struct gdbarch *gdbarch,
3358 CORE_ADDR memtag_granule_size)
3360 gdbarch->memtag_granule_size = memtag_granule_size;
3363 bool
3364 gdbarch_software_single_step_p (struct gdbarch *gdbarch)
3366 gdb_assert (gdbarch != NULL);
3367 return gdbarch->software_single_step != NULL;
3370 std::vector<CORE_ADDR>
3371 gdbarch_software_single_step (struct gdbarch *gdbarch, struct regcache *regcache)
3373 gdb_assert (gdbarch != NULL);
3374 gdb_assert (gdbarch->software_single_step != NULL);
3375 if (gdbarch_debug >= 2)
3376 gdb_printf (gdb_stdlog, "gdbarch_software_single_step called\n");
3377 return gdbarch->software_single_step (regcache);
3380 void
3381 set_gdbarch_software_single_step (struct gdbarch *gdbarch,
3382 gdbarch_software_single_step_ftype software_single_step)
3384 gdbarch->software_single_step = software_single_step;
3387 bool
3388 gdbarch_single_step_through_delay_p (struct gdbarch *gdbarch)
3390 gdb_assert (gdbarch != NULL);
3391 return gdbarch->single_step_through_delay != NULL;
3395 gdbarch_single_step_through_delay (struct gdbarch *gdbarch, const frame_info_ptr &frame)
3397 gdb_assert (gdbarch != NULL);
3398 gdb_assert (gdbarch->single_step_through_delay != NULL);
3399 if (gdbarch_debug >= 2)
3400 gdb_printf (gdb_stdlog, "gdbarch_single_step_through_delay called\n");
3401 return gdbarch->single_step_through_delay (gdbarch, frame);
3404 void
3405 set_gdbarch_single_step_through_delay (struct gdbarch *gdbarch,
3406 gdbarch_single_step_through_delay_ftype single_step_through_delay)
3408 gdbarch->single_step_through_delay = single_step_through_delay;
3412 gdbarch_print_insn (struct gdbarch *gdbarch, bfd_vma vma, struct disassemble_info *info)
3414 gdb_assert (gdbarch != NULL);
3415 gdb_assert (gdbarch->print_insn != NULL);
3416 if (gdbarch_debug >= 2)
3417 gdb_printf (gdb_stdlog, "gdbarch_print_insn called\n");
3418 return gdbarch->print_insn (vma, info);
3421 void
3422 set_gdbarch_print_insn (struct gdbarch *gdbarch,
3423 gdbarch_print_insn_ftype print_insn)
3425 gdbarch->print_insn = print_insn;
3428 CORE_ADDR
3429 gdbarch_skip_trampoline_code (struct gdbarch *gdbarch, const frame_info_ptr &frame, CORE_ADDR pc)
3431 gdb_assert (gdbarch != NULL);
3432 gdb_assert (gdbarch->skip_trampoline_code != NULL);
3433 if (gdbarch_debug >= 2)
3434 gdb_printf (gdb_stdlog, "gdbarch_skip_trampoline_code called\n");
3435 return gdbarch->skip_trampoline_code (frame, pc);
3438 void
3439 set_gdbarch_skip_trampoline_code (struct gdbarch *gdbarch,
3440 gdbarch_skip_trampoline_code_ftype skip_trampoline_code)
3442 gdbarch->skip_trampoline_code = skip_trampoline_code;
3445 const solib_ops *
3446 gdbarch_so_ops (struct gdbarch *gdbarch)
3448 gdb_assert (gdbarch != NULL);
3449 /* Skip verify of so_ops, invalid_p == 0. */
3450 if (gdbarch_debug >= 2)
3451 gdb_printf (gdb_stdlog, "gdbarch_so_ops called\n");
3452 return gdbarch->so_ops;
3455 void
3456 set_gdbarch_so_ops (struct gdbarch *gdbarch,
3457 const solib_ops * so_ops)
3459 gdbarch->so_ops = so_ops;
3462 CORE_ADDR
3463 gdbarch_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc)
3465 gdb_assert (gdbarch != NULL);
3466 gdb_assert (gdbarch->skip_solib_resolver != NULL);
3467 if (gdbarch_debug >= 2)
3468 gdb_printf (gdb_stdlog, "gdbarch_skip_solib_resolver called\n");
3469 return gdbarch->skip_solib_resolver (gdbarch, pc);
3472 void
3473 set_gdbarch_skip_solib_resolver (struct gdbarch *gdbarch,
3474 gdbarch_skip_solib_resolver_ftype skip_solib_resolver)
3476 gdbarch->skip_solib_resolver = skip_solib_resolver;
3480 gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, const char *name)
3482 gdb_assert (gdbarch != NULL);
3483 gdb_assert (gdbarch->in_solib_return_trampoline != NULL);
3484 if (gdbarch_debug >= 2)
3485 gdb_printf (gdb_stdlog, "gdbarch_in_solib_return_trampoline called\n");
3486 return gdbarch->in_solib_return_trampoline (gdbarch, pc, name);
3489 void
3490 set_gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch,
3491 gdbarch_in_solib_return_trampoline_ftype in_solib_return_trampoline)
3493 gdbarch->in_solib_return_trampoline = in_solib_return_trampoline;
3496 bool
3497 gdbarch_in_indirect_branch_thunk (struct gdbarch *gdbarch, CORE_ADDR pc)
3499 gdb_assert (gdbarch != NULL);
3500 gdb_assert (gdbarch->in_indirect_branch_thunk != NULL);
3501 if (gdbarch_debug >= 2)
3502 gdb_printf (gdb_stdlog, "gdbarch_in_indirect_branch_thunk called\n");
3503 return gdbarch->in_indirect_branch_thunk (gdbarch, pc);
3506 void
3507 set_gdbarch_in_indirect_branch_thunk (struct gdbarch *gdbarch,
3508 gdbarch_in_indirect_branch_thunk_ftype in_indirect_branch_thunk)
3510 gdbarch->in_indirect_branch_thunk = in_indirect_branch_thunk;
3514 gdbarch_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR addr)
3516 gdb_assert (gdbarch != NULL);
3517 gdb_assert (gdbarch->stack_frame_destroyed_p != NULL);
3518 if (gdbarch_debug >= 2)
3519 gdb_printf (gdb_stdlog, "gdbarch_stack_frame_destroyed_p called\n");
3520 return gdbarch->stack_frame_destroyed_p (gdbarch, addr);
3523 void
3524 set_gdbarch_stack_frame_destroyed_p (struct gdbarch *gdbarch,
3525 gdbarch_stack_frame_destroyed_p_ftype stack_frame_destroyed_p)
3527 gdbarch->stack_frame_destroyed_p = stack_frame_destroyed_p;
3530 bool
3531 gdbarch_elf_make_msymbol_special_p (struct gdbarch *gdbarch)
3533 gdb_assert (gdbarch != NULL);
3534 return gdbarch->elf_make_msymbol_special != NULL;
3537 void
3538 gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, asymbol *sym, struct minimal_symbol *msym)
3540 gdb_assert (gdbarch != NULL);
3541 gdb_assert (gdbarch->elf_make_msymbol_special != NULL);
3542 if (gdbarch_debug >= 2)
3543 gdb_printf (gdb_stdlog, "gdbarch_elf_make_msymbol_special called\n");
3544 gdbarch->elf_make_msymbol_special (sym, msym);
3547 void
3548 set_gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch,
3549 gdbarch_elf_make_msymbol_special_ftype elf_make_msymbol_special)
3551 gdbarch->elf_make_msymbol_special = elf_make_msymbol_special;
3554 void
3555 gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch, int val, struct minimal_symbol *msym)
3557 gdb_assert (gdbarch != NULL);
3558 gdb_assert (gdbarch->coff_make_msymbol_special != NULL);
3559 if (gdbarch_debug >= 2)
3560 gdb_printf (gdb_stdlog, "gdbarch_coff_make_msymbol_special called\n");
3561 gdbarch->coff_make_msymbol_special (val, msym);
3564 void
3565 set_gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch,
3566 gdbarch_coff_make_msymbol_special_ftype coff_make_msymbol_special)
3568 gdbarch->coff_make_msymbol_special = coff_make_msymbol_special;
3571 void
3572 gdbarch_make_symbol_special (struct gdbarch *gdbarch, struct symbol *sym, struct objfile *objfile)
3574 gdb_assert (gdbarch != NULL);
3575 gdb_assert (gdbarch->make_symbol_special != NULL);
3576 if (gdbarch_debug >= 2)
3577 gdb_printf (gdb_stdlog, "gdbarch_make_symbol_special called\n");
3578 gdbarch->make_symbol_special (sym, objfile);
3581 void
3582 set_gdbarch_make_symbol_special (struct gdbarch *gdbarch,
3583 gdbarch_make_symbol_special_ftype make_symbol_special)
3585 gdbarch->make_symbol_special = make_symbol_special;
3588 CORE_ADDR
3589 gdbarch_adjust_dwarf2_addr (struct gdbarch *gdbarch, CORE_ADDR pc)
3591 gdb_assert (gdbarch != NULL);
3592 gdb_assert (gdbarch->adjust_dwarf2_addr != NULL);
3593 if (gdbarch_debug >= 2)
3594 gdb_printf (gdb_stdlog, "gdbarch_adjust_dwarf2_addr called\n");
3595 return gdbarch->adjust_dwarf2_addr (pc);
3598 void
3599 set_gdbarch_adjust_dwarf2_addr (struct gdbarch *gdbarch,
3600 gdbarch_adjust_dwarf2_addr_ftype adjust_dwarf2_addr)
3602 gdbarch->adjust_dwarf2_addr = adjust_dwarf2_addr;
3605 CORE_ADDR
3606 gdbarch_adjust_dwarf2_line (struct gdbarch *gdbarch, CORE_ADDR addr, int rel)
3608 gdb_assert (gdbarch != NULL);
3609 gdb_assert (gdbarch->adjust_dwarf2_line != NULL);
3610 if (gdbarch_debug >= 2)
3611 gdb_printf (gdb_stdlog, "gdbarch_adjust_dwarf2_line called\n");
3612 return gdbarch->adjust_dwarf2_line (addr, rel);
3615 void
3616 set_gdbarch_adjust_dwarf2_line (struct gdbarch *gdbarch,
3617 gdbarch_adjust_dwarf2_line_ftype adjust_dwarf2_line)
3619 gdbarch->adjust_dwarf2_line = adjust_dwarf2_line;
3623 gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch)
3625 gdb_assert (gdbarch != NULL);
3626 /* Skip verify of cannot_step_breakpoint, invalid_p == 0. */
3627 if (gdbarch_debug >= 2)
3628 gdb_printf (gdb_stdlog, "gdbarch_cannot_step_breakpoint called\n");
3629 return gdbarch->cannot_step_breakpoint;
3632 void
3633 set_gdbarch_cannot_step_breakpoint (struct gdbarch *gdbarch,
3634 int cannot_step_breakpoint)
3636 gdbarch->cannot_step_breakpoint = cannot_step_breakpoint;
3640 gdbarch_have_nonsteppable_watchpoint (struct gdbarch *gdbarch)
3642 gdb_assert (gdbarch != NULL);
3643 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0. */
3644 if (gdbarch_debug >= 2)
3645 gdb_printf (gdb_stdlog, "gdbarch_have_nonsteppable_watchpoint called\n");
3646 return gdbarch->have_nonsteppable_watchpoint;
3649 void
3650 set_gdbarch_have_nonsteppable_watchpoint (struct gdbarch *gdbarch,
3651 int have_nonsteppable_watchpoint)
3653 gdbarch->have_nonsteppable_watchpoint = have_nonsteppable_watchpoint;
3656 bool
3657 gdbarch_address_class_type_flags_p (struct gdbarch *gdbarch)
3659 gdb_assert (gdbarch != NULL);
3660 return gdbarch->address_class_type_flags != NULL;
3663 type_instance_flags
3664 gdbarch_address_class_type_flags (struct gdbarch *gdbarch, int byte_size, int dwarf2_addr_class)
3666 gdb_assert (gdbarch != NULL);
3667 gdb_assert (gdbarch->address_class_type_flags != NULL);
3668 if (gdbarch_debug >= 2)
3669 gdb_printf (gdb_stdlog, "gdbarch_address_class_type_flags called\n");
3670 return gdbarch->address_class_type_flags (byte_size, dwarf2_addr_class);
3673 void
3674 set_gdbarch_address_class_type_flags (struct gdbarch *gdbarch,
3675 gdbarch_address_class_type_flags_ftype address_class_type_flags)
3677 gdbarch->address_class_type_flags = address_class_type_flags;
3680 bool
3681 gdbarch_address_class_type_flags_to_name_p (struct gdbarch *gdbarch)
3683 gdb_assert (gdbarch != NULL);
3684 return gdbarch->address_class_type_flags_to_name != NULL;
3687 const char *
3688 gdbarch_address_class_type_flags_to_name (struct gdbarch *gdbarch, type_instance_flags type_flags)
3690 gdb_assert (gdbarch != NULL);
3691 gdb_assert (gdbarch->address_class_type_flags_to_name != NULL);
3692 if (gdbarch_debug >= 2)
3693 gdb_printf (gdb_stdlog, "gdbarch_address_class_type_flags_to_name called\n");
3694 return gdbarch->address_class_type_flags_to_name (gdbarch, type_flags);
3697 void
3698 set_gdbarch_address_class_type_flags_to_name (struct gdbarch *gdbarch,
3699 gdbarch_address_class_type_flags_to_name_ftype address_class_type_flags_to_name)
3701 gdbarch->address_class_type_flags_to_name = address_class_type_flags_to_name;
3704 bool
3705 gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch *gdbarch, gdb_byte op, struct dwarf2_frame_state *fs)
3707 gdb_assert (gdbarch != NULL);
3708 gdb_assert (gdbarch->execute_dwarf_cfa_vendor_op != NULL);
3709 if (gdbarch_debug >= 2)
3710 gdb_printf (gdb_stdlog, "gdbarch_execute_dwarf_cfa_vendor_op called\n");
3711 return gdbarch->execute_dwarf_cfa_vendor_op (gdbarch, op, fs);
3714 void
3715 set_gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch *gdbarch,
3716 gdbarch_execute_dwarf_cfa_vendor_op_ftype execute_dwarf_cfa_vendor_op)
3718 gdbarch->execute_dwarf_cfa_vendor_op = execute_dwarf_cfa_vendor_op;
3721 bool
3722 gdbarch_address_class_name_to_type_flags_p (struct gdbarch *gdbarch)
3724 gdb_assert (gdbarch != NULL);
3725 return gdbarch->address_class_name_to_type_flags != NULL;
3728 bool
3729 gdbarch_address_class_name_to_type_flags (struct gdbarch *gdbarch, const char *name, type_instance_flags *type_flags_ptr)
3731 gdb_assert (gdbarch != NULL);
3732 gdb_assert (gdbarch->address_class_name_to_type_flags != NULL);
3733 if (gdbarch_debug >= 2)
3734 gdb_printf (gdb_stdlog, "gdbarch_address_class_name_to_type_flags called\n");
3735 return gdbarch->address_class_name_to_type_flags (gdbarch, name, type_flags_ptr);
3738 void
3739 set_gdbarch_address_class_name_to_type_flags (struct gdbarch *gdbarch,
3740 gdbarch_address_class_name_to_type_flags_ftype address_class_name_to_type_flags)
3742 gdbarch->address_class_name_to_type_flags = address_class_name_to_type_flags;
3746 gdbarch_register_reggroup_p (struct gdbarch *gdbarch, int regnum, const struct reggroup *reggroup)
3748 gdb_assert (gdbarch != NULL);
3749 gdb_assert (gdbarch->register_reggroup_p != NULL);
3750 if (gdbarch_debug >= 2)
3751 gdb_printf (gdb_stdlog, "gdbarch_register_reggroup_p called\n");
3752 return gdbarch->register_reggroup_p (gdbarch, regnum, reggroup);
3755 void
3756 set_gdbarch_register_reggroup_p (struct gdbarch *gdbarch,
3757 gdbarch_register_reggroup_p_ftype register_reggroup_p)
3759 gdbarch->register_reggroup_p = register_reggroup_p;
3762 bool
3763 gdbarch_fetch_pointer_argument_p (struct gdbarch *gdbarch)
3765 gdb_assert (gdbarch != NULL);
3766 return gdbarch->fetch_pointer_argument != NULL;
3769 CORE_ADDR
3770 gdbarch_fetch_pointer_argument (struct gdbarch *gdbarch, const frame_info_ptr &frame, int argi, struct type *type)
3772 gdb_assert (gdbarch != NULL);
3773 gdb_assert (gdbarch->fetch_pointer_argument != NULL);
3774 if (gdbarch_debug >= 2)
3775 gdb_printf (gdb_stdlog, "gdbarch_fetch_pointer_argument called\n");
3776 return gdbarch->fetch_pointer_argument (frame, argi, type);
3779 void
3780 set_gdbarch_fetch_pointer_argument (struct gdbarch *gdbarch,
3781 gdbarch_fetch_pointer_argument_ftype fetch_pointer_argument)
3783 gdbarch->fetch_pointer_argument = fetch_pointer_argument;
3786 bool
3787 gdbarch_iterate_over_regset_sections_p (struct gdbarch *gdbarch)
3789 gdb_assert (gdbarch != NULL);
3790 return gdbarch->iterate_over_regset_sections != NULL;
3793 void
3794 gdbarch_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
3796 gdb_assert (gdbarch != NULL);
3797 gdb_assert (gdbarch->iterate_over_regset_sections != NULL);
3798 if (gdbarch_debug >= 2)
3799 gdb_printf (gdb_stdlog, "gdbarch_iterate_over_regset_sections called\n");
3800 gdbarch->iterate_over_regset_sections (gdbarch, cb, cb_data, regcache);
3803 void
3804 set_gdbarch_iterate_over_regset_sections (struct gdbarch *gdbarch,
3805 gdbarch_iterate_over_regset_sections_ftype iterate_over_regset_sections)
3807 gdbarch->iterate_over_regset_sections = iterate_over_regset_sections;
3810 bool
3811 gdbarch_make_corefile_notes_p (struct gdbarch *gdbarch)
3813 gdb_assert (gdbarch != NULL);
3814 return gdbarch->make_corefile_notes != NULL;
3817 gdb::unique_xmalloc_ptr<char>
3818 gdbarch_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
3820 gdb_assert (gdbarch != NULL);
3821 gdb_assert (gdbarch->make_corefile_notes != NULL);
3822 if (gdbarch_debug >= 2)
3823 gdb_printf (gdb_stdlog, "gdbarch_make_corefile_notes called\n");
3824 return gdbarch->make_corefile_notes (gdbarch, obfd, note_size);
3827 void
3828 set_gdbarch_make_corefile_notes (struct gdbarch *gdbarch,
3829 gdbarch_make_corefile_notes_ftype make_corefile_notes)
3831 gdbarch->make_corefile_notes = make_corefile_notes;
3834 bool
3835 gdbarch_find_memory_regions_p (struct gdbarch *gdbarch)
3837 gdb_assert (gdbarch != NULL);
3838 return gdbarch->find_memory_regions != NULL;
3842 gdbarch_find_memory_regions (struct gdbarch *gdbarch, find_memory_region_ftype func, void *data)
3844 gdb_assert (gdbarch != NULL);
3845 gdb_assert (gdbarch->find_memory_regions != NULL);
3846 if (gdbarch_debug >= 2)
3847 gdb_printf (gdb_stdlog, "gdbarch_find_memory_regions called\n");
3848 return gdbarch->find_memory_regions (gdbarch, func, data);
3851 void
3852 set_gdbarch_find_memory_regions (struct gdbarch *gdbarch,
3853 gdbarch_find_memory_regions_ftype find_memory_regions)
3855 gdbarch->find_memory_regions = find_memory_regions;
3858 bool
3859 gdbarch_create_memtag_section_p (struct gdbarch *gdbarch)
3861 gdb_assert (gdbarch != NULL);
3862 return gdbarch->create_memtag_section != NULL;
3865 asection *
3866 gdbarch_create_memtag_section (struct gdbarch *gdbarch, bfd *obfd, CORE_ADDR address, size_t size)
3868 gdb_assert (gdbarch != NULL);
3869 gdb_assert (gdbarch->create_memtag_section != NULL);
3870 if (gdbarch_debug >= 2)
3871 gdb_printf (gdb_stdlog, "gdbarch_create_memtag_section called\n");
3872 return gdbarch->create_memtag_section (gdbarch, obfd, address, size);
3875 void
3876 set_gdbarch_create_memtag_section (struct gdbarch *gdbarch,
3877 gdbarch_create_memtag_section_ftype create_memtag_section)
3879 gdbarch->create_memtag_section = create_memtag_section;
3882 bool
3883 gdbarch_fill_memtag_section_p (struct gdbarch *gdbarch)
3885 gdb_assert (gdbarch != NULL);
3886 return gdbarch->fill_memtag_section != NULL;
3889 bool
3890 gdbarch_fill_memtag_section (struct gdbarch *gdbarch, asection *osec)
3892 gdb_assert (gdbarch != NULL);
3893 gdb_assert (gdbarch->fill_memtag_section != NULL);
3894 if (gdbarch_debug >= 2)
3895 gdb_printf (gdb_stdlog, "gdbarch_fill_memtag_section called\n");
3896 return gdbarch->fill_memtag_section (gdbarch, osec);
3899 void
3900 set_gdbarch_fill_memtag_section (struct gdbarch *gdbarch,
3901 gdbarch_fill_memtag_section_ftype fill_memtag_section)
3903 gdbarch->fill_memtag_section = fill_memtag_section;
3906 bool
3907 gdbarch_decode_memtag_section_p (struct gdbarch *gdbarch)
3909 gdb_assert (gdbarch != NULL);
3910 return gdbarch->decode_memtag_section != NULL;
3913 gdb::byte_vector
3914 gdbarch_decode_memtag_section (struct gdbarch *gdbarch, bfd_section *section, int type, CORE_ADDR address, size_t length)
3916 gdb_assert (gdbarch != NULL);
3917 gdb_assert (gdbarch->decode_memtag_section != NULL);
3918 if (gdbarch_debug >= 2)
3919 gdb_printf (gdb_stdlog, "gdbarch_decode_memtag_section called\n");
3920 return gdbarch->decode_memtag_section (gdbarch, section, type, address, length);
3923 void
3924 set_gdbarch_decode_memtag_section (struct gdbarch *gdbarch,
3925 gdbarch_decode_memtag_section_ftype decode_memtag_section)
3927 gdbarch->decode_memtag_section = decode_memtag_section;
3930 bool
3931 gdbarch_core_xfer_shared_libraries_p (struct gdbarch *gdbarch)
3933 gdb_assert (gdbarch != NULL);
3934 return gdbarch->core_xfer_shared_libraries != NULL;
3937 ULONGEST
3938 gdbarch_core_xfer_shared_libraries (struct gdbarch *gdbarch, gdb_byte *readbuf, ULONGEST offset, ULONGEST len)
3940 gdb_assert (gdbarch != NULL);
3941 gdb_assert (gdbarch->core_xfer_shared_libraries != NULL);
3942 if (gdbarch_debug >= 2)
3943 gdb_printf (gdb_stdlog, "gdbarch_core_xfer_shared_libraries called\n");
3944 return gdbarch->core_xfer_shared_libraries (gdbarch, readbuf, offset, len);
3947 void
3948 set_gdbarch_core_xfer_shared_libraries (struct gdbarch *gdbarch,
3949 gdbarch_core_xfer_shared_libraries_ftype core_xfer_shared_libraries)
3951 gdbarch->core_xfer_shared_libraries = core_xfer_shared_libraries;
3954 bool
3955 gdbarch_core_xfer_shared_libraries_aix_p (struct gdbarch *gdbarch)
3957 gdb_assert (gdbarch != NULL);
3958 return gdbarch->core_xfer_shared_libraries_aix != NULL;
3961 ULONGEST
3962 gdbarch_core_xfer_shared_libraries_aix (struct gdbarch *gdbarch, gdb_byte *readbuf, ULONGEST offset, ULONGEST len)
3964 gdb_assert (gdbarch != NULL);
3965 gdb_assert (gdbarch->core_xfer_shared_libraries_aix != NULL);
3966 if (gdbarch_debug >= 2)
3967 gdb_printf (gdb_stdlog, "gdbarch_core_xfer_shared_libraries_aix called\n");
3968 return gdbarch->core_xfer_shared_libraries_aix (gdbarch, readbuf, offset, len);
3971 void
3972 set_gdbarch_core_xfer_shared_libraries_aix (struct gdbarch *gdbarch,
3973 gdbarch_core_xfer_shared_libraries_aix_ftype core_xfer_shared_libraries_aix)
3975 gdbarch->core_xfer_shared_libraries_aix = core_xfer_shared_libraries_aix;
3978 bool
3979 gdbarch_core_pid_to_str_p (struct gdbarch *gdbarch)
3981 gdb_assert (gdbarch != NULL);
3982 return gdbarch->core_pid_to_str != NULL;
3985 std::string
3986 gdbarch_core_pid_to_str (struct gdbarch *gdbarch, ptid_t ptid)
3988 gdb_assert (gdbarch != NULL);
3989 gdb_assert (gdbarch->core_pid_to_str != NULL);
3990 if (gdbarch_debug >= 2)
3991 gdb_printf (gdb_stdlog, "gdbarch_core_pid_to_str called\n");
3992 return gdbarch->core_pid_to_str (gdbarch, ptid);
3995 void
3996 set_gdbarch_core_pid_to_str (struct gdbarch *gdbarch,
3997 gdbarch_core_pid_to_str_ftype core_pid_to_str)
3999 gdbarch->core_pid_to_str = core_pid_to_str;
4002 bool
4003 gdbarch_core_thread_name_p (struct gdbarch *gdbarch)
4005 gdb_assert (gdbarch != NULL);
4006 return gdbarch->core_thread_name != NULL;
4009 const char *
4010 gdbarch_core_thread_name (struct gdbarch *gdbarch, struct thread_info *thr)
4012 gdb_assert (gdbarch != NULL);
4013 gdb_assert (gdbarch->core_thread_name != NULL);
4014 if (gdbarch_debug >= 2)
4015 gdb_printf (gdb_stdlog, "gdbarch_core_thread_name called\n");
4016 return gdbarch->core_thread_name (gdbarch, thr);
4019 void
4020 set_gdbarch_core_thread_name (struct gdbarch *gdbarch,
4021 gdbarch_core_thread_name_ftype core_thread_name)
4023 gdbarch->core_thread_name = core_thread_name;
4026 bool
4027 gdbarch_core_xfer_siginfo_p (struct gdbarch *gdbarch)
4029 gdb_assert (gdbarch != NULL);
4030 return gdbarch->core_xfer_siginfo != NULL;
4033 LONGEST
4034 gdbarch_core_xfer_siginfo (struct gdbarch *gdbarch, gdb_byte *readbuf, ULONGEST offset, ULONGEST len)
4036 gdb_assert (gdbarch != NULL);
4037 gdb_assert (gdbarch->core_xfer_siginfo != NULL);
4038 if (gdbarch_debug >= 2)
4039 gdb_printf (gdb_stdlog, "gdbarch_core_xfer_siginfo called\n");
4040 return gdbarch->core_xfer_siginfo (gdbarch, readbuf, offset, len);
4043 void
4044 set_gdbarch_core_xfer_siginfo (struct gdbarch *gdbarch,
4045 gdbarch_core_xfer_siginfo_ftype core_xfer_siginfo)
4047 gdbarch->core_xfer_siginfo = core_xfer_siginfo;
4050 bool
4051 gdbarch_core_read_x86_xsave_layout_p (struct gdbarch *gdbarch)
4053 gdb_assert (gdbarch != NULL);
4054 return gdbarch->core_read_x86_xsave_layout != NULL;
4057 bool
4058 gdbarch_core_read_x86_xsave_layout (struct gdbarch *gdbarch, x86_xsave_layout &xsave_layout)
4060 gdb_assert (gdbarch != NULL);
4061 gdb_assert (gdbarch->core_read_x86_xsave_layout != NULL);
4062 if (gdbarch_debug >= 2)
4063 gdb_printf (gdb_stdlog, "gdbarch_core_read_x86_xsave_layout called\n");
4064 return gdbarch->core_read_x86_xsave_layout (gdbarch, xsave_layout);
4067 void
4068 set_gdbarch_core_read_x86_xsave_layout (struct gdbarch *gdbarch,
4069 gdbarch_core_read_x86_xsave_layout_ftype core_read_x86_xsave_layout)
4071 gdbarch->core_read_x86_xsave_layout = core_read_x86_xsave_layout;
4074 bool
4075 gdbarch_gcore_bfd_target_p (struct gdbarch *gdbarch)
4077 gdb_assert (gdbarch != NULL);
4078 return gdbarch->gcore_bfd_target != NULL;
4081 const char *
4082 gdbarch_gcore_bfd_target (struct gdbarch *gdbarch)
4084 gdb_assert (gdbarch != NULL);
4085 /* Check predicate was used. */
4086 gdb_assert (gdbarch_gcore_bfd_target_p (gdbarch));
4087 if (gdbarch_debug >= 2)
4088 gdb_printf (gdb_stdlog, "gdbarch_gcore_bfd_target called\n");
4089 return gdbarch->gcore_bfd_target;
4092 void
4093 set_gdbarch_gcore_bfd_target (struct gdbarch *gdbarch,
4094 const char * gcore_bfd_target)
4096 gdbarch->gcore_bfd_target = gcore_bfd_target;
4100 gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch)
4102 gdb_assert (gdbarch != NULL);
4103 /* Skip verify of vtable_function_descriptors, invalid_p == 0. */
4104 if (gdbarch_debug >= 2)
4105 gdb_printf (gdb_stdlog, "gdbarch_vtable_function_descriptors called\n");
4106 return gdbarch->vtable_function_descriptors;
4109 void
4110 set_gdbarch_vtable_function_descriptors (struct gdbarch *gdbarch,
4111 int vtable_function_descriptors)
4113 gdbarch->vtable_function_descriptors = vtable_function_descriptors;
4117 gdbarch_vbit_in_delta (struct gdbarch *gdbarch)
4119 gdb_assert (gdbarch != NULL);
4120 /* Skip verify of vbit_in_delta, invalid_p == 0. */
4121 if (gdbarch_debug >= 2)
4122 gdb_printf (gdb_stdlog, "gdbarch_vbit_in_delta called\n");
4123 return gdbarch->vbit_in_delta;
4126 void
4127 set_gdbarch_vbit_in_delta (struct gdbarch *gdbarch,
4128 int vbit_in_delta)
4130 gdbarch->vbit_in_delta = vbit_in_delta;
4133 void
4134 gdbarch_skip_permanent_breakpoint (struct gdbarch *gdbarch, struct regcache *regcache)
4136 gdb_assert (gdbarch != NULL);
4137 gdb_assert (gdbarch->skip_permanent_breakpoint != NULL);
4138 if (gdbarch_debug >= 2)
4139 gdb_printf (gdb_stdlog, "gdbarch_skip_permanent_breakpoint called\n");
4140 gdbarch->skip_permanent_breakpoint (regcache);
4143 void
4144 set_gdbarch_skip_permanent_breakpoint (struct gdbarch *gdbarch,
4145 gdbarch_skip_permanent_breakpoint_ftype skip_permanent_breakpoint)
4147 gdbarch->skip_permanent_breakpoint = skip_permanent_breakpoint;
4150 bool
4151 gdbarch_max_insn_length_p (struct gdbarch *gdbarch)
4153 gdb_assert (gdbarch != NULL);
4154 return gdbarch->max_insn_length != 0;
4157 ULONGEST
4158 gdbarch_max_insn_length (struct gdbarch *gdbarch)
4160 gdb_assert (gdbarch != NULL);
4161 /* Check predicate was used. */
4162 gdb_assert (gdbarch_max_insn_length_p (gdbarch));
4163 if (gdbarch_debug >= 2)
4164 gdb_printf (gdb_stdlog, "gdbarch_max_insn_length called\n");
4165 return gdbarch->max_insn_length;
4168 void
4169 set_gdbarch_max_insn_length (struct gdbarch *gdbarch,
4170 ULONGEST max_insn_length)
4172 gdbarch->max_insn_length = max_insn_length;
4175 bool
4176 gdbarch_displaced_step_copy_insn_p (struct gdbarch *gdbarch)
4178 gdb_assert (gdbarch != NULL);
4179 return gdbarch->displaced_step_copy_insn != NULL;
4182 displaced_step_copy_insn_closure_up
4183 gdbarch_displaced_step_copy_insn (struct gdbarch *gdbarch, CORE_ADDR from, CORE_ADDR to, struct regcache *regs)
4185 gdb_assert (gdbarch != NULL);
4186 gdb_assert (gdbarch->displaced_step_copy_insn != NULL);
4187 if (gdbarch_debug >= 2)
4188 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_copy_insn called\n");
4189 return gdbarch->displaced_step_copy_insn (gdbarch, from, to, regs);
4192 void
4193 set_gdbarch_displaced_step_copy_insn (struct gdbarch *gdbarch,
4194 gdbarch_displaced_step_copy_insn_ftype displaced_step_copy_insn)
4196 gdbarch->displaced_step_copy_insn = displaced_step_copy_insn;
4199 bool
4200 gdbarch_displaced_step_hw_singlestep (struct gdbarch *gdbarch)
4202 gdb_assert (gdbarch != NULL);
4203 gdb_assert (gdbarch->displaced_step_hw_singlestep != NULL);
4204 if (gdbarch_debug >= 2)
4205 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_hw_singlestep called\n");
4206 return gdbarch->displaced_step_hw_singlestep (gdbarch);
4209 void
4210 set_gdbarch_displaced_step_hw_singlestep (struct gdbarch *gdbarch,
4211 gdbarch_displaced_step_hw_singlestep_ftype displaced_step_hw_singlestep)
4213 gdbarch->displaced_step_hw_singlestep = displaced_step_hw_singlestep;
4216 void
4217 gdbarch_displaced_step_fixup (struct gdbarch *gdbarch, struct displaced_step_copy_insn_closure *closure, CORE_ADDR from, CORE_ADDR to, struct regcache *regs, bool completed_p)
4219 gdb_assert (gdbarch != NULL);
4220 gdb_assert (gdbarch->displaced_step_fixup != NULL);
4221 if (gdbarch_debug >= 2)
4222 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_fixup called\n");
4223 gdbarch->displaced_step_fixup (gdbarch, closure, from, to, regs, completed_p);
4226 void
4227 set_gdbarch_displaced_step_fixup (struct gdbarch *gdbarch,
4228 gdbarch_displaced_step_fixup_ftype displaced_step_fixup)
4230 gdbarch->displaced_step_fixup = displaced_step_fixup;
4233 bool
4234 gdbarch_displaced_step_prepare_p (struct gdbarch *gdbarch)
4236 gdb_assert (gdbarch != NULL);
4237 return gdbarch->displaced_step_prepare != NULL;
4240 displaced_step_prepare_status
4241 gdbarch_displaced_step_prepare (struct gdbarch *gdbarch, thread_info *thread, CORE_ADDR &displaced_pc)
4243 gdb_assert (gdbarch != NULL);
4244 gdb_assert (gdbarch->displaced_step_prepare != NULL);
4245 if (gdbarch_debug >= 2)
4246 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_prepare called\n");
4247 return gdbarch->displaced_step_prepare (gdbarch, thread, displaced_pc);
4250 void
4251 set_gdbarch_displaced_step_prepare (struct gdbarch *gdbarch,
4252 gdbarch_displaced_step_prepare_ftype displaced_step_prepare)
4254 gdbarch->displaced_step_prepare = displaced_step_prepare;
4257 displaced_step_finish_status
4258 gdbarch_displaced_step_finish (struct gdbarch *gdbarch, thread_info *thread, const target_waitstatus &ws)
4260 gdb_assert (gdbarch != NULL);
4261 gdb_assert (gdbarch->displaced_step_finish != NULL);
4262 if (gdbarch_debug >= 2)
4263 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_finish called\n");
4264 return gdbarch->displaced_step_finish (gdbarch, thread, ws);
4267 void
4268 set_gdbarch_displaced_step_finish (struct gdbarch *gdbarch,
4269 gdbarch_displaced_step_finish_ftype displaced_step_finish)
4271 gdbarch->displaced_step_finish = displaced_step_finish;
4274 bool
4275 gdbarch_displaced_step_copy_insn_closure_by_addr_p (struct gdbarch *gdbarch)
4277 gdb_assert (gdbarch != NULL);
4278 return gdbarch->displaced_step_copy_insn_closure_by_addr != NULL;
4281 const displaced_step_copy_insn_closure *
4282 gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch *gdbarch, inferior *inf, CORE_ADDR addr)
4284 gdb_assert (gdbarch != NULL);
4285 gdb_assert (gdbarch->displaced_step_copy_insn_closure_by_addr != NULL);
4286 if (gdbarch_debug >= 2)
4287 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_copy_insn_closure_by_addr called\n");
4288 return gdbarch->displaced_step_copy_insn_closure_by_addr (inf, addr);
4291 void
4292 set_gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch *gdbarch,
4293 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype displaced_step_copy_insn_closure_by_addr)
4295 gdbarch->displaced_step_copy_insn_closure_by_addr = displaced_step_copy_insn_closure_by_addr;
4298 void
4299 gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch *gdbarch, inferior *parent_inf, ptid_t child_ptid)
4301 gdb_assert (gdbarch != NULL);
4302 gdb_assert (gdbarch->displaced_step_restore_all_in_ptid != NULL);
4303 if (gdbarch_debug >= 2)
4304 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_restore_all_in_ptid called\n");
4305 gdbarch->displaced_step_restore_all_in_ptid (parent_inf, child_ptid);
4308 void
4309 set_gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch *gdbarch,
4310 gdbarch_displaced_step_restore_all_in_ptid_ftype displaced_step_restore_all_in_ptid)
4312 gdbarch->displaced_step_restore_all_in_ptid = displaced_step_restore_all_in_ptid;
4315 ULONGEST
4316 gdbarch_displaced_step_buffer_length (struct gdbarch *gdbarch)
4318 gdb_assert (gdbarch != NULL);
4319 /* Check variable is valid. */
4320 gdb_assert (!(gdbarch->displaced_step_buffer_length < gdbarch->max_insn_length));
4321 if (gdbarch_debug >= 2)
4322 gdb_printf (gdb_stdlog, "gdbarch_displaced_step_buffer_length called\n");
4323 return gdbarch->displaced_step_buffer_length;
4326 void
4327 set_gdbarch_displaced_step_buffer_length (struct gdbarch *gdbarch,
4328 ULONGEST displaced_step_buffer_length)
4330 gdbarch->displaced_step_buffer_length = displaced_step_buffer_length;
4333 bool
4334 gdbarch_relocate_instruction_p (struct gdbarch *gdbarch)
4336 gdb_assert (gdbarch != NULL);
4337 return gdbarch->relocate_instruction != NULL;
4340 void
4341 gdbarch_relocate_instruction (struct gdbarch *gdbarch, CORE_ADDR *to, CORE_ADDR from)
4343 gdb_assert (gdbarch != NULL);
4344 gdb_assert (gdbarch->relocate_instruction != NULL);
4345 /* Do not check predicate: gdbarch->relocate_instruction != NULL, allow call. */
4346 if (gdbarch_debug >= 2)
4347 gdb_printf (gdb_stdlog, "gdbarch_relocate_instruction called\n");
4348 gdbarch->relocate_instruction (gdbarch, to, from);
4351 void
4352 set_gdbarch_relocate_instruction (struct gdbarch *gdbarch,
4353 gdbarch_relocate_instruction_ftype relocate_instruction)
4355 gdbarch->relocate_instruction = relocate_instruction;
4358 bool
4359 gdbarch_overlay_update_p (struct gdbarch *gdbarch)
4361 gdb_assert (gdbarch != NULL);
4362 return gdbarch->overlay_update != NULL;
4365 void
4366 gdbarch_overlay_update (struct gdbarch *gdbarch, struct obj_section *osect)
4368 gdb_assert (gdbarch != NULL);
4369 gdb_assert (gdbarch->overlay_update != NULL);
4370 if (gdbarch_debug >= 2)
4371 gdb_printf (gdb_stdlog, "gdbarch_overlay_update called\n");
4372 gdbarch->overlay_update (osect);
4375 void
4376 set_gdbarch_overlay_update (struct gdbarch *gdbarch,
4377 gdbarch_overlay_update_ftype overlay_update)
4379 gdbarch->overlay_update = overlay_update;
4382 bool
4383 gdbarch_core_read_description_p (struct gdbarch *gdbarch)
4385 gdb_assert (gdbarch != NULL);
4386 return gdbarch->core_read_description != NULL;
4389 const struct target_desc *
4390 gdbarch_core_read_description (struct gdbarch *gdbarch, struct target_ops *target, bfd *abfd)
4392 gdb_assert (gdbarch != NULL);
4393 gdb_assert (gdbarch->core_read_description != NULL);
4394 if (gdbarch_debug >= 2)
4395 gdb_printf (gdb_stdlog, "gdbarch_core_read_description called\n");
4396 return gdbarch->core_read_description (gdbarch, target, abfd);
4399 void
4400 set_gdbarch_core_read_description (struct gdbarch *gdbarch,
4401 gdbarch_core_read_description_ftype core_read_description)
4403 gdbarch->core_read_description = core_read_description;
4407 gdbarch_sofun_address_maybe_missing (struct gdbarch *gdbarch)
4409 gdb_assert (gdbarch != NULL);
4410 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0. */
4411 if (gdbarch_debug >= 2)
4412 gdb_printf (gdb_stdlog, "gdbarch_sofun_address_maybe_missing called\n");
4413 return gdbarch->sofun_address_maybe_missing;
4416 void
4417 set_gdbarch_sofun_address_maybe_missing (struct gdbarch *gdbarch,
4418 int sofun_address_maybe_missing)
4420 gdbarch->sofun_address_maybe_missing = sofun_address_maybe_missing;
4423 bool
4424 gdbarch_process_record_p (struct gdbarch *gdbarch)
4426 gdb_assert (gdbarch != NULL);
4427 return gdbarch->process_record != NULL;
4431 gdbarch_process_record (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr)
4433 gdb_assert (gdbarch != NULL);
4434 gdb_assert (gdbarch->process_record != NULL);
4435 if (gdbarch_debug >= 2)
4436 gdb_printf (gdb_stdlog, "gdbarch_process_record called\n");
4437 return gdbarch->process_record (gdbarch, regcache, addr);
4440 void
4441 set_gdbarch_process_record (struct gdbarch *gdbarch,
4442 gdbarch_process_record_ftype process_record)
4444 gdbarch->process_record = process_record;
4447 bool
4448 gdbarch_process_record_signal_p (struct gdbarch *gdbarch)
4450 gdb_assert (gdbarch != NULL);
4451 return gdbarch->process_record_signal != NULL;
4455 gdbarch_process_record_signal (struct gdbarch *gdbarch, struct regcache *regcache, enum gdb_signal signal)
4457 gdb_assert (gdbarch != NULL);
4458 gdb_assert (gdbarch->process_record_signal != NULL);
4459 if (gdbarch_debug >= 2)
4460 gdb_printf (gdb_stdlog, "gdbarch_process_record_signal called\n");
4461 return gdbarch->process_record_signal (gdbarch, regcache, signal);
4464 void
4465 set_gdbarch_process_record_signal (struct gdbarch *gdbarch,
4466 gdbarch_process_record_signal_ftype process_record_signal)
4468 gdbarch->process_record_signal = process_record_signal;
4471 bool
4472 gdbarch_gdb_signal_from_target_p (struct gdbarch *gdbarch)
4474 gdb_assert (gdbarch != NULL);
4475 return gdbarch->gdb_signal_from_target != NULL;
4478 enum gdb_signal
4479 gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch, int signo)
4481 gdb_assert (gdbarch != NULL);
4482 gdb_assert (gdbarch->gdb_signal_from_target != NULL);
4483 if (gdbarch_debug >= 2)
4484 gdb_printf (gdb_stdlog, "gdbarch_gdb_signal_from_target called\n");
4485 return gdbarch->gdb_signal_from_target (gdbarch, signo);
4488 void
4489 set_gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch,
4490 gdbarch_gdb_signal_from_target_ftype gdb_signal_from_target)
4492 gdbarch->gdb_signal_from_target = gdb_signal_from_target;
4495 bool
4496 gdbarch_gdb_signal_to_target_p (struct gdbarch *gdbarch)
4498 gdb_assert (gdbarch != NULL);
4499 return gdbarch->gdb_signal_to_target != NULL;
4503 gdbarch_gdb_signal_to_target (struct gdbarch *gdbarch, enum gdb_signal signal)
4505 gdb_assert (gdbarch != NULL);
4506 gdb_assert (gdbarch->gdb_signal_to_target != NULL);
4507 if (gdbarch_debug >= 2)
4508 gdb_printf (gdb_stdlog, "gdbarch_gdb_signal_to_target called\n");
4509 return gdbarch->gdb_signal_to_target (gdbarch, signal);
4512 void
4513 set_gdbarch_gdb_signal_to_target (struct gdbarch *gdbarch,
4514 gdbarch_gdb_signal_to_target_ftype gdb_signal_to_target)
4516 gdbarch->gdb_signal_to_target = gdb_signal_to_target;
4519 bool
4520 gdbarch_get_siginfo_type_p (struct gdbarch *gdbarch)
4522 gdb_assert (gdbarch != NULL);
4523 return gdbarch->get_siginfo_type != NULL;
4526 struct type *
4527 gdbarch_get_siginfo_type (struct gdbarch *gdbarch)
4529 gdb_assert (gdbarch != NULL);
4530 gdb_assert (gdbarch->get_siginfo_type != NULL);
4531 if (gdbarch_debug >= 2)
4532 gdb_printf (gdb_stdlog, "gdbarch_get_siginfo_type called\n");
4533 return gdbarch->get_siginfo_type (gdbarch);
4536 void
4537 set_gdbarch_get_siginfo_type (struct gdbarch *gdbarch,
4538 gdbarch_get_siginfo_type_ftype get_siginfo_type)
4540 gdbarch->get_siginfo_type = get_siginfo_type;
4543 bool
4544 gdbarch_record_special_symbol_p (struct gdbarch *gdbarch)
4546 gdb_assert (gdbarch != NULL);
4547 return gdbarch->record_special_symbol != NULL;
4550 void
4551 gdbarch_record_special_symbol (struct gdbarch *gdbarch, struct objfile *objfile, asymbol *sym)
4553 gdb_assert (gdbarch != NULL);
4554 gdb_assert (gdbarch->record_special_symbol != NULL);
4555 if (gdbarch_debug >= 2)
4556 gdb_printf (gdb_stdlog, "gdbarch_record_special_symbol called\n");
4557 gdbarch->record_special_symbol (gdbarch, objfile, sym);
4560 void
4561 set_gdbarch_record_special_symbol (struct gdbarch *gdbarch,
4562 gdbarch_record_special_symbol_ftype record_special_symbol)
4564 gdbarch->record_special_symbol = record_special_symbol;
4567 bool
4568 gdbarch_get_syscall_number_p (struct gdbarch *gdbarch)
4570 gdb_assert (gdbarch != NULL);
4571 return gdbarch->get_syscall_number != NULL;
4574 LONGEST
4575 gdbarch_get_syscall_number (struct gdbarch *gdbarch, thread_info *thread)
4577 gdb_assert (gdbarch != NULL);
4578 gdb_assert (gdbarch->get_syscall_number != NULL);
4579 if (gdbarch_debug >= 2)
4580 gdb_printf (gdb_stdlog, "gdbarch_get_syscall_number called\n");
4581 return gdbarch->get_syscall_number (gdbarch, thread);
4584 void
4585 set_gdbarch_get_syscall_number (struct gdbarch *gdbarch,
4586 gdbarch_get_syscall_number_ftype get_syscall_number)
4588 gdbarch->get_syscall_number = get_syscall_number;
4591 const char *
4592 gdbarch_xml_syscall_file (struct gdbarch *gdbarch)
4594 gdb_assert (gdbarch != NULL);
4595 /* Skip verify of xml_syscall_file, invalid_p == 0. */
4596 if (gdbarch_debug >= 2)
4597 gdb_printf (gdb_stdlog, "gdbarch_xml_syscall_file called\n");
4598 return gdbarch->xml_syscall_file;
4601 void
4602 set_gdbarch_xml_syscall_file (struct gdbarch *gdbarch,
4603 const char * xml_syscall_file)
4605 gdbarch->xml_syscall_file = xml_syscall_file;
4608 struct syscalls_info *
4609 gdbarch_syscalls_info (struct gdbarch *gdbarch)
4611 gdb_assert (gdbarch != NULL);
4612 /* Skip verify of syscalls_info, invalid_p == 0. */
4613 if (gdbarch_debug >= 2)
4614 gdb_printf (gdb_stdlog, "gdbarch_syscalls_info called\n");
4615 return gdbarch->syscalls_info;
4618 void
4619 set_gdbarch_syscalls_info (struct gdbarch *gdbarch,
4620 struct syscalls_info * syscalls_info)
4622 gdbarch->syscalls_info = syscalls_info;
4625 const char *const *
4626 gdbarch_stap_integer_prefixes (struct gdbarch *gdbarch)
4628 gdb_assert (gdbarch != NULL);
4629 /* Skip verify of stap_integer_prefixes, invalid_p == 0. */
4630 if (gdbarch_debug >= 2)
4631 gdb_printf (gdb_stdlog, "gdbarch_stap_integer_prefixes called\n");
4632 return gdbarch->stap_integer_prefixes;
4635 void
4636 set_gdbarch_stap_integer_prefixes (struct gdbarch *gdbarch,
4637 const char *const * stap_integer_prefixes)
4639 gdbarch->stap_integer_prefixes = stap_integer_prefixes;
4642 const char *const *
4643 gdbarch_stap_integer_suffixes (struct gdbarch *gdbarch)
4645 gdb_assert (gdbarch != NULL);
4646 /* Skip verify of stap_integer_suffixes, invalid_p == 0. */
4647 if (gdbarch_debug >= 2)
4648 gdb_printf (gdb_stdlog, "gdbarch_stap_integer_suffixes called\n");
4649 return gdbarch->stap_integer_suffixes;
4652 void
4653 set_gdbarch_stap_integer_suffixes (struct gdbarch *gdbarch,
4654 const char *const * stap_integer_suffixes)
4656 gdbarch->stap_integer_suffixes = stap_integer_suffixes;
4659 const char *const *
4660 gdbarch_stap_register_prefixes (struct gdbarch *gdbarch)
4662 gdb_assert (gdbarch != NULL);
4663 /* Skip verify of stap_register_prefixes, invalid_p == 0. */
4664 if (gdbarch_debug >= 2)
4665 gdb_printf (gdb_stdlog, "gdbarch_stap_register_prefixes called\n");
4666 return gdbarch->stap_register_prefixes;
4669 void
4670 set_gdbarch_stap_register_prefixes (struct gdbarch *gdbarch,
4671 const char *const * stap_register_prefixes)
4673 gdbarch->stap_register_prefixes = stap_register_prefixes;
4676 const char *const *
4677 gdbarch_stap_register_suffixes (struct gdbarch *gdbarch)
4679 gdb_assert (gdbarch != NULL);
4680 /* Skip verify of stap_register_suffixes, invalid_p == 0. */
4681 if (gdbarch_debug >= 2)
4682 gdb_printf (gdb_stdlog, "gdbarch_stap_register_suffixes called\n");
4683 return gdbarch->stap_register_suffixes;
4686 void
4687 set_gdbarch_stap_register_suffixes (struct gdbarch *gdbarch,
4688 const char *const * stap_register_suffixes)
4690 gdbarch->stap_register_suffixes = stap_register_suffixes;
4693 const char *const *
4694 gdbarch_stap_register_indirection_prefixes (struct gdbarch *gdbarch)
4696 gdb_assert (gdbarch != NULL);
4697 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0. */
4698 if (gdbarch_debug >= 2)
4699 gdb_printf (gdb_stdlog, "gdbarch_stap_register_indirection_prefixes called\n");
4700 return gdbarch->stap_register_indirection_prefixes;
4703 void
4704 set_gdbarch_stap_register_indirection_prefixes (struct gdbarch *gdbarch,
4705 const char *const * stap_register_indirection_prefixes)
4707 gdbarch->stap_register_indirection_prefixes = stap_register_indirection_prefixes;
4710 const char *const *
4711 gdbarch_stap_register_indirection_suffixes (struct gdbarch *gdbarch)
4713 gdb_assert (gdbarch != NULL);
4714 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0. */
4715 if (gdbarch_debug >= 2)
4716 gdb_printf (gdb_stdlog, "gdbarch_stap_register_indirection_suffixes called\n");
4717 return gdbarch->stap_register_indirection_suffixes;
4720 void
4721 set_gdbarch_stap_register_indirection_suffixes (struct gdbarch *gdbarch,
4722 const char *const * stap_register_indirection_suffixes)
4724 gdbarch->stap_register_indirection_suffixes = stap_register_indirection_suffixes;
4727 const char *
4728 gdbarch_stap_gdb_register_prefix (struct gdbarch *gdbarch)
4730 gdb_assert (gdbarch != NULL);
4731 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0. */
4732 if (gdbarch_debug >= 2)
4733 gdb_printf (gdb_stdlog, "gdbarch_stap_gdb_register_prefix called\n");
4734 return gdbarch->stap_gdb_register_prefix;
4737 void
4738 set_gdbarch_stap_gdb_register_prefix (struct gdbarch *gdbarch,
4739 const char * stap_gdb_register_prefix)
4741 gdbarch->stap_gdb_register_prefix = stap_gdb_register_prefix;
4744 const char *
4745 gdbarch_stap_gdb_register_suffix (struct gdbarch *gdbarch)
4747 gdb_assert (gdbarch != NULL);
4748 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0. */
4749 if (gdbarch_debug >= 2)
4750 gdb_printf (gdb_stdlog, "gdbarch_stap_gdb_register_suffix called\n");
4751 return gdbarch->stap_gdb_register_suffix;
4754 void
4755 set_gdbarch_stap_gdb_register_suffix (struct gdbarch *gdbarch,
4756 const char * stap_gdb_register_suffix)
4758 gdbarch->stap_gdb_register_suffix = stap_gdb_register_suffix;
4761 bool
4762 gdbarch_stap_is_single_operand_p (struct gdbarch *gdbarch)
4764 gdb_assert (gdbarch != NULL);
4765 return gdbarch->stap_is_single_operand != NULL;
4769 gdbarch_stap_is_single_operand (struct gdbarch *gdbarch, const char *s)
4771 gdb_assert (gdbarch != NULL);
4772 gdb_assert (gdbarch->stap_is_single_operand != NULL);
4773 if (gdbarch_debug >= 2)
4774 gdb_printf (gdb_stdlog, "gdbarch_stap_is_single_operand called\n");
4775 return gdbarch->stap_is_single_operand (gdbarch, s);
4778 void
4779 set_gdbarch_stap_is_single_operand (struct gdbarch *gdbarch,
4780 gdbarch_stap_is_single_operand_ftype stap_is_single_operand)
4782 gdbarch->stap_is_single_operand = stap_is_single_operand;
4785 bool
4786 gdbarch_stap_parse_special_token_p (struct gdbarch *gdbarch)
4788 gdb_assert (gdbarch != NULL);
4789 return gdbarch->stap_parse_special_token != NULL;
4792 expr::operation_up
4793 gdbarch_stap_parse_special_token (struct gdbarch *gdbarch, struct stap_parse_info *p)
4795 gdb_assert (gdbarch != NULL);
4796 gdb_assert (gdbarch->stap_parse_special_token != NULL);
4797 if (gdbarch_debug >= 2)
4798 gdb_printf (gdb_stdlog, "gdbarch_stap_parse_special_token called\n");
4799 return gdbarch->stap_parse_special_token (gdbarch, p);
4802 void
4803 set_gdbarch_stap_parse_special_token (struct gdbarch *gdbarch,
4804 gdbarch_stap_parse_special_token_ftype stap_parse_special_token)
4806 gdbarch->stap_parse_special_token = stap_parse_special_token;
4809 bool
4810 gdbarch_stap_adjust_register_p (struct gdbarch *gdbarch)
4812 gdb_assert (gdbarch != NULL);
4813 return gdbarch->stap_adjust_register != NULL;
4816 std::string
4817 gdbarch_stap_adjust_register (struct gdbarch *gdbarch, struct stap_parse_info *p, const std::string &regname, int regnum)
4819 gdb_assert (gdbarch != NULL);
4820 gdb_assert (gdbarch->stap_adjust_register != NULL);
4821 if (gdbarch_debug >= 2)
4822 gdb_printf (gdb_stdlog, "gdbarch_stap_adjust_register called\n");
4823 return gdbarch->stap_adjust_register (gdbarch, p, regname, regnum);
4826 void
4827 set_gdbarch_stap_adjust_register (struct gdbarch *gdbarch,
4828 gdbarch_stap_adjust_register_ftype stap_adjust_register)
4830 gdbarch->stap_adjust_register = stap_adjust_register;
4833 bool
4834 gdbarch_dtrace_parse_probe_argument_p (struct gdbarch *gdbarch)
4836 gdb_assert (gdbarch != NULL);
4837 return gdbarch->dtrace_parse_probe_argument != NULL;
4840 expr::operation_up
4841 gdbarch_dtrace_parse_probe_argument (struct gdbarch *gdbarch, int narg)
4843 gdb_assert (gdbarch != NULL);
4844 gdb_assert (gdbarch->dtrace_parse_probe_argument != NULL);
4845 if (gdbarch_debug >= 2)
4846 gdb_printf (gdb_stdlog, "gdbarch_dtrace_parse_probe_argument called\n");
4847 return gdbarch->dtrace_parse_probe_argument (gdbarch, narg);
4850 void
4851 set_gdbarch_dtrace_parse_probe_argument (struct gdbarch *gdbarch,
4852 gdbarch_dtrace_parse_probe_argument_ftype dtrace_parse_probe_argument)
4854 gdbarch->dtrace_parse_probe_argument = dtrace_parse_probe_argument;
4857 bool
4858 gdbarch_dtrace_probe_is_enabled_p (struct gdbarch *gdbarch)
4860 gdb_assert (gdbarch != NULL);
4861 return gdbarch->dtrace_probe_is_enabled != NULL;
4865 gdbarch_dtrace_probe_is_enabled (struct gdbarch *gdbarch, CORE_ADDR addr)
4867 gdb_assert (gdbarch != NULL);
4868 gdb_assert (gdbarch->dtrace_probe_is_enabled != NULL);
4869 if (gdbarch_debug >= 2)
4870 gdb_printf (gdb_stdlog, "gdbarch_dtrace_probe_is_enabled called\n");
4871 return gdbarch->dtrace_probe_is_enabled (gdbarch, addr);
4874 void
4875 set_gdbarch_dtrace_probe_is_enabled (struct gdbarch *gdbarch,
4876 gdbarch_dtrace_probe_is_enabled_ftype dtrace_probe_is_enabled)
4878 gdbarch->dtrace_probe_is_enabled = dtrace_probe_is_enabled;
4881 bool
4882 gdbarch_dtrace_enable_probe_p (struct gdbarch *gdbarch)
4884 gdb_assert (gdbarch != NULL);
4885 return gdbarch->dtrace_enable_probe != NULL;
4888 void
4889 gdbarch_dtrace_enable_probe (struct gdbarch *gdbarch, CORE_ADDR addr)
4891 gdb_assert (gdbarch != NULL);
4892 gdb_assert (gdbarch->dtrace_enable_probe != NULL);
4893 if (gdbarch_debug >= 2)
4894 gdb_printf (gdb_stdlog, "gdbarch_dtrace_enable_probe called\n");
4895 gdbarch->dtrace_enable_probe (gdbarch, addr);
4898 void
4899 set_gdbarch_dtrace_enable_probe (struct gdbarch *gdbarch,
4900 gdbarch_dtrace_enable_probe_ftype dtrace_enable_probe)
4902 gdbarch->dtrace_enable_probe = dtrace_enable_probe;
4905 bool
4906 gdbarch_dtrace_disable_probe_p (struct gdbarch *gdbarch)
4908 gdb_assert (gdbarch != NULL);
4909 return gdbarch->dtrace_disable_probe != NULL;
4912 void
4913 gdbarch_dtrace_disable_probe (struct gdbarch *gdbarch, CORE_ADDR addr)
4915 gdb_assert (gdbarch != NULL);
4916 gdb_assert (gdbarch->dtrace_disable_probe != NULL);
4917 if (gdbarch_debug >= 2)
4918 gdb_printf (gdb_stdlog, "gdbarch_dtrace_disable_probe called\n");
4919 gdbarch->dtrace_disable_probe (gdbarch, addr);
4922 void
4923 set_gdbarch_dtrace_disable_probe (struct gdbarch *gdbarch,
4924 gdbarch_dtrace_disable_probe_ftype dtrace_disable_probe)
4926 gdbarch->dtrace_disable_probe = dtrace_disable_probe;
4930 gdbarch_has_global_solist (struct gdbarch *gdbarch)
4932 gdb_assert (gdbarch != NULL);
4933 /* Skip verify of has_global_solist, invalid_p == 0. */
4934 if (gdbarch_debug >= 2)
4935 gdb_printf (gdb_stdlog, "gdbarch_has_global_solist called\n");
4936 return gdbarch->has_global_solist;
4939 void
4940 set_gdbarch_has_global_solist (struct gdbarch *gdbarch,
4941 int has_global_solist)
4943 gdbarch->has_global_solist = has_global_solist;
4947 gdbarch_has_global_breakpoints (struct gdbarch *gdbarch)
4949 gdb_assert (gdbarch != NULL);
4950 /* Skip verify of has_global_breakpoints, invalid_p == 0. */
4951 if (gdbarch_debug >= 2)
4952 gdb_printf (gdb_stdlog, "gdbarch_has_global_breakpoints called\n");
4953 return gdbarch->has_global_breakpoints;
4956 void
4957 set_gdbarch_has_global_breakpoints (struct gdbarch *gdbarch,
4958 int has_global_breakpoints)
4960 gdbarch->has_global_breakpoints = has_global_breakpoints;
4964 gdbarch_has_shared_address_space (struct gdbarch *gdbarch)
4966 gdb_assert (gdbarch != NULL);
4967 gdb_assert (gdbarch->has_shared_address_space != NULL);
4968 if (gdbarch_debug >= 2)
4969 gdb_printf (gdb_stdlog, "gdbarch_has_shared_address_space called\n");
4970 return gdbarch->has_shared_address_space (gdbarch);
4973 void
4974 set_gdbarch_has_shared_address_space (struct gdbarch *gdbarch,
4975 gdbarch_has_shared_address_space_ftype has_shared_address_space)
4977 gdbarch->has_shared_address_space = has_shared_address_space;
4981 gdbarch_fast_tracepoint_valid_at (struct gdbarch *gdbarch, CORE_ADDR addr, std::string *msg)
4983 gdb_assert (gdbarch != NULL);
4984 gdb_assert (gdbarch->fast_tracepoint_valid_at != NULL);
4985 if (gdbarch_debug >= 2)
4986 gdb_printf (gdb_stdlog, "gdbarch_fast_tracepoint_valid_at called\n");
4987 return gdbarch->fast_tracepoint_valid_at (gdbarch, addr, msg);
4990 void
4991 set_gdbarch_fast_tracepoint_valid_at (struct gdbarch *gdbarch,
4992 gdbarch_fast_tracepoint_valid_at_ftype fast_tracepoint_valid_at)
4994 gdbarch->fast_tracepoint_valid_at = fast_tracepoint_valid_at;
4997 void
4998 gdbarch_guess_tracepoint_registers (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr)
5000 gdb_assert (gdbarch != NULL);
5001 gdb_assert (gdbarch->guess_tracepoint_registers != NULL);
5002 if (gdbarch_debug >= 2)
5003 gdb_printf (gdb_stdlog, "gdbarch_guess_tracepoint_registers called\n");
5004 gdbarch->guess_tracepoint_registers (gdbarch, regcache, addr);
5007 void
5008 set_gdbarch_guess_tracepoint_registers (struct gdbarch *gdbarch,
5009 gdbarch_guess_tracepoint_registers_ftype guess_tracepoint_registers)
5011 gdbarch->guess_tracepoint_registers = guess_tracepoint_registers;
5014 const char *
5015 gdbarch_auto_charset (struct gdbarch *gdbarch)
5017 gdb_assert (gdbarch != NULL);
5018 gdb_assert (gdbarch->auto_charset != NULL);
5019 if (gdbarch_debug >= 2)
5020 gdb_printf (gdb_stdlog, "gdbarch_auto_charset called\n");
5021 return gdbarch->auto_charset ();
5024 void
5025 set_gdbarch_auto_charset (struct gdbarch *gdbarch,
5026 gdbarch_auto_charset_ftype auto_charset)
5028 gdbarch->auto_charset = auto_charset;
5031 const char *
5032 gdbarch_auto_wide_charset (struct gdbarch *gdbarch)
5034 gdb_assert (gdbarch != NULL);
5035 gdb_assert (gdbarch->auto_wide_charset != NULL);
5036 if (gdbarch_debug >= 2)
5037 gdb_printf (gdb_stdlog, "gdbarch_auto_wide_charset called\n");
5038 return gdbarch->auto_wide_charset ();
5041 void
5042 set_gdbarch_auto_wide_charset (struct gdbarch *gdbarch,
5043 gdbarch_auto_wide_charset_ftype auto_wide_charset)
5045 gdbarch->auto_wide_charset = auto_wide_charset;
5048 const char *
5049 gdbarch_solib_symbols_extension (struct gdbarch *gdbarch)
5051 gdb_assert (gdbarch != NULL);
5052 /* Skip verify of solib_symbols_extension, invalid_p == 0. */
5053 if (gdbarch_debug >= 2)
5054 gdb_printf (gdb_stdlog, "gdbarch_solib_symbols_extension called\n");
5055 return gdbarch->solib_symbols_extension;
5058 void
5059 set_gdbarch_solib_symbols_extension (struct gdbarch *gdbarch,
5060 const char * solib_symbols_extension)
5062 gdbarch->solib_symbols_extension = solib_symbols_extension;
5066 gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch)
5068 gdb_assert (gdbarch != NULL);
5069 /* Skip verify of has_dos_based_file_system, invalid_p == 0. */
5070 if (gdbarch_debug >= 2)
5071 gdb_printf (gdb_stdlog, "gdbarch_has_dos_based_file_system called\n");
5072 return gdbarch->has_dos_based_file_system;
5075 void
5076 set_gdbarch_has_dos_based_file_system (struct gdbarch *gdbarch,
5077 int has_dos_based_file_system)
5079 gdbarch->has_dos_based_file_system = has_dos_based_file_system;
5082 void
5083 gdbarch_gen_return_address (struct gdbarch *gdbarch, struct agent_expr *ax, struct axs_value *value, CORE_ADDR scope)
5085 gdb_assert (gdbarch != NULL);
5086 gdb_assert (gdbarch->gen_return_address != NULL);
5087 if (gdbarch_debug >= 2)
5088 gdb_printf (gdb_stdlog, "gdbarch_gen_return_address called\n");
5089 gdbarch->gen_return_address (gdbarch, ax, value, scope);
5092 void
5093 set_gdbarch_gen_return_address (struct gdbarch *gdbarch,
5094 gdbarch_gen_return_address_ftype gen_return_address)
5096 gdbarch->gen_return_address = gen_return_address;
5099 bool
5100 gdbarch_info_proc_p (struct gdbarch *gdbarch)
5102 gdb_assert (gdbarch != NULL);
5103 return gdbarch->info_proc != NULL;
5106 void
5107 gdbarch_info_proc (struct gdbarch *gdbarch, const char *args, enum info_proc_what what)
5109 gdb_assert (gdbarch != NULL);
5110 gdb_assert (gdbarch->info_proc != NULL);
5111 if (gdbarch_debug >= 2)
5112 gdb_printf (gdb_stdlog, "gdbarch_info_proc called\n");
5113 gdbarch->info_proc (gdbarch, args, what);
5116 void
5117 set_gdbarch_info_proc (struct gdbarch *gdbarch,
5118 gdbarch_info_proc_ftype info_proc)
5120 gdbarch->info_proc = info_proc;
5123 bool
5124 gdbarch_core_info_proc_p (struct gdbarch *gdbarch)
5126 gdb_assert (gdbarch != NULL);
5127 return gdbarch->core_info_proc != NULL;
5130 void
5131 gdbarch_core_info_proc (struct gdbarch *gdbarch, const char *args, enum info_proc_what what)
5133 gdb_assert (gdbarch != NULL);
5134 gdb_assert (gdbarch->core_info_proc != NULL);
5135 if (gdbarch_debug >= 2)
5136 gdb_printf (gdb_stdlog, "gdbarch_core_info_proc called\n");
5137 gdbarch->core_info_proc (gdbarch, args, what);
5140 void
5141 set_gdbarch_core_info_proc (struct gdbarch *gdbarch,
5142 gdbarch_core_info_proc_ftype core_info_proc)
5144 gdbarch->core_info_proc = core_info_proc;
5147 void
5148 gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch *gdbarch, iterate_over_objfiles_in_search_order_cb_ftype cb, struct objfile *current_objfile)
5150 gdb_assert (gdbarch != NULL);
5151 gdb_assert (gdbarch->iterate_over_objfiles_in_search_order != NULL);
5152 if (gdbarch_debug >= 2)
5153 gdb_printf (gdb_stdlog, "gdbarch_iterate_over_objfiles_in_search_order called\n");
5154 gdbarch->iterate_over_objfiles_in_search_order (gdbarch, cb, current_objfile);
5157 void
5158 set_gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch *gdbarch,
5159 gdbarch_iterate_over_objfiles_in_search_order_ftype iterate_over_objfiles_in_search_order)
5161 gdbarch->iterate_over_objfiles_in_search_order = iterate_over_objfiles_in_search_order;
5164 struct ravenscar_arch_ops *
5165 gdbarch_ravenscar_ops (struct gdbarch *gdbarch)
5167 gdb_assert (gdbarch != NULL);
5168 /* Skip verify of ravenscar_ops, invalid_p == 0. */
5169 if (gdbarch_debug >= 2)
5170 gdb_printf (gdb_stdlog, "gdbarch_ravenscar_ops called\n");
5171 return gdbarch->ravenscar_ops;
5174 void
5175 set_gdbarch_ravenscar_ops (struct gdbarch *gdbarch,
5176 struct ravenscar_arch_ops * ravenscar_ops)
5178 gdbarch->ravenscar_ops = ravenscar_ops;
5182 gdbarch_insn_is_call (struct gdbarch *gdbarch, CORE_ADDR addr)
5184 gdb_assert (gdbarch != NULL);
5185 gdb_assert (gdbarch->insn_is_call != NULL);
5186 if (gdbarch_debug >= 2)
5187 gdb_printf (gdb_stdlog, "gdbarch_insn_is_call called\n");
5188 return gdbarch->insn_is_call (gdbarch, addr);
5191 void
5192 set_gdbarch_insn_is_call (struct gdbarch *gdbarch,
5193 gdbarch_insn_is_call_ftype insn_is_call)
5195 gdbarch->insn_is_call = insn_is_call;
5199 gdbarch_insn_is_ret (struct gdbarch *gdbarch, CORE_ADDR addr)
5201 gdb_assert (gdbarch != NULL);
5202 gdb_assert (gdbarch->insn_is_ret != NULL);
5203 if (gdbarch_debug >= 2)
5204 gdb_printf (gdb_stdlog, "gdbarch_insn_is_ret called\n");
5205 return gdbarch->insn_is_ret (gdbarch, addr);
5208 void
5209 set_gdbarch_insn_is_ret (struct gdbarch *gdbarch,
5210 gdbarch_insn_is_ret_ftype insn_is_ret)
5212 gdbarch->insn_is_ret = insn_is_ret;
5216 gdbarch_insn_is_jump (struct gdbarch *gdbarch, CORE_ADDR addr)
5218 gdb_assert (gdbarch != NULL);
5219 gdb_assert (gdbarch->insn_is_jump != NULL);
5220 if (gdbarch_debug >= 2)
5221 gdb_printf (gdb_stdlog, "gdbarch_insn_is_jump called\n");
5222 return gdbarch->insn_is_jump (gdbarch, addr);
5225 void
5226 set_gdbarch_insn_is_jump (struct gdbarch *gdbarch,
5227 gdbarch_insn_is_jump_ftype insn_is_jump)
5229 gdbarch->insn_is_jump = insn_is_jump;
5232 bool
5233 gdbarch_program_breakpoint_here_p (struct gdbarch *gdbarch, CORE_ADDR address)
5235 gdb_assert (gdbarch != NULL);
5236 gdb_assert (gdbarch->program_breakpoint_here_p != NULL);
5237 if (gdbarch_debug >= 2)
5238 gdb_printf (gdb_stdlog, "gdbarch_program_breakpoint_here_p called\n");
5239 return gdbarch->program_breakpoint_here_p (gdbarch, address);
5242 void
5243 set_gdbarch_program_breakpoint_here_p (struct gdbarch *gdbarch,
5244 gdbarch_program_breakpoint_here_p_ftype program_breakpoint_here_p)
5246 gdbarch->program_breakpoint_here_p = program_breakpoint_here_p;
5249 bool
5250 gdbarch_auxv_parse_p (struct gdbarch *gdbarch)
5252 gdb_assert (gdbarch != NULL);
5253 return gdbarch->auxv_parse != NULL;
5257 gdbarch_auxv_parse (struct gdbarch *gdbarch, const gdb_byte **readptr, const gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
5259 gdb_assert (gdbarch != NULL);
5260 gdb_assert (gdbarch->auxv_parse != NULL);
5261 if (gdbarch_debug >= 2)
5262 gdb_printf (gdb_stdlog, "gdbarch_auxv_parse called\n");
5263 return gdbarch->auxv_parse (gdbarch, readptr, endptr, typep, valp);
5266 void
5267 set_gdbarch_auxv_parse (struct gdbarch *gdbarch,
5268 gdbarch_auxv_parse_ftype auxv_parse)
5270 gdbarch->auxv_parse = auxv_parse;
5273 void
5274 gdbarch_print_auxv_entry (struct gdbarch *gdbarch, struct ui_file *file, CORE_ADDR type, CORE_ADDR val)
5276 gdb_assert (gdbarch != NULL);
5277 gdb_assert (gdbarch->print_auxv_entry != NULL);
5278 if (gdbarch_debug >= 2)
5279 gdb_printf (gdb_stdlog, "gdbarch_print_auxv_entry called\n");
5280 gdbarch->print_auxv_entry (gdbarch, file, type, val);
5283 void
5284 set_gdbarch_print_auxv_entry (struct gdbarch *gdbarch,
5285 gdbarch_print_auxv_entry_ftype print_auxv_entry)
5287 gdbarch->print_auxv_entry = print_auxv_entry;
5291 gdbarch_vsyscall_range (struct gdbarch *gdbarch, struct mem_range *range)
5293 gdb_assert (gdbarch != NULL);
5294 gdb_assert (gdbarch->vsyscall_range != NULL);
5295 if (gdbarch_debug >= 2)
5296 gdb_printf (gdb_stdlog, "gdbarch_vsyscall_range called\n");
5297 return gdbarch->vsyscall_range (gdbarch, range);
5300 void
5301 set_gdbarch_vsyscall_range (struct gdbarch *gdbarch,
5302 gdbarch_vsyscall_range_ftype vsyscall_range)
5304 gdbarch->vsyscall_range = vsyscall_range;
5307 CORE_ADDR
5308 gdbarch_infcall_mmap (struct gdbarch *gdbarch, CORE_ADDR size, unsigned prot)
5310 gdb_assert (gdbarch != NULL);
5311 gdb_assert (gdbarch->infcall_mmap != NULL);
5312 if (gdbarch_debug >= 2)
5313 gdb_printf (gdb_stdlog, "gdbarch_infcall_mmap called\n");
5314 return gdbarch->infcall_mmap (size, prot);
5317 void
5318 set_gdbarch_infcall_mmap (struct gdbarch *gdbarch,
5319 gdbarch_infcall_mmap_ftype infcall_mmap)
5321 gdbarch->infcall_mmap = infcall_mmap;
5324 void
5325 gdbarch_infcall_munmap (struct gdbarch *gdbarch, CORE_ADDR addr, CORE_ADDR size)
5327 gdb_assert (gdbarch != NULL);
5328 gdb_assert (gdbarch->infcall_munmap != NULL);
5329 if (gdbarch_debug >= 2)
5330 gdb_printf (gdb_stdlog, "gdbarch_infcall_munmap called\n");
5331 gdbarch->infcall_munmap (addr, size);
5334 void
5335 set_gdbarch_infcall_munmap (struct gdbarch *gdbarch,
5336 gdbarch_infcall_munmap_ftype infcall_munmap)
5338 gdbarch->infcall_munmap = infcall_munmap;
5341 std::string
5342 gdbarch_gcc_target_options (struct gdbarch *gdbarch)
5344 gdb_assert (gdbarch != NULL);
5345 gdb_assert (gdbarch->gcc_target_options != NULL);
5346 if (gdbarch_debug >= 2)
5347 gdb_printf (gdb_stdlog, "gdbarch_gcc_target_options called\n");
5348 return gdbarch->gcc_target_options (gdbarch);
5351 void
5352 set_gdbarch_gcc_target_options (struct gdbarch *gdbarch,
5353 gdbarch_gcc_target_options_ftype gcc_target_options)
5355 gdbarch->gcc_target_options = gcc_target_options;
5358 const char *
5359 gdbarch_gnu_triplet_regexp (struct gdbarch *gdbarch)
5361 gdb_assert (gdbarch != NULL);
5362 gdb_assert (gdbarch->gnu_triplet_regexp != NULL);
5363 if (gdbarch_debug >= 2)
5364 gdb_printf (gdb_stdlog, "gdbarch_gnu_triplet_regexp called\n");
5365 return gdbarch->gnu_triplet_regexp (gdbarch);
5368 void
5369 set_gdbarch_gnu_triplet_regexp (struct gdbarch *gdbarch,
5370 gdbarch_gnu_triplet_regexp_ftype gnu_triplet_regexp)
5372 gdbarch->gnu_triplet_regexp = gnu_triplet_regexp;
5376 gdbarch_addressable_memory_unit_size (struct gdbarch *gdbarch)
5378 gdb_assert (gdbarch != NULL);
5379 gdb_assert (gdbarch->addressable_memory_unit_size != NULL);
5380 if (gdbarch_debug >= 2)
5381 gdb_printf (gdb_stdlog, "gdbarch_addressable_memory_unit_size called\n");
5382 return gdbarch->addressable_memory_unit_size (gdbarch);
5385 void
5386 set_gdbarch_addressable_memory_unit_size (struct gdbarch *gdbarch,
5387 gdbarch_addressable_memory_unit_size_ftype addressable_memory_unit_size)
5389 gdbarch->addressable_memory_unit_size = addressable_memory_unit_size;
5392 const char *
5393 gdbarch_disassembler_options_implicit (struct gdbarch *gdbarch)
5395 gdb_assert (gdbarch != NULL);
5396 /* Skip verify of disassembler_options_implicit, invalid_p == 0. */
5397 if (gdbarch_debug >= 2)
5398 gdb_printf (gdb_stdlog, "gdbarch_disassembler_options_implicit called\n");
5399 return gdbarch->disassembler_options_implicit;
5402 void
5403 set_gdbarch_disassembler_options_implicit (struct gdbarch *gdbarch,
5404 const char * disassembler_options_implicit)
5406 gdbarch->disassembler_options_implicit = disassembler_options_implicit;
5409 std::string *
5410 gdbarch_disassembler_options (struct gdbarch *gdbarch)
5412 gdb_assert (gdbarch != NULL);
5413 /* Skip verify of disassembler_options, invalid_p == 0. */
5414 if (gdbarch_debug >= 2)
5415 gdb_printf (gdb_stdlog, "gdbarch_disassembler_options called\n");
5416 return gdbarch->disassembler_options;
5419 void
5420 set_gdbarch_disassembler_options (struct gdbarch *gdbarch,
5421 std::string * disassembler_options)
5423 gdbarch->disassembler_options = disassembler_options;
5426 const disasm_options_and_args_t *
5427 gdbarch_valid_disassembler_options (struct gdbarch *gdbarch)
5429 gdb_assert (gdbarch != NULL);
5430 /* Skip verify of valid_disassembler_options, invalid_p == 0. */
5431 if (gdbarch_debug >= 2)
5432 gdb_printf (gdb_stdlog, "gdbarch_valid_disassembler_options called\n");
5433 return gdbarch->valid_disassembler_options;
5436 void
5437 set_gdbarch_valid_disassembler_options (struct gdbarch *gdbarch,
5438 const disasm_options_and_args_t * valid_disassembler_options)
5440 gdbarch->valid_disassembler_options = valid_disassembler_options;
5443 ULONGEST
5444 gdbarch_type_align (struct gdbarch *gdbarch, struct type *type)
5446 gdb_assert (gdbarch != NULL);
5447 gdb_assert (gdbarch->type_align != NULL);
5448 if (gdbarch_debug >= 2)
5449 gdb_printf (gdb_stdlog, "gdbarch_type_align called\n");
5450 return gdbarch->type_align (gdbarch, type);
5453 void
5454 set_gdbarch_type_align (struct gdbarch *gdbarch,
5455 gdbarch_type_align_ftype type_align)
5457 gdbarch->type_align = type_align;
5460 std::string
5461 gdbarch_get_pc_address_flags (struct gdbarch *gdbarch, const frame_info_ptr &frame, CORE_ADDR pc)
5463 gdb_assert (gdbarch != NULL);
5464 gdb_assert (gdbarch->get_pc_address_flags != NULL);
5465 if (gdbarch_debug >= 2)
5466 gdb_printf (gdb_stdlog, "gdbarch_get_pc_address_flags called\n");
5467 return gdbarch->get_pc_address_flags (frame, pc);
5470 void
5471 set_gdbarch_get_pc_address_flags (struct gdbarch *gdbarch,
5472 gdbarch_get_pc_address_flags_ftype get_pc_address_flags)
5474 gdbarch->get_pc_address_flags = get_pc_address_flags;
5477 void
5478 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)
5480 gdb_assert (gdbarch != NULL);
5481 gdb_assert (gdbarch->read_core_file_mappings != NULL);
5482 if (gdbarch_debug >= 2)
5483 gdb_printf (gdb_stdlog, "gdbarch_read_core_file_mappings called\n");
5484 gdbarch->read_core_file_mappings (gdbarch, cbfd, pre_loop_cb, loop_cb);
5487 void
5488 set_gdbarch_read_core_file_mappings (struct gdbarch *gdbarch,
5489 gdbarch_read_core_file_mappings_ftype read_core_file_mappings)
5491 gdbarch->read_core_file_mappings = read_core_file_mappings;
5494 bool
5495 gdbarch_use_target_description_from_corefile_notes (struct gdbarch *gdbarch, struct bfd *corefile_bfd)
5497 gdb_assert (gdbarch != NULL);
5498 gdb_assert (gdbarch->use_target_description_from_corefile_notes != NULL);
5499 if (gdbarch_debug >= 2)
5500 gdb_printf (gdb_stdlog, "gdbarch_use_target_description_from_corefile_notes called\n");
5501 return gdbarch->use_target_description_from_corefile_notes (gdbarch, corefile_bfd);
5504 void
5505 set_gdbarch_use_target_description_from_corefile_notes (struct gdbarch *gdbarch,
5506 gdbarch_use_target_description_from_corefile_notes_ftype use_target_description_from_corefile_notes)
5508 gdbarch->use_target_description_from_corefile_notes = use_target_description_from_corefile_notes;