1 /* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
4 /* Dynamic architecture support for GDB, the GNU debugger.
6 Copyright (C) 1998-2023 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:
28 /* Maintain the struct gdbarch object. */
32 /* Has this architecture been fully initialized? */
33 bool initialized_p
= false;
35 /* An obstack bound to the lifetime of the architecture. */
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
;
45 const struct target_desc
* target_desc
;
47 /* target specific vector. */
49 gdbarch_dump_tdep_ftype
*dump_tdep
= nullptr;
51 /* per-architecture data-pointers. */
53 void **data
= nullptr;
55 int short_bit
= 2*TARGET_CHAR_BIT
;
56 int int_bit
= 4*TARGET_CHAR_BIT
;
57 int long_bit
= 4*TARGET_CHAR_BIT
;
58 int long_long_bit
= 2*4*TARGET_CHAR_BIT
;
59 int bfloat16_bit
= 2*TARGET_CHAR_BIT
;
60 const struct floatformat
** bfloat16_format
= 0;
61 int half_bit
= 2*TARGET_CHAR_BIT
;
62 const struct floatformat
** half_format
= 0;
63 int float_bit
= 4*TARGET_CHAR_BIT
;
64 const struct floatformat
** float_format
= 0;
65 int double_bit
= 8*TARGET_CHAR_BIT
;
66 const struct floatformat
** double_format
= 0;
67 int long_double_bit
= 8*TARGET_CHAR_BIT
;
68 const struct floatformat
** long_double_format
= 0;
69 int wchar_bit
= 4*TARGET_CHAR_BIT
;
70 int wchar_signed
= -1;
71 gdbarch_floatformat_for_type_ftype
*floatformat_for_type
= default_floatformat_for_type
;
72 int ptr_bit
= 4*TARGET_CHAR_BIT
;
74 int dwarf2_addr_size
= 0;
76 gdbarch_read_pc_ftype
*read_pc
= nullptr;
77 gdbarch_write_pc_ftype
*write_pc
= nullptr;
78 gdbarch_virtual_frame_pointer_ftype
*virtual_frame_pointer
= legacy_virtual_frame_pointer
;
79 gdbarch_pseudo_register_read_ftype
*pseudo_register_read
= nullptr;
80 gdbarch_pseudo_register_read_value_ftype
*pseudo_register_read_value
= nullptr;
81 gdbarch_pseudo_register_write_ftype
*pseudo_register_write
= nullptr;
83 int num_pseudo_regs
= 0;
84 gdbarch_ax_pseudo_register_collect_ftype
*ax_pseudo_register_collect
= nullptr;
85 gdbarch_ax_pseudo_register_push_stack_ftype
*ax_pseudo_register_push_stack
= nullptr;
86 gdbarch_report_signal_info_ftype
*report_signal_info
= nullptr;
91 gdbarch_stab_reg_to_regnum_ftype
*stab_reg_to_regnum
= no_op_reg_to_regnum
;
92 gdbarch_ecoff_reg_to_regnum_ftype
*ecoff_reg_to_regnum
= no_op_reg_to_regnum
;
93 gdbarch_sdb_reg_to_regnum_ftype
*sdb_reg_to_regnum
= no_op_reg_to_regnum
;
94 gdbarch_dwarf2_reg_to_regnum_ftype
*dwarf2_reg_to_regnum
= no_op_reg_to_regnum
;
95 gdbarch_register_name_ftype
*register_name
= 0;
96 gdbarch_register_type_ftype
*register_type
= nullptr;
97 gdbarch_dummy_id_ftype
*dummy_id
= default_dummy_id
;
98 int deprecated_fp_regnum
= -1;
99 gdbarch_push_dummy_call_ftype
*push_dummy_call
= nullptr;
100 enum call_dummy_location_type call_dummy_location
= AT_ENTRY_POINT
;
101 gdbarch_push_dummy_code_ftype
*push_dummy_code
= nullptr;
102 gdbarch_code_of_frame_writable_ftype
*code_of_frame_writable
= default_code_of_frame_writable
;
103 gdbarch_print_registers_info_ftype
*print_registers_info
= default_print_registers_info
;
104 gdbarch_print_float_info_ftype
*print_float_info
= default_print_float_info
;
105 gdbarch_print_vector_info_ftype
*print_vector_info
= nullptr;
106 gdbarch_register_sim_regno_ftype
*register_sim_regno
= legacy_register_sim_regno
;
107 gdbarch_cannot_fetch_register_ftype
*cannot_fetch_register
= cannot_register_not
;
108 gdbarch_cannot_store_register_ftype
*cannot_store_register
= cannot_register_not
;
109 gdbarch_get_longjmp_target_ftype
*get_longjmp_target
= nullptr;
110 int believe_pcc_promotion
= 0;
111 gdbarch_convert_register_p_ftype
*convert_register_p
= generic_convert_register_p
;
112 gdbarch_register_to_value_ftype
*register_to_value
= nullptr;
113 gdbarch_value_to_register_ftype
*value_to_register
= nullptr;
114 gdbarch_value_from_register_ftype
*value_from_register
= default_value_from_register
;
115 gdbarch_pointer_to_address_ftype
*pointer_to_address
= unsigned_pointer_to_address
;
116 gdbarch_address_to_pointer_ftype
*address_to_pointer
= unsigned_address_to_pointer
;
117 gdbarch_integer_to_address_ftype
*integer_to_address
= nullptr;
118 gdbarch_return_value_ftype
*return_value
= nullptr;
119 gdbarch_return_value_as_value_ftype
*return_value_as_value
= default_gdbarch_return_value
;
120 gdbarch_get_return_buf_addr_ftype
*get_return_buf_addr
= default_get_return_buf_addr
;
121 gdbarch_return_in_first_hidden_param_p_ftype
*return_in_first_hidden_param_p
= default_return_in_first_hidden_param_p
;
122 gdbarch_skip_prologue_ftype
*skip_prologue
= 0;
123 gdbarch_skip_main_prologue_ftype
*skip_main_prologue
= nullptr;
124 gdbarch_skip_entrypoint_ftype
*skip_entrypoint
= nullptr;
125 gdbarch_inner_than_ftype
*inner_than
= 0;
126 gdbarch_breakpoint_from_pc_ftype
*breakpoint_from_pc
= default_breakpoint_from_pc
;
127 gdbarch_breakpoint_kind_from_pc_ftype
*breakpoint_kind_from_pc
= 0;
128 gdbarch_sw_breakpoint_from_kind_ftype
*sw_breakpoint_from_kind
= NULL
;
129 gdbarch_breakpoint_kind_from_current_state_ftype
*breakpoint_kind_from_current_state
= default_breakpoint_kind_from_current_state
;
130 gdbarch_adjust_breakpoint_address_ftype
*adjust_breakpoint_address
= nullptr;
131 gdbarch_memory_insert_breakpoint_ftype
*memory_insert_breakpoint
= default_memory_insert_breakpoint
;
132 gdbarch_memory_remove_breakpoint_ftype
*memory_remove_breakpoint
= default_memory_remove_breakpoint
;
133 CORE_ADDR decr_pc_after_break
= 0;
134 CORE_ADDR deprecated_function_start_offset
= 0;
135 gdbarch_remote_register_number_ftype
*remote_register_number
= default_remote_register_number
;
136 gdbarch_fetch_tls_load_module_address_ftype
*fetch_tls_load_module_address
= nullptr;
137 gdbarch_get_thread_local_address_ftype
*get_thread_local_address
= nullptr;
138 CORE_ADDR frame_args_skip
= 0;
139 gdbarch_unwind_pc_ftype
*unwind_pc
= default_unwind_pc
;
140 gdbarch_unwind_sp_ftype
*unwind_sp
= default_unwind_sp
;
141 gdbarch_frame_num_args_ftype
*frame_num_args
= nullptr;
142 gdbarch_frame_align_ftype
*frame_align
= nullptr;
143 gdbarch_stabs_argument_has_addr_ftype
*stabs_argument_has_addr
= default_stabs_argument_has_addr
;
144 int frame_red_zone_size
= 0;
145 gdbarch_convert_from_func_ptr_addr_ftype
*convert_from_func_ptr_addr
= convert_from_func_ptr_addr_identity
;
146 gdbarch_addr_bits_remove_ftype
*addr_bits_remove
= core_addr_identity
;
147 gdbarch_remove_non_address_bits_ftype
*remove_non_address_bits
= default_remove_non_address_bits
;
148 gdbarch_memtag_to_string_ftype
*memtag_to_string
= default_memtag_to_string
;
149 gdbarch_tagged_address_p_ftype
*tagged_address_p
= default_tagged_address_p
;
150 gdbarch_memtag_matches_p_ftype
*memtag_matches_p
= default_memtag_matches_p
;
151 gdbarch_set_memtags_ftype
*set_memtags
= default_set_memtags
;
152 gdbarch_get_memtag_ftype
*get_memtag
= default_get_memtag
;
153 CORE_ADDR memtag_granule_size
= 0;
154 gdbarch_software_single_step_ftype
*software_single_step
= nullptr;
155 gdbarch_single_step_through_delay_ftype
*single_step_through_delay
= nullptr;
156 gdbarch_print_insn_ftype
*print_insn
= default_print_insn
;
157 gdbarch_skip_trampoline_code_ftype
*skip_trampoline_code
= generic_skip_trampoline_code
;
158 const struct target_so_ops
* so_ops
= 0;
159 gdbarch_skip_solib_resolver_ftype
*skip_solib_resolver
= generic_skip_solib_resolver
;
160 gdbarch_in_solib_return_trampoline_ftype
*in_solib_return_trampoline
= generic_in_solib_return_trampoline
;
161 gdbarch_in_indirect_branch_thunk_ftype
*in_indirect_branch_thunk
= default_in_indirect_branch_thunk
;
162 gdbarch_stack_frame_destroyed_p_ftype
*stack_frame_destroyed_p
= generic_stack_frame_destroyed_p
;
163 gdbarch_elf_make_msymbol_special_ftype
*elf_make_msymbol_special
= nullptr;
164 gdbarch_coff_make_msymbol_special_ftype
*coff_make_msymbol_special
= default_coff_make_msymbol_special
;
165 gdbarch_make_symbol_special_ftype
*make_symbol_special
= default_make_symbol_special
;
166 gdbarch_adjust_dwarf2_addr_ftype
*adjust_dwarf2_addr
= default_adjust_dwarf2_addr
;
167 gdbarch_adjust_dwarf2_line_ftype
*adjust_dwarf2_line
= default_adjust_dwarf2_line
;
168 int cannot_step_breakpoint
= 0;
169 int have_nonsteppable_watchpoint
= 0;
170 gdbarch_address_class_type_flags_ftype
*address_class_type_flags
= nullptr;
171 gdbarch_address_class_type_flags_to_name_ftype
*address_class_type_flags_to_name
= nullptr;
172 gdbarch_execute_dwarf_cfa_vendor_op_ftype
*execute_dwarf_cfa_vendor_op
= default_execute_dwarf_cfa_vendor_op
;
173 gdbarch_address_class_name_to_type_flags_ftype
*address_class_name_to_type_flags
= nullptr;
174 gdbarch_register_reggroup_p_ftype
*register_reggroup_p
= default_register_reggroup_p
;
175 gdbarch_fetch_pointer_argument_ftype
*fetch_pointer_argument
= nullptr;
176 gdbarch_iterate_over_regset_sections_ftype
*iterate_over_regset_sections
= nullptr;
177 gdbarch_make_corefile_notes_ftype
*make_corefile_notes
= nullptr;
178 gdbarch_find_memory_regions_ftype
*find_memory_regions
= nullptr;
179 gdbarch_create_memtag_section_ftype
*create_memtag_section
= nullptr;
180 gdbarch_fill_memtag_section_ftype
*fill_memtag_section
= nullptr;
181 gdbarch_decode_memtag_section_ftype
*decode_memtag_section
= nullptr;
182 gdbarch_core_xfer_shared_libraries_ftype
*core_xfer_shared_libraries
= nullptr;
183 gdbarch_core_xfer_shared_libraries_aix_ftype
*core_xfer_shared_libraries_aix
= nullptr;
184 gdbarch_core_pid_to_str_ftype
*core_pid_to_str
= nullptr;
185 gdbarch_core_thread_name_ftype
*core_thread_name
= nullptr;
186 gdbarch_core_xfer_siginfo_ftype
*core_xfer_siginfo
= nullptr;
187 const char * gcore_bfd_target
= 0;
188 int vtable_function_descriptors
= 0;
189 int vbit_in_delta
= 0;
190 gdbarch_skip_permanent_breakpoint_ftype
*skip_permanent_breakpoint
= default_skip_permanent_breakpoint
;
191 ULONGEST max_insn_length
= 0;
192 gdbarch_displaced_step_copy_insn_ftype
*displaced_step_copy_insn
= nullptr;
193 gdbarch_displaced_step_hw_singlestep_ftype
*displaced_step_hw_singlestep
= default_displaced_step_hw_singlestep
;
194 gdbarch_displaced_step_fixup_ftype
*displaced_step_fixup
= NULL
;
195 gdbarch_displaced_step_prepare_ftype
*displaced_step_prepare
= nullptr;
196 gdbarch_displaced_step_finish_ftype
*displaced_step_finish
= NULL
;
197 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype
*displaced_step_copy_insn_closure_by_addr
= nullptr;
198 gdbarch_displaced_step_restore_all_in_ptid_ftype
*displaced_step_restore_all_in_ptid
= nullptr;
199 gdbarch_relocate_instruction_ftype
*relocate_instruction
= NULL
;
200 gdbarch_overlay_update_ftype
*overlay_update
= nullptr;
201 gdbarch_core_read_description_ftype
*core_read_description
= nullptr;
202 int sofun_address_maybe_missing
= 0;
203 gdbarch_process_record_ftype
*process_record
= nullptr;
204 gdbarch_process_record_signal_ftype
*process_record_signal
= nullptr;
205 gdbarch_gdb_signal_from_target_ftype
*gdb_signal_from_target
= nullptr;
206 gdbarch_gdb_signal_to_target_ftype
*gdb_signal_to_target
= nullptr;
207 gdbarch_get_siginfo_type_ftype
*get_siginfo_type
= nullptr;
208 gdbarch_record_special_symbol_ftype
*record_special_symbol
= nullptr;
209 gdbarch_get_syscall_number_ftype
*get_syscall_number
= nullptr;
210 const char * xml_syscall_file
= 0;
211 struct syscalls_info
* syscalls_info
= 0;
212 const char *const * stap_integer_prefixes
= 0;
213 const char *const * stap_integer_suffixes
= 0;
214 const char *const * stap_register_prefixes
= 0;
215 const char *const * stap_register_suffixes
= 0;
216 const char *const * stap_register_indirection_prefixes
= 0;
217 const char *const * stap_register_indirection_suffixes
= 0;
218 const char * stap_gdb_register_prefix
= 0;
219 const char * stap_gdb_register_suffix
= 0;
220 gdbarch_stap_is_single_operand_ftype
*stap_is_single_operand
= nullptr;
221 gdbarch_stap_parse_special_token_ftype
*stap_parse_special_token
= nullptr;
222 gdbarch_stap_adjust_register_ftype
*stap_adjust_register
= nullptr;
223 gdbarch_dtrace_parse_probe_argument_ftype
*dtrace_parse_probe_argument
= nullptr;
224 gdbarch_dtrace_probe_is_enabled_ftype
*dtrace_probe_is_enabled
= nullptr;
225 gdbarch_dtrace_enable_probe_ftype
*dtrace_enable_probe
= nullptr;
226 gdbarch_dtrace_disable_probe_ftype
*dtrace_disable_probe
= nullptr;
227 int has_global_solist
= 0;
228 int has_global_breakpoints
= 0;
229 gdbarch_has_shared_address_space_ftype
*has_shared_address_space
= default_has_shared_address_space
;
230 gdbarch_fast_tracepoint_valid_at_ftype
*fast_tracepoint_valid_at
= default_fast_tracepoint_valid_at
;
231 gdbarch_guess_tracepoint_registers_ftype
*guess_tracepoint_registers
= default_guess_tracepoint_registers
;
232 gdbarch_auto_charset_ftype
*auto_charset
= default_auto_charset
;
233 gdbarch_auto_wide_charset_ftype
*auto_wide_charset
= default_auto_wide_charset
;
234 const char * solib_symbols_extension
= 0;
235 int has_dos_based_file_system
= 0;
236 gdbarch_gen_return_address_ftype
*gen_return_address
= default_gen_return_address
;
237 gdbarch_info_proc_ftype
*info_proc
= nullptr;
238 gdbarch_core_info_proc_ftype
*core_info_proc
= nullptr;
239 gdbarch_iterate_over_objfiles_in_search_order_ftype
*iterate_over_objfiles_in_search_order
= default_iterate_over_objfiles_in_search_order
;
240 struct ravenscar_arch_ops
* ravenscar_ops
= NULL
;
241 gdbarch_insn_is_call_ftype
*insn_is_call
= default_insn_is_call
;
242 gdbarch_insn_is_ret_ftype
*insn_is_ret
= default_insn_is_ret
;
243 gdbarch_insn_is_jump_ftype
*insn_is_jump
= default_insn_is_jump
;
244 gdbarch_program_breakpoint_here_p_ftype
*program_breakpoint_here_p
= default_program_breakpoint_here_p
;
245 gdbarch_auxv_parse_ftype
*auxv_parse
= nullptr;
246 gdbarch_print_auxv_entry_ftype
*print_auxv_entry
= default_print_auxv_entry
;
247 gdbarch_vsyscall_range_ftype
*vsyscall_range
= default_vsyscall_range
;
248 gdbarch_infcall_mmap_ftype
*infcall_mmap
= default_infcall_mmap
;
249 gdbarch_infcall_munmap_ftype
*infcall_munmap
= default_infcall_munmap
;
250 gdbarch_gcc_target_options_ftype
*gcc_target_options
= default_gcc_target_options
;
251 gdbarch_gnu_triplet_regexp_ftype
*gnu_triplet_regexp
= default_gnu_triplet_regexp
;
252 gdbarch_addressable_memory_unit_size_ftype
*addressable_memory_unit_size
= default_addressable_memory_unit_size
;
253 const char * disassembler_options_implicit
= 0;
254 char ** disassembler_options
= 0;
255 const disasm_options_and_args_t
* valid_disassembler_options
= 0;
256 gdbarch_type_align_ftype
*type_align
= default_type_align
;
257 gdbarch_get_pc_address_flags_ftype
*get_pc_address_flags
= default_get_pc_address_flags
;
258 gdbarch_read_core_file_mappings_ftype
*read_core_file_mappings
= default_read_core_file_mappings
;
261 /* Create a new ``struct gdbarch'' based on information provided by
262 ``struct gdbarch_info''. */
265 gdbarch_alloc (const struct gdbarch_info
*info
,
266 gdbarch_tdep_up tdep
)
268 struct gdbarch
*gdbarch
;
270 gdbarch
= new struct gdbarch
;
272 gdbarch
->tdep
= std::move (tdep
);
274 gdbarch
->bfd_arch_info
= info
->bfd_arch_info
;
275 gdbarch
->byte_order
= info
->byte_order
;
276 gdbarch
->byte_order_for_code
= info
->byte_order_for_code
;
277 gdbarch
->osabi
= info
->osabi
;
278 gdbarch
->target_desc
= info
->target_desc
;
285 /* Ensure that all values in a GDBARCH are reasonable. */
288 verify_gdbarch (struct gdbarch
*gdbarch
)
293 if (gdbarch
->byte_order
== BFD_ENDIAN_UNKNOWN
)
294 log
.puts ("\n\tbyte-order");
295 if (gdbarch
->bfd_arch_info
== NULL
)
296 log
.puts ("\n\tbfd_arch_info");
297 /* Check those that need to be defined for the given multi-arch level. */
298 /* Skip verify of short_bit, invalid_p == 0 */
299 /* Skip verify of int_bit, invalid_p == 0 */
300 /* Skip verify of long_bit, invalid_p == 0 */
301 /* Skip verify of long_long_bit, invalid_p == 0 */
302 /* Skip verify of bfloat16_bit, invalid_p == 0 */
303 if (gdbarch
->bfloat16_format
== 0)
304 gdbarch
->bfloat16_format
= floatformats_bfloat16
;
305 /* Skip verify of half_bit, invalid_p == 0 */
306 if (gdbarch
->half_format
== 0)
307 gdbarch
->half_format
= floatformats_ieee_half
;
308 /* Skip verify of float_bit, invalid_p == 0 */
309 if (gdbarch
->float_format
== 0)
310 gdbarch
->float_format
= floatformats_ieee_single
;
311 /* Skip verify of double_bit, invalid_p == 0 */
312 if (gdbarch
->double_format
== 0)
313 gdbarch
->double_format
= floatformats_ieee_double
;
314 /* Skip verify of long_double_bit, invalid_p == 0 */
315 if (gdbarch
->long_double_format
== 0)
316 gdbarch
->long_double_format
= floatformats_ieee_double
;
317 /* Skip verify of wchar_bit, invalid_p == 0 */
318 if (gdbarch
->wchar_signed
== -1)
319 gdbarch
->wchar_signed
= 1;
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 if (gdbarch
->dwarf2_addr_size
== 0)
325 gdbarch
->dwarf2_addr_size
= gdbarch_ptr_bit (gdbarch
) / TARGET_CHAR_BIT
;
326 if (gdbarch
->char_signed
== -1)
327 gdbarch
->char_signed
= 1;
328 /* Skip verify of read_pc, has predicate. */
329 /* Skip verify of write_pc, has predicate. */
330 /* Skip verify of virtual_frame_pointer, invalid_p == 0 */
331 /* Skip verify of pseudo_register_read, has predicate. */
332 /* Skip verify of pseudo_register_read_value, has predicate. */
333 /* Skip verify of pseudo_register_write, has predicate. */
334 if (gdbarch
->num_regs
== -1)
335 log
.puts ("\n\tnum_regs");
336 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
337 /* Skip verify of ax_pseudo_register_collect, has predicate. */
338 /* Skip verify of ax_pseudo_register_push_stack, has predicate. */
339 /* Skip verify of report_signal_info, has predicate. */
340 /* Skip verify of sp_regnum, invalid_p == 0 */
341 /* Skip verify of pc_regnum, invalid_p == 0 */
342 /* Skip verify of ps_regnum, invalid_p == 0 */
343 /* Skip verify of fp0_regnum, invalid_p == 0 */
344 /* Skip verify of stab_reg_to_regnum, invalid_p == 0 */
345 /* Skip verify of ecoff_reg_to_regnum, invalid_p == 0 */
346 /* Skip verify of sdb_reg_to_regnum, invalid_p == 0 */
347 /* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0 */
348 if (gdbarch
->register_name
== 0)
349 log
.puts ("\n\tregister_name");
350 if (gdbarch
->register_type
== 0)
351 log
.puts ("\n\tregister_type");
352 /* Skip verify of dummy_id, invalid_p == 0 */
353 /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
354 /* Skip verify of push_dummy_call, has predicate. */
355 /* Skip verify of call_dummy_location, invalid_p == 0 */
356 /* Skip verify of push_dummy_code, has predicate. */
357 /* Skip verify of code_of_frame_writable, invalid_p == 0 */
358 /* Skip verify of print_registers_info, invalid_p == 0 */
359 /* Skip verify of print_float_info, invalid_p == 0 */
360 /* Skip verify of print_vector_info, has predicate. */
361 /* Skip verify of register_sim_regno, invalid_p == 0 */
362 /* Skip verify of cannot_fetch_register, invalid_p == 0 */
363 /* Skip verify of cannot_store_register, invalid_p == 0 */
364 /* Skip verify of get_longjmp_target, has predicate. */
365 /* Skip verify of believe_pcc_promotion, invalid_p == 0 */
366 /* Skip verify of convert_register_p, invalid_p == 0 */
367 /* Skip verify of register_to_value, invalid_p == 0 */
368 /* Skip verify of value_to_register, invalid_p == 0 */
369 /* Skip verify of value_from_register, invalid_p == 0 */
370 /* Skip verify of pointer_to_address, invalid_p == 0 */
371 /* Skip verify of address_to_pointer, invalid_p == 0 */
372 /* Skip verify of integer_to_address, has predicate. */
373 /* Skip verify of return_value, invalid_p == 0 */
374 if ((gdbarch
->return_value_as_value
== default_gdbarch_return_value
) == (gdbarch
->return_value
== nullptr))
375 log
.puts ("\n\treturn_value_as_value");
376 /* Skip verify of get_return_buf_addr, invalid_p == 0 */
377 /* Skip verify of return_in_first_hidden_param_p, invalid_p == 0 */
378 if (gdbarch
->skip_prologue
== 0)
379 log
.puts ("\n\tskip_prologue");
380 /* Skip verify of skip_main_prologue, has predicate. */
381 /* Skip verify of skip_entrypoint, has predicate. */
382 if (gdbarch
->inner_than
== 0)
383 log
.puts ("\n\tinner_than");
384 /* Skip verify of breakpoint_from_pc, invalid_p == 0 */
385 if (gdbarch
->breakpoint_kind_from_pc
== 0)
386 log
.puts ("\n\tbreakpoint_kind_from_pc");
387 /* Skip verify of sw_breakpoint_from_kind, invalid_p == 0 */
388 /* Skip verify of breakpoint_kind_from_current_state, invalid_p == 0 */
389 /* Skip verify of adjust_breakpoint_address, has predicate. */
390 /* Skip verify of memory_insert_breakpoint, invalid_p == 0 */
391 /* Skip verify of memory_remove_breakpoint, invalid_p == 0 */
392 /* Skip verify of decr_pc_after_break, invalid_p == 0 */
393 /* Skip verify of deprecated_function_start_offset, invalid_p == 0 */
394 /* Skip verify of remote_register_number, invalid_p == 0 */
395 /* Skip verify of fetch_tls_load_module_address, has predicate. */
396 /* Skip verify of get_thread_local_address, has predicate. */
397 /* Skip verify of frame_args_skip, invalid_p == 0 */
398 /* Skip verify of unwind_pc, invalid_p == 0 */
399 /* Skip verify of unwind_sp, invalid_p == 0 */
400 /* Skip verify of frame_num_args, has predicate. */
401 /* Skip verify of frame_align, has predicate. */
402 /* Skip verify of stabs_argument_has_addr, invalid_p == 0 */
403 /* Skip verify of frame_red_zone_size, invalid_p == 0 */
404 /* Skip verify of convert_from_func_ptr_addr, invalid_p == 0 */
405 /* Skip verify of addr_bits_remove, invalid_p == 0 */
406 /* Skip verify of remove_non_address_bits, invalid_p == 0 */
407 /* Skip verify of memtag_to_string, invalid_p == 0 */
408 /* Skip verify of tagged_address_p, invalid_p == 0 */
409 /* Skip verify of memtag_matches_p, invalid_p == 0 */
410 /* Skip verify of set_memtags, invalid_p == 0 */
411 /* Skip verify of get_memtag, invalid_p == 0 */
412 /* Skip verify of memtag_granule_size, invalid_p == 0 */
413 /* Skip verify of software_single_step, has predicate. */
414 /* Skip verify of single_step_through_delay, has predicate. */
415 /* Skip verify of print_insn, invalid_p == 0 */
416 /* Skip verify of skip_trampoline_code, invalid_p == 0 */
417 if (gdbarch
->so_ops
== 0)
418 gdbarch
->so_ops
= &solib_target_so_ops
;
419 /* Skip verify of skip_solib_resolver, invalid_p == 0 */
420 /* Skip verify of in_solib_return_trampoline, invalid_p == 0 */
421 /* Skip verify of in_indirect_branch_thunk, invalid_p == 0 */
422 /* Skip verify of stack_frame_destroyed_p, invalid_p == 0 */
423 /* Skip verify of elf_make_msymbol_special, has predicate. */
424 /* Skip verify of coff_make_msymbol_special, invalid_p == 0 */
425 /* Skip verify of make_symbol_special, invalid_p == 0 */
426 /* Skip verify of adjust_dwarf2_addr, invalid_p == 0 */
427 /* Skip verify of adjust_dwarf2_line, invalid_p == 0 */
428 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */
429 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */
430 /* Skip verify of address_class_type_flags, has predicate. */
431 /* Skip verify of address_class_type_flags_to_name, has predicate. */
432 /* Skip verify of execute_dwarf_cfa_vendor_op, invalid_p == 0 */
433 /* Skip verify of address_class_name_to_type_flags, has predicate. */
434 /* Skip verify of register_reggroup_p, invalid_p == 0 */
435 /* Skip verify of fetch_pointer_argument, has predicate. */
436 /* Skip verify of iterate_over_regset_sections, has predicate. */
437 /* Skip verify of make_corefile_notes, has predicate. */
438 /* Skip verify of find_memory_regions, has predicate. */
439 /* Skip verify of create_memtag_section, has predicate. */
440 /* Skip verify of fill_memtag_section, has predicate. */
441 /* Skip verify of decode_memtag_section, has predicate. */
442 /* Skip verify of core_xfer_shared_libraries, has predicate. */
443 /* Skip verify of core_xfer_shared_libraries_aix, has predicate. */
444 /* Skip verify of core_pid_to_str, has predicate. */
445 /* Skip verify of core_thread_name, has predicate. */
446 /* Skip verify of core_xfer_siginfo, has predicate. */
447 /* Skip verify of gcore_bfd_target, has predicate. */
448 /* Skip verify of vtable_function_descriptors, invalid_p == 0 */
449 /* Skip verify of vbit_in_delta, invalid_p == 0 */
450 /* Skip verify of skip_permanent_breakpoint, invalid_p == 0 */
451 /* Skip verify of max_insn_length, has predicate. */
452 /* Skip verify of displaced_step_copy_insn, has predicate. */
453 /* Skip verify of displaced_step_hw_singlestep, invalid_p == 0 */
454 /* Skip verify of displaced_step_fixup, has predicate. */
455 /* Skip verify of displaced_step_prepare, has predicate. */
456 if ((! gdbarch
->displaced_step_finish
) != (! gdbarch
->displaced_step_prepare
))
457 log
.puts ("\n\tdisplaced_step_finish");
458 /* Skip verify of displaced_step_copy_insn_closure_by_addr, has predicate. */
459 /* Skip verify of displaced_step_restore_all_in_ptid, invalid_p == 0 */
460 /* Skip verify of relocate_instruction, has predicate. */
461 /* Skip verify of overlay_update, has predicate. */
462 /* Skip verify of core_read_description, has predicate. */
463 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */
464 /* Skip verify of process_record, has predicate. */
465 /* Skip verify of process_record_signal, has predicate. */
466 /* Skip verify of gdb_signal_from_target, has predicate. */
467 /* Skip verify of gdb_signal_to_target, has predicate. */
468 /* Skip verify of get_siginfo_type, has predicate. */
469 /* Skip verify of record_special_symbol, has predicate. */
470 /* Skip verify of get_syscall_number, has predicate. */
471 /* Skip verify of xml_syscall_file, invalid_p == 0 */
472 /* Skip verify of syscalls_info, invalid_p == 0 */
473 /* Skip verify of stap_integer_prefixes, invalid_p == 0 */
474 /* Skip verify of stap_integer_suffixes, invalid_p == 0 */
475 /* Skip verify of stap_register_prefixes, invalid_p == 0 */
476 /* Skip verify of stap_register_suffixes, invalid_p == 0 */
477 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0 */
478 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0 */
479 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0 */
480 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0 */
481 /* Skip verify of stap_is_single_operand, has predicate. */
482 /* Skip verify of stap_parse_special_token, has predicate. */
483 /* Skip verify of stap_adjust_register, has predicate. */
484 /* Skip verify of dtrace_parse_probe_argument, has predicate. */
485 /* Skip verify of dtrace_probe_is_enabled, has predicate. */
486 /* Skip verify of dtrace_enable_probe, has predicate. */
487 /* Skip verify of dtrace_disable_probe, has predicate. */
488 /* Skip verify of has_global_solist, invalid_p == 0 */
489 /* Skip verify of has_global_breakpoints, invalid_p == 0 */
490 /* Skip verify of has_shared_address_space, invalid_p == 0 */
491 /* Skip verify of fast_tracepoint_valid_at, invalid_p == 0 */
492 /* Skip verify of guess_tracepoint_registers, invalid_p == 0 */
493 /* Skip verify of auto_charset, invalid_p == 0 */
494 /* Skip verify of auto_wide_charset, invalid_p == 0 */
495 /* Skip verify of solib_symbols_extension, invalid_p == 0 */
496 /* Skip verify of has_dos_based_file_system, invalid_p == 0 */
497 /* Skip verify of gen_return_address, invalid_p == 0 */
498 /* Skip verify of info_proc, has predicate. */
499 /* Skip verify of core_info_proc, has predicate. */
500 /* Skip verify of iterate_over_objfiles_in_search_order, invalid_p == 0 */
501 /* Skip verify of ravenscar_ops, invalid_p == 0 */
502 /* Skip verify of insn_is_call, invalid_p == 0 */
503 /* Skip verify of insn_is_ret, invalid_p == 0 */
504 /* Skip verify of insn_is_jump, invalid_p == 0 */
505 /* Skip verify of program_breakpoint_here_p, invalid_p == 0 */
506 /* Skip verify of auxv_parse, has predicate. */
507 /* Skip verify of print_auxv_entry, invalid_p == 0 */
508 /* Skip verify of vsyscall_range, invalid_p == 0 */
509 /* Skip verify of infcall_mmap, invalid_p == 0 */
510 /* Skip verify of infcall_munmap, invalid_p == 0 */
511 /* Skip verify of gcc_target_options, invalid_p == 0 */
512 /* Skip verify of gnu_triplet_regexp, invalid_p == 0 */
513 /* Skip verify of addressable_memory_unit_size, invalid_p == 0 */
514 /* Skip verify of disassembler_options_implicit, invalid_p == 0 */
515 /* Skip verify of disassembler_options, invalid_p == 0 */
516 /* Skip verify of valid_disassembler_options, invalid_p == 0 */
517 /* Skip verify of type_align, invalid_p == 0 */
518 /* Skip verify of get_pc_address_flags, invalid_p == 0 */
519 /* Skip verify of read_core_file_mappings, invalid_p == 0 */
521 internal_error (_("verify_gdbarch: the following are invalid ...%s"),
526 /* Print out the details of the current architecture. */
529 gdbarch_dump (struct gdbarch
*gdbarch
, struct ui_file
*file
)
531 const char *gdb_nm_file
= "<not-defined>";
533 #if defined (GDB_NM_FILE)
534 gdb_nm_file
= GDB_NM_FILE
;
537 "gdbarch_dump: GDB_NM_FILE = %s\n",
540 "gdbarch_dump: bfd_arch_info = %s\n",
541 gdbarch_bfd_arch_info (gdbarch
)->printable_name
);
543 "gdbarch_dump: byte_order = %s\n",
544 plongest (gdbarch
->byte_order
));
546 "gdbarch_dump: byte_order_for_code = %s\n",
547 plongest (gdbarch
->byte_order_for_code
));
549 "gdbarch_dump: osabi = %s\n",
550 plongest (gdbarch
->osabi
));
552 "gdbarch_dump: target_desc = %s\n",
553 host_address_to_string (gdbarch
->target_desc
));
555 "gdbarch_dump: short_bit = %s\n",
556 plongest (gdbarch
->short_bit
));
558 "gdbarch_dump: int_bit = %s\n",
559 plongest (gdbarch
->int_bit
));
561 "gdbarch_dump: long_bit = %s\n",
562 plongest (gdbarch
->long_bit
));
564 "gdbarch_dump: long_long_bit = %s\n",
565 plongest (gdbarch
->long_long_bit
));
567 "gdbarch_dump: bfloat16_bit = %s\n",
568 plongest (gdbarch
->bfloat16_bit
));
570 "gdbarch_dump: bfloat16_format = %s\n",
571 pformat (gdbarch
, gdbarch
->bfloat16_format
));
573 "gdbarch_dump: half_bit = %s\n",
574 plongest (gdbarch
->half_bit
));
576 "gdbarch_dump: half_format = %s\n",
577 pformat (gdbarch
, gdbarch
->half_format
));
579 "gdbarch_dump: float_bit = %s\n",
580 plongest (gdbarch
->float_bit
));
582 "gdbarch_dump: float_format = %s\n",
583 pformat (gdbarch
, gdbarch
->float_format
));
585 "gdbarch_dump: double_bit = %s\n",
586 plongest (gdbarch
->double_bit
));
588 "gdbarch_dump: double_format = %s\n",
589 pformat (gdbarch
, gdbarch
->double_format
));
591 "gdbarch_dump: long_double_bit = %s\n",
592 plongest (gdbarch
->long_double_bit
));
594 "gdbarch_dump: long_double_format = %s\n",
595 pformat (gdbarch
, gdbarch
->long_double_format
));
597 "gdbarch_dump: wchar_bit = %s\n",
598 plongest (gdbarch
->wchar_bit
));
600 "gdbarch_dump: wchar_signed = %s\n",
601 plongest (gdbarch
->wchar_signed
));
603 "gdbarch_dump: floatformat_for_type = <%s>\n",
604 host_address_to_string (gdbarch
->floatformat_for_type
));
606 "gdbarch_dump: ptr_bit = %s\n",
607 plongest (gdbarch
->ptr_bit
));
609 "gdbarch_dump: addr_bit = %s\n",
610 plongest (gdbarch
->addr_bit
));
612 "gdbarch_dump: dwarf2_addr_size = %s\n",
613 plongest (gdbarch
->dwarf2_addr_size
));
615 "gdbarch_dump: char_signed = %s\n",
616 plongest (gdbarch
->char_signed
));
618 "gdbarch_dump: gdbarch_read_pc_p() = %d\n",
619 gdbarch_read_pc_p (gdbarch
));
621 "gdbarch_dump: read_pc = <%s>\n",
622 host_address_to_string (gdbarch
->read_pc
));
624 "gdbarch_dump: gdbarch_write_pc_p() = %d\n",
625 gdbarch_write_pc_p (gdbarch
));
627 "gdbarch_dump: write_pc = <%s>\n",
628 host_address_to_string (gdbarch
->write_pc
));
630 "gdbarch_dump: virtual_frame_pointer = <%s>\n",
631 host_address_to_string (gdbarch
->virtual_frame_pointer
));
633 "gdbarch_dump: gdbarch_pseudo_register_read_p() = %d\n",
634 gdbarch_pseudo_register_read_p (gdbarch
));
636 "gdbarch_dump: pseudo_register_read = <%s>\n",
637 host_address_to_string (gdbarch
->pseudo_register_read
));
639 "gdbarch_dump: gdbarch_pseudo_register_read_value_p() = %d\n",
640 gdbarch_pseudo_register_read_value_p (gdbarch
));
642 "gdbarch_dump: pseudo_register_read_value = <%s>\n",
643 host_address_to_string (gdbarch
->pseudo_register_read_value
));
645 "gdbarch_dump: gdbarch_pseudo_register_write_p() = %d\n",
646 gdbarch_pseudo_register_write_p (gdbarch
));
648 "gdbarch_dump: pseudo_register_write = <%s>\n",
649 host_address_to_string (gdbarch
->pseudo_register_write
));
651 "gdbarch_dump: num_regs = %s\n",
652 plongest (gdbarch
->num_regs
));
654 "gdbarch_dump: num_pseudo_regs = %s\n",
655 plongest (gdbarch
->num_pseudo_regs
));
657 "gdbarch_dump: gdbarch_ax_pseudo_register_collect_p() = %d\n",
658 gdbarch_ax_pseudo_register_collect_p (gdbarch
));
660 "gdbarch_dump: ax_pseudo_register_collect = <%s>\n",
661 host_address_to_string (gdbarch
->ax_pseudo_register_collect
));
663 "gdbarch_dump: gdbarch_ax_pseudo_register_push_stack_p() = %d\n",
664 gdbarch_ax_pseudo_register_push_stack_p (gdbarch
));
666 "gdbarch_dump: ax_pseudo_register_push_stack = <%s>\n",
667 host_address_to_string (gdbarch
->ax_pseudo_register_push_stack
));
669 "gdbarch_dump: gdbarch_report_signal_info_p() = %d\n",
670 gdbarch_report_signal_info_p (gdbarch
));
672 "gdbarch_dump: report_signal_info = <%s>\n",
673 host_address_to_string (gdbarch
->report_signal_info
));
675 "gdbarch_dump: sp_regnum = %s\n",
676 plongest (gdbarch
->sp_regnum
));
678 "gdbarch_dump: pc_regnum = %s\n",
679 plongest (gdbarch
->pc_regnum
));
681 "gdbarch_dump: ps_regnum = %s\n",
682 plongest (gdbarch
->ps_regnum
));
684 "gdbarch_dump: fp0_regnum = %s\n",
685 plongest (gdbarch
->fp0_regnum
));
687 "gdbarch_dump: stab_reg_to_regnum = <%s>\n",
688 host_address_to_string (gdbarch
->stab_reg_to_regnum
));
690 "gdbarch_dump: ecoff_reg_to_regnum = <%s>\n",
691 host_address_to_string (gdbarch
->ecoff_reg_to_regnum
));
693 "gdbarch_dump: sdb_reg_to_regnum = <%s>\n",
694 host_address_to_string (gdbarch
->sdb_reg_to_regnum
));
696 "gdbarch_dump: dwarf2_reg_to_regnum = <%s>\n",
697 host_address_to_string (gdbarch
->dwarf2_reg_to_regnum
));
699 "gdbarch_dump: register_name = <%s>\n",
700 host_address_to_string (gdbarch
->register_name
));
702 "gdbarch_dump: register_type = <%s>\n",
703 host_address_to_string (gdbarch
->register_type
));
705 "gdbarch_dump: dummy_id = <%s>\n",
706 host_address_to_string (gdbarch
->dummy_id
));
708 "gdbarch_dump: deprecated_fp_regnum = %s\n",
709 plongest (gdbarch
->deprecated_fp_regnum
));
711 "gdbarch_dump: gdbarch_push_dummy_call_p() = %d\n",
712 gdbarch_push_dummy_call_p (gdbarch
));
714 "gdbarch_dump: push_dummy_call = <%s>\n",
715 host_address_to_string (gdbarch
->push_dummy_call
));
717 "gdbarch_dump: call_dummy_location = %s\n",
718 plongest (gdbarch
->call_dummy_location
));
720 "gdbarch_dump: gdbarch_push_dummy_code_p() = %d\n",
721 gdbarch_push_dummy_code_p (gdbarch
));
723 "gdbarch_dump: push_dummy_code = <%s>\n",
724 host_address_to_string (gdbarch
->push_dummy_code
));
726 "gdbarch_dump: code_of_frame_writable = <%s>\n",
727 host_address_to_string (gdbarch
->code_of_frame_writable
));
729 "gdbarch_dump: print_registers_info = <%s>\n",
730 host_address_to_string (gdbarch
->print_registers_info
));
732 "gdbarch_dump: print_float_info = <%s>\n",
733 host_address_to_string (gdbarch
->print_float_info
));
735 "gdbarch_dump: gdbarch_print_vector_info_p() = %d\n",
736 gdbarch_print_vector_info_p (gdbarch
));
738 "gdbarch_dump: print_vector_info = <%s>\n",
739 host_address_to_string (gdbarch
->print_vector_info
));
741 "gdbarch_dump: register_sim_regno = <%s>\n",
742 host_address_to_string (gdbarch
->register_sim_regno
));
744 "gdbarch_dump: cannot_fetch_register = <%s>\n",
745 host_address_to_string (gdbarch
->cannot_fetch_register
));
747 "gdbarch_dump: cannot_store_register = <%s>\n",
748 host_address_to_string (gdbarch
->cannot_store_register
));
750 "gdbarch_dump: gdbarch_get_longjmp_target_p() = %d\n",
751 gdbarch_get_longjmp_target_p (gdbarch
));
753 "gdbarch_dump: get_longjmp_target = <%s>\n",
754 host_address_to_string (gdbarch
->get_longjmp_target
));
756 "gdbarch_dump: believe_pcc_promotion = %s\n",
757 plongest (gdbarch
->believe_pcc_promotion
));
759 "gdbarch_dump: convert_register_p = <%s>\n",
760 host_address_to_string (gdbarch
->convert_register_p
));
762 "gdbarch_dump: register_to_value = <%s>\n",
763 host_address_to_string (gdbarch
->register_to_value
));
765 "gdbarch_dump: value_to_register = <%s>\n",
766 host_address_to_string (gdbarch
->value_to_register
));
768 "gdbarch_dump: value_from_register = <%s>\n",
769 host_address_to_string (gdbarch
->value_from_register
));
771 "gdbarch_dump: pointer_to_address = <%s>\n",
772 host_address_to_string (gdbarch
->pointer_to_address
));
774 "gdbarch_dump: address_to_pointer = <%s>\n",
775 host_address_to_string (gdbarch
->address_to_pointer
));
777 "gdbarch_dump: gdbarch_integer_to_address_p() = %d\n",
778 gdbarch_integer_to_address_p (gdbarch
));
780 "gdbarch_dump: integer_to_address = <%s>\n",
781 host_address_to_string (gdbarch
->integer_to_address
));
783 "gdbarch_dump: return_value = <%s>\n",
784 host_address_to_string (gdbarch
->return_value
));
786 "gdbarch_dump: return_value_as_value = <%s>\n",
787 host_address_to_string (gdbarch
->return_value_as_value
));
789 "gdbarch_dump: get_return_buf_addr = <%s>\n",
790 host_address_to_string (gdbarch
->get_return_buf_addr
));
792 "gdbarch_dump: return_in_first_hidden_param_p = <%s>\n",
793 host_address_to_string (gdbarch
->return_in_first_hidden_param_p
));
795 "gdbarch_dump: skip_prologue = <%s>\n",
796 host_address_to_string (gdbarch
->skip_prologue
));
798 "gdbarch_dump: gdbarch_skip_main_prologue_p() = %d\n",
799 gdbarch_skip_main_prologue_p (gdbarch
));
801 "gdbarch_dump: skip_main_prologue = <%s>\n",
802 host_address_to_string (gdbarch
->skip_main_prologue
));
804 "gdbarch_dump: gdbarch_skip_entrypoint_p() = %d\n",
805 gdbarch_skip_entrypoint_p (gdbarch
));
807 "gdbarch_dump: skip_entrypoint = <%s>\n",
808 host_address_to_string (gdbarch
->skip_entrypoint
));
810 "gdbarch_dump: inner_than = <%s>\n",
811 host_address_to_string (gdbarch
->inner_than
));
813 "gdbarch_dump: breakpoint_from_pc = <%s>\n",
814 host_address_to_string (gdbarch
->breakpoint_from_pc
));
816 "gdbarch_dump: breakpoint_kind_from_pc = <%s>\n",
817 host_address_to_string (gdbarch
->breakpoint_kind_from_pc
));
819 "gdbarch_dump: sw_breakpoint_from_kind = <%s>\n",
820 host_address_to_string (gdbarch
->sw_breakpoint_from_kind
));
822 "gdbarch_dump: breakpoint_kind_from_current_state = <%s>\n",
823 host_address_to_string (gdbarch
->breakpoint_kind_from_current_state
));
825 "gdbarch_dump: gdbarch_adjust_breakpoint_address_p() = %d\n",
826 gdbarch_adjust_breakpoint_address_p (gdbarch
));
828 "gdbarch_dump: adjust_breakpoint_address = <%s>\n",
829 host_address_to_string (gdbarch
->adjust_breakpoint_address
));
831 "gdbarch_dump: memory_insert_breakpoint = <%s>\n",
832 host_address_to_string (gdbarch
->memory_insert_breakpoint
));
834 "gdbarch_dump: memory_remove_breakpoint = <%s>\n",
835 host_address_to_string (gdbarch
->memory_remove_breakpoint
));
837 "gdbarch_dump: decr_pc_after_break = %s\n",
838 core_addr_to_string_nz (gdbarch
->decr_pc_after_break
));
840 "gdbarch_dump: deprecated_function_start_offset = %s\n",
841 core_addr_to_string_nz (gdbarch
->deprecated_function_start_offset
));
843 "gdbarch_dump: remote_register_number = <%s>\n",
844 host_address_to_string (gdbarch
->remote_register_number
));
846 "gdbarch_dump: gdbarch_fetch_tls_load_module_address_p() = %d\n",
847 gdbarch_fetch_tls_load_module_address_p (gdbarch
));
849 "gdbarch_dump: fetch_tls_load_module_address = <%s>\n",
850 host_address_to_string (gdbarch
->fetch_tls_load_module_address
));
852 "gdbarch_dump: gdbarch_get_thread_local_address_p() = %d\n",
853 gdbarch_get_thread_local_address_p (gdbarch
));
855 "gdbarch_dump: get_thread_local_address = <%s>\n",
856 host_address_to_string (gdbarch
->get_thread_local_address
));
858 "gdbarch_dump: frame_args_skip = %s\n",
859 core_addr_to_string_nz (gdbarch
->frame_args_skip
));
861 "gdbarch_dump: unwind_pc = <%s>\n",
862 host_address_to_string (gdbarch
->unwind_pc
));
864 "gdbarch_dump: unwind_sp = <%s>\n",
865 host_address_to_string (gdbarch
->unwind_sp
));
867 "gdbarch_dump: gdbarch_frame_num_args_p() = %d\n",
868 gdbarch_frame_num_args_p (gdbarch
));
870 "gdbarch_dump: frame_num_args = <%s>\n",
871 host_address_to_string (gdbarch
->frame_num_args
));
873 "gdbarch_dump: gdbarch_frame_align_p() = %d\n",
874 gdbarch_frame_align_p (gdbarch
));
876 "gdbarch_dump: frame_align = <%s>\n",
877 host_address_to_string (gdbarch
->frame_align
));
879 "gdbarch_dump: stabs_argument_has_addr = <%s>\n",
880 host_address_to_string (gdbarch
->stabs_argument_has_addr
));
882 "gdbarch_dump: frame_red_zone_size = %s\n",
883 plongest (gdbarch
->frame_red_zone_size
));
885 "gdbarch_dump: convert_from_func_ptr_addr = <%s>\n",
886 host_address_to_string (gdbarch
->convert_from_func_ptr_addr
));
888 "gdbarch_dump: addr_bits_remove = <%s>\n",
889 host_address_to_string (gdbarch
->addr_bits_remove
));
891 "gdbarch_dump: remove_non_address_bits = <%s>\n",
892 host_address_to_string (gdbarch
->remove_non_address_bits
));
894 "gdbarch_dump: memtag_to_string = <%s>\n",
895 host_address_to_string (gdbarch
->memtag_to_string
));
897 "gdbarch_dump: tagged_address_p = <%s>\n",
898 host_address_to_string (gdbarch
->tagged_address_p
));
900 "gdbarch_dump: memtag_matches_p = <%s>\n",
901 host_address_to_string (gdbarch
->memtag_matches_p
));
903 "gdbarch_dump: set_memtags = <%s>\n",
904 host_address_to_string (gdbarch
->set_memtags
));
906 "gdbarch_dump: get_memtag = <%s>\n",
907 host_address_to_string (gdbarch
->get_memtag
));
909 "gdbarch_dump: memtag_granule_size = %s\n",
910 core_addr_to_string_nz (gdbarch
->memtag_granule_size
));
912 "gdbarch_dump: gdbarch_software_single_step_p() = %d\n",
913 gdbarch_software_single_step_p (gdbarch
));
915 "gdbarch_dump: software_single_step = <%s>\n",
916 host_address_to_string (gdbarch
->software_single_step
));
918 "gdbarch_dump: gdbarch_single_step_through_delay_p() = %d\n",
919 gdbarch_single_step_through_delay_p (gdbarch
));
921 "gdbarch_dump: single_step_through_delay = <%s>\n",
922 host_address_to_string (gdbarch
->single_step_through_delay
));
924 "gdbarch_dump: print_insn = <%s>\n",
925 host_address_to_string (gdbarch
->print_insn
));
927 "gdbarch_dump: skip_trampoline_code = <%s>\n",
928 host_address_to_string (gdbarch
->skip_trampoline_code
));
930 "gdbarch_dump: so_ops = %s\n",
931 host_address_to_string (gdbarch
->so_ops
));
933 "gdbarch_dump: skip_solib_resolver = <%s>\n",
934 host_address_to_string (gdbarch
->skip_solib_resolver
));
936 "gdbarch_dump: in_solib_return_trampoline = <%s>\n",
937 host_address_to_string (gdbarch
->in_solib_return_trampoline
));
939 "gdbarch_dump: in_indirect_branch_thunk = <%s>\n",
940 host_address_to_string (gdbarch
->in_indirect_branch_thunk
));
942 "gdbarch_dump: stack_frame_destroyed_p = <%s>\n",
943 host_address_to_string (gdbarch
->stack_frame_destroyed_p
));
945 "gdbarch_dump: gdbarch_elf_make_msymbol_special_p() = %d\n",
946 gdbarch_elf_make_msymbol_special_p (gdbarch
));
948 "gdbarch_dump: elf_make_msymbol_special = <%s>\n",
949 host_address_to_string (gdbarch
->elf_make_msymbol_special
));
951 "gdbarch_dump: coff_make_msymbol_special = <%s>\n",
952 host_address_to_string (gdbarch
->coff_make_msymbol_special
));
954 "gdbarch_dump: make_symbol_special = <%s>\n",
955 host_address_to_string (gdbarch
->make_symbol_special
));
957 "gdbarch_dump: adjust_dwarf2_addr = <%s>\n",
958 host_address_to_string (gdbarch
->adjust_dwarf2_addr
));
960 "gdbarch_dump: adjust_dwarf2_line = <%s>\n",
961 host_address_to_string (gdbarch
->adjust_dwarf2_line
));
963 "gdbarch_dump: cannot_step_breakpoint = %s\n",
964 plongest (gdbarch
->cannot_step_breakpoint
));
966 "gdbarch_dump: have_nonsteppable_watchpoint = %s\n",
967 plongest (gdbarch
->have_nonsteppable_watchpoint
));
969 "gdbarch_dump: gdbarch_address_class_type_flags_p() = %d\n",
970 gdbarch_address_class_type_flags_p (gdbarch
));
972 "gdbarch_dump: address_class_type_flags = <%s>\n",
973 host_address_to_string (gdbarch
->address_class_type_flags
));
975 "gdbarch_dump: gdbarch_address_class_type_flags_to_name_p() = %d\n",
976 gdbarch_address_class_type_flags_to_name_p (gdbarch
));
978 "gdbarch_dump: address_class_type_flags_to_name = <%s>\n",
979 host_address_to_string (gdbarch
->address_class_type_flags_to_name
));
981 "gdbarch_dump: execute_dwarf_cfa_vendor_op = <%s>\n",
982 host_address_to_string (gdbarch
->execute_dwarf_cfa_vendor_op
));
984 "gdbarch_dump: gdbarch_address_class_name_to_type_flags_p() = %d\n",
985 gdbarch_address_class_name_to_type_flags_p (gdbarch
));
987 "gdbarch_dump: address_class_name_to_type_flags = <%s>\n",
988 host_address_to_string (gdbarch
->address_class_name_to_type_flags
));
990 "gdbarch_dump: register_reggroup_p = <%s>\n",
991 host_address_to_string (gdbarch
->register_reggroup_p
));
993 "gdbarch_dump: gdbarch_fetch_pointer_argument_p() = %d\n",
994 gdbarch_fetch_pointer_argument_p (gdbarch
));
996 "gdbarch_dump: fetch_pointer_argument = <%s>\n",
997 host_address_to_string (gdbarch
->fetch_pointer_argument
));
999 "gdbarch_dump: gdbarch_iterate_over_regset_sections_p() = %d\n",
1000 gdbarch_iterate_over_regset_sections_p (gdbarch
));
1002 "gdbarch_dump: iterate_over_regset_sections = <%s>\n",
1003 host_address_to_string (gdbarch
->iterate_over_regset_sections
));
1005 "gdbarch_dump: gdbarch_make_corefile_notes_p() = %d\n",
1006 gdbarch_make_corefile_notes_p (gdbarch
));
1008 "gdbarch_dump: make_corefile_notes = <%s>\n",
1009 host_address_to_string (gdbarch
->make_corefile_notes
));
1011 "gdbarch_dump: gdbarch_find_memory_regions_p() = %d\n",
1012 gdbarch_find_memory_regions_p (gdbarch
));
1014 "gdbarch_dump: find_memory_regions = <%s>\n",
1015 host_address_to_string (gdbarch
->find_memory_regions
));
1017 "gdbarch_dump: gdbarch_create_memtag_section_p() = %d\n",
1018 gdbarch_create_memtag_section_p (gdbarch
));
1020 "gdbarch_dump: create_memtag_section = <%s>\n",
1021 host_address_to_string (gdbarch
->create_memtag_section
));
1023 "gdbarch_dump: gdbarch_fill_memtag_section_p() = %d\n",
1024 gdbarch_fill_memtag_section_p (gdbarch
));
1026 "gdbarch_dump: fill_memtag_section = <%s>\n",
1027 host_address_to_string (gdbarch
->fill_memtag_section
));
1029 "gdbarch_dump: gdbarch_decode_memtag_section_p() = %d\n",
1030 gdbarch_decode_memtag_section_p (gdbarch
));
1032 "gdbarch_dump: decode_memtag_section = <%s>\n",
1033 host_address_to_string (gdbarch
->decode_memtag_section
));
1035 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_p() = %d\n",
1036 gdbarch_core_xfer_shared_libraries_p (gdbarch
));
1038 "gdbarch_dump: core_xfer_shared_libraries = <%s>\n",
1039 host_address_to_string (gdbarch
->core_xfer_shared_libraries
));
1041 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_aix_p() = %d\n",
1042 gdbarch_core_xfer_shared_libraries_aix_p (gdbarch
));
1044 "gdbarch_dump: core_xfer_shared_libraries_aix = <%s>\n",
1045 host_address_to_string (gdbarch
->core_xfer_shared_libraries_aix
));
1047 "gdbarch_dump: gdbarch_core_pid_to_str_p() = %d\n",
1048 gdbarch_core_pid_to_str_p (gdbarch
));
1050 "gdbarch_dump: core_pid_to_str = <%s>\n",
1051 host_address_to_string (gdbarch
->core_pid_to_str
));
1053 "gdbarch_dump: gdbarch_core_thread_name_p() = %d\n",
1054 gdbarch_core_thread_name_p (gdbarch
));
1056 "gdbarch_dump: core_thread_name = <%s>\n",
1057 host_address_to_string (gdbarch
->core_thread_name
));
1059 "gdbarch_dump: gdbarch_core_xfer_siginfo_p() = %d\n",
1060 gdbarch_core_xfer_siginfo_p (gdbarch
));
1062 "gdbarch_dump: core_xfer_siginfo = <%s>\n",
1063 host_address_to_string (gdbarch
->core_xfer_siginfo
));
1065 "gdbarch_dump: gdbarch_gcore_bfd_target_p() = %d\n",
1066 gdbarch_gcore_bfd_target_p (gdbarch
));
1068 "gdbarch_dump: gcore_bfd_target = %s\n",
1069 pstring (gdbarch
->gcore_bfd_target
));
1071 "gdbarch_dump: vtable_function_descriptors = %s\n",
1072 plongest (gdbarch
->vtable_function_descriptors
));
1074 "gdbarch_dump: vbit_in_delta = %s\n",
1075 plongest (gdbarch
->vbit_in_delta
));
1077 "gdbarch_dump: skip_permanent_breakpoint = <%s>\n",
1078 host_address_to_string (gdbarch
->skip_permanent_breakpoint
));
1080 "gdbarch_dump: gdbarch_max_insn_length_p() = %d\n",
1081 gdbarch_max_insn_length_p (gdbarch
));
1083 "gdbarch_dump: max_insn_length = %s\n",
1084 plongest (gdbarch
->max_insn_length
));
1086 "gdbarch_dump: gdbarch_displaced_step_copy_insn_p() = %d\n",
1087 gdbarch_displaced_step_copy_insn_p (gdbarch
));
1089 "gdbarch_dump: displaced_step_copy_insn = <%s>\n",
1090 host_address_to_string (gdbarch
->displaced_step_copy_insn
));
1092 "gdbarch_dump: displaced_step_hw_singlestep = <%s>\n",
1093 host_address_to_string (gdbarch
->displaced_step_hw_singlestep
));
1095 "gdbarch_dump: gdbarch_displaced_step_fixup_p() = %d\n",
1096 gdbarch_displaced_step_fixup_p (gdbarch
));
1098 "gdbarch_dump: displaced_step_fixup = <%s>\n",
1099 host_address_to_string (gdbarch
->displaced_step_fixup
));
1101 "gdbarch_dump: gdbarch_displaced_step_prepare_p() = %d\n",
1102 gdbarch_displaced_step_prepare_p (gdbarch
));
1104 "gdbarch_dump: displaced_step_prepare = <%s>\n",
1105 host_address_to_string (gdbarch
->displaced_step_prepare
));
1107 "gdbarch_dump: displaced_step_finish = <%s>\n",
1108 host_address_to_string (gdbarch
->displaced_step_finish
));
1110 "gdbarch_dump: gdbarch_displaced_step_copy_insn_closure_by_addr_p() = %d\n",
1111 gdbarch_displaced_step_copy_insn_closure_by_addr_p (gdbarch
));
1113 "gdbarch_dump: displaced_step_copy_insn_closure_by_addr = <%s>\n",
1114 host_address_to_string (gdbarch
->displaced_step_copy_insn_closure_by_addr
));
1116 "gdbarch_dump: displaced_step_restore_all_in_ptid = <%s>\n",
1117 host_address_to_string (gdbarch
->displaced_step_restore_all_in_ptid
));
1119 "gdbarch_dump: gdbarch_relocate_instruction_p() = %d\n",
1120 gdbarch_relocate_instruction_p (gdbarch
));
1122 "gdbarch_dump: relocate_instruction = <%s>\n",
1123 host_address_to_string (gdbarch
->relocate_instruction
));
1125 "gdbarch_dump: gdbarch_overlay_update_p() = %d\n",
1126 gdbarch_overlay_update_p (gdbarch
));
1128 "gdbarch_dump: overlay_update = <%s>\n",
1129 host_address_to_string (gdbarch
->overlay_update
));
1131 "gdbarch_dump: gdbarch_core_read_description_p() = %d\n",
1132 gdbarch_core_read_description_p (gdbarch
));
1134 "gdbarch_dump: core_read_description = <%s>\n",
1135 host_address_to_string (gdbarch
->core_read_description
));
1137 "gdbarch_dump: sofun_address_maybe_missing = %s\n",
1138 plongest (gdbarch
->sofun_address_maybe_missing
));
1140 "gdbarch_dump: gdbarch_process_record_p() = %d\n",
1141 gdbarch_process_record_p (gdbarch
));
1143 "gdbarch_dump: process_record = <%s>\n",
1144 host_address_to_string (gdbarch
->process_record
));
1146 "gdbarch_dump: gdbarch_process_record_signal_p() = %d\n",
1147 gdbarch_process_record_signal_p (gdbarch
));
1149 "gdbarch_dump: process_record_signal = <%s>\n",
1150 host_address_to_string (gdbarch
->process_record_signal
));
1152 "gdbarch_dump: gdbarch_gdb_signal_from_target_p() = %d\n",
1153 gdbarch_gdb_signal_from_target_p (gdbarch
));
1155 "gdbarch_dump: gdb_signal_from_target = <%s>\n",
1156 host_address_to_string (gdbarch
->gdb_signal_from_target
));
1158 "gdbarch_dump: gdbarch_gdb_signal_to_target_p() = %d\n",
1159 gdbarch_gdb_signal_to_target_p (gdbarch
));
1161 "gdbarch_dump: gdb_signal_to_target = <%s>\n",
1162 host_address_to_string (gdbarch
->gdb_signal_to_target
));
1164 "gdbarch_dump: gdbarch_get_siginfo_type_p() = %d\n",
1165 gdbarch_get_siginfo_type_p (gdbarch
));
1167 "gdbarch_dump: get_siginfo_type = <%s>\n",
1168 host_address_to_string (gdbarch
->get_siginfo_type
));
1170 "gdbarch_dump: gdbarch_record_special_symbol_p() = %d\n",
1171 gdbarch_record_special_symbol_p (gdbarch
));
1173 "gdbarch_dump: record_special_symbol = <%s>\n",
1174 host_address_to_string (gdbarch
->record_special_symbol
));
1176 "gdbarch_dump: gdbarch_get_syscall_number_p() = %d\n",
1177 gdbarch_get_syscall_number_p (gdbarch
));
1179 "gdbarch_dump: get_syscall_number = <%s>\n",
1180 host_address_to_string (gdbarch
->get_syscall_number
));
1182 "gdbarch_dump: xml_syscall_file = %s\n",
1183 pstring (gdbarch
->xml_syscall_file
));
1185 "gdbarch_dump: syscalls_info = %s\n",
1186 host_address_to_string (gdbarch
->syscalls_info
));
1188 "gdbarch_dump: stap_integer_prefixes = %s\n",
1189 pstring_list (gdbarch
->stap_integer_prefixes
));
1191 "gdbarch_dump: stap_integer_suffixes = %s\n",
1192 pstring_list (gdbarch
->stap_integer_suffixes
));
1194 "gdbarch_dump: stap_register_prefixes = %s\n",
1195 pstring_list (gdbarch
->stap_register_prefixes
));
1197 "gdbarch_dump: stap_register_suffixes = %s\n",
1198 pstring_list (gdbarch
->stap_register_suffixes
));
1200 "gdbarch_dump: stap_register_indirection_prefixes = %s\n",
1201 pstring_list (gdbarch
->stap_register_indirection_prefixes
));
1203 "gdbarch_dump: stap_register_indirection_suffixes = %s\n",
1204 pstring_list (gdbarch
->stap_register_indirection_suffixes
));
1206 "gdbarch_dump: stap_gdb_register_prefix = %s\n",
1207 pstring (gdbarch
->stap_gdb_register_prefix
));
1209 "gdbarch_dump: stap_gdb_register_suffix = %s\n",
1210 pstring (gdbarch
->stap_gdb_register_suffix
));
1212 "gdbarch_dump: gdbarch_stap_is_single_operand_p() = %d\n",
1213 gdbarch_stap_is_single_operand_p (gdbarch
));
1215 "gdbarch_dump: stap_is_single_operand = <%s>\n",
1216 host_address_to_string (gdbarch
->stap_is_single_operand
));
1218 "gdbarch_dump: gdbarch_stap_parse_special_token_p() = %d\n",
1219 gdbarch_stap_parse_special_token_p (gdbarch
));
1221 "gdbarch_dump: stap_parse_special_token = <%s>\n",
1222 host_address_to_string (gdbarch
->stap_parse_special_token
));
1224 "gdbarch_dump: gdbarch_stap_adjust_register_p() = %d\n",
1225 gdbarch_stap_adjust_register_p (gdbarch
));
1227 "gdbarch_dump: stap_adjust_register = <%s>\n",
1228 host_address_to_string (gdbarch
->stap_adjust_register
));
1230 "gdbarch_dump: gdbarch_dtrace_parse_probe_argument_p() = %d\n",
1231 gdbarch_dtrace_parse_probe_argument_p (gdbarch
));
1233 "gdbarch_dump: dtrace_parse_probe_argument = <%s>\n",
1234 host_address_to_string (gdbarch
->dtrace_parse_probe_argument
));
1236 "gdbarch_dump: gdbarch_dtrace_probe_is_enabled_p() = %d\n",
1237 gdbarch_dtrace_probe_is_enabled_p (gdbarch
));
1239 "gdbarch_dump: dtrace_probe_is_enabled = <%s>\n",
1240 host_address_to_string (gdbarch
->dtrace_probe_is_enabled
));
1242 "gdbarch_dump: gdbarch_dtrace_enable_probe_p() = %d\n",
1243 gdbarch_dtrace_enable_probe_p (gdbarch
));
1245 "gdbarch_dump: dtrace_enable_probe = <%s>\n",
1246 host_address_to_string (gdbarch
->dtrace_enable_probe
));
1248 "gdbarch_dump: gdbarch_dtrace_disable_probe_p() = %d\n",
1249 gdbarch_dtrace_disable_probe_p (gdbarch
));
1251 "gdbarch_dump: dtrace_disable_probe = <%s>\n",
1252 host_address_to_string (gdbarch
->dtrace_disable_probe
));
1254 "gdbarch_dump: has_global_solist = %s\n",
1255 plongest (gdbarch
->has_global_solist
));
1257 "gdbarch_dump: has_global_breakpoints = %s\n",
1258 plongest (gdbarch
->has_global_breakpoints
));
1260 "gdbarch_dump: has_shared_address_space = <%s>\n",
1261 host_address_to_string (gdbarch
->has_shared_address_space
));
1263 "gdbarch_dump: fast_tracepoint_valid_at = <%s>\n",
1264 host_address_to_string (gdbarch
->fast_tracepoint_valid_at
));
1266 "gdbarch_dump: guess_tracepoint_registers = <%s>\n",
1267 host_address_to_string (gdbarch
->guess_tracepoint_registers
));
1269 "gdbarch_dump: auto_charset = <%s>\n",
1270 host_address_to_string (gdbarch
->auto_charset
));
1272 "gdbarch_dump: auto_wide_charset = <%s>\n",
1273 host_address_to_string (gdbarch
->auto_wide_charset
));
1275 "gdbarch_dump: solib_symbols_extension = %s\n",
1276 pstring (gdbarch
->solib_symbols_extension
));
1278 "gdbarch_dump: has_dos_based_file_system = %s\n",
1279 plongest (gdbarch
->has_dos_based_file_system
));
1281 "gdbarch_dump: gen_return_address = <%s>\n",
1282 host_address_to_string (gdbarch
->gen_return_address
));
1284 "gdbarch_dump: gdbarch_info_proc_p() = %d\n",
1285 gdbarch_info_proc_p (gdbarch
));
1287 "gdbarch_dump: info_proc = <%s>\n",
1288 host_address_to_string (gdbarch
->info_proc
));
1290 "gdbarch_dump: gdbarch_core_info_proc_p() = %d\n",
1291 gdbarch_core_info_proc_p (gdbarch
));
1293 "gdbarch_dump: core_info_proc = <%s>\n",
1294 host_address_to_string (gdbarch
->core_info_proc
));
1296 "gdbarch_dump: iterate_over_objfiles_in_search_order = <%s>\n",
1297 host_address_to_string (gdbarch
->iterate_over_objfiles_in_search_order
));
1299 "gdbarch_dump: ravenscar_ops = %s\n",
1300 host_address_to_string (gdbarch
->ravenscar_ops
));
1302 "gdbarch_dump: insn_is_call = <%s>\n",
1303 host_address_to_string (gdbarch
->insn_is_call
));
1305 "gdbarch_dump: insn_is_ret = <%s>\n",
1306 host_address_to_string (gdbarch
->insn_is_ret
));
1308 "gdbarch_dump: insn_is_jump = <%s>\n",
1309 host_address_to_string (gdbarch
->insn_is_jump
));
1311 "gdbarch_dump: program_breakpoint_here_p = <%s>\n",
1312 host_address_to_string (gdbarch
->program_breakpoint_here_p
));
1314 "gdbarch_dump: gdbarch_auxv_parse_p() = %d\n",
1315 gdbarch_auxv_parse_p (gdbarch
));
1317 "gdbarch_dump: auxv_parse = <%s>\n",
1318 host_address_to_string (gdbarch
->auxv_parse
));
1320 "gdbarch_dump: print_auxv_entry = <%s>\n",
1321 host_address_to_string (gdbarch
->print_auxv_entry
));
1323 "gdbarch_dump: vsyscall_range = <%s>\n",
1324 host_address_to_string (gdbarch
->vsyscall_range
));
1326 "gdbarch_dump: infcall_mmap = <%s>\n",
1327 host_address_to_string (gdbarch
->infcall_mmap
));
1329 "gdbarch_dump: infcall_munmap = <%s>\n",
1330 host_address_to_string (gdbarch
->infcall_munmap
));
1332 "gdbarch_dump: gcc_target_options = <%s>\n",
1333 host_address_to_string (gdbarch
->gcc_target_options
));
1335 "gdbarch_dump: gnu_triplet_regexp = <%s>\n",
1336 host_address_to_string (gdbarch
->gnu_triplet_regexp
));
1338 "gdbarch_dump: addressable_memory_unit_size = <%s>\n",
1339 host_address_to_string (gdbarch
->addressable_memory_unit_size
));
1341 "gdbarch_dump: disassembler_options_implicit = %s\n",
1342 pstring (gdbarch
->disassembler_options_implicit
));
1344 "gdbarch_dump: disassembler_options = %s\n",
1345 pstring_ptr (gdbarch
->disassembler_options
));
1347 "gdbarch_dump: valid_disassembler_options = %s\n",
1348 host_address_to_string (gdbarch
->valid_disassembler_options
));
1350 "gdbarch_dump: type_align = <%s>\n",
1351 host_address_to_string (gdbarch
->type_align
));
1353 "gdbarch_dump: get_pc_address_flags = <%s>\n",
1354 host_address_to_string (gdbarch
->get_pc_address_flags
));
1356 "gdbarch_dump: read_core_file_mappings = <%s>\n",
1357 host_address_to_string (gdbarch
->read_core_file_mappings
));
1358 if (gdbarch
->dump_tdep
!= NULL
)
1359 gdbarch
->dump_tdep (gdbarch
, file
);
1363 const struct bfd_arch_info
*
1364 gdbarch_bfd_arch_info (struct gdbarch
*gdbarch
)
1366 gdb_assert (gdbarch
!= NULL
);
1367 if (gdbarch_debug
>= 2)
1368 gdb_printf (gdb_stdlog
, "gdbarch_bfd_arch_info called\n");
1369 return gdbarch
->bfd_arch_info
;
1373 gdbarch_byte_order (struct gdbarch
*gdbarch
)
1375 gdb_assert (gdbarch
!= NULL
);
1376 if (gdbarch_debug
>= 2)
1377 gdb_printf (gdb_stdlog
, "gdbarch_byte_order called\n");
1378 return gdbarch
->byte_order
;
1382 gdbarch_byte_order_for_code (struct gdbarch
*gdbarch
)
1384 gdb_assert (gdbarch
!= NULL
);
1385 if (gdbarch_debug
>= 2)
1386 gdb_printf (gdb_stdlog
, "gdbarch_byte_order_for_code called\n");
1387 return gdbarch
->byte_order_for_code
;
1391 gdbarch_osabi (struct gdbarch
*gdbarch
)
1393 gdb_assert (gdbarch
!= NULL
);
1394 if (gdbarch_debug
>= 2)
1395 gdb_printf (gdb_stdlog
, "gdbarch_osabi called\n");
1396 return gdbarch
->osabi
;
1399 const struct target_desc
*
1400 gdbarch_target_desc (struct gdbarch
*gdbarch
)
1402 gdb_assert (gdbarch
!= NULL
);
1403 if (gdbarch_debug
>= 2)
1404 gdb_printf (gdb_stdlog
, "gdbarch_target_desc called\n");
1405 return gdbarch
->target_desc
;
1409 gdbarch_short_bit (struct gdbarch
*gdbarch
)
1411 gdb_assert (gdbarch
!= NULL
);
1412 /* Skip verify of short_bit, invalid_p == 0 */
1413 if (gdbarch_debug
>= 2)
1414 gdb_printf (gdb_stdlog
, "gdbarch_short_bit called\n");
1415 return gdbarch
->short_bit
;
1419 set_gdbarch_short_bit (struct gdbarch
*gdbarch
,
1422 gdbarch
->short_bit
= short_bit
;
1426 gdbarch_int_bit (struct gdbarch
*gdbarch
)
1428 gdb_assert (gdbarch
!= NULL
);
1429 /* Skip verify of int_bit, invalid_p == 0 */
1430 if (gdbarch_debug
>= 2)
1431 gdb_printf (gdb_stdlog
, "gdbarch_int_bit called\n");
1432 return gdbarch
->int_bit
;
1436 set_gdbarch_int_bit (struct gdbarch
*gdbarch
,
1439 gdbarch
->int_bit
= int_bit
;
1443 gdbarch_long_bit (struct gdbarch
*gdbarch
)
1445 gdb_assert (gdbarch
!= NULL
);
1446 /* Skip verify of long_bit, invalid_p == 0 */
1447 if (gdbarch_debug
>= 2)
1448 gdb_printf (gdb_stdlog
, "gdbarch_long_bit called\n");
1449 return gdbarch
->long_bit
;
1453 set_gdbarch_long_bit (struct gdbarch
*gdbarch
,
1456 gdbarch
->long_bit
= long_bit
;
1460 gdbarch_long_long_bit (struct gdbarch
*gdbarch
)
1462 gdb_assert (gdbarch
!= NULL
);
1463 /* Skip verify of long_long_bit, invalid_p == 0 */
1464 if (gdbarch_debug
>= 2)
1465 gdb_printf (gdb_stdlog
, "gdbarch_long_long_bit called\n");
1466 return gdbarch
->long_long_bit
;
1470 set_gdbarch_long_long_bit (struct gdbarch
*gdbarch
,
1473 gdbarch
->long_long_bit
= long_long_bit
;
1477 gdbarch_bfloat16_bit (struct gdbarch
*gdbarch
)
1479 gdb_assert (gdbarch
!= NULL
);
1480 /* Skip verify of bfloat16_bit, invalid_p == 0 */
1481 if (gdbarch_debug
>= 2)
1482 gdb_printf (gdb_stdlog
, "gdbarch_bfloat16_bit called\n");
1483 return gdbarch
->bfloat16_bit
;
1487 set_gdbarch_bfloat16_bit (struct gdbarch
*gdbarch
,
1490 gdbarch
->bfloat16_bit
= bfloat16_bit
;
1493 const struct floatformat
**
1494 gdbarch_bfloat16_format (struct gdbarch
*gdbarch
)
1496 gdb_assert (gdbarch
!= NULL
);
1497 if (gdbarch_debug
>= 2)
1498 gdb_printf (gdb_stdlog
, "gdbarch_bfloat16_format called\n");
1499 return gdbarch
->bfloat16_format
;
1503 set_gdbarch_bfloat16_format (struct gdbarch
*gdbarch
,
1504 const struct floatformat
** bfloat16_format
)
1506 gdbarch
->bfloat16_format
= bfloat16_format
;
1510 gdbarch_half_bit (struct gdbarch
*gdbarch
)
1512 gdb_assert (gdbarch
!= NULL
);
1513 /* Skip verify of half_bit, invalid_p == 0 */
1514 if (gdbarch_debug
>= 2)
1515 gdb_printf (gdb_stdlog
, "gdbarch_half_bit called\n");
1516 return gdbarch
->half_bit
;
1520 set_gdbarch_half_bit (struct gdbarch
*gdbarch
,
1523 gdbarch
->half_bit
= half_bit
;
1526 const struct floatformat
**
1527 gdbarch_half_format (struct gdbarch
*gdbarch
)
1529 gdb_assert (gdbarch
!= NULL
);
1530 if (gdbarch_debug
>= 2)
1531 gdb_printf (gdb_stdlog
, "gdbarch_half_format called\n");
1532 return gdbarch
->half_format
;
1536 set_gdbarch_half_format (struct gdbarch
*gdbarch
,
1537 const struct floatformat
** half_format
)
1539 gdbarch
->half_format
= half_format
;
1543 gdbarch_float_bit (struct gdbarch
*gdbarch
)
1545 gdb_assert (gdbarch
!= NULL
);
1546 /* Skip verify of float_bit, invalid_p == 0 */
1547 if (gdbarch_debug
>= 2)
1548 gdb_printf (gdb_stdlog
, "gdbarch_float_bit called\n");
1549 return gdbarch
->float_bit
;
1553 set_gdbarch_float_bit (struct gdbarch
*gdbarch
,
1556 gdbarch
->float_bit
= float_bit
;
1559 const struct floatformat
**
1560 gdbarch_float_format (struct gdbarch
*gdbarch
)
1562 gdb_assert (gdbarch
!= NULL
);
1563 if (gdbarch_debug
>= 2)
1564 gdb_printf (gdb_stdlog
, "gdbarch_float_format called\n");
1565 return gdbarch
->float_format
;
1569 set_gdbarch_float_format (struct gdbarch
*gdbarch
,
1570 const struct floatformat
** float_format
)
1572 gdbarch
->float_format
= float_format
;
1576 gdbarch_double_bit (struct gdbarch
*gdbarch
)
1578 gdb_assert (gdbarch
!= NULL
);
1579 /* Skip verify of double_bit, invalid_p == 0 */
1580 if (gdbarch_debug
>= 2)
1581 gdb_printf (gdb_stdlog
, "gdbarch_double_bit called\n");
1582 return gdbarch
->double_bit
;
1586 set_gdbarch_double_bit (struct gdbarch
*gdbarch
,
1589 gdbarch
->double_bit
= double_bit
;
1592 const struct floatformat
**
1593 gdbarch_double_format (struct gdbarch
*gdbarch
)
1595 gdb_assert (gdbarch
!= NULL
);
1596 if (gdbarch_debug
>= 2)
1597 gdb_printf (gdb_stdlog
, "gdbarch_double_format called\n");
1598 return gdbarch
->double_format
;
1602 set_gdbarch_double_format (struct gdbarch
*gdbarch
,
1603 const struct floatformat
** double_format
)
1605 gdbarch
->double_format
= double_format
;
1609 gdbarch_long_double_bit (struct gdbarch
*gdbarch
)
1611 gdb_assert (gdbarch
!= NULL
);
1612 /* Skip verify of long_double_bit, invalid_p == 0 */
1613 if (gdbarch_debug
>= 2)
1614 gdb_printf (gdb_stdlog
, "gdbarch_long_double_bit called\n");
1615 return gdbarch
->long_double_bit
;
1619 set_gdbarch_long_double_bit (struct gdbarch
*gdbarch
,
1620 int long_double_bit
)
1622 gdbarch
->long_double_bit
= long_double_bit
;
1625 const struct floatformat
**
1626 gdbarch_long_double_format (struct gdbarch
*gdbarch
)
1628 gdb_assert (gdbarch
!= NULL
);
1629 if (gdbarch_debug
>= 2)
1630 gdb_printf (gdb_stdlog
, "gdbarch_long_double_format called\n");
1631 return gdbarch
->long_double_format
;
1635 set_gdbarch_long_double_format (struct gdbarch
*gdbarch
,
1636 const struct floatformat
** long_double_format
)
1638 gdbarch
->long_double_format
= long_double_format
;
1642 gdbarch_wchar_bit (struct gdbarch
*gdbarch
)
1644 gdb_assert (gdbarch
!= NULL
);
1645 /* Skip verify of wchar_bit, invalid_p == 0 */
1646 if (gdbarch_debug
>= 2)
1647 gdb_printf (gdb_stdlog
, "gdbarch_wchar_bit called\n");
1648 return gdbarch
->wchar_bit
;
1652 set_gdbarch_wchar_bit (struct gdbarch
*gdbarch
,
1655 gdbarch
->wchar_bit
= wchar_bit
;
1659 gdbarch_wchar_signed (struct gdbarch
*gdbarch
)
1661 gdb_assert (gdbarch
!= NULL
);
1662 /* Check variable changed from pre-default. */
1663 gdb_assert (gdbarch
->wchar_signed
!= -1);
1664 if (gdbarch_debug
>= 2)
1665 gdb_printf (gdb_stdlog
, "gdbarch_wchar_signed called\n");
1666 return gdbarch
->wchar_signed
;
1670 set_gdbarch_wchar_signed (struct gdbarch
*gdbarch
,
1673 gdbarch
->wchar_signed
= wchar_signed
;
1676 const struct floatformat
**
1677 gdbarch_floatformat_for_type (struct gdbarch
*gdbarch
, const char *name
, int length
)
1679 gdb_assert (gdbarch
!= NULL
);
1680 gdb_assert (gdbarch
->floatformat_for_type
!= NULL
);
1681 if (gdbarch_debug
>= 2)
1682 gdb_printf (gdb_stdlog
, "gdbarch_floatformat_for_type called\n");
1683 return gdbarch
->floatformat_for_type (gdbarch
, name
, length
);
1687 set_gdbarch_floatformat_for_type (struct gdbarch
*gdbarch
,
1688 gdbarch_floatformat_for_type_ftype floatformat_for_type
)
1690 gdbarch
->floatformat_for_type
= floatformat_for_type
;
1694 gdbarch_ptr_bit (struct gdbarch
*gdbarch
)
1696 gdb_assert (gdbarch
!= NULL
);
1697 /* Skip verify of ptr_bit, invalid_p == 0 */
1698 if (gdbarch_debug
>= 2)
1699 gdb_printf (gdb_stdlog
, "gdbarch_ptr_bit called\n");
1700 return gdbarch
->ptr_bit
;
1704 set_gdbarch_ptr_bit (struct gdbarch
*gdbarch
,
1707 gdbarch
->ptr_bit
= ptr_bit
;
1711 gdbarch_addr_bit (struct gdbarch
*gdbarch
)
1713 gdb_assert (gdbarch
!= NULL
);
1714 /* Check variable changed from pre-default. */
1715 gdb_assert (gdbarch
->addr_bit
!= 0);
1716 if (gdbarch_debug
>= 2)
1717 gdb_printf (gdb_stdlog
, "gdbarch_addr_bit called\n");
1718 return gdbarch
->addr_bit
;
1722 set_gdbarch_addr_bit (struct gdbarch
*gdbarch
,
1725 gdbarch
->addr_bit
= addr_bit
;
1729 gdbarch_dwarf2_addr_size (struct gdbarch
*gdbarch
)
1731 gdb_assert (gdbarch
!= NULL
);
1732 /* Check variable changed from pre-default. */
1733 gdb_assert (gdbarch
->dwarf2_addr_size
!= 0);
1734 if (gdbarch_debug
>= 2)
1735 gdb_printf (gdb_stdlog
, "gdbarch_dwarf2_addr_size called\n");
1736 return gdbarch
->dwarf2_addr_size
;
1740 set_gdbarch_dwarf2_addr_size (struct gdbarch
*gdbarch
,
1741 int dwarf2_addr_size
)
1743 gdbarch
->dwarf2_addr_size
= dwarf2_addr_size
;
1747 gdbarch_char_signed (struct gdbarch
*gdbarch
)
1749 gdb_assert (gdbarch
!= NULL
);
1750 /* Check variable changed from pre-default. */
1751 gdb_assert (gdbarch
->char_signed
!= -1);
1752 if (gdbarch_debug
>= 2)
1753 gdb_printf (gdb_stdlog
, "gdbarch_char_signed called\n");
1754 return gdbarch
->char_signed
;
1758 set_gdbarch_char_signed (struct gdbarch
*gdbarch
,
1761 gdbarch
->char_signed
= char_signed
;
1765 gdbarch_read_pc_p (struct gdbarch
*gdbarch
)
1767 gdb_assert (gdbarch
!= NULL
);
1768 return gdbarch
->read_pc
!= NULL
;
1772 gdbarch_read_pc (struct gdbarch
*gdbarch
, readable_regcache
*regcache
)
1774 gdb_assert (gdbarch
!= NULL
);
1775 gdb_assert (gdbarch
->read_pc
!= NULL
);
1776 if (gdbarch_debug
>= 2)
1777 gdb_printf (gdb_stdlog
, "gdbarch_read_pc called\n");
1778 return gdbarch
->read_pc (regcache
);
1782 set_gdbarch_read_pc (struct gdbarch
*gdbarch
,
1783 gdbarch_read_pc_ftype read_pc
)
1785 gdbarch
->read_pc
= read_pc
;
1789 gdbarch_write_pc_p (struct gdbarch
*gdbarch
)
1791 gdb_assert (gdbarch
!= NULL
);
1792 return gdbarch
->write_pc
!= NULL
;
1796 gdbarch_write_pc (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR val
)
1798 gdb_assert (gdbarch
!= NULL
);
1799 gdb_assert (gdbarch
->write_pc
!= NULL
);
1800 if (gdbarch_debug
>= 2)
1801 gdb_printf (gdb_stdlog
, "gdbarch_write_pc called\n");
1802 gdbarch
->write_pc (regcache
, val
);
1806 set_gdbarch_write_pc (struct gdbarch
*gdbarch
,
1807 gdbarch_write_pc_ftype write_pc
)
1809 gdbarch
->write_pc
= write_pc
;
1813 gdbarch_virtual_frame_pointer (struct gdbarch
*gdbarch
, CORE_ADDR pc
, int *frame_regnum
, LONGEST
*frame_offset
)
1815 gdb_assert (gdbarch
!= NULL
);
1816 gdb_assert (gdbarch
->virtual_frame_pointer
!= NULL
);
1817 if (gdbarch_debug
>= 2)
1818 gdb_printf (gdb_stdlog
, "gdbarch_virtual_frame_pointer called\n");
1819 gdbarch
->virtual_frame_pointer (gdbarch
, pc
, frame_regnum
, frame_offset
);
1823 set_gdbarch_virtual_frame_pointer (struct gdbarch
*gdbarch
,
1824 gdbarch_virtual_frame_pointer_ftype virtual_frame_pointer
)
1826 gdbarch
->virtual_frame_pointer
= virtual_frame_pointer
;
1830 gdbarch_pseudo_register_read_p (struct gdbarch
*gdbarch
)
1832 gdb_assert (gdbarch
!= NULL
);
1833 return gdbarch
->pseudo_register_read
!= NULL
;
1836 enum register_status
1837 gdbarch_pseudo_register_read (struct gdbarch
*gdbarch
, readable_regcache
*regcache
, int cookednum
, gdb_byte
*buf
)
1839 gdb_assert (gdbarch
!= NULL
);
1840 gdb_assert (gdbarch
->pseudo_register_read
!= NULL
);
1841 if (gdbarch_debug
>= 2)
1842 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_read called\n");
1843 return gdbarch
->pseudo_register_read (gdbarch
, regcache
, cookednum
, buf
);
1847 set_gdbarch_pseudo_register_read (struct gdbarch
*gdbarch
,
1848 gdbarch_pseudo_register_read_ftype pseudo_register_read
)
1850 gdbarch
->pseudo_register_read
= pseudo_register_read
;
1854 gdbarch_pseudo_register_read_value_p (struct gdbarch
*gdbarch
)
1856 gdb_assert (gdbarch
!= NULL
);
1857 return gdbarch
->pseudo_register_read_value
!= NULL
;
1861 gdbarch_pseudo_register_read_value (struct gdbarch
*gdbarch
, readable_regcache
*regcache
, int cookednum
)
1863 gdb_assert (gdbarch
!= NULL
);
1864 gdb_assert (gdbarch
->pseudo_register_read_value
!= NULL
);
1865 if (gdbarch_debug
>= 2)
1866 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_read_value called\n");
1867 return gdbarch
->pseudo_register_read_value (gdbarch
, regcache
, cookednum
);
1871 set_gdbarch_pseudo_register_read_value (struct gdbarch
*gdbarch
,
1872 gdbarch_pseudo_register_read_value_ftype pseudo_register_read_value
)
1874 gdbarch
->pseudo_register_read_value
= pseudo_register_read_value
;
1878 gdbarch_pseudo_register_write_p (struct gdbarch
*gdbarch
)
1880 gdb_assert (gdbarch
!= NULL
);
1881 return gdbarch
->pseudo_register_write
!= NULL
;
1885 gdbarch_pseudo_register_write (struct gdbarch
*gdbarch
, struct regcache
*regcache
, int cookednum
, const gdb_byte
*buf
)
1887 gdb_assert (gdbarch
!= NULL
);
1888 gdb_assert (gdbarch
->pseudo_register_write
!= NULL
);
1889 if (gdbarch_debug
>= 2)
1890 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_write called\n");
1891 gdbarch
->pseudo_register_write (gdbarch
, regcache
, cookednum
, buf
);
1895 set_gdbarch_pseudo_register_write (struct gdbarch
*gdbarch
,
1896 gdbarch_pseudo_register_write_ftype pseudo_register_write
)
1898 gdbarch
->pseudo_register_write
= pseudo_register_write
;
1902 gdbarch_num_regs (struct gdbarch
*gdbarch
)
1904 gdb_assert (gdbarch
!= NULL
);
1905 /* Check variable changed from pre-default. */
1906 gdb_assert (gdbarch
->num_regs
!= -1);
1907 if (gdbarch_debug
>= 2)
1908 gdb_printf (gdb_stdlog
, "gdbarch_num_regs called\n");
1909 return gdbarch
->num_regs
;
1913 set_gdbarch_num_regs (struct gdbarch
*gdbarch
,
1916 gdbarch
->num_regs
= num_regs
;
1920 gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
)
1922 gdb_assert (gdbarch
!= NULL
);
1923 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
1924 if (gdbarch_debug
>= 2)
1925 gdb_printf (gdb_stdlog
, "gdbarch_num_pseudo_regs called\n");
1926 return gdbarch
->num_pseudo_regs
;
1930 set_gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
,
1931 int num_pseudo_regs
)
1933 gdbarch
->num_pseudo_regs
= num_pseudo_regs
;
1937 gdbarch_ax_pseudo_register_collect_p (struct gdbarch
*gdbarch
)
1939 gdb_assert (gdbarch
!= NULL
);
1940 return gdbarch
->ax_pseudo_register_collect
!= NULL
;
1944 gdbarch_ax_pseudo_register_collect (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, int reg
)
1946 gdb_assert (gdbarch
!= NULL
);
1947 gdb_assert (gdbarch
->ax_pseudo_register_collect
!= NULL
);
1948 if (gdbarch_debug
>= 2)
1949 gdb_printf (gdb_stdlog
, "gdbarch_ax_pseudo_register_collect called\n");
1950 return gdbarch
->ax_pseudo_register_collect (gdbarch
, ax
, reg
);
1954 set_gdbarch_ax_pseudo_register_collect (struct gdbarch
*gdbarch
,
1955 gdbarch_ax_pseudo_register_collect_ftype ax_pseudo_register_collect
)
1957 gdbarch
->ax_pseudo_register_collect
= ax_pseudo_register_collect
;
1961 gdbarch_ax_pseudo_register_push_stack_p (struct gdbarch
*gdbarch
)
1963 gdb_assert (gdbarch
!= NULL
);
1964 return gdbarch
->ax_pseudo_register_push_stack
!= NULL
;
1968 gdbarch_ax_pseudo_register_push_stack (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, int reg
)
1970 gdb_assert (gdbarch
!= NULL
);
1971 gdb_assert (gdbarch
->ax_pseudo_register_push_stack
!= NULL
);
1972 if (gdbarch_debug
>= 2)
1973 gdb_printf (gdb_stdlog
, "gdbarch_ax_pseudo_register_push_stack called\n");
1974 return gdbarch
->ax_pseudo_register_push_stack (gdbarch
, ax
, reg
);
1978 set_gdbarch_ax_pseudo_register_push_stack (struct gdbarch
*gdbarch
,
1979 gdbarch_ax_pseudo_register_push_stack_ftype ax_pseudo_register_push_stack
)
1981 gdbarch
->ax_pseudo_register_push_stack
= ax_pseudo_register_push_stack
;
1985 gdbarch_report_signal_info_p (struct gdbarch
*gdbarch
)
1987 gdb_assert (gdbarch
!= NULL
);
1988 return gdbarch
->report_signal_info
!= NULL
;
1992 gdbarch_report_signal_info (struct gdbarch
*gdbarch
, struct ui_out
*uiout
, enum gdb_signal siggnal
)
1994 gdb_assert (gdbarch
!= NULL
);
1995 gdb_assert (gdbarch
->report_signal_info
!= NULL
);
1996 if (gdbarch_debug
>= 2)
1997 gdb_printf (gdb_stdlog
, "gdbarch_report_signal_info called\n");
1998 gdbarch
->report_signal_info (gdbarch
, uiout
, siggnal
);
2002 set_gdbarch_report_signal_info (struct gdbarch
*gdbarch
,
2003 gdbarch_report_signal_info_ftype report_signal_info
)
2005 gdbarch
->report_signal_info
= report_signal_info
;
2009 gdbarch_sp_regnum (struct gdbarch
*gdbarch
)
2011 gdb_assert (gdbarch
!= NULL
);
2012 /* Skip verify of sp_regnum, invalid_p == 0 */
2013 if (gdbarch_debug
>= 2)
2014 gdb_printf (gdb_stdlog
, "gdbarch_sp_regnum called\n");
2015 return gdbarch
->sp_regnum
;
2019 set_gdbarch_sp_regnum (struct gdbarch
*gdbarch
,
2022 gdbarch
->sp_regnum
= sp_regnum
;
2026 gdbarch_pc_regnum (struct gdbarch
*gdbarch
)
2028 gdb_assert (gdbarch
!= NULL
);
2029 /* Skip verify of pc_regnum, invalid_p == 0 */
2030 if (gdbarch_debug
>= 2)
2031 gdb_printf (gdb_stdlog
, "gdbarch_pc_regnum called\n");
2032 return gdbarch
->pc_regnum
;
2036 set_gdbarch_pc_regnum (struct gdbarch
*gdbarch
,
2039 gdbarch
->pc_regnum
= pc_regnum
;
2043 gdbarch_ps_regnum (struct gdbarch
*gdbarch
)
2045 gdb_assert (gdbarch
!= NULL
);
2046 /* Skip verify of ps_regnum, invalid_p == 0 */
2047 if (gdbarch_debug
>= 2)
2048 gdb_printf (gdb_stdlog
, "gdbarch_ps_regnum called\n");
2049 return gdbarch
->ps_regnum
;
2053 set_gdbarch_ps_regnum (struct gdbarch
*gdbarch
,
2056 gdbarch
->ps_regnum
= ps_regnum
;
2060 gdbarch_fp0_regnum (struct gdbarch
*gdbarch
)
2062 gdb_assert (gdbarch
!= NULL
);
2063 /* Skip verify of fp0_regnum, invalid_p == 0 */
2064 if (gdbarch_debug
>= 2)
2065 gdb_printf (gdb_stdlog
, "gdbarch_fp0_regnum called\n");
2066 return gdbarch
->fp0_regnum
;
2070 set_gdbarch_fp0_regnum (struct gdbarch
*gdbarch
,
2073 gdbarch
->fp0_regnum
= fp0_regnum
;
2077 gdbarch_stab_reg_to_regnum (struct gdbarch
*gdbarch
, int stab_regnr
)
2079 gdb_assert (gdbarch
!= NULL
);
2080 gdb_assert (gdbarch
->stab_reg_to_regnum
!= NULL
);
2081 if (gdbarch_debug
>= 2)
2082 gdb_printf (gdb_stdlog
, "gdbarch_stab_reg_to_regnum called\n");
2083 return gdbarch
->stab_reg_to_regnum (gdbarch
, stab_regnr
);
2087 set_gdbarch_stab_reg_to_regnum (struct gdbarch
*gdbarch
,
2088 gdbarch_stab_reg_to_regnum_ftype stab_reg_to_regnum
)
2090 gdbarch
->stab_reg_to_regnum
= stab_reg_to_regnum
;
2094 gdbarch_ecoff_reg_to_regnum (struct gdbarch
*gdbarch
, int ecoff_regnr
)
2096 gdb_assert (gdbarch
!= NULL
);
2097 gdb_assert (gdbarch
->ecoff_reg_to_regnum
!= NULL
);
2098 if (gdbarch_debug
>= 2)
2099 gdb_printf (gdb_stdlog
, "gdbarch_ecoff_reg_to_regnum called\n");
2100 return gdbarch
->ecoff_reg_to_regnum (gdbarch
, ecoff_regnr
);
2104 set_gdbarch_ecoff_reg_to_regnum (struct gdbarch
*gdbarch
,
2105 gdbarch_ecoff_reg_to_regnum_ftype ecoff_reg_to_regnum
)
2107 gdbarch
->ecoff_reg_to_regnum
= ecoff_reg_to_regnum
;
2111 gdbarch_sdb_reg_to_regnum (struct gdbarch
*gdbarch
, int sdb_regnr
)
2113 gdb_assert (gdbarch
!= NULL
);
2114 gdb_assert (gdbarch
->sdb_reg_to_regnum
!= NULL
);
2115 if (gdbarch_debug
>= 2)
2116 gdb_printf (gdb_stdlog
, "gdbarch_sdb_reg_to_regnum called\n");
2117 return gdbarch
->sdb_reg_to_regnum (gdbarch
, sdb_regnr
);
2121 set_gdbarch_sdb_reg_to_regnum (struct gdbarch
*gdbarch
,
2122 gdbarch_sdb_reg_to_regnum_ftype sdb_reg_to_regnum
)
2124 gdbarch
->sdb_reg_to_regnum
= sdb_reg_to_regnum
;
2128 gdbarch_dwarf2_reg_to_regnum (struct gdbarch
*gdbarch
, int dwarf2_regnr
)
2130 gdb_assert (gdbarch
!= NULL
);
2131 gdb_assert (gdbarch
->dwarf2_reg_to_regnum
!= NULL
);
2132 if (gdbarch_debug
>= 2)
2133 gdb_printf (gdb_stdlog
, "gdbarch_dwarf2_reg_to_regnum called\n");
2134 return gdbarch
->dwarf2_reg_to_regnum (gdbarch
, dwarf2_regnr
);
2138 set_gdbarch_dwarf2_reg_to_regnum (struct gdbarch
*gdbarch
,
2139 gdbarch_dwarf2_reg_to_regnum_ftype dwarf2_reg_to_regnum
)
2141 gdbarch
->dwarf2_reg_to_regnum
= dwarf2_reg_to_regnum
;
2145 gdbarch_register_name (struct gdbarch
*gdbarch
, int regnr
)
2147 gdb_assert (gdbarch
!= NULL
);
2148 gdb_assert (gdbarch
->register_name
!= NULL
);
2149 gdb_assert (regnr
>= 0);
2150 gdb_assert (regnr
< gdbarch_num_cooked_regs (gdbarch
));
2151 if (gdbarch_debug
>= 2)
2152 gdb_printf (gdb_stdlog
, "gdbarch_register_name called\n");
2153 auto result
= gdbarch
->register_name (gdbarch
, regnr
);
2154 gdb_assert (result
!= nullptr);
2159 set_gdbarch_register_name (struct gdbarch
*gdbarch
,
2160 gdbarch_register_name_ftype register_name
)
2162 gdbarch
->register_name
= register_name
;
2166 gdbarch_register_type (struct gdbarch
*gdbarch
, int reg_nr
)
2168 gdb_assert (gdbarch
!= NULL
);
2169 gdb_assert (gdbarch
->register_type
!= NULL
);
2170 if (gdbarch_debug
>= 2)
2171 gdb_printf (gdb_stdlog
, "gdbarch_register_type called\n");
2172 return gdbarch
->register_type (gdbarch
, reg_nr
);
2176 set_gdbarch_register_type (struct gdbarch
*gdbarch
,
2177 gdbarch_register_type_ftype register_type
)
2179 gdbarch
->register_type
= register_type
;
2183 gdbarch_dummy_id (struct gdbarch
*gdbarch
, frame_info_ptr this_frame
)
2185 gdb_assert (gdbarch
!= NULL
);
2186 gdb_assert (gdbarch
->dummy_id
!= NULL
);
2187 if (gdbarch_debug
>= 2)
2188 gdb_printf (gdb_stdlog
, "gdbarch_dummy_id called\n");
2189 return gdbarch
->dummy_id (gdbarch
, this_frame
);
2193 set_gdbarch_dummy_id (struct gdbarch
*gdbarch
,
2194 gdbarch_dummy_id_ftype dummy_id
)
2196 gdbarch
->dummy_id
= dummy_id
;
2200 gdbarch_deprecated_fp_regnum (struct gdbarch
*gdbarch
)
2202 gdb_assert (gdbarch
!= NULL
);
2203 /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
2204 if (gdbarch_debug
>= 2)
2205 gdb_printf (gdb_stdlog
, "gdbarch_deprecated_fp_regnum called\n");
2206 return gdbarch
->deprecated_fp_regnum
;
2210 set_gdbarch_deprecated_fp_regnum (struct gdbarch
*gdbarch
,
2211 int deprecated_fp_regnum
)
2213 gdbarch
->deprecated_fp_regnum
= deprecated_fp_regnum
;
2217 gdbarch_push_dummy_call_p (struct gdbarch
*gdbarch
)
2219 gdb_assert (gdbarch
!= NULL
);
2220 return gdbarch
->push_dummy_call
!= NULL
;
2224 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
)
2226 gdb_assert (gdbarch
!= NULL
);
2227 gdb_assert (gdbarch
->push_dummy_call
!= NULL
);
2228 if (gdbarch_debug
>= 2)
2229 gdb_printf (gdb_stdlog
, "gdbarch_push_dummy_call called\n");
2230 return gdbarch
->push_dummy_call (gdbarch
, function
, regcache
, bp_addr
, nargs
, args
, sp
, return_method
, struct_addr
);
2234 set_gdbarch_push_dummy_call (struct gdbarch
*gdbarch
,
2235 gdbarch_push_dummy_call_ftype push_dummy_call
)
2237 gdbarch
->push_dummy_call
= push_dummy_call
;
2240 enum call_dummy_location_type
2241 gdbarch_call_dummy_location (struct gdbarch
*gdbarch
)
2243 gdb_assert (gdbarch
!= NULL
);
2244 /* Skip verify of call_dummy_location, invalid_p == 0 */
2245 if (gdbarch_debug
>= 2)
2246 gdb_printf (gdb_stdlog
, "gdbarch_call_dummy_location called\n");
2247 return gdbarch
->call_dummy_location
;
2251 set_gdbarch_call_dummy_location (struct gdbarch
*gdbarch
,
2252 enum call_dummy_location_type call_dummy_location
)
2254 gdbarch
->call_dummy_location
= call_dummy_location
;
2258 gdbarch_push_dummy_code_p (struct gdbarch
*gdbarch
)
2260 gdb_assert (gdbarch
!= NULL
);
2261 return gdbarch
->push_dummy_code
!= NULL
;
2265 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
)
2267 gdb_assert (gdbarch
!= NULL
);
2268 gdb_assert (gdbarch
->push_dummy_code
!= NULL
);
2269 if (gdbarch_debug
>= 2)
2270 gdb_printf (gdb_stdlog
, "gdbarch_push_dummy_code called\n");
2271 return gdbarch
->push_dummy_code (gdbarch
, sp
, funaddr
, args
, nargs
, value_type
, real_pc
, bp_addr
, regcache
);
2275 set_gdbarch_push_dummy_code (struct gdbarch
*gdbarch
,
2276 gdbarch_push_dummy_code_ftype push_dummy_code
)
2278 gdbarch
->push_dummy_code
= push_dummy_code
;
2282 gdbarch_code_of_frame_writable (struct gdbarch
*gdbarch
, frame_info_ptr frame
)
2284 gdb_assert (gdbarch
!= NULL
);
2285 gdb_assert (gdbarch
->code_of_frame_writable
!= NULL
);
2286 if (gdbarch_debug
>= 2)
2287 gdb_printf (gdb_stdlog
, "gdbarch_code_of_frame_writable called\n");
2288 return gdbarch
->code_of_frame_writable (gdbarch
, frame
);
2292 set_gdbarch_code_of_frame_writable (struct gdbarch
*gdbarch
,
2293 gdbarch_code_of_frame_writable_ftype code_of_frame_writable
)
2295 gdbarch
->code_of_frame_writable
= code_of_frame_writable
;
2299 gdbarch_print_registers_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, frame_info_ptr frame
, int regnum
, int all
)
2301 gdb_assert (gdbarch
!= NULL
);
2302 gdb_assert (gdbarch
->print_registers_info
!= NULL
);
2303 if (gdbarch_debug
>= 2)
2304 gdb_printf (gdb_stdlog
, "gdbarch_print_registers_info called\n");
2305 gdbarch
->print_registers_info (gdbarch
, file
, frame
, regnum
, all
);
2309 set_gdbarch_print_registers_info (struct gdbarch
*gdbarch
,
2310 gdbarch_print_registers_info_ftype print_registers_info
)
2312 gdbarch
->print_registers_info
= print_registers_info
;
2316 gdbarch_print_float_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, frame_info_ptr frame
, const char *args
)
2318 gdb_assert (gdbarch
!= NULL
);
2319 gdb_assert (gdbarch
->print_float_info
!= NULL
);
2320 if (gdbarch_debug
>= 2)
2321 gdb_printf (gdb_stdlog
, "gdbarch_print_float_info called\n");
2322 gdbarch
->print_float_info (gdbarch
, file
, frame
, args
);
2326 set_gdbarch_print_float_info (struct gdbarch
*gdbarch
,
2327 gdbarch_print_float_info_ftype print_float_info
)
2329 gdbarch
->print_float_info
= print_float_info
;
2333 gdbarch_print_vector_info_p (struct gdbarch
*gdbarch
)
2335 gdb_assert (gdbarch
!= NULL
);
2336 return gdbarch
->print_vector_info
!= NULL
;
2340 gdbarch_print_vector_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, frame_info_ptr frame
, const char *args
)
2342 gdb_assert (gdbarch
!= NULL
);
2343 gdb_assert (gdbarch
->print_vector_info
!= NULL
);
2344 if (gdbarch_debug
>= 2)
2345 gdb_printf (gdb_stdlog
, "gdbarch_print_vector_info called\n");
2346 gdbarch
->print_vector_info (gdbarch
, file
, frame
, args
);
2350 set_gdbarch_print_vector_info (struct gdbarch
*gdbarch
,
2351 gdbarch_print_vector_info_ftype print_vector_info
)
2353 gdbarch
->print_vector_info
= print_vector_info
;
2357 gdbarch_register_sim_regno (struct gdbarch
*gdbarch
, int reg_nr
)
2359 gdb_assert (gdbarch
!= NULL
);
2360 gdb_assert (gdbarch
->register_sim_regno
!= NULL
);
2361 if (gdbarch_debug
>= 2)
2362 gdb_printf (gdb_stdlog
, "gdbarch_register_sim_regno called\n");
2363 return gdbarch
->register_sim_regno (gdbarch
, reg_nr
);
2367 set_gdbarch_register_sim_regno (struct gdbarch
*gdbarch
,
2368 gdbarch_register_sim_regno_ftype register_sim_regno
)
2370 gdbarch
->register_sim_regno
= register_sim_regno
;
2374 gdbarch_cannot_fetch_register (struct gdbarch
*gdbarch
, int regnum
)
2376 gdb_assert (gdbarch
!= NULL
);
2377 gdb_assert (gdbarch
->cannot_fetch_register
!= NULL
);
2378 if (gdbarch_debug
>= 2)
2379 gdb_printf (gdb_stdlog
, "gdbarch_cannot_fetch_register called\n");
2380 return gdbarch
->cannot_fetch_register (gdbarch
, regnum
);
2384 set_gdbarch_cannot_fetch_register (struct gdbarch
*gdbarch
,
2385 gdbarch_cannot_fetch_register_ftype cannot_fetch_register
)
2387 gdbarch
->cannot_fetch_register
= cannot_fetch_register
;
2391 gdbarch_cannot_store_register (struct gdbarch
*gdbarch
, int regnum
)
2393 gdb_assert (gdbarch
!= NULL
);
2394 gdb_assert (gdbarch
->cannot_store_register
!= NULL
);
2395 if (gdbarch_debug
>= 2)
2396 gdb_printf (gdb_stdlog
, "gdbarch_cannot_store_register called\n");
2397 return gdbarch
->cannot_store_register (gdbarch
, regnum
);
2401 set_gdbarch_cannot_store_register (struct gdbarch
*gdbarch
,
2402 gdbarch_cannot_store_register_ftype cannot_store_register
)
2404 gdbarch
->cannot_store_register
= cannot_store_register
;
2408 gdbarch_get_longjmp_target_p (struct gdbarch
*gdbarch
)
2410 gdb_assert (gdbarch
!= NULL
);
2411 return gdbarch
->get_longjmp_target
!= NULL
;
2415 gdbarch_get_longjmp_target (struct gdbarch
*gdbarch
, frame_info_ptr frame
, CORE_ADDR
*pc
)
2417 gdb_assert (gdbarch
!= NULL
);
2418 gdb_assert (gdbarch
->get_longjmp_target
!= NULL
);
2419 if (gdbarch_debug
>= 2)
2420 gdb_printf (gdb_stdlog
, "gdbarch_get_longjmp_target called\n");
2421 return gdbarch
->get_longjmp_target (frame
, pc
);
2425 set_gdbarch_get_longjmp_target (struct gdbarch
*gdbarch
,
2426 gdbarch_get_longjmp_target_ftype get_longjmp_target
)
2428 gdbarch
->get_longjmp_target
= get_longjmp_target
;
2432 gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
)
2434 gdb_assert (gdbarch
!= NULL
);
2435 /* Skip verify of believe_pcc_promotion, invalid_p == 0 */
2436 if (gdbarch_debug
>= 2)
2437 gdb_printf (gdb_stdlog
, "gdbarch_believe_pcc_promotion called\n");
2438 return gdbarch
->believe_pcc_promotion
;
2442 set_gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
,
2443 int believe_pcc_promotion
)
2445 gdbarch
->believe_pcc_promotion
= believe_pcc_promotion
;
2449 gdbarch_convert_register_p (struct gdbarch
*gdbarch
, int regnum
, struct type
*type
)
2451 gdb_assert (gdbarch
!= NULL
);
2452 gdb_assert (gdbarch
->convert_register_p
!= NULL
);
2453 if (gdbarch_debug
>= 2)
2454 gdb_printf (gdb_stdlog
, "gdbarch_convert_register_p called\n");
2455 return gdbarch
->convert_register_p (gdbarch
, regnum
, type
);
2459 set_gdbarch_convert_register_p (struct gdbarch
*gdbarch
,
2460 gdbarch_convert_register_p_ftype convert_register_p
)
2462 gdbarch
->convert_register_p
= convert_register_p
;
2466 gdbarch_register_to_value (struct gdbarch
*gdbarch
, frame_info_ptr frame
, int regnum
, struct type
*type
, gdb_byte
*buf
, int *optimizedp
, int *unavailablep
)
2468 gdb_assert (gdbarch
!= NULL
);
2469 gdb_assert (gdbarch
->register_to_value
!= NULL
);
2470 if (gdbarch_debug
>= 2)
2471 gdb_printf (gdb_stdlog
, "gdbarch_register_to_value called\n");
2472 return gdbarch
->register_to_value (frame
, regnum
, type
, buf
, optimizedp
, unavailablep
);
2476 set_gdbarch_register_to_value (struct gdbarch
*gdbarch
,
2477 gdbarch_register_to_value_ftype register_to_value
)
2479 gdbarch
->register_to_value
= register_to_value
;
2483 gdbarch_value_to_register (struct gdbarch
*gdbarch
, frame_info_ptr frame
, int regnum
, struct type
*type
, const gdb_byte
*buf
)
2485 gdb_assert (gdbarch
!= NULL
);
2486 gdb_assert (gdbarch
->value_to_register
!= NULL
);
2487 if (gdbarch_debug
>= 2)
2488 gdb_printf (gdb_stdlog
, "gdbarch_value_to_register called\n");
2489 gdbarch
->value_to_register (frame
, regnum
, type
, buf
);
2493 set_gdbarch_value_to_register (struct gdbarch
*gdbarch
,
2494 gdbarch_value_to_register_ftype value_to_register
)
2496 gdbarch
->value_to_register
= value_to_register
;
2500 gdbarch_value_from_register (struct gdbarch
*gdbarch
, struct type
*type
, int regnum
, struct frame_id frame_id
)
2502 gdb_assert (gdbarch
!= NULL
);
2503 gdb_assert (gdbarch
->value_from_register
!= NULL
);
2504 if (gdbarch_debug
>= 2)
2505 gdb_printf (gdb_stdlog
, "gdbarch_value_from_register called\n");
2506 return gdbarch
->value_from_register (gdbarch
, type
, regnum
, frame_id
);
2510 set_gdbarch_value_from_register (struct gdbarch
*gdbarch
,
2511 gdbarch_value_from_register_ftype value_from_register
)
2513 gdbarch
->value_from_register
= value_from_register
;
2517 gdbarch_pointer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, const gdb_byte
*buf
)
2519 gdb_assert (gdbarch
!= NULL
);
2520 gdb_assert (gdbarch
->pointer_to_address
!= NULL
);
2521 if (gdbarch_debug
>= 2)
2522 gdb_printf (gdb_stdlog
, "gdbarch_pointer_to_address called\n");
2523 return gdbarch
->pointer_to_address (gdbarch
, type
, buf
);
2527 set_gdbarch_pointer_to_address (struct gdbarch
*gdbarch
,
2528 gdbarch_pointer_to_address_ftype pointer_to_address
)
2530 gdbarch
->pointer_to_address
= pointer_to_address
;
2534 gdbarch_address_to_pointer (struct gdbarch
*gdbarch
, struct type
*type
, gdb_byte
*buf
, CORE_ADDR addr
)
2536 gdb_assert (gdbarch
!= NULL
);
2537 gdb_assert (gdbarch
->address_to_pointer
!= NULL
);
2538 if (gdbarch_debug
>= 2)
2539 gdb_printf (gdb_stdlog
, "gdbarch_address_to_pointer called\n");
2540 gdbarch
->address_to_pointer (gdbarch
, type
, buf
, addr
);
2544 set_gdbarch_address_to_pointer (struct gdbarch
*gdbarch
,
2545 gdbarch_address_to_pointer_ftype address_to_pointer
)
2547 gdbarch
->address_to_pointer
= address_to_pointer
;
2551 gdbarch_integer_to_address_p (struct gdbarch
*gdbarch
)
2553 gdb_assert (gdbarch
!= NULL
);
2554 return gdbarch
->integer_to_address
!= NULL
;
2558 gdbarch_integer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, const gdb_byte
*buf
)
2560 gdb_assert (gdbarch
!= NULL
);
2561 gdb_assert (gdbarch
->integer_to_address
!= NULL
);
2562 if (gdbarch_debug
>= 2)
2563 gdb_printf (gdb_stdlog
, "gdbarch_integer_to_address called\n");
2564 return gdbarch
->integer_to_address (gdbarch
, type
, buf
);
2568 set_gdbarch_integer_to_address (struct gdbarch
*gdbarch
,
2569 gdbarch_integer_to_address_ftype integer_to_address
)
2571 gdbarch
->integer_to_address
= integer_to_address
;
2575 set_gdbarch_return_value (struct gdbarch
*gdbarch
,
2576 gdbarch_return_value_ftype return_value
)
2578 gdbarch
->return_value
= return_value
;
2581 enum return_value_convention
2582 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
)
2584 gdb_assert (gdbarch
!= NULL
);
2585 gdb_assert (gdbarch
->return_value_as_value
!= NULL
);
2586 if (gdbarch_debug
>= 2)
2587 gdb_printf (gdb_stdlog
, "gdbarch_return_value_as_value called\n");
2588 return gdbarch
->return_value_as_value (gdbarch
, function
, valtype
, regcache
, read_value
, writebuf
);
2592 set_gdbarch_return_value_as_value (struct gdbarch
*gdbarch
,
2593 gdbarch_return_value_as_value_ftype return_value_as_value
)
2595 gdbarch
->return_value_as_value
= return_value_as_value
;
2599 gdbarch_get_return_buf_addr (struct gdbarch
*gdbarch
, struct type
*val_type
, frame_info_ptr cur_frame
)
2601 gdb_assert (gdbarch
!= NULL
);
2602 gdb_assert (gdbarch
->get_return_buf_addr
!= NULL
);
2603 if (gdbarch_debug
>= 2)
2604 gdb_printf (gdb_stdlog
, "gdbarch_get_return_buf_addr called\n");
2605 return gdbarch
->get_return_buf_addr (val_type
, cur_frame
);
2609 set_gdbarch_get_return_buf_addr (struct gdbarch
*gdbarch
,
2610 gdbarch_get_return_buf_addr_ftype get_return_buf_addr
)
2612 gdbarch
->get_return_buf_addr
= get_return_buf_addr
;
2616 gdbarch_return_in_first_hidden_param_p (struct gdbarch
*gdbarch
, struct type
*type
)
2618 gdb_assert (gdbarch
!= NULL
);
2619 gdb_assert (gdbarch
->return_in_first_hidden_param_p
!= NULL
);
2620 if (gdbarch_debug
>= 2)
2621 gdb_printf (gdb_stdlog
, "gdbarch_return_in_first_hidden_param_p called\n");
2622 return gdbarch
->return_in_first_hidden_param_p (gdbarch
, type
);
2626 set_gdbarch_return_in_first_hidden_param_p (struct gdbarch
*gdbarch
,
2627 gdbarch_return_in_first_hidden_param_p_ftype return_in_first_hidden_param_p
)
2629 gdbarch
->return_in_first_hidden_param_p
= return_in_first_hidden_param_p
;
2633 gdbarch_skip_prologue (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2635 gdb_assert (gdbarch
!= NULL
);
2636 gdb_assert (gdbarch
->skip_prologue
!= NULL
);
2637 if (gdbarch_debug
>= 2)
2638 gdb_printf (gdb_stdlog
, "gdbarch_skip_prologue called\n");
2639 return gdbarch
->skip_prologue (gdbarch
, ip
);
2643 set_gdbarch_skip_prologue (struct gdbarch
*gdbarch
,
2644 gdbarch_skip_prologue_ftype skip_prologue
)
2646 gdbarch
->skip_prologue
= skip_prologue
;
2650 gdbarch_skip_main_prologue_p (struct gdbarch
*gdbarch
)
2652 gdb_assert (gdbarch
!= NULL
);
2653 return gdbarch
->skip_main_prologue
!= NULL
;
2657 gdbarch_skip_main_prologue (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2659 gdb_assert (gdbarch
!= NULL
);
2660 gdb_assert (gdbarch
->skip_main_prologue
!= NULL
);
2661 if (gdbarch_debug
>= 2)
2662 gdb_printf (gdb_stdlog
, "gdbarch_skip_main_prologue called\n");
2663 return gdbarch
->skip_main_prologue (gdbarch
, ip
);
2667 set_gdbarch_skip_main_prologue (struct gdbarch
*gdbarch
,
2668 gdbarch_skip_main_prologue_ftype skip_main_prologue
)
2670 gdbarch
->skip_main_prologue
= skip_main_prologue
;
2674 gdbarch_skip_entrypoint_p (struct gdbarch
*gdbarch
)
2676 gdb_assert (gdbarch
!= NULL
);
2677 return gdbarch
->skip_entrypoint
!= NULL
;
2681 gdbarch_skip_entrypoint (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2683 gdb_assert (gdbarch
!= NULL
);
2684 gdb_assert (gdbarch
->skip_entrypoint
!= NULL
);
2685 if (gdbarch_debug
>= 2)
2686 gdb_printf (gdb_stdlog
, "gdbarch_skip_entrypoint called\n");
2687 return gdbarch
->skip_entrypoint (gdbarch
, ip
);
2691 set_gdbarch_skip_entrypoint (struct gdbarch
*gdbarch
,
2692 gdbarch_skip_entrypoint_ftype skip_entrypoint
)
2694 gdbarch
->skip_entrypoint
= skip_entrypoint
;
2698 gdbarch_inner_than (struct gdbarch
*gdbarch
, CORE_ADDR lhs
, CORE_ADDR rhs
)
2700 gdb_assert (gdbarch
!= NULL
);
2701 gdb_assert (gdbarch
->inner_than
!= NULL
);
2702 if (gdbarch_debug
>= 2)
2703 gdb_printf (gdb_stdlog
, "gdbarch_inner_than called\n");
2704 return gdbarch
->inner_than (lhs
, rhs
);
2708 set_gdbarch_inner_than (struct gdbarch
*gdbarch
,
2709 gdbarch_inner_than_ftype inner_than
)
2711 gdbarch
->inner_than
= inner_than
;
2715 gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
, CORE_ADDR
*pcptr
, int *lenptr
)
2717 gdb_assert (gdbarch
!= NULL
);
2718 gdb_assert (gdbarch
->breakpoint_from_pc
!= NULL
);
2719 if (gdbarch_debug
>= 2)
2720 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_from_pc called\n");
2721 return gdbarch
->breakpoint_from_pc (gdbarch
, pcptr
, lenptr
);
2725 set_gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
,
2726 gdbarch_breakpoint_from_pc_ftype breakpoint_from_pc
)
2728 gdbarch
->breakpoint_from_pc
= breakpoint_from_pc
;
2732 gdbarch_breakpoint_kind_from_pc (struct gdbarch
*gdbarch
, CORE_ADDR
*pcptr
)
2734 gdb_assert (gdbarch
!= NULL
);
2735 gdb_assert (gdbarch
->breakpoint_kind_from_pc
!= NULL
);
2736 if (gdbarch_debug
>= 2)
2737 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_kind_from_pc called\n");
2738 return gdbarch
->breakpoint_kind_from_pc (gdbarch
, pcptr
);
2742 set_gdbarch_breakpoint_kind_from_pc (struct gdbarch
*gdbarch
,
2743 gdbarch_breakpoint_kind_from_pc_ftype breakpoint_kind_from_pc
)
2745 gdbarch
->breakpoint_kind_from_pc
= breakpoint_kind_from_pc
;
2749 gdbarch_sw_breakpoint_from_kind (struct gdbarch
*gdbarch
, int kind
, int *size
)
2751 gdb_assert (gdbarch
!= NULL
);
2752 gdb_assert (gdbarch
->sw_breakpoint_from_kind
!= NULL
);
2753 if (gdbarch_debug
>= 2)
2754 gdb_printf (gdb_stdlog
, "gdbarch_sw_breakpoint_from_kind called\n");
2755 return gdbarch
->sw_breakpoint_from_kind (gdbarch
, kind
, size
);
2759 set_gdbarch_sw_breakpoint_from_kind (struct gdbarch
*gdbarch
,
2760 gdbarch_sw_breakpoint_from_kind_ftype sw_breakpoint_from_kind
)
2762 gdbarch
->sw_breakpoint_from_kind
= sw_breakpoint_from_kind
;
2766 gdbarch_breakpoint_kind_from_current_state (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR
*pcptr
)
2768 gdb_assert (gdbarch
!= NULL
);
2769 gdb_assert (gdbarch
->breakpoint_kind_from_current_state
!= NULL
);
2770 if (gdbarch_debug
>= 2)
2771 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_kind_from_current_state called\n");
2772 return gdbarch
->breakpoint_kind_from_current_state (gdbarch
, regcache
, pcptr
);
2776 set_gdbarch_breakpoint_kind_from_current_state (struct gdbarch
*gdbarch
,
2777 gdbarch_breakpoint_kind_from_current_state_ftype breakpoint_kind_from_current_state
)
2779 gdbarch
->breakpoint_kind_from_current_state
= breakpoint_kind_from_current_state
;
2783 gdbarch_adjust_breakpoint_address_p (struct gdbarch
*gdbarch
)
2785 gdb_assert (gdbarch
!= NULL
);
2786 return gdbarch
->adjust_breakpoint_address
!= NULL
;
2790 gdbarch_adjust_breakpoint_address (struct gdbarch
*gdbarch
, CORE_ADDR bpaddr
)
2792 gdb_assert (gdbarch
!= NULL
);
2793 gdb_assert (gdbarch
->adjust_breakpoint_address
!= NULL
);
2794 if (gdbarch_debug
>= 2)
2795 gdb_printf (gdb_stdlog
, "gdbarch_adjust_breakpoint_address called\n");
2796 return gdbarch
->adjust_breakpoint_address (gdbarch
, bpaddr
);
2800 set_gdbarch_adjust_breakpoint_address (struct gdbarch
*gdbarch
,
2801 gdbarch_adjust_breakpoint_address_ftype adjust_breakpoint_address
)
2803 gdbarch
->adjust_breakpoint_address
= adjust_breakpoint_address
;
2807 gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
, struct bp_target_info
*bp_tgt
)
2809 gdb_assert (gdbarch
!= NULL
);
2810 gdb_assert (gdbarch
->memory_insert_breakpoint
!= NULL
);
2811 if (gdbarch_debug
>= 2)
2812 gdb_printf (gdb_stdlog
, "gdbarch_memory_insert_breakpoint called\n");
2813 return gdbarch
->memory_insert_breakpoint (gdbarch
, bp_tgt
);
2817 set_gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
,
2818 gdbarch_memory_insert_breakpoint_ftype memory_insert_breakpoint
)
2820 gdbarch
->memory_insert_breakpoint
= memory_insert_breakpoint
;
2824 gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
, struct bp_target_info
*bp_tgt
)
2826 gdb_assert (gdbarch
!= NULL
);
2827 gdb_assert (gdbarch
->memory_remove_breakpoint
!= NULL
);
2828 if (gdbarch_debug
>= 2)
2829 gdb_printf (gdb_stdlog
, "gdbarch_memory_remove_breakpoint called\n");
2830 return gdbarch
->memory_remove_breakpoint (gdbarch
, bp_tgt
);
2834 set_gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
,
2835 gdbarch_memory_remove_breakpoint_ftype memory_remove_breakpoint
)
2837 gdbarch
->memory_remove_breakpoint
= memory_remove_breakpoint
;
2841 gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
)
2843 gdb_assert (gdbarch
!= NULL
);
2844 /* Skip verify of decr_pc_after_break, invalid_p == 0 */
2845 if (gdbarch_debug
>= 2)
2846 gdb_printf (gdb_stdlog
, "gdbarch_decr_pc_after_break called\n");
2847 return gdbarch
->decr_pc_after_break
;
2851 set_gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
,
2852 CORE_ADDR decr_pc_after_break
)
2854 gdbarch
->decr_pc_after_break
= decr_pc_after_break
;
2858 gdbarch_deprecated_function_start_offset (struct gdbarch
*gdbarch
)
2860 gdb_assert (gdbarch
!= NULL
);
2861 /* Skip verify of deprecated_function_start_offset, invalid_p == 0 */
2862 if (gdbarch_debug
>= 2)
2863 gdb_printf (gdb_stdlog
, "gdbarch_deprecated_function_start_offset called\n");
2864 return gdbarch
->deprecated_function_start_offset
;
2868 set_gdbarch_deprecated_function_start_offset (struct gdbarch
*gdbarch
,
2869 CORE_ADDR deprecated_function_start_offset
)
2871 gdbarch
->deprecated_function_start_offset
= deprecated_function_start_offset
;
2875 gdbarch_remote_register_number (struct gdbarch
*gdbarch
, int regno
)
2877 gdb_assert (gdbarch
!= NULL
);
2878 gdb_assert (gdbarch
->remote_register_number
!= NULL
);
2879 if (gdbarch_debug
>= 2)
2880 gdb_printf (gdb_stdlog
, "gdbarch_remote_register_number called\n");
2881 return gdbarch
->remote_register_number (gdbarch
, regno
);
2885 set_gdbarch_remote_register_number (struct gdbarch
*gdbarch
,
2886 gdbarch_remote_register_number_ftype remote_register_number
)
2888 gdbarch
->remote_register_number
= remote_register_number
;
2892 gdbarch_fetch_tls_load_module_address_p (struct gdbarch
*gdbarch
)
2894 gdb_assert (gdbarch
!= NULL
);
2895 return gdbarch
->fetch_tls_load_module_address
!= NULL
;
2899 gdbarch_fetch_tls_load_module_address (struct gdbarch
*gdbarch
, struct objfile
*objfile
)
2901 gdb_assert (gdbarch
!= NULL
);
2902 gdb_assert (gdbarch
->fetch_tls_load_module_address
!= NULL
);
2903 if (gdbarch_debug
>= 2)
2904 gdb_printf (gdb_stdlog
, "gdbarch_fetch_tls_load_module_address called\n");
2905 return gdbarch
->fetch_tls_load_module_address (objfile
);
2909 set_gdbarch_fetch_tls_load_module_address (struct gdbarch
*gdbarch
,
2910 gdbarch_fetch_tls_load_module_address_ftype fetch_tls_load_module_address
)
2912 gdbarch
->fetch_tls_load_module_address
= fetch_tls_load_module_address
;
2916 gdbarch_get_thread_local_address_p (struct gdbarch
*gdbarch
)
2918 gdb_assert (gdbarch
!= NULL
);
2919 return gdbarch
->get_thread_local_address
!= NULL
;
2923 gdbarch_get_thread_local_address (struct gdbarch
*gdbarch
, ptid_t ptid
, CORE_ADDR lm_addr
, CORE_ADDR offset
)
2925 gdb_assert (gdbarch
!= NULL
);
2926 gdb_assert (gdbarch
->get_thread_local_address
!= NULL
);
2927 if (gdbarch_debug
>= 2)
2928 gdb_printf (gdb_stdlog
, "gdbarch_get_thread_local_address called\n");
2929 return gdbarch
->get_thread_local_address (gdbarch
, ptid
, lm_addr
, offset
);
2933 set_gdbarch_get_thread_local_address (struct gdbarch
*gdbarch
,
2934 gdbarch_get_thread_local_address_ftype get_thread_local_address
)
2936 gdbarch
->get_thread_local_address
= get_thread_local_address
;
2940 gdbarch_frame_args_skip (struct gdbarch
*gdbarch
)
2942 gdb_assert (gdbarch
!= NULL
);
2943 /* Skip verify of frame_args_skip, invalid_p == 0 */
2944 if (gdbarch_debug
>= 2)
2945 gdb_printf (gdb_stdlog
, "gdbarch_frame_args_skip called\n");
2946 return gdbarch
->frame_args_skip
;
2950 set_gdbarch_frame_args_skip (struct gdbarch
*gdbarch
,
2951 CORE_ADDR frame_args_skip
)
2953 gdbarch
->frame_args_skip
= frame_args_skip
;
2957 gdbarch_unwind_pc (struct gdbarch
*gdbarch
, frame_info_ptr next_frame
)
2959 gdb_assert (gdbarch
!= NULL
);
2960 gdb_assert (gdbarch
->unwind_pc
!= NULL
);
2961 if (gdbarch_debug
>= 2)
2962 gdb_printf (gdb_stdlog
, "gdbarch_unwind_pc called\n");
2963 return gdbarch
->unwind_pc (gdbarch
, next_frame
);
2967 set_gdbarch_unwind_pc (struct gdbarch
*gdbarch
,
2968 gdbarch_unwind_pc_ftype unwind_pc
)
2970 gdbarch
->unwind_pc
= unwind_pc
;
2974 gdbarch_unwind_sp (struct gdbarch
*gdbarch
, frame_info_ptr next_frame
)
2976 gdb_assert (gdbarch
!= NULL
);
2977 gdb_assert (gdbarch
->unwind_sp
!= NULL
);
2978 if (gdbarch_debug
>= 2)
2979 gdb_printf (gdb_stdlog
, "gdbarch_unwind_sp called\n");
2980 return gdbarch
->unwind_sp (gdbarch
, next_frame
);
2984 set_gdbarch_unwind_sp (struct gdbarch
*gdbarch
,
2985 gdbarch_unwind_sp_ftype unwind_sp
)
2987 gdbarch
->unwind_sp
= unwind_sp
;
2991 gdbarch_frame_num_args_p (struct gdbarch
*gdbarch
)
2993 gdb_assert (gdbarch
!= NULL
);
2994 return gdbarch
->frame_num_args
!= NULL
;
2998 gdbarch_frame_num_args (struct gdbarch
*gdbarch
, frame_info_ptr frame
)
3000 gdb_assert (gdbarch
!= NULL
);
3001 gdb_assert (gdbarch
->frame_num_args
!= NULL
);
3002 if (gdbarch_debug
>= 2)
3003 gdb_printf (gdb_stdlog
, "gdbarch_frame_num_args called\n");
3004 return gdbarch
->frame_num_args (frame
);
3008 set_gdbarch_frame_num_args (struct gdbarch
*gdbarch
,
3009 gdbarch_frame_num_args_ftype frame_num_args
)
3011 gdbarch
->frame_num_args
= frame_num_args
;
3015 gdbarch_frame_align_p (struct gdbarch
*gdbarch
)
3017 gdb_assert (gdbarch
!= NULL
);
3018 return gdbarch
->frame_align
!= NULL
;
3022 gdbarch_frame_align (struct gdbarch
*gdbarch
, CORE_ADDR address
)
3024 gdb_assert (gdbarch
!= NULL
);
3025 gdb_assert (gdbarch
->frame_align
!= NULL
);
3026 if (gdbarch_debug
>= 2)
3027 gdb_printf (gdb_stdlog
, "gdbarch_frame_align called\n");
3028 return gdbarch
->frame_align (gdbarch
, address
);
3032 set_gdbarch_frame_align (struct gdbarch
*gdbarch
,
3033 gdbarch_frame_align_ftype frame_align
)
3035 gdbarch
->frame_align
= frame_align
;
3039 gdbarch_stabs_argument_has_addr (struct gdbarch
*gdbarch
, struct type
*type
)
3041 gdb_assert (gdbarch
!= NULL
);
3042 gdb_assert (gdbarch
->stabs_argument_has_addr
!= NULL
);
3043 if (gdbarch_debug
>= 2)
3044 gdb_printf (gdb_stdlog
, "gdbarch_stabs_argument_has_addr called\n");
3045 return gdbarch
->stabs_argument_has_addr (gdbarch
, type
);
3049 set_gdbarch_stabs_argument_has_addr (struct gdbarch
*gdbarch
,
3050 gdbarch_stabs_argument_has_addr_ftype stabs_argument_has_addr
)
3052 gdbarch
->stabs_argument_has_addr
= stabs_argument_has_addr
;
3056 gdbarch_frame_red_zone_size (struct gdbarch
*gdbarch
)
3058 gdb_assert (gdbarch
!= NULL
);
3059 /* Skip verify of frame_red_zone_size, invalid_p == 0 */
3060 if (gdbarch_debug
>= 2)
3061 gdb_printf (gdb_stdlog
, "gdbarch_frame_red_zone_size called\n");
3062 return gdbarch
->frame_red_zone_size
;
3066 set_gdbarch_frame_red_zone_size (struct gdbarch
*gdbarch
,
3067 int frame_red_zone_size
)
3069 gdbarch
->frame_red_zone_size
= frame_red_zone_size
;
3073 gdbarch_convert_from_func_ptr_addr (struct gdbarch
*gdbarch
, CORE_ADDR addr
, struct target_ops
*targ
)
3075 gdb_assert (gdbarch
!= NULL
);
3076 gdb_assert (gdbarch
->convert_from_func_ptr_addr
!= NULL
);
3077 if (gdbarch_debug
>= 2)
3078 gdb_printf (gdb_stdlog
, "gdbarch_convert_from_func_ptr_addr called\n");
3079 return gdbarch
->convert_from_func_ptr_addr (gdbarch
, addr
, targ
);
3083 set_gdbarch_convert_from_func_ptr_addr (struct gdbarch
*gdbarch
,
3084 gdbarch_convert_from_func_ptr_addr_ftype convert_from_func_ptr_addr
)
3086 gdbarch
->convert_from_func_ptr_addr
= convert_from_func_ptr_addr
;
3090 gdbarch_addr_bits_remove (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
3092 gdb_assert (gdbarch
!= NULL
);
3093 gdb_assert (gdbarch
->addr_bits_remove
!= NULL
);
3094 if (gdbarch_debug
>= 2)
3095 gdb_printf (gdb_stdlog
, "gdbarch_addr_bits_remove called\n");
3096 return gdbarch
->addr_bits_remove (gdbarch
, addr
);
3100 set_gdbarch_addr_bits_remove (struct gdbarch
*gdbarch
,
3101 gdbarch_addr_bits_remove_ftype addr_bits_remove
)
3103 gdbarch
->addr_bits_remove
= addr_bits_remove
;
3107 gdbarch_remove_non_address_bits (struct gdbarch
*gdbarch
, CORE_ADDR pointer
)
3109 gdb_assert (gdbarch
!= NULL
);
3110 gdb_assert (gdbarch
->remove_non_address_bits
!= NULL
);
3111 if (gdbarch_debug
>= 2)
3112 gdb_printf (gdb_stdlog
, "gdbarch_remove_non_address_bits called\n");
3113 return gdbarch
->remove_non_address_bits (gdbarch
, pointer
);
3117 set_gdbarch_remove_non_address_bits (struct gdbarch
*gdbarch
,
3118 gdbarch_remove_non_address_bits_ftype remove_non_address_bits
)
3120 gdbarch
->remove_non_address_bits
= remove_non_address_bits
;
3124 gdbarch_memtag_to_string (struct gdbarch
*gdbarch
, struct value
*tag
)
3126 gdb_assert (gdbarch
!= NULL
);
3127 gdb_assert (gdbarch
->memtag_to_string
!= NULL
);
3128 if (gdbarch_debug
>= 2)
3129 gdb_printf (gdb_stdlog
, "gdbarch_memtag_to_string called\n");
3130 return gdbarch
->memtag_to_string (gdbarch
, tag
);
3134 set_gdbarch_memtag_to_string (struct gdbarch
*gdbarch
,
3135 gdbarch_memtag_to_string_ftype memtag_to_string
)
3137 gdbarch
->memtag_to_string
= memtag_to_string
;
3141 gdbarch_tagged_address_p (struct gdbarch
*gdbarch
, struct value
*address
)
3143 gdb_assert (gdbarch
!= NULL
);
3144 gdb_assert (gdbarch
->tagged_address_p
!= NULL
);
3145 if (gdbarch_debug
>= 2)
3146 gdb_printf (gdb_stdlog
, "gdbarch_tagged_address_p called\n");
3147 return gdbarch
->tagged_address_p (gdbarch
, address
);
3151 set_gdbarch_tagged_address_p (struct gdbarch
*gdbarch
,
3152 gdbarch_tagged_address_p_ftype tagged_address_p
)
3154 gdbarch
->tagged_address_p
= tagged_address_p
;
3158 gdbarch_memtag_matches_p (struct gdbarch
*gdbarch
, struct value
*address
)
3160 gdb_assert (gdbarch
!= NULL
);
3161 gdb_assert (gdbarch
->memtag_matches_p
!= NULL
);
3162 if (gdbarch_debug
>= 2)
3163 gdb_printf (gdb_stdlog
, "gdbarch_memtag_matches_p called\n");
3164 return gdbarch
->memtag_matches_p (gdbarch
, address
);
3168 set_gdbarch_memtag_matches_p (struct gdbarch
*gdbarch
,
3169 gdbarch_memtag_matches_p_ftype memtag_matches_p
)
3171 gdbarch
->memtag_matches_p
= memtag_matches_p
;
3175 gdbarch_set_memtags (struct gdbarch
*gdbarch
, struct value
*address
, size_t length
, const gdb::byte_vector
&tags
, memtag_type tag_type
)
3177 gdb_assert (gdbarch
!= NULL
);
3178 gdb_assert (gdbarch
->set_memtags
!= NULL
);
3179 if (gdbarch_debug
>= 2)
3180 gdb_printf (gdb_stdlog
, "gdbarch_set_memtags called\n");
3181 return gdbarch
->set_memtags (gdbarch
, address
, length
, tags
, tag_type
);
3185 set_gdbarch_set_memtags (struct gdbarch
*gdbarch
,
3186 gdbarch_set_memtags_ftype set_memtags
)
3188 gdbarch
->set_memtags
= set_memtags
;
3192 gdbarch_get_memtag (struct gdbarch
*gdbarch
, struct value
*address
, memtag_type tag_type
)
3194 gdb_assert (gdbarch
!= NULL
);
3195 gdb_assert (gdbarch
->get_memtag
!= NULL
);
3196 if (gdbarch_debug
>= 2)
3197 gdb_printf (gdb_stdlog
, "gdbarch_get_memtag called\n");
3198 return gdbarch
->get_memtag (gdbarch
, address
, tag_type
);
3202 set_gdbarch_get_memtag (struct gdbarch
*gdbarch
,
3203 gdbarch_get_memtag_ftype get_memtag
)
3205 gdbarch
->get_memtag
= get_memtag
;
3209 gdbarch_memtag_granule_size (struct gdbarch
*gdbarch
)
3211 gdb_assert (gdbarch
!= NULL
);
3212 /* Skip verify of memtag_granule_size, invalid_p == 0 */
3213 if (gdbarch_debug
>= 2)
3214 gdb_printf (gdb_stdlog
, "gdbarch_memtag_granule_size called\n");
3215 return gdbarch
->memtag_granule_size
;
3219 set_gdbarch_memtag_granule_size (struct gdbarch
*gdbarch
,
3220 CORE_ADDR memtag_granule_size
)
3222 gdbarch
->memtag_granule_size
= memtag_granule_size
;
3226 gdbarch_software_single_step_p (struct gdbarch
*gdbarch
)
3228 gdb_assert (gdbarch
!= NULL
);
3229 return gdbarch
->software_single_step
!= NULL
;
3232 std::vector
<CORE_ADDR
>
3233 gdbarch_software_single_step (struct gdbarch
*gdbarch
, struct regcache
*regcache
)
3235 gdb_assert (gdbarch
!= NULL
);
3236 gdb_assert (gdbarch
->software_single_step
!= NULL
);
3237 if (gdbarch_debug
>= 2)
3238 gdb_printf (gdb_stdlog
, "gdbarch_software_single_step called\n");
3239 return gdbarch
->software_single_step (regcache
);
3243 set_gdbarch_software_single_step (struct gdbarch
*gdbarch
,
3244 gdbarch_software_single_step_ftype software_single_step
)
3246 gdbarch
->software_single_step
= software_single_step
;
3250 gdbarch_single_step_through_delay_p (struct gdbarch
*gdbarch
)
3252 gdb_assert (gdbarch
!= NULL
);
3253 return gdbarch
->single_step_through_delay
!= NULL
;
3257 gdbarch_single_step_through_delay (struct gdbarch
*gdbarch
, frame_info_ptr frame
)
3259 gdb_assert (gdbarch
!= NULL
);
3260 gdb_assert (gdbarch
->single_step_through_delay
!= NULL
);
3261 if (gdbarch_debug
>= 2)
3262 gdb_printf (gdb_stdlog
, "gdbarch_single_step_through_delay called\n");
3263 return gdbarch
->single_step_through_delay (gdbarch
, frame
);
3267 set_gdbarch_single_step_through_delay (struct gdbarch
*gdbarch
,
3268 gdbarch_single_step_through_delay_ftype single_step_through_delay
)
3270 gdbarch
->single_step_through_delay
= single_step_through_delay
;
3274 gdbarch_print_insn (struct gdbarch
*gdbarch
, bfd_vma vma
, struct disassemble_info
*info
)
3276 gdb_assert (gdbarch
!= NULL
);
3277 gdb_assert (gdbarch
->print_insn
!= NULL
);
3278 if (gdbarch_debug
>= 2)
3279 gdb_printf (gdb_stdlog
, "gdbarch_print_insn called\n");
3280 return gdbarch
->print_insn (vma
, info
);
3284 set_gdbarch_print_insn (struct gdbarch
*gdbarch
,
3285 gdbarch_print_insn_ftype print_insn
)
3287 gdbarch
->print_insn
= print_insn
;
3291 gdbarch_skip_trampoline_code (struct gdbarch
*gdbarch
, frame_info_ptr frame
, CORE_ADDR pc
)
3293 gdb_assert (gdbarch
!= NULL
);
3294 gdb_assert (gdbarch
->skip_trampoline_code
!= NULL
);
3295 if (gdbarch_debug
>= 2)
3296 gdb_printf (gdb_stdlog
, "gdbarch_skip_trampoline_code called\n");
3297 return gdbarch
->skip_trampoline_code (frame
, pc
);
3301 set_gdbarch_skip_trampoline_code (struct gdbarch
*gdbarch
,
3302 gdbarch_skip_trampoline_code_ftype skip_trampoline_code
)
3304 gdbarch
->skip_trampoline_code
= skip_trampoline_code
;
3307 const struct target_so_ops
*
3308 gdbarch_so_ops (struct gdbarch
*gdbarch
)
3310 gdb_assert (gdbarch
!= NULL
);
3311 if (gdbarch_debug
>= 2)
3312 gdb_printf (gdb_stdlog
, "gdbarch_so_ops called\n");
3313 return gdbarch
->so_ops
;
3317 set_gdbarch_so_ops (struct gdbarch
*gdbarch
,
3318 const struct target_so_ops
* so_ops
)
3320 gdbarch
->so_ops
= so_ops
;
3324 gdbarch_skip_solib_resolver (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3326 gdb_assert (gdbarch
!= NULL
);
3327 gdb_assert (gdbarch
->skip_solib_resolver
!= NULL
);
3328 if (gdbarch_debug
>= 2)
3329 gdb_printf (gdb_stdlog
, "gdbarch_skip_solib_resolver called\n");
3330 return gdbarch
->skip_solib_resolver (gdbarch
, pc
);
3334 set_gdbarch_skip_solib_resolver (struct gdbarch
*gdbarch
,
3335 gdbarch_skip_solib_resolver_ftype skip_solib_resolver
)
3337 gdbarch
->skip_solib_resolver
= skip_solib_resolver
;
3341 gdbarch_in_solib_return_trampoline (struct gdbarch
*gdbarch
, CORE_ADDR pc
, const char *name
)
3343 gdb_assert (gdbarch
!= NULL
);
3344 gdb_assert (gdbarch
->in_solib_return_trampoline
!= NULL
);
3345 if (gdbarch_debug
>= 2)
3346 gdb_printf (gdb_stdlog
, "gdbarch_in_solib_return_trampoline called\n");
3347 return gdbarch
->in_solib_return_trampoline (gdbarch
, pc
, name
);
3351 set_gdbarch_in_solib_return_trampoline (struct gdbarch
*gdbarch
,
3352 gdbarch_in_solib_return_trampoline_ftype in_solib_return_trampoline
)
3354 gdbarch
->in_solib_return_trampoline
= in_solib_return_trampoline
;
3358 gdbarch_in_indirect_branch_thunk (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3360 gdb_assert (gdbarch
!= NULL
);
3361 gdb_assert (gdbarch
->in_indirect_branch_thunk
!= NULL
);
3362 if (gdbarch_debug
>= 2)
3363 gdb_printf (gdb_stdlog
, "gdbarch_in_indirect_branch_thunk called\n");
3364 return gdbarch
->in_indirect_branch_thunk (gdbarch
, pc
);
3368 set_gdbarch_in_indirect_branch_thunk (struct gdbarch
*gdbarch
,
3369 gdbarch_in_indirect_branch_thunk_ftype in_indirect_branch_thunk
)
3371 gdbarch
->in_indirect_branch_thunk
= in_indirect_branch_thunk
;
3375 gdbarch_stack_frame_destroyed_p (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
3377 gdb_assert (gdbarch
!= NULL
);
3378 gdb_assert (gdbarch
->stack_frame_destroyed_p
!= NULL
);
3379 if (gdbarch_debug
>= 2)
3380 gdb_printf (gdb_stdlog
, "gdbarch_stack_frame_destroyed_p called\n");
3381 return gdbarch
->stack_frame_destroyed_p (gdbarch
, addr
);
3385 set_gdbarch_stack_frame_destroyed_p (struct gdbarch
*gdbarch
,
3386 gdbarch_stack_frame_destroyed_p_ftype stack_frame_destroyed_p
)
3388 gdbarch
->stack_frame_destroyed_p
= stack_frame_destroyed_p
;
3392 gdbarch_elf_make_msymbol_special_p (struct gdbarch
*gdbarch
)
3394 gdb_assert (gdbarch
!= NULL
);
3395 return gdbarch
->elf_make_msymbol_special
!= NULL
;
3399 gdbarch_elf_make_msymbol_special (struct gdbarch
*gdbarch
, asymbol
*sym
, struct minimal_symbol
*msym
)
3401 gdb_assert (gdbarch
!= NULL
);
3402 gdb_assert (gdbarch
->elf_make_msymbol_special
!= NULL
);
3403 if (gdbarch_debug
>= 2)
3404 gdb_printf (gdb_stdlog
, "gdbarch_elf_make_msymbol_special called\n");
3405 gdbarch
->elf_make_msymbol_special (sym
, msym
);
3409 set_gdbarch_elf_make_msymbol_special (struct gdbarch
*gdbarch
,
3410 gdbarch_elf_make_msymbol_special_ftype elf_make_msymbol_special
)
3412 gdbarch
->elf_make_msymbol_special
= elf_make_msymbol_special
;
3416 gdbarch_coff_make_msymbol_special (struct gdbarch
*gdbarch
, int val
, struct minimal_symbol
*msym
)
3418 gdb_assert (gdbarch
!= NULL
);
3419 gdb_assert (gdbarch
->coff_make_msymbol_special
!= NULL
);
3420 if (gdbarch_debug
>= 2)
3421 gdb_printf (gdb_stdlog
, "gdbarch_coff_make_msymbol_special called\n");
3422 gdbarch
->coff_make_msymbol_special (val
, msym
);
3426 set_gdbarch_coff_make_msymbol_special (struct gdbarch
*gdbarch
,
3427 gdbarch_coff_make_msymbol_special_ftype coff_make_msymbol_special
)
3429 gdbarch
->coff_make_msymbol_special
= coff_make_msymbol_special
;
3433 gdbarch_make_symbol_special (struct gdbarch
*gdbarch
, struct symbol
*sym
, struct objfile
*objfile
)
3435 gdb_assert (gdbarch
!= NULL
);
3436 gdb_assert (gdbarch
->make_symbol_special
!= NULL
);
3437 if (gdbarch_debug
>= 2)
3438 gdb_printf (gdb_stdlog
, "gdbarch_make_symbol_special called\n");
3439 gdbarch
->make_symbol_special (sym
, objfile
);
3443 set_gdbarch_make_symbol_special (struct gdbarch
*gdbarch
,
3444 gdbarch_make_symbol_special_ftype make_symbol_special
)
3446 gdbarch
->make_symbol_special
= make_symbol_special
;
3450 gdbarch_adjust_dwarf2_addr (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3452 gdb_assert (gdbarch
!= NULL
);
3453 gdb_assert (gdbarch
->adjust_dwarf2_addr
!= NULL
);
3454 if (gdbarch_debug
>= 2)
3455 gdb_printf (gdb_stdlog
, "gdbarch_adjust_dwarf2_addr called\n");
3456 return gdbarch
->adjust_dwarf2_addr (pc
);
3460 set_gdbarch_adjust_dwarf2_addr (struct gdbarch
*gdbarch
,
3461 gdbarch_adjust_dwarf2_addr_ftype adjust_dwarf2_addr
)
3463 gdbarch
->adjust_dwarf2_addr
= adjust_dwarf2_addr
;
3467 gdbarch_adjust_dwarf2_line (struct gdbarch
*gdbarch
, CORE_ADDR addr
, int rel
)
3469 gdb_assert (gdbarch
!= NULL
);
3470 gdb_assert (gdbarch
->adjust_dwarf2_line
!= NULL
);
3471 if (gdbarch_debug
>= 2)
3472 gdb_printf (gdb_stdlog
, "gdbarch_adjust_dwarf2_line called\n");
3473 return gdbarch
->adjust_dwarf2_line (addr
, rel
);
3477 set_gdbarch_adjust_dwarf2_line (struct gdbarch
*gdbarch
,
3478 gdbarch_adjust_dwarf2_line_ftype adjust_dwarf2_line
)
3480 gdbarch
->adjust_dwarf2_line
= adjust_dwarf2_line
;
3484 gdbarch_cannot_step_breakpoint (struct gdbarch
*gdbarch
)
3486 gdb_assert (gdbarch
!= NULL
);
3487 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */
3488 if (gdbarch_debug
>= 2)
3489 gdb_printf (gdb_stdlog
, "gdbarch_cannot_step_breakpoint called\n");
3490 return gdbarch
->cannot_step_breakpoint
;
3494 set_gdbarch_cannot_step_breakpoint (struct gdbarch
*gdbarch
,
3495 int cannot_step_breakpoint
)
3497 gdbarch
->cannot_step_breakpoint
= cannot_step_breakpoint
;
3501 gdbarch_have_nonsteppable_watchpoint (struct gdbarch
*gdbarch
)
3503 gdb_assert (gdbarch
!= NULL
);
3504 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */
3505 if (gdbarch_debug
>= 2)
3506 gdb_printf (gdb_stdlog
, "gdbarch_have_nonsteppable_watchpoint called\n");
3507 return gdbarch
->have_nonsteppable_watchpoint
;
3511 set_gdbarch_have_nonsteppable_watchpoint (struct gdbarch
*gdbarch
,
3512 int have_nonsteppable_watchpoint
)
3514 gdbarch
->have_nonsteppable_watchpoint
= have_nonsteppable_watchpoint
;
3518 gdbarch_address_class_type_flags_p (struct gdbarch
*gdbarch
)
3520 gdb_assert (gdbarch
!= NULL
);
3521 return gdbarch
->address_class_type_flags
!= NULL
;
3525 gdbarch_address_class_type_flags (struct gdbarch
*gdbarch
, int byte_size
, int dwarf2_addr_class
)
3527 gdb_assert (gdbarch
!= NULL
);
3528 gdb_assert (gdbarch
->address_class_type_flags
!= NULL
);
3529 if (gdbarch_debug
>= 2)
3530 gdb_printf (gdb_stdlog
, "gdbarch_address_class_type_flags called\n");
3531 return gdbarch
->address_class_type_flags (byte_size
, dwarf2_addr_class
);
3535 set_gdbarch_address_class_type_flags (struct gdbarch
*gdbarch
,
3536 gdbarch_address_class_type_flags_ftype address_class_type_flags
)
3538 gdbarch
->address_class_type_flags
= address_class_type_flags
;
3542 gdbarch_address_class_type_flags_to_name_p (struct gdbarch
*gdbarch
)
3544 gdb_assert (gdbarch
!= NULL
);
3545 return gdbarch
->address_class_type_flags_to_name
!= NULL
;
3549 gdbarch_address_class_type_flags_to_name (struct gdbarch
*gdbarch
, type_instance_flags type_flags
)
3551 gdb_assert (gdbarch
!= NULL
);
3552 gdb_assert (gdbarch
->address_class_type_flags_to_name
!= NULL
);
3553 if (gdbarch_debug
>= 2)
3554 gdb_printf (gdb_stdlog
, "gdbarch_address_class_type_flags_to_name called\n");
3555 return gdbarch
->address_class_type_flags_to_name (gdbarch
, type_flags
);
3559 set_gdbarch_address_class_type_flags_to_name (struct gdbarch
*gdbarch
,
3560 gdbarch_address_class_type_flags_to_name_ftype address_class_type_flags_to_name
)
3562 gdbarch
->address_class_type_flags_to_name
= address_class_type_flags_to_name
;
3566 gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch
*gdbarch
, gdb_byte op
, struct dwarf2_frame_state
*fs
)
3568 gdb_assert (gdbarch
!= NULL
);
3569 gdb_assert (gdbarch
->execute_dwarf_cfa_vendor_op
!= NULL
);
3570 if (gdbarch_debug
>= 2)
3571 gdb_printf (gdb_stdlog
, "gdbarch_execute_dwarf_cfa_vendor_op called\n");
3572 return gdbarch
->execute_dwarf_cfa_vendor_op (gdbarch
, op
, fs
);
3576 set_gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch
*gdbarch
,
3577 gdbarch_execute_dwarf_cfa_vendor_op_ftype execute_dwarf_cfa_vendor_op
)
3579 gdbarch
->execute_dwarf_cfa_vendor_op
= execute_dwarf_cfa_vendor_op
;
3583 gdbarch_address_class_name_to_type_flags_p (struct gdbarch
*gdbarch
)
3585 gdb_assert (gdbarch
!= NULL
);
3586 return gdbarch
->address_class_name_to_type_flags
!= NULL
;
3590 gdbarch_address_class_name_to_type_flags (struct gdbarch
*gdbarch
, const char *name
, type_instance_flags
*type_flags_ptr
)
3592 gdb_assert (gdbarch
!= NULL
);
3593 gdb_assert (gdbarch
->address_class_name_to_type_flags
!= NULL
);
3594 if (gdbarch_debug
>= 2)
3595 gdb_printf (gdb_stdlog
, "gdbarch_address_class_name_to_type_flags called\n");
3596 return gdbarch
->address_class_name_to_type_flags (gdbarch
, name
, type_flags_ptr
);
3600 set_gdbarch_address_class_name_to_type_flags (struct gdbarch
*gdbarch
,
3601 gdbarch_address_class_name_to_type_flags_ftype address_class_name_to_type_flags
)
3603 gdbarch
->address_class_name_to_type_flags
= address_class_name_to_type_flags
;
3607 gdbarch_register_reggroup_p (struct gdbarch
*gdbarch
, int regnum
, const struct reggroup
*reggroup
)
3609 gdb_assert (gdbarch
!= NULL
);
3610 gdb_assert (gdbarch
->register_reggroup_p
!= NULL
);
3611 if (gdbarch_debug
>= 2)
3612 gdb_printf (gdb_stdlog
, "gdbarch_register_reggroup_p called\n");
3613 return gdbarch
->register_reggroup_p (gdbarch
, regnum
, reggroup
);
3617 set_gdbarch_register_reggroup_p (struct gdbarch
*gdbarch
,
3618 gdbarch_register_reggroup_p_ftype register_reggroup_p
)
3620 gdbarch
->register_reggroup_p
= register_reggroup_p
;
3624 gdbarch_fetch_pointer_argument_p (struct gdbarch
*gdbarch
)
3626 gdb_assert (gdbarch
!= NULL
);
3627 return gdbarch
->fetch_pointer_argument
!= NULL
;
3631 gdbarch_fetch_pointer_argument (struct gdbarch
*gdbarch
, frame_info_ptr frame
, int argi
, struct type
*type
)
3633 gdb_assert (gdbarch
!= NULL
);
3634 gdb_assert (gdbarch
->fetch_pointer_argument
!= NULL
);
3635 if (gdbarch_debug
>= 2)
3636 gdb_printf (gdb_stdlog
, "gdbarch_fetch_pointer_argument called\n");
3637 return gdbarch
->fetch_pointer_argument (frame
, argi
, type
);
3641 set_gdbarch_fetch_pointer_argument (struct gdbarch
*gdbarch
,
3642 gdbarch_fetch_pointer_argument_ftype fetch_pointer_argument
)
3644 gdbarch
->fetch_pointer_argument
= fetch_pointer_argument
;
3648 gdbarch_iterate_over_regset_sections_p (struct gdbarch
*gdbarch
)
3650 gdb_assert (gdbarch
!= NULL
);
3651 return gdbarch
->iterate_over_regset_sections
!= NULL
;
3655 gdbarch_iterate_over_regset_sections (struct gdbarch
*gdbarch
, iterate_over_regset_sections_cb
*cb
, void *cb_data
, const struct regcache
*regcache
)
3657 gdb_assert (gdbarch
!= NULL
);
3658 gdb_assert (gdbarch
->iterate_over_regset_sections
!= NULL
);
3659 if (gdbarch_debug
>= 2)
3660 gdb_printf (gdb_stdlog
, "gdbarch_iterate_over_regset_sections called\n");
3661 gdbarch
->iterate_over_regset_sections (gdbarch
, cb
, cb_data
, regcache
);
3665 set_gdbarch_iterate_over_regset_sections (struct gdbarch
*gdbarch
,
3666 gdbarch_iterate_over_regset_sections_ftype iterate_over_regset_sections
)
3668 gdbarch
->iterate_over_regset_sections
= iterate_over_regset_sections
;
3672 gdbarch_make_corefile_notes_p (struct gdbarch
*gdbarch
)
3674 gdb_assert (gdbarch
!= NULL
);
3675 return gdbarch
->make_corefile_notes
!= NULL
;
3678 gdb::unique_xmalloc_ptr
<char>
3679 gdbarch_make_corefile_notes (struct gdbarch
*gdbarch
, bfd
*obfd
, int *note_size
)
3681 gdb_assert (gdbarch
!= NULL
);
3682 gdb_assert (gdbarch
->make_corefile_notes
!= NULL
);
3683 if (gdbarch_debug
>= 2)
3684 gdb_printf (gdb_stdlog
, "gdbarch_make_corefile_notes called\n");
3685 return gdbarch
->make_corefile_notes (gdbarch
, obfd
, note_size
);
3689 set_gdbarch_make_corefile_notes (struct gdbarch
*gdbarch
,
3690 gdbarch_make_corefile_notes_ftype make_corefile_notes
)
3692 gdbarch
->make_corefile_notes
= make_corefile_notes
;
3696 gdbarch_find_memory_regions_p (struct gdbarch
*gdbarch
)
3698 gdb_assert (gdbarch
!= NULL
);
3699 return gdbarch
->find_memory_regions
!= NULL
;
3703 gdbarch_find_memory_regions (struct gdbarch
*gdbarch
, find_memory_region_ftype func
, void *data
)
3705 gdb_assert (gdbarch
!= NULL
);
3706 gdb_assert (gdbarch
->find_memory_regions
!= NULL
);
3707 if (gdbarch_debug
>= 2)
3708 gdb_printf (gdb_stdlog
, "gdbarch_find_memory_regions called\n");
3709 return gdbarch
->find_memory_regions (gdbarch
, func
, data
);
3713 set_gdbarch_find_memory_regions (struct gdbarch
*gdbarch
,
3714 gdbarch_find_memory_regions_ftype find_memory_regions
)
3716 gdbarch
->find_memory_regions
= find_memory_regions
;
3720 gdbarch_create_memtag_section_p (struct gdbarch
*gdbarch
)
3722 gdb_assert (gdbarch
!= NULL
);
3723 return gdbarch
->create_memtag_section
!= NULL
;
3727 gdbarch_create_memtag_section (struct gdbarch
*gdbarch
, bfd
*obfd
, CORE_ADDR address
, size_t size
)
3729 gdb_assert (gdbarch
!= NULL
);
3730 gdb_assert (gdbarch
->create_memtag_section
!= NULL
);
3731 if (gdbarch_debug
>= 2)
3732 gdb_printf (gdb_stdlog
, "gdbarch_create_memtag_section called\n");
3733 return gdbarch
->create_memtag_section (gdbarch
, obfd
, address
, size
);
3737 set_gdbarch_create_memtag_section (struct gdbarch
*gdbarch
,
3738 gdbarch_create_memtag_section_ftype create_memtag_section
)
3740 gdbarch
->create_memtag_section
= create_memtag_section
;
3744 gdbarch_fill_memtag_section_p (struct gdbarch
*gdbarch
)
3746 gdb_assert (gdbarch
!= NULL
);
3747 return gdbarch
->fill_memtag_section
!= NULL
;
3751 gdbarch_fill_memtag_section (struct gdbarch
*gdbarch
, asection
*osec
)
3753 gdb_assert (gdbarch
!= NULL
);
3754 gdb_assert (gdbarch
->fill_memtag_section
!= NULL
);
3755 if (gdbarch_debug
>= 2)
3756 gdb_printf (gdb_stdlog
, "gdbarch_fill_memtag_section called\n");
3757 return gdbarch
->fill_memtag_section (gdbarch
, osec
);
3761 set_gdbarch_fill_memtag_section (struct gdbarch
*gdbarch
,
3762 gdbarch_fill_memtag_section_ftype fill_memtag_section
)
3764 gdbarch
->fill_memtag_section
= fill_memtag_section
;
3768 gdbarch_decode_memtag_section_p (struct gdbarch
*gdbarch
)
3770 gdb_assert (gdbarch
!= NULL
);
3771 return gdbarch
->decode_memtag_section
!= NULL
;
3775 gdbarch_decode_memtag_section (struct gdbarch
*gdbarch
, bfd_section
*section
, int type
, CORE_ADDR address
, size_t length
)
3777 gdb_assert (gdbarch
!= NULL
);
3778 gdb_assert (gdbarch
->decode_memtag_section
!= NULL
);
3779 if (gdbarch_debug
>= 2)
3780 gdb_printf (gdb_stdlog
, "gdbarch_decode_memtag_section called\n");
3781 return gdbarch
->decode_memtag_section (gdbarch
, section
, type
, address
, length
);
3785 set_gdbarch_decode_memtag_section (struct gdbarch
*gdbarch
,
3786 gdbarch_decode_memtag_section_ftype decode_memtag_section
)
3788 gdbarch
->decode_memtag_section
= decode_memtag_section
;
3792 gdbarch_core_xfer_shared_libraries_p (struct gdbarch
*gdbarch
)
3794 gdb_assert (gdbarch
!= NULL
);
3795 return gdbarch
->core_xfer_shared_libraries
!= NULL
;
3799 gdbarch_core_xfer_shared_libraries (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
3801 gdb_assert (gdbarch
!= NULL
);
3802 gdb_assert (gdbarch
->core_xfer_shared_libraries
!= NULL
);
3803 if (gdbarch_debug
>= 2)
3804 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_shared_libraries called\n");
3805 return gdbarch
->core_xfer_shared_libraries (gdbarch
, readbuf
, offset
, len
);
3809 set_gdbarch_core_xfer_shared_libraries (struct gdbarch
*gdbarch
,
3810 gdbarch_core_xfer_shared_libraries_ftype core_xfer_shared_libraries
)
3812 gdbarch
->core_xfer_shared_libraries
= core_xfer_shared_libraries
;
3816 gdbarch_core_xfer_shared_libraries_aix_p (struct gdbarch
*gdbarch
)
3818 gdb_assert (gdbarch
!= NULL
);
3819 return gdbarch
->core_xfer_shared_libraries_aix
!= NULL
;
3823 gdbarch_core_xfer_shared_libraries_aix (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
3825 gdb_assert (gdbarch
!= NULL
);
3826 gdb_assert (gdbarch
->core_xfer_shared_libraries_aix
!= NULL
);
3827 if (gdbarch_debug
>= 2)
3828 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_shared_libraries_aix called\n");
3829 return gdbarch
->core_xfer_shared_libraries_aix (gdbarch
, readbuf
, offset
, len
);
3833 set_gdbarch_core_xfer_shared_libraries_aix (struct gdbarch
*gdbarch
,
3834 gdbarch_core_xfer_shared_libraries_aix_ftype core_xfer_shared_libraries_aix
)
3836 gdbarch
->core_xfer_shared_libraries_aix
= core_xfer_shared_libraries_aix
;
3840 gdbarch_core_pid_to_str_p (struct gdbarch
*gdbarch
)
3842 gdb_assert (gdbarch
!= NULL
);
3843 return gdbarch
->core_pid_to_str
!= NULL
;
3847 gdbarch_core_pid_to_str (struct gdbarch
*gdbarch
, ptid_t ptid
)
3849 gdb_assert (gdbarch
!= NULL
);
3850 gdb_assert (gdbarch
->core_pid_to_str
!= NULL
);
3851 if (gdbarch_debug
>= 2)
3852 gdb_printf (gdb_stdlog
, "gdbarch_core_pid_to_str called\n");
3853 return gdbarch
->core_pid_to_str (gdbarch
, ptid
);
3857 set_gdbarch_core_pid_to_str (struct gdbarch
*gdbarch
,
3858 gdbarch_core_pid_to_str_ftype core_pid_to_str
)
3860 gdbarch
->core_pid_to_str
= core_pid_to_str
;
3864 gdbarch_core_thread_name_p (struct gdbarch
*gdbarch
)
3866 gdb_assert (gdbarch
!= NULL
);
3867 return gdbarch
->core_thread_name
!= NULL
;
3871 gdbarch_core_thread_name (struct gdbarch
*gdbarch
, struct thread_info
*thr
)
3873 gdb_assert (gdbarch
!= NULL
);
3874 gdb_assert (gdbarch
->core_thread_name
!= NULL
);
3875 if (gdbarch_debug
>= 2)
3876 gdb_printf (gdb_stdlog
, "gdbarch_core_thread_name called\n");
3877 return gdbarch
->core_thread_name (gdbarch
, thr
);
3881 set_gdbarch_core_thread_name (struct gdbarch
*gdbarch
,
3882 gdbarch_core_thread_name_ftype core_thread_name
)
3884 gdbarch
->core_thread_name
= core_thread_name
;
3888 gdbarch_core_xfer_siginfo_p (struct gdbarch
*gdbarch
)
3890 gdb_assert (gdbarch
!= NULL
);
3891 return gdbarch
->core_xfer_siginfo
!= NULL
;
3895 gdbarch_core_xfer_siginfo (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
3897 gdb_assert (gdbarch
!= NULL
);
3898 gdb_assert (gdbarch
->core_xfer_siginfo
!= NULL
);
3899 if (gdbarch_debug
>= 2)
3900 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_siginfo called\n");
3901 return gdbarch
->core_xfer_siginfo (gdbarch
, readbuf
, offset
, len
);
3905 set_gdbarch_core_xfer_siginfo (struct gdbarch
*gdbarch
,
3906 gdbarch_core_xfer_siginfo_ftype core_xfer_siginfo
)
3908 gdbarch
->core_xfer_siginfo
= core_xfer_siginfo
;
3912 gdbarch_gcore_bfd_target_p (struct gdbarch
*gdbarch
)
3914 gdb_assert (gdbarch
!= NULL
);
3915 return gdbarch
->gcore_bfd_target
!= 0;
3919 gdbarch_gcore_bfd_target (struct gdbarch
*gdbarch
)
3921 gdb_assert (gdbarch
!= NULL
);
3922 /* Check variable changed from pre-default. */
3923 gdb_assert (gdbarch
->gcore_bfd_target
!= 0);
3924 if (gdbarch_debug
>= 2)
3925 gdb_printf (gdb_stdlog
, "gdbarch_gcore_bfd_target called\n");
3926 return gdbarch
->gcore_bfd_target
;
3930 set_gdbarch_gcore_bfd_target (struct gdbarch
*gdbarch
,
3931 const char * gcore_bfd_target
)
3933 gdbarch
->gcore_bfd_target
= gcore_bfd_target
;
3937 gdbarch_vtable_function_descriptors (struct gdbarch
*gdbarch
)
3939 gdb_assert (gdbarch
!= NULL
);
3940 /* Skip verify of vtable_function_descriptors, invalid_p == 0 */
3941 if (gdbarch_debug
>= 2)
3942 gdb_printf (gdb_stdlog
, "gdbarch_vtable_function_descriptors called\n");
3943 return gdbarch
->vtable_function_descriptors
;
3947 set_gdbarch_vtable_function_descriptors (struct gdbarch
*gdbarch
,
3948 int vtable_function_descriptors
)
3950 gdbarch
->vtable_function_descriptors
= vtable_function_descriptors
;
3954 gdbarch_vbit_in_delta (struct gdbarch
*gdbarch
)
3956 gdb_assert (gdbarch
!= NULL
);
3957 /* Skip verify of vbit_in_delta, invalid_p == 0 */
3958 if (gdbarch_debug
>= 2)
3959 gdb_printf (gdb_stdlog
, "gdbarch_vbit_in_delta called\n");
3960 return gdbarch
->vbit_in_delta
;
3964 set_gdbarch_vbit_in_delta (struct gdbarch
*gdbarch
,
3967 gdbarch
->vbit_in_delta
= vbit_in_delta
;
3971 gdbarch_skip_permanent_breakpoint (struct gdbarch
*gdbarch
, struct regcache
*regcache
)
3973 gdb_assert (gdbarch
!= NULL
);
3974 gdb_assert (gdbarch
->skip_permanent_breakpoint
!= NULL
);
3975 if (gdbarch_debug
>= 2)
3976 gdb_printf (gdb_stdlog
, "gdbarch_skip_permanent_breakpoint called\n");
3977 gdbarch
->skip_permanent_breakpoint (regcache
);
3981 set_gdbarch_skip_permanent_breakpoint (struct gdbarch
*gdbarch
,
3982 gdbarch_skip_permanent_breakpoint_ftype skip_permanent_breakpoint
)
3984 gdbarch
->skip_permanent_breakpoint
= skip_permanent_breakpoint
;
3988 gdbarch_max_insn_length_p (struct gdbarch
*gdbarch
)
3990 gdb_assert (gdbarch
!= NULL
);
3991 return gdbarch
->max_insn_length
!= 0;
3995 gdbarch_max_insn_length (struct gdbarch
*gdbarch
)
3997 gdb_assert (gdbarch
!= NULL
);
3998 /* Check variable changed from pre-default. */
3999 gdb_assert (gdbarch
->max_insn_length
!= 0);
4000 if (gdbarch_debug
>= 2)
4001 gdb_printf (gdb_stdlog
, "gdbarch_max_insn_length called\n");
4002 return gdbarch
->max_insn_length
;
4006 set_gdbarch_max_insn_length (struct gdbarch
*gdbarch
,
4007 ULONGEST max_insn_length
)
4009 gdbarch
->max_insn_length
= max_insn_length
;
4013 gdbarch_displaced_step_copy_insn_p (struct gdbarch
*gdbarch
)
4015 gdb_assert (gdbarch
!= NULL
);
4016 return gdbarch
->displaced_step_copy_insn
!= NULL
;
4019 displaced_step_copy_insn_closure_up
4020 gdbarch_displaced_step_copy_insn (struct gdbarch
*gdbarch
, CORE_ADDR from
, CORE_ADDR to
, struct regcache
*regs
)
4022 gdb_assert (gdbarch
!= NULL
);
4023 gdb_assert (gdbarch
->displaced_step_copy_insn
!= NULL
);
4024 if (gdbarch_debug
>= 2)
4025 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_copy_insn called\n");
4026 return gdbarch
->displaced_step_copy_insn (gdbarch
, from
, to
, regs
);
4030 set_gdbarch_displaced_step_copy_insn (struct gdbarch
*gdbarch
,
4031 gdbarch_displaced_step_copy_insn_ftype displaced_step_copy_insn
)
4033 gdbarch
->displaced_step_copy_insn
= displaced_step_copy_insn
;
4037 gdbarch_displaced_step_hw_singlestep (struct gdbarch
*gdbarch
)
4039 gdb_assert (gdbarch
!= NULL
);
4040 gdb_assert (gdbarch
->displaced_step_hw_singlestep
!= NULL
);
4041 if (gdbarch_debug
>= 2)
4042 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_hw_singlestep called\n");
4043 return gdbarch
->displaced_step_hw_singlestep (gdbarch
);
4047 set_gdbarch_displaced_step_hw_singlestep (struct gdbarch
*gdbarch
,
4048 gdbarch_displaced_step_hw_singlestep_ftype displaced_step_hw_singlestep
)
4050 gdbarch
->displaced_step_hw_singlestep
= displaced_step_hw_singlestep
;
4054 gdbarch_displaced_step_fixup_p (struct gdbarch
*gdbarch
)
4056 gdb_assert (gdbarch
!= NULL
);
4057 return gdbarch
->displaced_step_fixup
!= NULL
;
4061 gdbarch_displaced_step_fixup (struct gdbarch
*gdbarch
, struct displaced_step_copy_insn_closure
*closure
, CORE_ADDR from
, CORE_ADDR to
, struct regcache
*regs
)
4063 gdb_assert (gdbarch
!= NULL
);
4064 gdb_assert (gdbarch
->displaced_step_fixup
!= NULL
);
4065 /* Do not check predicate: gdbarch->displaced_step_fixup != NULL, allow call. */
4066 if (gdbarch_debug
>= 2)
4067 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_fixup called\n");
4068 gdbarch
->displaced_step_fixup (gdbarch
, closure
, from
, to
, regs
);
4072 set_gdbarch_displaced_step_fixup (struct gdbarch
*gdbarch
,
4073 gdbarch_displaced_step_fixup_ftype displaced_step_fixup
)
4075 gdbarch
->displaced_step_fixup
= displaced_step_fixup
;
4079 gdbarch_displaced_step_prepare_p (struct gdbarch
*gdbarch
)
4081 gdb_assert (gdbarch
!= NULL
);
4082 return gdbarch
->displaced_step_prepare
!= NULL
;
4085 displaced_step_prepare_status
4086 gdbarch_displaced_step_prepare (struct gdbarch
*gdbarch
, thread_info
*thread
, CORE_ADDR
&displaced_pc
)
4088 gdb_assert (gdbarch
!= NULL
);
4089 gdb_assert (gdbarch
->displaced_step_prepare
!= NULL
);
4090 if (gdbarch_debug
>= 2)
4091 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_prepare called\n");
4092 return gdbarch
->displaced_step_prepare (gdbarch
, thread
, displaced_pc
);
4096 set_gdbarch_displaced_step_prepare (struct gdbarch
*gdbarch
,
4097 gdbarch_displaced_step_prepare_ftype displaced_step_prepare
)
4099 gdbarch
->displaced_step_prepare
= displaced_step_prepare
;
4102 displaced_step_finish_status
4103 gdbarch_displaced_step_finish (struct gdbarch
*gdbarch
, thread_info
*thread
, gdb_signal sig
)
4105 gdb_assert (gdbarch
!= NULL
);
4106 gdb_assert (gdbarch
->displaced_step_finish
!= NULL
);
4107 if (gdbarch_debug
>= 2)
4108 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_finish called\n");
4109 return gdbarch
->displaced_step_finish (gdbarch
, thread
, sig
);
4113 set_gdbarch_displaced_step_finish (struct gdbarch
*gdbarch
,
4114 gdbarch_displaced_step_finish_ftype displaced_step_finish
)
4116 gdbarch
->displaced_step_finish
= displaced_step_finish
;
4120 gdbarch_displaced_step_copy_insn_closure_by_addr_p (struct gdbarch
*gdbarch
)
4122 gdb_assert (gdbarch
!= NULL
);
4123 return gdbarch
->displaced_step_copy_insn_closure_by_addr
!= NULL
;
4126 const displaced_step_copy_insn_closure
*
4127 gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch
*gdbarch
, inferior
*inf
, CORE_ADDR addr
)
4129 gdb_assert (gdbarch
!= NULL
);
4130 gdb_assert (gdbarch
->displaced_step_copy_insn_closure_by_addr
!= NULL
);
4131 if (gdbarch_debug
>= 2)
4132 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_copy_insn_closure_by_addr called\n");
4133 return gdbarch
->displaced_step_copy_insn_closure_by_addr (inf
, addr
);
4137 set_gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch
*gdbarch
,
4138 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype displaced_step_copy_insn_closure_by_addr
)
4140 gdbarch
->displaced_step_copy_insn_closure_by_addr
= displaced_step_copy_insn_closure_by_addr
;
4144 gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch
*gdbarch
, inferior
*parent_inf
, ptid_t child_ptid
)
4146 gdb_assert (gdbarch
!= NULL
);
4147 gdb_assert (gdbarch
->displaced_step_restore_all_in_ptid
!= NULL
);
4148 if (gdbarch_debug
>= 2)
4149 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_restore_all_in_ptid called\n");
4150 gdbarch
->displaced_step_restore_all_in_ptid (parent_inf
, child_ptid
);
4154 set_gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch
*gdbarch
,
4155 gdbarch_displaced_step_restore_all_in_ptid_ftype displaced_step_restore_all_in_ptid
)
4157 gdbarch
->displaced_step_restore_all_in_ptid
= displaced_step_restore_all_in_ptid
;
4161 gdbarch_relocate_instruction_p (struct gdbarch
*gdbarch
)
4163 gdb_assert (gdbarch
!= NULL
);
4164 return gdbarch
->relocate_instruction
!= NULL
;
4168 gdbarch_relocate_instruction (struct gdbarch
*gdbarch
, CORE_ADDR
*to
, CORE_ADDR from
)
4170 gdb_assert (gdbarch
!= NULL
);
4171 gdb_assert (gdbarch
->relocate_instruction
!= NULL
);
4172 /* Do not check predicate: gdbarch->relocate_instruction != NULL, allow call. */
4173 if (gdbarch_debug
>= 2)
4174 gdb_printf (gdb_stdlog
, "gdbarch_relocate_instruction called\n");
4175 gdbarch
->relocate_instruction (gdbarch
, to
, from
);
4179 set_gdbarch_relocate_instruction (struct gdbarch
*gdbarch
,
4180 gdbarch_relocate_instruction_ftype relocate_instruction
)
4182 gdbarch
->relocate_instruction
= relocate_instruction
;
4186 gdbarch_overlay_update_p (struct gdbarch
*gdbarch
)
4188 gdb_assert (gdbarch
!= NULL
);
4189 return gdbarch
->overlay_update
!= NULL
;
4193 gdbarch_overlay_update (struct gdbarch
*gdbarch
, struct obj_section
*osect
)
4195 gdb_assert (gdbarch
!= NULL
);
4196 gdb_assert (gdbarch
->overlay_update
!= NULL
);
4197 if (gdbarch_debug
>= 2)
4198 gdb_printf (gdb_stdlog
, "gdbarch_overlay_update called\n");
4199 gdbarch
->overlay_update (osect
);
4203 set_gdbarch_overlay_update (struct gdbarch
*gdbarch
,
4204 gdbarch_overlay_update_ftype overlay_update
)
4206 gdbarch
->overlay_update
= overlay_update
;
4210 gdbarch_core_read_description_p (struct gdbarch
*gdbarch
)
4212 gdb_assert (gdbarch
!= NULL
);
4213 return gdbarch
->core_read_description
!= NULL
;
4216 const struct target_desc
*
4217 gdbarch_core_read_description (struct gdbarch
*gdbarch
, struct target_ops
*target
, bfd
*abfd
)
4219 gdb_assert (gdbarch
!= NULL
);
4220 gdb_assert (gdbarch
->core_read_description
!= NULL
);
4221 if (gdbarch_debug
>= 2)
4222 gdb_printf (gdb_stdlog
, "gdbarch_core_read_description called\n");
4223 return gdbarch
->core_read_description (gdbarch
, target
, abfd
);
4227 set_gdbarch_core_read_description (struct gdbarch
*gdbarch
,
4228 gdbarch_core_read_description_ftype core_read_description
)
4230 gdbarch
->core_read_description
= core_read_description
;
4234 gdbarch_sofun_address_maybe_missing (struct gdbarch
*gdbarch
)
4236 gdb_assert (gdbarch
!= NULL
);
4237 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */
4238 if (gdbarch_debug
>= 2)
4239 gdb_printf (gdb_stdlog
, "gdbarch_sofun_address_maybe_missing called\n");
4240 return gdbarch
->sofun_address_maybe_missing
;
4244 set_gdbarch_sofun_address_maybe_missing (struct gdbarch
*gdbarch
,
4245 int sofun_address_maybe_missing
)
4247 gdbarch
->sofun_address_maybe_missing
= sofun_address_maybe_missing
;
4251 gdbarch_process_record_p (struct gdbarch
*gdbarch
)
4253 gdb_assert (gdbarch
!= NULL
);
4254 return gdbarch
->process_record
!= NULL
;
4258 gdbarch_process_record (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR addr
)
4260 gdb_assert (gdbarch
!= NULL
);
4261 gdb_assert (gdbarch
->process_record
!= NULL
);
4262 if (gdbarch_debug
>= 2)
4263 gdb_printf (gdb_stdlog
, "gdbarch_process_record called\n");
4264 return gdbarch
->process_record (gdbarch
, regcache
, addr
);
4268 set_gdbarch_process_record (struct gdbarch
*gdbarch
,
4269 gdbarch_process_record_ftype process_record
)
4271 gdbarch
->process_record
= process_record
;
4275 gdbarch_process_record_signal_p (struct gdbarch
*gdbarch
)
4277 gdb_assert (gdbarch
!= NULL
);
4278 return gdbarch
->process_record_signal
!= NULL
;
4282 gdbarch_process_record_signal (struct gdbarch
*gdbarch
, struct regcache
*regcache
, enum gdb_signal signal
)
4284 gdb_assert (gdbarch
!= NULL
);
4285 gdb_assert (gdbarch
->process_record_signal
!= NULL
);
4286 if (gdbarch_debug
>= 2)
4287 gdb_printf (gdb_stdlog
, "gdbarch_process_record_signal called\n");
4288 return gdbarch
->process_record_signal (gdbarch
, regcache
, signal
);
4292 set_gdbarch_process_record_signal (struct gdbarch
*gdbarch
,
4293 gdbarch_process_record_signal_ftype process_record_signal
)
4295 gdbarch
->process_record_signal
= process_record_signal
;
4299 gdbarch_gdb_signal_from_target_p (struct gdbarch
*gdbarch
)
4301 gdb_assert (gdbarch
!= NULL
);
4302 return gdbarch
->gdb_signal_from_target
!= NULL
;
4306 gdbarch_gdb_signal_from_target (struct gdbarch
*gdbarch
, int signo
)
4308 gdb_assert (gdbarch
!= NULL
);
4309 gdb_assert (gdbarch
->gdb_signal_from_target
!= NULL
);
4310 if (gdbarch_debug
>= 2)
4311 gdb_printf (gdb_stdlog
, "gdbarch_gdb_signal_from_target called\n");
4312 return gdbarch
->gdb_signal_from_target (gdbarch
, signo
);
4316 set_gdbarch_gdb_signal_from_target (struct gdbarch
*gdbarch
,
4317 gdbarch_gdb_signal_from_target_ftype gdb_signal_from_target
)
4319 gdbarch
->gdb_signal_from_target
= gdb_signal_from_target
;
4323 gdbarch_gdb_signal_to_target_p (struct gdbarch
*gdbarch
)
4325 gdb_assert (gdbarch
!= NULL
);
4326 return gdbarch
->gdb_signal_to_target
!= NULL
;
4330 gdbarch_gdb_signal_to_target (struct gdbarch
*gdbarch
, enum gdb_signal signal
)
4332 gdb_assert (gdbarch
!= NULL
);
4333 gdb_assert (gdbarch
->gdb_signal_to_target
!= NULL
);
4334 if (gdbarch_debug
>= 2)
4335 gdb_printf (gdb_stdlog
, "gdbarch_gdb_signal_to_target called\n");
4336 return gdbarch
->gdb_signal_to_target (gdbarch
, signal
);
4340 set_gdbarch_gdb_signal_to_target (struct gdbarch
*gdbarch
,
4341 gdbarch_gdb_signal_to_target_ftype gdb_signal_to_target
)
4343 gdbarch
->gdb_signal_to_target
= gdb_signal_to_target
;
4347 gdbarch_get_siginfo_type_p (struct gdbarch
*gdbarch
)
4349 gdb_assert (gdbarch
!= NULL
);
4350 return gdbarch
->get_siginfo_type
!= NULL
;
4354 gdbarch_get_siginfo_type (struct gdbarch
*gdbarch
)
4356 gdb_assert (gdbarch
!= NULL
);
4357 gdb_assert (gdbarch
->get_siginfo_type
!= NULL
);
4358 if (gdbarch_debug
>= 2)
4359 gdb_printf (gdb_stdlog
, "gdbarch_get_siginfo_type called\n");
4360 return gdbarch
->get_siginfo_type (gdbarch
);
4364 set_gdbarch_get_siginfo_type (struct gdbarch
*gdbarch
,
4365 gdbarch_get_siginfo_type_ftype get_siginfo_type
)
4367 gdbarch
->get_siginfo_type
= get_siginfo_type
;
4371 gdbarch_record_special_symbol_p (struct gdbarch
*gdbarch
)
4373 gdb_assert (gdbarch
!= NULL
);
4374 return gdbarch
->record_special_symbol
!= NULL
;
4378 gdbarch_record_special_symbol (struct gdbarch
*gdbarch
, struct objfile
*objfile
, asymbol
*sym
)
4380 gdb_assert (gdbarch
!= NULL
);
4381 gdb_assert (gdbarch
->record_special_symbol
!= NULL
);
4382 if (gdbarch_debug
>= 2)
4383 gdb_printf (gdb_stdlog
, "gdbarch_record_special_symbol called\n");
4384 gdbarch
->record_special_symbol (gdbarch
, objfile
, sym
);
4388 set_gdbarch_record_special_symbol (struct gdbarch
*gdbarch
,
4389 gdbarch_record_special_symbol_ftype record_special_symbol
)
4391 gdbarch
->record_special_symbol
= record_special_symbol
;
4395 gdbarch_get_syscall_number_p (struct gdbarch
*gdbarch
)
4397 gdb_assert (gdbarch
!= NULL
);
4398 return gdbarch
->get_syscall_number
!= NULL
;
4402 gdbarch_get_syscall_number (struct gdbarch
*gdbarch
, thread_info
*thread
)
4404 gdb_assert (gdbarch
!= NULL
);
4405 gdb_assert (gdbarch
->get_syscall_number
!= NULL
);
4406 if (gdbarch_debug
>= 2)
4407 gdb_printf (gdb_stdlog
, "gdbarch_get_syscall_number called\n");
4408 return gdbarch
->get_syscall_number (gdbarch
, thread
);
4412 set_gdbarch_get_syscall_number (struct gdbarch
*gdbarch
,
4413 gdbarch_get_syscall_number_ftype get_syscall_number
)
4415 gdbarch
->get_syscall_number
= get_syscall_number
;
4419 gdbarch_xml_syscall_file (struct gdbarch
*gdbarch
)
4421 gdb_assert (gdbarch
!= NULL
);
4422 /* Skip verify of xml_syscall_file, invalid_p == 0 */
4423 if (gdbarch_debug
>= 2)
4424 gdb_printf (gdb_stdlog
, "gdbarch_xml_syscall_file called\n");
4425 return gdbarch
->xml_syscall_file
;
4429 set_gdbarch_xml_syscall_file (struct gdbarch
*gdbarch
,
4430 const char * xml_syscall_file
)
4432 gdbarch
->xml_syscall_file
= xml_syscall_file
;
4435 struct syscalls_info
*
4436 gdbarch_syscalls_info (struct gdbarch
*gdbarch
)
4438 gdb_assert (gdbarch
!= NULL
);
4439 /* Skip verify of syscalls_info, invalid_p == 0 */
4440 if (gdbarch_debug
>= 2)
4441 gdb_printf (gdb_stdlog
, "gdbarch_syscalls_info called\n");
4442 return gdbarch
->syscalls_info
;
4446 set_gdbarch_syscalls_info (struct gdbarch
*gdbarch
,
4447 struct syscalls_info
* syscalls_info
)
4449 gdbarch
->syscalls_info
= syscalls_info
;
4453 gdbarch_stap_integer_prefixes (struct gdbarch
*gdbarch
)
4455 gdb_assert (gdbarch
!= NULL
);
4456 /* Skip verify of stap_integer_prefixes, invalid_p == 0 */
4457 if (gdbarch_debug
>= 2)
4458 gdb_printf (gdb_stdlog
, "gdbarch_stap_integer_prefixes called\n");
4459 return gdbarch
->stap_integer_prefixes
;
4463 set_gdbarch_stap_integer_prefixes (struct gdbarch
*gdbarch
,
4464 const char *const * stap_integer_prefixes
)
4466 gdbarch
->stap_integer_prefixes
= stap_integer_prefixes
;
4470 gdbarch_stap_integer_suffixes (struct gdbarch
*gdbarch
)
4472 gdb_assert (gdbarch
!= NULL
);
4473 /* Skip verify of stap_integer_suffixes, invalid_p == 0 */
4474 if (gdbarch_debug
>= 2)
4475 gdb_printf (gdb_stdlog
, "gdbarch_stap_integer_suffixes called\n");
4476 return gdbarch
->stap_integer_suffixes
;
4480 set_gdbarch_stap_integer_suffixes (struct gdbarch
*gdbarch
,
4481 const char *const * stap_integer_suffixes
)
4483 gdbarch
->stap_integer_suffixes
= stap_integer_suffixes
;
4487 gdbarch_stap_register_prefixes (struct gdbarch
*gdbarch
)
4489 gdb_assert (gdbarch
!= NULL
);
4490 /* Skip verify of stap_register_prefixes, invalid_p == 0 */
4491 if (gdbarch_debug
>= 2)
4492 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_prefixes called\n");
4493 return gdbarch
->stap_register_prefixes
;
4497 set_gdbarch_stap_register_prefixes (struct gdbarch
*gdbarch
,
4498 const char *const * stap_register_prefixes
)
4500 gdbarch
->stap_register_prefixes
= stap_register_prefixes
;
4504 gdbarch_stap_register_suffixes (struct gdbarch
*gdbarch
)
4506 gdb_assert (gdbarch
!= NULL
);
4507 /* Skip verify of stap_register_suffixes, invalid_p == 0 */
4508 if (gdbarch_debug
>= 2)
4509 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_suffixes called\n");
4510 return gdbarch
->stap_register_suffixes
;
4514 set_gdbarch_stap_register_suffixes (struct gdbarch
*gdbarch
,
4515 const char *const * stap_register_suffixes
)
4517 gdbarch
->stap_register_suffixes
= stap_register_suffixes
;
4521 gdbarch_stap_register_indirection_prefixes (struct gdbarch
*gdbarch
)
4523 gdb_assert (gdbarch
!= NULL
);
4524 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0 */
4525 if (gdbarch_debug
>= 2)
4526 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_indirection_prefixes called\n");
4527 return gdbarch
->stap_register_indirection_prefixes
;
4531 set_gdbarch_stap_register_indirection_prefixes (struct gdbarch
*gdbarch
,
4532 const char *const * stap_register_indirection_prefixes
)
4534 gdbarch
->stap_register_indirection_prefixes
= stap_register_indirection_prefixes
;
4538 gdbarch_stap_register_indirection_suffixes (struct gdbarch
*gdbarch
)
4540 gdb_assert (gdbarch
!= NULL
);
4541 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0 */
4542 if (gdbarch_debug
>= 2)
4543 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_indirection_suffixes called\n");
4544 return gdbarch
->stap_register_indirection_suffixes
;
4548 set_gdbarch_stap_register_indirection_suffixes (struct gdbarch
*gdbarch
,
4549 const char *const * stap_register_indirection_suffixes
)
4551 gdbarch
->stap_register_indirection_suffixes
= stap_register_indirection_suffixes
;
4555 gdbarch_stap_gdb_register_prefix (struct gdbarch
*gdbarch
)
4557 gdb_assert (gdbarch
!= NULL
);
4558 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0 */
4559 if (gdbarch_debug
>= 2)
4560 gdb_printf (gdb_stdlog
, "gdbarch_stap_gdb_register_prefix called\n");
4561 return gdbarch
->stap_gdb_register_prefix
;
4565 set_gdbarch_stap_gdb_register_prefix (struct gdbarch
*gdbarch
,
4566 const char * stap_gdb_register_prefix
)
4568 gdbarch
->stap_gdb_register_prefix
= stap_gdb_register_prefix
;
4572 gdbarch_stap_gdb_register_suffix (struct gdbarch
*gdbarch
)
4574 gdb_assert (gdbarch
!= NULL
);
4575 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0 */
4576 if (gdbarch_debug
>= 2)
4577 gdb_printf (gdb_stdlog
, "gdbarch_stap_gdb_register_suffix called\n");
4578 return gdbarch
->stap_gdb_register_suffix
;
4582 set_gdbarch_stap_gdb_register_suffix (struct gdbarch
*gdbarch
,
4583 const char * stap_gdb_register_suffix
)
4585 gdbarch
->stap_gdb_register_suffix
= stap_gdb_register_suffix
;
4589 gdbarch_stap_is_single_operand_p (struct gdbarch
*gdbarch
)
4591 gdb_assert (gdbarch
!= NULL
);
4592 return gdbarch
->stap_is_single_operand
!= NULL
;
4596 gdbarch_stap_is_single_operand (struct gdbarch
*gdbarch
, const char *s
)
4598 gdb_assert (gdbarch
!= NULL
);
4599 gdb_assert (gdbarch
->stap_is_single_operand
!= NULL
);
4600 if (gdbarch_debug
>= 2)
4601 gdb_printf (gdb_stdlog
, "gdbarch_stap_is_single_operand called\n");
4602 return gdbarch
->stap_is_single_operand (gdbarch
, s
);
4606 set_gdbarch_stap_is_single_operand (struct gdbarch
*gdbarch
,
4607 gdbarch_stap_is_single_operand_ftype stap_is_single_operand
)
4609 gdbarch
->stap_is_single_operand
= stap_is_single_operand
;
4613 gdbarch_stap_parse_special_token_p (struct gdbarch
*gdbarch
)
4615 gdb_assert (gdbarch
!= NULL
);
4616 return gdbarch
->stap_parse_special_token
!= NULL
;
4620 gdbarch_stap_parse_special_token (struct gdbarch
*gdbarch
, struct stap_parse_info
*p
)
4622 gdb_assert (gdbarch
!= NULL
);
4623 gdb_assert (gdbarch
->stap_parse_special_token
!= NULL
);
4624 if (gdbarch_debug
>= 2)
4625 gdb_printf (gdb_stdlog
, "gdbarch_stap_parse_special_token called\n");
4626 return gdbarch
->stap_parse_special_token (gdbarch
, p
);
4630 set_gdbarch_stap_parse_special_token (struct gdbarch
*gdbarch
,
4631 gdbarch_stap_parse_special_token_ftype stap_parse_special_token
)
4633 gdbarch
->stap_parse_special_token
= stap_parse_special_token
;
4637 gdbarch_stap_adjust_register_p (struct gdbarch
*gdbarch
)
4639 gdb_assert (gdbarch
!= NULL
);
4640 return gdbarch
->stap_adjust_register
!= NULL
;
4644 gdbarch_stap_adjust_register (struct gdbarch
*gdbarch
, struct stap_parse_info
*p
, const std::string
®name
, int regnum
)
4646 gdb_assert (gdbarch
!= NULL
);
4647 gdb_assert (gdbarch
->stap_adjust_register
!= NULL
);
4648 if (gdbarch_debug
>= 2)
4649 gdb_printf (gdb_stdlog
, "gdbarch_stap_adjust_register called\n");
4650 return gdbarch
->stap_adjust_register (gdbarch
, p
, regname
, regnum
);
4654 set_gdbarch_stap_adjust_register (struct gdbarch
*gdbarch
,
4655 gdbarch_stap_adjust_register_ftype stap_adjust_register
)
4657 gdbarch
->stap_adjust_register
= stap_adjust_register
;
4661 gdbarch_dtrace_parse_probe_argument_p (struct gdbarch
*gdbarch
)
4663 gdb_assert (gdbarch
!= NULL
);
4664 return gdbarch
->dtrace_parse_probe_argument
!= NULL
;
4668 gdbarch_dtrace_parse_probe_argument (struct gdbarch
*gdbarch
, int narg
)
4670 gdb_assert (gdbarch
!= NULL
);
4671 gdb_assert (gdbarch
->dtrace_parse_probe_argument
!= NULL
);
4672 if (gdbarch_debug
>= 2)
4673 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_parse_probe_argument called\n");
4674 return gdbarch
->dtrace_parse_probe_argument (gdbarch
, narg
);
4678 set_gdbarch_dtrace_parse_probe_argument (struct gdbarch
*gdbarch
,
4679 gdbarch_dtrace_parse_probe_argument_ftype dtrace_parse_probe_argument
)
4681 gdbarch
->dtrace_parse_probe_argument
= dtrace_parse_probe_argument
;
4685 gdbarch_dtrace_probe_is_enabled_p (struct gdbarch
*gdbarch
)
4687 gdb_assert (gdbarch
!= NULL
);
4688 return gdbarch
->dtrace_probe_is_enabled
!= NULL
;
4692 gdbarch_dtrace_probe_is_enabled (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4694 gdb_assert (gdbarch
!= NULL
);
4695 gdb_assert (gdbarch
->dtrace_probe_is_enabled
!= NULL
);
4696 if (gdbarch_debug
>= 2)
4697 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_probe_is_enabled called\n");
4698 return gdbarch
->dtrace_probe_is_enabled (gdbarch
, addr
);
4702 set_gdbarch_dtrace_probe_is_enabled (struct gdbarch
*gdbarch
,
4703 gdbarch_dtrace_probe_is_enabled_ftype dtrace_probe_is_enabled
)
4705 gdbarch
->dtrace_probe_is_enabled
= dtrace_probe_is_enabled
;
4709 gdbarch_dtrace_enable_probe_p (struct gdbarch
*gdbarch
)
4711 gdb_assert (gdbarch
!= NULL
);
4712 return gdbarch
->dtrace_enable_probe
!= NULL
;
4716 gdbarch_dtrace_enable_probe (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4718 gdb_assert (gdbarch
!= NULL
);
4719 gdb_assert (gdbarch
->dtrace_enable_probe
!= NULL
);
4720 if (gdbarch_debug
>= 2)
4721 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_enable_probe called\n");
4722 gdbarch
->dtrace_enable_probe (gdbarch
, addr
);
4726 set_gdbarch_dtrace_enable_probe (struct gdbarch
*gdbarch
,
4727 gdbarch_dtrace_enable_probe_ftype dtrace_enable_probe
)
4729 gdbarch
->dtrace_enable_probe
= dtrace_enable_probe
;
4733 gdbarch_dtrace_disable_probe_p (struct gdbarch
*gdbarch
)
4735 gdb_assert (gdbarch
!= NULL
);
4736 return gdbarch
->dtrace_disable_probe
!= NULL
;
4740 gdbarch_dtrace_disable_probe (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4742 gdb_assert (gdbarch
!= NULL
);
4743 gdb_assert (gdbarch
->dtrace_disable_probe
!= NULL
);
4744 if (gdbarch_debug
>= 2)
4745 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_disable_probe called\n");
4746 gdbarch
->dtrace_disable_probe (gdbarch
, addr
);
4750 set_gdbarch_dtrace_disable_probe (struct gdbarch
*gdbarch
,
4751 gdbarch_dtrace_disable_probe_ftype dtrace_disable_probe
)
4753 gdbarch
->dtrace_disable_probe
= dtrace_disable_probe
;
4757 gdbarch_has_global_solist (struct gdbarch
*gdbarch
)
4759 gdb_assert (gdbarch
!= NULL
);
4760 /* Skip verify of has_global_solist, invalid_p == 0 */
4761 if (gdbarch_debug
>= 2)
4762 gdb_printf (gdb_stdlog
, "gdbarch_has_global_solist called\n");
4763 return gdbarch
->has_global_solist
;
4767 set_gdbarch_has_global_solist (struct gdbarch
*gdbarch
,
4768 int has_global_solist
)
4770 gdbarch
->has_global_solist
= has_global_solist
;
4774 gdbarch_has_global_breakpoints (struct gdbarch
*gdbarch
)
4776 gdb_assert (gdbarch
!= NULL
);
4777 /* Skip verify of has_global_breakpoints, invalid_p == 0 */
4778 if (gdbarch_debug
>= 2)
4779 gdb_printf (gdb_stdlog
, "gdbarch_has_global_breakpoints called\n");
4780 return gdbarch
->has_global_breakpoints
;
4784 set_gdbarch_has_global_breakpoints (struct gdbarch
*gdbarch
,
4785 int has_global_breakpoints
)
4787 gdbarch
->has_global_breakpoints
= has_global_breakpoints
;
4791 gdbarch_has_shared_address_space (struct gdbarch
*gdbarch
)
4793 gdb_assert (gdbarch
!= NULL
);
4794 gdb_assert (gdbarch
->has_shared_address_space
!= NULL
);
4795 if (gdbarch_debug
>= 2)
4796 gdb_printf (gdb_stdlog
, "gdbarch_has_shared_address_space called\n");
4797 return gdbarch
->has_shared_address_space (gdbarch
);
4801 set_gdbarch_has_shared_address_space (struct gdbarch
*gdbarch
,
4802 gdbarch_has_shared_address_space_ftype has_shared_address_space
)
4804 gdbarch
->has_shared_address_space
= has_shared_address_space
;
4808 gdbarch_fast_tracepoint_valid_at (struct gdbarch
*gdbarch
, CORE_ADDR addr
, std::string
*msg
)
4810 gdb_assert (gdbarch
!= NULL
);
4811 gdb_assert (gdbarch
->fast_tracepoint_valid_at
!= NULL
);
4812 if (gdbarch_debug
>= 2)
4813 gdb_printf (gdb_stdlog
, "gdbarch_fast_tracepoint_valid_at called\n");
4814 return gdbarch
->fast_tracepoint_valid_at (gdbarch
, addr
, msg
);
4818 set_gdbarch_fast_tracepoint_valid_at (struct gdbarch
*gdbarch
,
4819 gdbarch_fast_tracepoint_valid_at_ftype fast_tracepoint_valid_at
)
4821 gdbarch
->fast_tracepoint_valid_at
= fast_tracepoint_valid_at
;
4825 gdbarch_guess_tracepoint_registers (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR addr
)
4827 gdb_assert (gdbarch
!= NULL
);
4828 gdb_assert (gdbarch
->guess_tracepoint_registers
!= NULL
);
4829 if (gdbarch_debug
>= 2)
4830 gdb_printf (gdb_stdlog
, "gdbarch_guess_tracepoint_registers called\n");
4831 gdbarch
->guess_tracepoint_registers (gdbarch
, regcache
, addr
);
4835 set_gdbarch_guess_tracepoint_registers (struct gdbarch
*gdbarch
,
4836 gdbarch_guess_tracepoint_registers_ftype guess_tracepoint_registers
)
4838 gdbarch
->guess_tracepoint_registers
= guess_tracepoint_registers
;
4842 gdbarch_auto_charset (struct gdbarch
*gdbarch
)
4844 gdb_assert (gdbarch
!= NULL
);
4845 gdb_assert (gdbarch
->auto_charset
!= NULL
);
4846 if (gdbarch_debug
>= 2)
4847 gdb_printf (gdb_stdlog
, "gdbarch_auto_charset called\n");
4848 return gdbarch
->auto_charset ();
4852 set_gdbarch_auto_charset (struct gdbarch
*gdbarch
,
4853 gdbarch_auto_charset_ftype auto_charset
)
4855 gdbarch
->auto_charset
= auto_charset
;
4859 gdbarch_auto_wide_charset (struct gdbarch
*gdbarch
)
4861 gdb_assert (gdbarch
!= NULL
);
4862 gdb_assert (gdbarch
->auto_wide_charset
!= NULL
);
4863 if (gdbarch_debug
>= 2)
4864 gdb_printf (gdb_stdlog
, "gdbarch_auto_wide_charset called\n");
4865 return gdbarch
->auto_wide_charset ();
4869 set_gdbarch_auto_wide_charset (struct gdbarch
*gdbarch
,
4870 gdbarch_auto_wide_charset_ftype auto_wide_charset
)
4872 gdbarch
->auto_wide_charset
= auto_wide_charset
;
4876 gdbarch_solib_symbols_extension (struct gdbarch
*gdbarch
)
4878 gdb_assert (gdbarch
!= NULL
);
4879 /* Skip verify of solib_symbols_extension, invalid_p == 0 */
4880 if (gdbarch_debug
>= 2)
4881 gdb_printf (gdb_stdlog
, "gdbarch_solib_symbols_extension called\n");
4882 return gdbarch
->solib_symbols_extension
;
4886 set_gdbarch_solib_symbols_extension (struct gdbarch
*gdbarch
,
4887 const char * solib_symbols_extension
)
4889 gdbarch
->solib_symbols_extension
= solib_symbols_extension
;
4893 gdbarch_has_dos_based_file_system (struct gdbarch
*gdbarch
)
4895 gdb_assert (gdbarch
!= NULL
);
4896 /* Skip verify of has_dos_based_file_system, invalid_p == 0 */
4897 if (gdbarch_debug
>= 2)
4898 gdb_printf (gdb_stdlog
, "gdbarch_has_dos_based_file_system called\n");
4899 return gdbarch
->has_dos_based_file_system
;
4903 set_gdbarch_has_dos_based_file_system (struct gdbarch
*gdbarch
,
4904 int has_dos_based_file_system
)
4906 gdbarch
->has_dos_based_file_system
= has_dos_based_file_system
;
4910 gdbarch_gen_return_address (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, struct axs_value
*value
, CORE_ADDR scope
)
4912 gdb_assert (gdbarch
!= NULL
);
4913 gdb_assert (gdbarch
->gen_return_address
!= NULL
);
4914 if (gdbarch_debug
>= 2)
4915 gdb_printf (gdb_stdlog
, "gdbarch_gen_return_address called\n");
4916 gdbarch
->gen_return_address (gdbarch
, ax
, value
, scope
);
4920 set_gdbarch_gen_return_address (struct gdbarch
*gdbarch
,
4921 gdbarch_gen_return_address_ftype gen_return_address
)
4923 gdbarch
->gen_return_address
= gen_return_address
;
4927 gdbarch_info_proc_p (struct gdbarch
*gdbarch
)
4929 gdb_assert (gdbarch
!= NULL
);
4930 return gdbarch
->info_proc
!= NULL
;
4934 gdbarch_info_proc (struct gdbarch
*gdbarch
, const char *args
, enum info_proc_what what
)
4936 gdb_assert (gdbarch
!= NULL
);
4937 gdb_assert (gdbarch
->info_proc
!= NULL
);
4938 if (gdbarch_debug
>= 2)
4939 gdb_printf (gdb_stdlog
, "gdbarch_info_proc called\n");
4940 gdbarch
->info_proc (gdbarch
, args
, what
);
4944 set_gdbarch_info_proc (struct gdbarch
*gdbarch
,
4945 gdbarch_info_proc_ftype info_proc
)
4947 gdbarch
->info_proc
= info_proc
;
4951 gdbarch_core_info_proc_p (struct gdbarch
*gdbarch
)
4953 gdb_assert (gdbarch
!= NULL
);
4954 return gdbarch
->core_info_proc
!= NULL
;
4958 gdbarch_core_info_proc (struct gdbarch
*gdbarch
, const char *args
, enum info_proc_what what
)
4960 gdb_assert (gdbarch
!= NULL
);
4961 gdb_assert (gdbarch
->core_info_proc
!= NULL
);
4962 if (gdbarch_debug
>= 2)
4963 gdb_printf (gdb_stdlog
, "gdbarch_core_info_proc called\n");
4964 gdbarch
->core_info_proc (gdbarch
, args
, what
);
4968 set_gdbarch_core_info_proc (struct gdbarch
*gdbarch
,
4969 gdbarch_core_info_proc_ftype core_info_proc
)
4971 gdbarch
->core_info_proc
= core_info_proc
;
4975 gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch
*gdbarch
, iterate_over_objfiles_in_search_order_cb_ftype cb
, struct objfile
*current_objfile
)
4977 gdb_assert (gdbarch
!= NULL
);
4978 gdb_assert (gdbarch
->iterate_over_objfiles_in_search_order
!= NULL
);
4979 if (gdbarch_debug
>= 2)
4980 gdb_printf (gdb_stdlog
, "gdbarch_iterate_over_objfiles_in_search_order called\n");
4981 gdbarch
->iterate_over_objfiles_in_search_order (gdbarch
, cb
, current_objfile
);
4985 set_gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch
*gdbarch
,
4986 gdbarch_iterate_over_objfiles_in_search_order_ftype iterate_over_objfiles_in_search_order
)
4988 gdbarch
->iterate_over_objfiles_in_search_order
= iterate_over_objfiles_in_search_order
;
4991 struct ravenscar_arch_ops
*
4992 gdbarch_ravenscar_ops (struct gdbarch
*gdbarch
)
4994 gdb_assert (gdbarch
!= NULL
);
4995 /* Skip verify of ravenscar_ops, invalid_p == 0 */
4996 if (gdbarch_debug
>= 2)
4997 gdb_printf (gdb_stdlog
, "gdbarch_ravenscar_ops called\n");
4998 return gdbarch
->ravenscar_ops
;
5002 set_gdbarch_ravenscar_ops (struct gdbarch
*gdbarch
,
5003 struct ravenscar_arch_ops
* ravenscar_ops
)
5005 gdbarch
->ravenscar_ops
= ravenscar_ops
;
5009 gdbarch_insn_is_call (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5011 gdb_assert (gdbarch
!= NULL
);
5012 gdb_assert (gdbarch
->insn_is_call
!= NULL
);
5013 if (gdbarch_debug
>= 2)
5014 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_call called\n");
5015 return gdbarch
->insn_is_call (gdbarch
, addr
);
5019 set_gdbarch_insn_is_call (struct gdbarch
*gdbarch
,
5020 gdbarch_insn_is_call_ftype insn_is_call
)
5022 gdbarch
->insn_is_call
= insn_is_call
;
5026 gdbarch_insn_is_ret (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5028 gdb_assert (gdbarch
!= NULL
);
5029 gdb_assert (gdbarch
->insn_is_ret
!= NULL
);
5030 if (gdbarch_debug
>= 2)
5031 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_ret called\n");
5032 return gdbarch
->insn_is_ret (gdbarch
, addr
);
5036 set_gdbarch_insn_is_ret (struct gdbarch
*gdbarch
,
5037 gdbarch_insn_is_ret_ftype insn_is_ret
)
5039 gdbarch
->insn_is_ret
= insn_is_ret
;
5043 gdbarch_insn_is_jump (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5045 gdb_assert (gdbarch
!= NULL
);
5046 gdb_assert (gdbarch
->insn_is_jump
!= NULL
);
5047 if (gdbarch_debug
>= 2)
5048 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_jump called\n");
5049 return gdbarch
->insn_is_jump (gdbarch
, addr
);
5053 set_gdbarch_insn_is_jump (struct gdbarch
*gdbarch
,
5054 gdbarch_insn_is_jump_ftype insn_is_jump
)
5056 gdbarch
->insn_is_jump
= insn_is_jump
;
5060 gdbarch_program_breakpoint_here_p (struct gdbarch
*gdbarch
, CORE_ADDR address
)
5062 gdb_assert (gdbarch
!= NULL
);
5063 gdb_assert (gdbarch
->program_breakpoint_here_p
!= NULL
);
5064 if (gdbarch_debug
>= 2)
5065 gdb_printf (gdb_stdlog
, "gdbarch_program_breakpoint_here_p called\n");
5066 return gdbarch
->program_breakpoint_here_p (gdbarch
, address
);
5070 set_gdbarch_program_breakpoint_here_p (struct gdbarch
*gdbarch
,
5071 gdbarch_program_breakpoint_here_p_ftype program_breakpoint_here_p
)
5073 gdbarch
->program_breakpoint_here_p
= program_breakpoint_here_p
;
5077 gdbarch_auxv_parse_p (struct gdbarch
*gdbarch
)
5079 gdb_assert (gdbarch
!= NULL
);
5080 return gdbarch
->auxv_parse
!= NULL
;
5084 gdbarch_auxv_parse (struct gdbarch
*gdbarch
, const gdb_byte
**readptr
, const gdb_byte
*endptr
, CORE_ADDR
*typep
, CORE_ADDR
*valp
)
5086 gdb_assert (gdbarch
!= NULL
);
5087 gdb_assert (gdbarch
->auxv_parse
!= NULL
);
5088 if (gdbarch_debug
>= 2)
5089 gdb_printf (gdb_stdlog
, "gdbarch_auxv_parse called\n");
5090 return gdbarch
->auxv_parse (gdbarch
, readptr
, endptr
, typep
, valp
);
5094 set_gdbarch_auxv_parse (struct gdbarch
*gdbarch
,
5095 gdbarch_auxv_parse_ftype auxv_parse
)
5097 gdbarch
->auxv_parse
= auxv_parse
;
5101 gdbarch_print_auxv_entry (struct gdbarch
*gdbarch
, struct ui_file
*file
, CORE_ADDR type
, CORE_ADDR val
)
5103 gdb_assert (gdbarch
!= NULL
);
5104 gdb_assert (gdbarch
->print_auxv_entry
!= NULL
);
5105 if (gdbarch_debug
>= 2)
5106 gdb_printf (gdb_stdlog
, "gdbarch_print_auxv_entry called\n");
5107 gdbarch
->print_auxv_entry (gdbarch
, file
, type
, val
);
5111 set_gdbarch_print_auxv_entry (struct gdbarch
*gdbarch
,
5112 gdbarch_print_auxv_entry_ftype print_auxv_entry
)
5114 gdbarch
->print_auxv_entry
= print_auxv_entry
;
5118 gdbarch_vsyscall_range (struct gdbarch
*gdbarch
, struct mem_range
*range
)
5120 gdb_assert (gdbarch
!= NULL
);
5121 gdb_assert (gdbarch
->vsyscall_range
!= NULL
);
5122 if (gdbarch_debug
>= 2)
5123 gdb_printf (gdb_stdlog
, "gdbarch_vsyscall_range called\n");
5124 return gdbarch
->vsyscall_range (gdbarch
, range
);
5128 set_gdbarch_vsyscall_range (struct gdbarch
*gdbarch
,
5129 gdbarch_vsyscall_range_ftype vsyscall_range
)
5131 gdbarch
->vsyscall_range
= vsyscall_range
;
5135 gdbarch_infcall_mmap (struct gdbarch
*gdbarch
, CORE_ADDR size
, unsigned prot
)
5137 gdb_assert (gdbarch
!= NULL
);
5138 gdb_assert (gdbarch
->infcall_mmap
!= NULL
);
5139 if (gdbarch_debug
>= 2)
5140 gdb_printf (gdb_stdlog
, "gdbarch_infcall_mmap called\n");
5141 return gdbarch
->infcall_mmap (size
, prot
);
5145 set_gdbarch_infcall_mmap (struct gdbarch
*gdbarch
,
5146 gdbarch_infcall_mmap_ftype infcall_mmap
)
5148 gdbarch
->infcall_mmap
= infcall_mmap
;
5152 gdbarch_infcall_munmap (struct gdbarch
*gdbarch
, CORE_ADDR addr
, CORE_ADDR size
)
5154 gdb_assert (gdbarch
!= NULL
);
5155 gdb_assert (gdbarch
->infcall_munmap
!= NULL
);
5156 if (gdbarch_debug
>= 2)
5157 gdb_printf (gdb_stdlog
, "gdbarch_infcall_munmap called\n");
5158 gdbarch
->infcall_munmap (addr
, size
);
5162 set_gdbarch_infcall_munmap (struct gdbarch
*gdbarch
,
5163 gdbarch_infcall_munmap_ftype infcall_munmap
)
5165 gdbarch
->infcall_munmap
= infcall_munmap
;
5169 gdbarch_gcc_target_options (struct gdbarch
*gdbarch
)
5171 gdb_assert (gdbarch
!= NULL
);
5172 gdb_assert (gdbarch
->gcc_target_options
!= NULL
);
5173 if (gdbarch_debug
>= 2)
5174 gdb_printf (gdb_stdlog
, "gdbarch_gcc_target_options called\n");
5175 return gdbarch
->gcc_target_options (gdbarch
);
5179 set_gdbarch_gcc_target_options (struct gdbarch
*gdbarch
,
5180 gdbarch_gcc_target_options_ftype gcc_target_options
)
5182 gdbarch
->gcc_target_options
= gcc_target_options
;
5186 gdbarch_gnu_triplet_regexp (struct gdbarch
*gdbarch
)
5188 gdb_assert (gdbarch
!= NULL
);
5189 gdb_assert (gdbarch
->gnu_triplet_regexp
!= NULL
);
5190 if (gdbarch_debug
>= 2)
5191 gdb_printf (gdb_stdlog
, "gdbarch_gnu_triplet_regexp called\n");
5192 return gdbarch
->gnu_triplet_regexp (gdbarch
);
5196 set_gdbarch_gnu_triplet_regexp (struct gdbarch
*gdbarch
,
5197 gdbarch_gnu_triplet_regexp_ftype gnu_triplet_regexp
)
5199 gdbarch
->gnu_triplet_regexp
= gnu_triplet_regexp
;
5203 gdbarch_addressable_memory_unit_size (struct gdbarch
*gdbarch
)
5205 gdb_assert (gdbarch
!= NULL
);
5206 gdb_assert (gdbarch
->addressable_memory_unit_size
!= NULL
);
5207 if (gdbarch_debug
>= 2)
5208 gdb_printf (gdb_stdlog
, "gdbarch_addressable_memory_unit_size called\n");
5209 return gdbarch
->addressable_memory_unit_size (gdbarch
);
5213 set_gdbarch_addressable_memory_unit_size (struct gdbarch
*gdbarch
,
5214 gdbarch_addressable_memory_unit_size_ftype addressable_memory_unit_size
)
5216 gdbarch
->addressable_memory_unit_size
= addressable_memory_unit_size
;
5220 gdbarch_disassembler_options_implicit (struct gdbarch
*gdbarch
)
5222 gdb_assert (gdbarch
!= NULL
);
5223 /* Skip verify of disassembler_options_implicit, invalid_p == 0 */
5224 if (gdbarch_debug
>= 2)
5225 gdb_printf (gdb_stdlog
, "gdbarch_disassembler_options_implicit called\n");
5226 return gdbarch
->disassembler_options_implicit
;
5230 set_gdbarch_disassembler_options_implicit (struct gdbarch
*gdbarch
,
5231 const char * disassembler_options_implicit
)
5233 gdbarch
->disassembler_options_implicit
= disassembler_options_implicit
;
5237 gdbarch_disassembler_options (struct gdbarch
*gdbarch
)
5239 gdb_assert (gdbarch
!= NULL
);
5240 /* Skip verify of disassembler_options, invalid_p == 0 */
5241 if (gdbarch_debug
>= 2)
5242 gdb_printf (gdb_stdlog
, "gdbarch_disassembler_options called\n");
5243 return gdbarch
->disassembler_options
;
5247 set_gdbarch_disassembler_options (struct gdbarch
*gdbarch
,
5248 char ** disassembler_options
)
5250 gdbarch
->disassembler_options
= disassembler_options
;
5253 const disasm_options_and_args_t
*
5254 gdbarch_valid_disassembler_options (struct gdbarch
*gdbarch
)
5256 gdb_assert (gdbarch
!= NULL
);
5257 /* Skip verify of valid_disassembler_options, invalid_p == 0 */
5258 if (gdbarch_debug
>= 2)
5259 gdb_printf (gdb_stdlog
, "gdbarch_valid_disassembler_options called\n");
5260 return gdbarch
->valid_disassembler_options
;
5264 set_gdbarch_valid_disassembler_options (struct gdbarch
*gdbarch
,
5265 const disasm_options_and_args_t
* valid_disassembler_options
)
5267 gdbarch
->valid_disassembler_options
= valid_disassembler_options
;
5271 gdbarch_type_align (struct gdbarch
*gdbarch
, struct type
*type
)
5273 gdb_assert (gdbarch
!= NULL
);
5274 gdb_assert (gdbarch
->type_align
!= NULL
);
5275 if (gdbarch_debug
>= 2)
5276 gdb_printf (gdb_stdlog
, "gdbarch_type_align called\n");
5277 return gdbarch
->type_align (gdbarch
, type
);
5281 set_gdbarch_type_align (struct gdbarch
*gdbarch
,
5282 gdbarch_type_align_ftype type_align
)
5284 gdbarch
->type_align
= type_align
;
5288 gdbarch_get_pc_address_flags (struct gdbarch
*gdbarch
, frame_info_ptr frame
, CORE_ADDR pc
)
5290 gdb_assert (gdbarch
!= NULL
);
5291 gdb_assert (gdbarch
->get_pc_address_flags
!= NULL
);
5292 if (gdbarch_debug
>= 2)
5293 gdb_printf (gdb_stdlog
, "gdbarch_get_pc_address_flags called\n");
5294 return gdbarch
->get_pc_address_flags (frame
, pc
);
5298 set_gdbarch_get_pc_address_flags (struct gdbarch
*gdbarch
,
5299 gdbarch_get_pc_address_flags_ftype get_pc_address_flags
)
5301 gdbarch
->get_pc_address_flags
= get_pc_address_flags
;
5305 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
)
5307 gdb_assert (gdbarch
!= NULL
);
5308 gdb_assert (gdbarch
->read_core_file_mappings
!= NULL
);
5309 if (gdbarch_debug
>= 2)
5310 gdb_printf (gdb_stdlog
, "gdbarch_read_core_file_mappings called\n");
5311 gdbarch
->read_core_file_mappings (gdbarch
, cbfd
, pre_loop_cb
, loop_cb
);
5315 set_gdbarch_read_core_file_mappings (struct gdbarch
*gdbarch
,
5316 gdbarch_read_core_file_mappings_ftype read_core_file_mappings
)
5318 gdbarch
->read_core_file_mappings
= read_core_file_mappings
;