1 /* 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 int short_bit
= 2*TARGET_CHAR_BIT
;
52 int int_bit
= 4*TARGET_CHAR_BIT
;
53 int long_bit
= 4*TARGET_CHAR_BIT
;
54 int long_long_bit
= 2*4*TARGET_CHAR_BIT
;
55 int bfloat16_bit
= 2*TARGET_CHAR_BIT
;
56 const struct floatformat
** bfloat16_format
= 0;
57 int half_bit
= 2*TARGET_CHAR_BIT
;
58 const struct floatformat
** half_format
= 0;
59 int float_bit
= 4*TARGET_CHAR_BIT
;
60 const struct floatformat
** float_format
= 0;
61 int double_bit
= 8*TARGET_CHAR_BIT
;
62 const struct floatformat
** double_format
= 0;
63 int long_double_bit
= 8*TARGET_CHAR_BIT
;
64 const struct floatformat
** long_double_format
= 0;
65 int wchar_bit
= 4*TARGET_CHAR_BIT
;
66 int wchar_signed
= -1;
67 gdbarch_floatformat_for_type_ftype
*floatformat_for_type
= default_floatformat_for_type
;
68 int ptr_bit
= 4*TARGET_CHAR_BIT
;
70 int dwarf2_addr_size
= 0;
72 gdbarch_read_pc_ftype
*read_pc
= nullptr;
73 gdbarch_write_pc_ftype
*write_pc
= nullptr;
74 gdbarch_virtual_frame_pointer_ftype
*virtual_frame_pointer
= legacy_virtual_frame_pointer
;
75 gdbarch_pseudo_register_read_ftype
*pseudo_register_read
= nullptr;
76 gdbarch_pseudo_register_read_value_ftype
*pseudo_register_read_value
= nullptr;
77 gdbarch_pseudo_register_write_ftype
*pseudo_register_write
= nullptr;
79 int num_pseudo_regs
= 0;
80 gdbarch_ax_pseudo_register_collect_ftype
*ax_pseudo_register_collect
= nullptr;
81 gdbarch_ax_pseudo_register_push_stack_ftype
*ax_pseudo_register_push_stack
= nullptr;
82 gdbarch_report_signal_info_ftype
*report_signal_info
= nullptr;
87 gdbarch_stab_reg_to_regnum_ftype
*stab_reg_to_regnum
= no_op_reg_to_regnum
;
88 gdbarch_ecoff_reg_to_regnum_ftype
*ecoff_reg_to_regnum
= no_op_reg_to_regnum
;
89 gdbarch_sdb_reg_to_regnum_ftype
*sdb_reg_to_regnum
= no_op_reg_to_regnum
;
90 gdbarch_dwarf2_reg_to_regnum_ftype
*dwarf2_reg_to_regnum
= no_op_reg_to_regnum
;
91 gdbarch_register_name_ftype
*register_name
= 0;
92 gdbarch_register_type_ftype
*register_type
= nullptr;
93 gdbarch_dummy_id_ftype
*dummy_id
= default_dummy_id
;
94 int deprecated_fp_regnum
= -1;
95 gdbarch_push_dummy_call_ftype
*push_dummy_call
= nullptr;
96 enum call_dummy_location_type call_dummy_location
= AT_ENTRY_POINT
;
97 gdbarch_push_dummy_code_ftype
*push_dummy_code
= nullptr;
98 gdbarch_code_of_frame_writable_ftype
*code_of_frame_writable
= default_code_of_frame_writable
;
99 gdbarch_print_registers_info_ftype
*print_registers_info
= default_print_registers_info
;
100 gdbarch_print_float_info_ftype
*print_float_info
= default_print_float_info
;
101 gdbarch_print_vector_info_ftype
*print_vector_info
= nullptr;
102 gdbarch_register_sim_regno_ftype
*register_sim_regno
= legacy_register_sim_regno
;
103 gdbarch_cannot_fetch_register_ftype
*cannot_fetch_register
= cannot_register_not
;
104 gdbarch_cannot_store_register_ftype
*cannot_store_register
= cannot_register_not
;
105 gdbarch_get_longjmp_target_ftype
*get_longjmp_target
= nullptr;
106 int believe_pcc_promotion
= 0;
107 gdbarch_convert_register_p_ftype
*convert_register_p
= generic_convert_register_p
;
108 gdbarch_register_to_value_ftype
*register_to_value
= nullptr;
109 gdbarch_value_to_register_ftype
*value_to_register
= nullptr;
110 gdbarch_value_from_register_ftype
*value_from_register
= default_value_from_register
;
111 gdbarch_pointer_to_address_ftype
*pointer_to_address
= unsigned_pointer_to_address
;
112 gdbarch_address_to_pointer_ftype
*address_to_pointer
= unsigned_address_to_pointer
;
113 gdbarch_integer_to_address_ftype
*integer_to_address
= nullptr;
114 gdbarch_return_value_ftype
*return_value
= nullptr;
115 gdbarch_return_value_as_value_ftype
*return_value_as_value
= default_gdbarch_return_value
;
116 gdbarch_get_return_buf_addr_ftype
*get_return_buf_addr
= default_get_return_buf_addr
;
117 gdbarch_return_in_first_hidden_param_p_ftype
*return_in_first_hidden_param_p
= default_return_in_first_hidden_param_p
;
118 gdbarch_skip_prologue_ftype
*skip_prologue
= 0;
119 gdbarch_skip_main_prologue_ftype
*skip_main_prologue
= nullptr;
120 gdbarch_skip_entrypoint_ftype
*skip_entrypoint
= nullptr;
121 gdbarch_inner_than_ftype
*inner_than
= 0;
122 gdbarch_breakpoint_from_pc_ftype
*breakpoint_from_pc
= default_breakpoint_from_pc
;
123 gdbarch_breakpoint_kind_from_pc_ftype
*breakpoint_kind_from_pc
= 0;
124 gdbarch_sw_breakpoint_from_kind_ftype
*sw_breakpoint_from_kind
= NULL
;
125 gdbarch_breakpoint_kind_from_current_state_ftype
*breakpoint_kind_from_current_state
= default_breakpoint_kind_from_current_state
;
126 gdbarch_adjust_breakpoint_address_ftype
*adjust_breakpoint_address
= nullptr;
127 gdbarch_memory_insert_breakpoint_ftype
*memory_insert_breakpoint
= default_memory_insert_breakpoint
;
128 gdbarch_memory_remove_breakpoint_ftype
*memory_remove_breakpoint
= default_memory_remove_breakpoint
;
129 CORE_ADDR decr_pc_after_break
= 0;
130 CORE_ADDR deprecated_function_start_offset
= 0;
131 gdbarch_remote_register_number_ftype
*remote_register_number
= default_remote_register_number
;
132 gdbarch_fetch_tls_load_module_address_ftype
*fetch_tls_load_module_address
= nullptr;
133 gdbarch_get_thread_local_address_ftype
*get_thread_local_address
= nullptr;
134 CORE_ADDR frame_args_skip
= 0;
135 gdbarch_unwind_pc_ftype
*unwind_pc
= default_unwind_pc
;
136 gdbarch_unwind_sp_ftype
*unwind_sp
= default_unwind_sp
;
137 gdbarch_frame_num_args_ftype
*frame_num_args
= nullptr;
138 gdbarch_frame_align_ftype
*frame_align
= nullptr;
139 gdbarch_stabs_argument_has_addr_ftype
*stabs_argument_has_addr
= default_stabs_argument_has_addr
;
140 int frame_red_zone_size
= 0;
141 gdbarch_convert_from_func_ptr_addr_ftype
*convert_from_func_ptr_addr
= convert_from_func_ptr_addr_identity
;
142 gdbarch_addr_bits_remove_ftype
*addr_bits_remove
= core_addr_identity
;
143 gdbarch_remove_non_address_bits_ftype
*remove_non_address_bits
= default_remove_non_address_bits
;
144 gdbarch_memtag_to_string_ftype
*memtag_to_string
= default_memtag_to_string
;
145 gdbarch_tagged_address_p_ftype
*tagged_address_p
= default_tagged_address_p
;
146 gdbarch_memtag_matches_p_ftype
*memtag_matches_p
= default_memtag_matches_p
;
147 gdbarch_set_memtags_ftype
*set_memtags
= default_set_memtags
;
148 gdbarch_get_memtag_ftype
*get_memtag
= default_get_memtag
;
149 CORE_ADDR memtag_granule_size
= 0;
150 gdbarch_software_single_step_ftype
*software_single_step
= nullptr;
151 gdbarch_single_step_through_delay_ftype
*single_step_through_delay
= nullptr;
152 gdbarch_print_insn_ftype
*print_insn
= default_print_insn
;
153 gdbarch_skip_trampoline_code_ftype
*skip_trampoline_code
= generic_skip_trampoline_code
;
154 const struct target_so_ops
* so_ops
= 0;
155 gdbarch_skip_solib_resolver_ftype
*skip_solib_resolver
= generic_skip_solib_resolver
;
156 gdbarch_in_solib_return_trampoline_ftype
*in_solib_return_trampoline
= generic_in_solib_return_trampoline
;
157 gdbarch_in_indirect_branch_thunk_ftype
*in_indirect_branch_thunk
= default_in_indirect_branch_thunk
;
158 gdbarch_stack_frame_destroyed_p_ftype
*stack_frame_destroyed_p
= generic_stack_frame_destroyed_p
;
159 gdbarch_elf_make_msymbol_special_ftype
*elf_make_msymbol_special
= nullptr;
160 gdbarch_coff_make_msymbol_special_ftype
*coff_make_msymbol_special
= default_coff_make_msymbol_special
;
161 gdbarch_make_symbol_special_ftype
*make_symbol_special
= default_make_symbol_special
;
162 gdbarch_adjust_dwarf2_addr_ftype
*adjust_dwarf2_addr
= default_adjust_dwarf2_addr
;
163 gdbarch_adjust_dwarf2_line_ftype
*adjust_dwarf2_line
= default_adjust_dwarf2_line
;
164 int cannot_step_breakpoint
= 0;
165 int have_nonsteppable_watchpoint
= 0;
166 gdbarch_address_class_type_flags_ftype
*address_class_type_flags
= nullptr;
167 gdbarch_address_class_type_flags_to_name_ftype
*address_class_type_flags_to_name
= nullptr;
168 gdbarch_execute_dwarf_cfa_vendor_op_ftype
*execute_dwarf_cfa_vendor_op
= default_execute_dwarf_cfa_vendor_op
;
169 gdbarch_address_class_name_to_type_flags_ftype
*address_class_name_to_type_flags
= nullptr;
170 gdbarch_register_reggroup_p_ftype
*register_reggroup_p
= default_register_reggroup_p
;
171 gdbarch_fetch_pointer_argument_ftype
*fetch_pointer_argument
= nullptr;
172 gdbarch_iterate_over_regset_sections_ftype
*iterate_over_regset_sections
= nullptr;
173 gdbarch_make_corefile_notes_ftype
*make_corefile_notes
= nullptr;
174 gdbarch_find_memory_regions_ftype
*find_memory_regions
= nullptr;
175 gdbarch_create_memtag_section_ftype
*create_memtag_section
= nullptr;
176 gdbarch_fill_memtag_section_ftype
*fill_memtag_section
= nullptr;
177 gdbarch_decode_memtag_section_ftype
*decode_memtag_section
= nullptr;
178 gdbarch_core_xfer_shared_libraries_ftype
*core_xfer_shared_libraries
= nullptr;
179 gdbarch_core_xfer_shared_libraries_aix_ftype
*core_xfer_shared_libraries_aix
= nullptr;
180 gdbarch_core_pid_to_str_ftype
*core_pid_to_str
= nullptr;
181 gdbarch_core_thread_name_ftype
*core_thread_name
= nullptr;
182 gdbarch_core_xfer_siginfo_ftype
*core_xfer_siginfo
= nullptr;
183 const char * gcore_bfd_target
= 0;
184 int vtable_function_descriptors
= 0;
185 int vbit_in_delta
= 0;
186 gdbarch_skip_permanent_breakpoint_ftype
*skip_permanent_breakpoint
= default_skip_permanent_breakpoint
;
187 ULONGEST max_insn_length
= 0;
188 gdbarch_displaced_step_copy_insn_ftype
*displaced_step_copy_insn
= nullptr;
189 gdbarch_displaced_step_hw_singlestep_ftype
*displaced_step_hw_singlestep
= default_displaced_step_hw_singlestep
;
190 gdbarch_displaced_step_fixup_ftype
*displaced_step_fixup
= NULL
;
191 gdbarch_displaced_step_prepare_ftype
*displaced_step_prepare
= nullptr;
192 gdbarch_displaced_step_finish_ftype
*displaced_step_finish
= NULL
;
193 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype
*displaced_step_copy_insn_closure_by_addr
= nullptr;
194 gdbarch_displaced_step_restore_all_in_ptid_ftype
*displaced_step_restore_all_in_ptid
= nullptr;
195 gdbarch_relocate_instruction_ftype
*relocate_instruction
= NULL
;
196 gdbarch_overlay_update_ftype
*overlay_update
= nullptr;
197 gdbarch_core_read_description_ftype
*core_read_description
= nullptr;
198 int sofun_address_maybe_missing
= 0;
199 gdbarch_process_record_ftype
*process_record
= nullptr;
200 gdbarch_process_record_signal_ftype
*process_record_signal
= nullptr;
201 gdbarch_gdb_signal_from_target_ftype
*gdb_signal_from_target
= nullptr;
202 gdbarch_gdb_signal_to_target_ftype
*gdb_signal_to_target
= nullptr;
203 gdbarch_get_siginfo_type_ftype
*get_siginfo_type
= nullptr;
204 gdbarch_record_special_symbol_ftype
*record_special_symbol
= nullptr;
205 gdbarch_get_syscall_number_ftype
*get_syscall_number
= nullptr;
206 const char * xml_syscall_file
= 0;
207 struct syscalls_info
* syscalls_info
= 0;
208 const char *const * stap_integer_prefixes
= 0;
209 const char *const * stap_integer_suffixes
= 0;
210 const char *const * stap_register_prefixes
= 0;
211 const char *const * stap_register_suffixes
= 0;
212 const char *const * stap_register_indirection_prefixes
= 0;
213 const char *const * stap_register_indirection_suffixes
= 0;
214 const char * stap_gdb_register_prefix
= 0;
215 const char * stap_gdb_register_suffix
= 0;
216 gdbarch_stap_is_single_operand_ftype
*stap_is_single_operand
= nullptr;
217 gdbarch_stap_parse_special_token_ftype
*stap_parse_special_token
= nullptr;
218 gdbarch_stap_adjust_register_ftype
*stap_adjust_register
= nullptr;
219 gdbarch_dtrace_parse_probe_argument_ftype
*dtrace_parse_probe_argument
= nullptr;
220 gdbarch_dtrace_probe_is_enabled_ftype
*dtrace_probe_is_enabled
= nullptr;
221 gdbarch_dtrace_enable_probe_ftype
*dtrace_enable_probe
= nullptr;
222 gdbarch_dtrace_disable_probe_ftype
*dtrace_disable_probe
= nullptr;
223 int has_global_solist
= 0;
224 int has_global_breakpoints
= 0;
225 gdbarch_has_shared_address_space_ftype
*has_shared_address_space
= default_has_shared_address_space
;
226 gdbarch_fast_tracepoint_valid_at_ftype
*fast_tracepoint_valid_at
= default_fast_tracepoint_valid_at
;
227 gdbarch_guess_tracepoint_registers_ftype
*guess_tracepoint_registers
= default_guess_tracepoint_registers
;
228 gdbarch_auto_charset_ftype
*auto_charset
= default_auto_charset
;
229 gdbarch_auto_wide_charset_ftype
*auto_wide_charset
= default_auto_wide_charset
;
230 const char * solib_symbols_extension
= 0;
231 int has_dos_based_file_system
= 0;
232 gdbarch_gen_return_address_ftype
*gen_return_address
= default_gen_return_address
;
233 gdbarch_info_proc_ftype
*info_proc
= nullptr;
234 gdbarch_core_info_proc_ftype
*core_info_proc
= nullptr;
235 gdbarch_iterate_over_objfiles_in_search_order_ftype
*iterate_over_objfiles_in_search_order
= default_iterate_over_objfiles_in_search_order
;
236 struct ravenscar_arch_ops
* ravenscar_ops
= NULL
;
237 gdbarch_insn_is_call_ftype
*insn_is_call
= default_insn_is_call
;
238 gdbarch_insn_is_ret_ftype
*insn_is_ret
= default_insn_is_ret
;
239 gdbarch_insn_is_jump_ftype
*insn_is_jump
= default_insn_is_jump
;
240 gdbarch_program_breakpoint_here_p_ftype
*program_breakpoint_here_p
= default_program_breakpoint_here_p
;
241 gdbarch_auxv_parse_ftype
*auxv_parse
= nullptr;
242 gdbarch_print_auxv_entry_ftype
*print_auxv_entry
= default_print_auxv_entry
;
243 gdbarch_vsyscall_range_ftype
*vsyscall_range
= default_vsyscall_range
;
244 gdbarch_infcall_mmap_ftype
*infcall_mmap
= default_infcall_mmap
;
245 gdbarch_infcall_munmap_ftype
*infcall_munmap
= default_infcall_munmap
;
246 gdbarch_gcc_target_options_ftype
*gcc_target_options
= default_gcc_target_options
;
247 gdbarch_gnu_triplet_regexp_ftype
*gnu_triplet_regexp
= default_gnu_triplet_regexp
;
248 gdbarch_addressable_memory_unit_size_ftype
*addressable_memory_unit_size
= default_addressable_memory_unit_size
;
249 const char * disassembler_options_implicit
= 0;
250 char ** disassembler_options
= 0;
251 const disasm_options_and_args_t
* valid_disassembler_options
= 0;
252 gdbarch_type_align_ftype
*type_align
= default_type_align
;
253 gdbarch_get_pc_address_flags_ftype
*get_pc_address_flags
= default_get_pc_address_flags
;
254 gdbarch_read_core_file_mappings_ftype
*read_core_file_mappings
= default_read_core_file_mappings
;
257 /* Create a new ``struct gdbarch'' based on information provided by
258 ``struct gdbarch_info''. */
261 gdbarch_alloc (const struct gdbarch_info
*info
,
262 gdbarch_tdep_up tdep
)
264 struct gdbarch
*gdbarch
;
266 gdbarch
= new struct gdbarch
;
268 gdbarch
->tdep
= std::move (tdep
);
270 gdbarch
->bfd_arch_info
= info
->bfd_arch_info
;
271 gdbarch
->byte_order
= info
->byte_order
;
272 gdbarch
->byte_order_for_code
= info
->byte_order_for_code
;
273 gdbarch
->osabi
= info
->osabi
;
274 gdbarch
->target_desc
= info
->target_desc
;
281 /* Ensure that all values in a GDBARCH are reasonable. */
284 verify_gdbarch (struct gdbarch
*gdbarch
)
289 if (gdbarch
->byte_order
== BFD_ENDIAN_UNKNOWN
)
290 log
.puts ("\n\tbyte-order");
291 if (gdbarch
->bfd_arch_info
== NULL
)
292 log
.puts ("\n\tbfd_arch_info");
293 /* Check those that need to be defined for the given multi-arch level. */
294 /* Skip verify of short_bit, invalid_p == 0 */
295 /* Skip verify of int_bit, invalid_p == 0 */
296 /* Skip verify of long_bit, invalid_p == 0 */
297 /* Skip verify of long_long_bit, invalid_p == 0 */
298 /* Skip verify of bfloat16_bit, invalid_p == 0 */
299 if (gdbarch
->bfloat16_format
== 0)
300 gdbarch
->bfloat16_format
= floatformats_bfloat16
;
301 /* Skip verify of half_bit, invalid_p == 0 */
302 if (gdbarch
->half_format
== 0)
303 gdbarch
->half_format
= floatformats_ieee_half
;
304 /* Skip verify of float_bit, invalid_p == 0 */
305 if (gdbarch
->float_format
== 0)
306 gdbarch
->float_format
= floatformats_ieee_single
;
307 /* Skip verify of double_bit, invalid_p == 0 */
308 if (gdbarch
->double_format
== 0)
309 gdbarch
->double_format
= floatformats_ieee_double
;
310 /* Skip verify of long_double_bit, invalid_p == 0 */
311 if (gdbarch
->long_double_format
== 0)
312 gdbarch
->long_double_format
= floatformats_ieee_double
;
313 /* Skip verify of wchar_bit, invalid_p == 0 */
314 if (gdbarch
->wchar_signed
== -1)
315 gdbarch
->wchar_signed
= 1;
316 /* Skip verify of floatformat_for_type, invalid_p == 0 */
317 /* Skip verify of ptr_bit, invalid_p == 0 */
318 if (gdbarch
->addr_bit
== 0)
319 gdbarch
->addr_bit
= gdbarch_ptr_bit (gdbarch
);
320 if (gdbarch
->dwarf2_addr_size
== 0)
321 gdbarch
->dwarf2_addr_size
= gdbarch_ptr_bit (gdbarch
) / TARGET_CHAR_BIT
;
322 if (gdbarch
->char_signed
== -1)
323 gdbarch
->char_signed
= 1;
324 /* Skip verify of read_pc, has predicate. */
325 /* Skip verify of write_pc, has predicate. */
326 /* Skip verify of virtual_frame_pointer, invalid_p == 0 */
327 /* Skip verify of pseudo_register_read, has predicate. */
328 /* Skip verify of pseudo_register_read_value, has predicate. */
329 /* Skip verify of pseudo_register_write, has predicate. */
330 if (gdbarch
->num_regs
== -1)
331 log
.puts ("\n\tnum_regs");
332 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
333 /* Skip verify of ax_pseudo_register_collect, has predicate. */
334 /* Skip verify of ax_pseudo_register_push_stack, has predicate. */
335 /* Skip verify of report_signal_info, has predicate. */
336 /* Skip verify of sp_regnum, invalid_p == 0 */
337 /* Skip verify of pc_regnum, invalid_p == 0 */
338 /* Skip verify of ps_regnum, invalid_p == 0 */
339 /* Skip verify of fp0_regnum, invalid_p == 0 */
340 /* Skip verify of stab_reg_to_regnum, invalid_p == 0 */
341 /* Skip verify of ecoff_reg_to_regnum, invalid_p == 0 */
342 /* Skip verify of sdb_reg_to_regnum, invalid_p == 0 */
343 /* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0 */
344 if (gdbarch
->register_name
== 0)
345 log
.puts ("\n\tregister_name");
346 if (gdbarch
->register_type
== 0)
347 log
.puts ("\n\tregister_type");
348 /* Skip verify of dummy_id, invalid_p == 0 */
349 /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
350 /* Skip verify of push_dummy_call, has predicate. */
351 /* Skip verify of call_dummy_location, invalid_p == 0 */
352 /* Skip verify of push_dummy_code, has predicate. */
353 /* Skip verify of code_of_frame_writable, invalid_p == 0 */
354 /* Skip verify of print_registers_info, invalid_p == 0 */
355 /* Skip verify of print_float_info, invalid_p == 0 */
356 /* Skip verify of print_vector_info, has predicate. */
357 /* Skip verify of register_sim_regno, invalid_p == 0 */
358 /* Skip verify of cannot_fetch_register, invalid_p == 0 */
359 /* Skip verify of cannot_store_register, invalid_p == 0 */
360 /* Skip verify of get_longjmp_target, has predicate. */
361 /* Skip verify of believe_pcc_promotion, invalid_p == 0 */
362 /* Skip verify of convert_register_p, invalid_p == 0 */
363 /* Skip verify of register_to_value, invalid_p == 0 */
364 /* Skip verify of value_to_register, invalid_p == 0 */
365 /* Skip verify of value_from_register, invalid_p == 0 */
366 /* Skip verify of pointer_to_address, invalid_p == 0 */
367 /* Skip verify of address_to_pointer, invalid_p == 0 */
368 /* Skip verify of integer_to_address, has predicate. */
369 /* Skip verify of return_value, invalid_p == 0 */
370 if ((gdbarch
->return_value_as_value
== default_gdbarch_return_value
) == (gdbarch
->return_value
== nullptr))
371 log
.puts ("\n\treturn_value_as_value");
372 /* Skip verify of get_return_buf_addr, invalid_p == 0 */
373 /* Skip verify of return_in_first_hidden_param_p, invalid_p == 0 */
374 if (gdbarch
->skip_prologue
== 0)
375 log
.puts ("\n\tskip_prologue");
376 /* Skip verify of skip_main_prologue, has predicate. */
377 /* Skip verify of skip_entrypoint, has predicate. */
378 if (gdbarch
->inner_than
== 0)
379 log
.puts ("\n\tinner_than");
380 /* Skip verify of breakpoint_from_pc, invalid_p == 0 */
381 if (gdbarch
->breakpoint_kind_from_pc
== 0)
382 log
.puts ("\n\tbreakpoint_kind_from_pc");
383 /* Skip verify of sw_breakpoint_from_kind, invalid_p == 0 */
384 /* Skip verify of breakpoint_kind_from_current_state, invalid_p == 0 */
385 /* Skip verify of adjust_breakpoint_address, has predicate. */
386 /* Skip verify of memory_insert_breakpoint, invalid_p == 0 */
387 /* Skip verify of memory_remove_breakpoint, invalid_p == 0 */
388 /* Skip verify of decr_pc_after_break, invalid_p == 0 */
389 /* Skip verify of deprecated_function_start_offset, invalid_p == 0 */
390 /* Skip verify of remote_register_number, invalid_p == 0 */
391 /* Skip verify of fetch_tls_load_module_address, has predicate. */
392 /* Skip verify of get_thread_local_address, has predicate. */
393 /* Skip verify of frame_args_skip, invalid_p == 0 */
394 /* Skip verify of unwind_pc, invalid_p == 0 */
395 /* Skip verify of unwind_sp, invalid_p == 0 */
396 /* Skip verify of frame_num_args, has predicate. */
397 /* Skip verify of frame_align, has predicate. */
398 /* Skip verify of stabs_argument_has_addr, invalid_p == 0 */
399 /* Skip verify of frame_red_zone_size, invalid_p == 0 */
400 /* Skip verify of convert_from_func_ptr_addr, invalid_p == 0 */
401 /* Skip verify of addr_bits_remove, invalid_p == 0 */
402 /* Skip verify of remove_non_address_bits, invalid_p == 0 */
403 /* Skip verify of memtag_to_string, invalid_p == 0 */
404 /* Skip verify of tagged_address_p, invalid_p == 0 */
405 /* Skip verify of memtag_matches_p, invalid_p == 0 */
406 /* Skip verify of set_memtags, invalid_p == 0 */
407 /* Skip verify of get_memtag, invalid_p == 0 */
408 /* Skip verify of memtag_granule_size, invalid_p == 0 */
409 /* Skip verify of software_single_step, has predicate. */
410 /* Skip verify of single_step_through_delay, has predicate. */
411 /* Skip verify of print_insn, invalid_p == 0 */
412 /* Skip verify of skip_trampoline_code, invalid_p == 0 */
413 if (gdbarch
->so_ops
== 0)
414 gdbarch
->so_ops
= &solib_target_so_ops
;
415 /* Skip verify of skip_solib_resolver, invalid_p == 0 */
416 /* Skip verify of in_solib_return_trampoline, invalid_p == 0 */
417 /* Skip verify of in_indirect_branch_thunk, invalid_p == 0 */
418 /* Skip verify of stack_frame_destroyed_p, invalid_p == 0 */
419 /* Skip verify of elf_make_msymbol_special, has predicate. */
420 /* Skip verify of coff_make_msymbol_special, invalid_p == 0 */
421 /* Skip verify of make_symbol_special, invalid_p == 0 */
422 /* Skip verify of adjust_dwarf2_addr, invalid_p == 0 */
423 /* Skip verify of adjust_dwarf2_line, invalid_p == 0 */
424 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */
425 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */
426 /* Skip verify of address_class_type_flags, has predicate. */
427 /* Skip verify of address_class_type_flags_to_name, has predicate. */
428 /* Skip verify of execute_dwarf_cfa_vendor_op, invalid_p == 0 */
429 /* Skip verify of address_class_name_to_type_flags, has predicate. */
430 /* Skip verify of register_reggroup_p, invalid_p == 0 */
431 /* Skip verify of fetch_pointer_argument, has predicate. */
432 /* Skip verify of iterate_over_regset_sections, has predicate. */
433 /* Skip verify of make_corefile_notes, has predicate. */
434 /* Skip verify of find_memory_regions, has predicate. */
435 /* Skip verify of create_memtag_section, has predicate. */
436 /* Skip verify of fill_memtag_section, has predicate. */
437 /* Skip verify of decode_memtag_section, has predicate. */
438 /* Skip verify of core_xfer_shared_libraries, has predicate. */
439 /* Skip verify of core_xfer_shared_libraries_aix, has predicate. */
440 /* Skip verify of core_pid_to_str, has predicate. */
441 /* Skip verify of core_thread_name, has predicate. */
442 /* Skip verify of core_xfer_siginfo, has predicate. */
443 /* Skip verify of gcore_bfd_target, has predicate. */
444 /* Skip verify of vtable_function_descriptors, invalid_p == 0 */
445 /* Skip verify of vbit_in_delta, invalid_p == 0 */
446 /* Skip verify of skip_permanent_breakpoint, invalid_p == 0 */
447 /* Skip verify of max_insn_length, has predicate. */
448 /* Skip verify of displaced_step_copy_insn, has predicate. */
449 /* Skip verify of displaced_step_hw_singlestep, invalid_p == 0 */
450 /* Skip verify of displaced_step_fixup, has predicate. */
451 /* Skip verify of displaced_step_prepare, has predicate. */
452 if ((! gdbarch
->displaced_step_finish
) != (! gdbarch
->displaced_step_prepare
))
453 log
.puts ("\n\tdisplaced_step_finish");
454 /* Skip verify of displaced_step_copy_insn_closure_by_addr, has predicate. */
455 /* Skip verify of displaced_step_restore_all_in_ptid, invalid_p == 0 */
456 /* Skip verify of relocate_instruction, has predicate. */
457 /* Skip verify of overlay_update, has predicate. */
458 /* Skip verify of core_read_description, has predicate. */
459 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */
460 /* Skip verify of process_record, has predicate. */
461 /* Skip verify of process_record_signal, has predicate. */
462 /* Skip verify of gdb_signal_from_target, has predicate. */
463 /* Skip verify of gdb_signal_to_target, has predicate. */
464 /* Skip verify of get_siginfo_type, has predicate. */
465 /* Skip verify of record_special_symbol, has predicate. */
466 /* Skip verify of get_syscall_number, has predicate. */
467 /* Skip verify of xml_syscall_file, invalid_p == 0 */
468 /* Skip verify of syscalls_info, invalid_p == 0 */
469 /* Skip verify of stap_integer_prefixes, invalid_p == 0 */
470 /* Skip verify of stap_integer_suffixes, invalid_p == 0 */
471 /* Skip verify of stap_register_prefixes, invalid_p == 0 */
472 /* Skip verify of stap_register_suffixes, invalid_p == 0 */
473 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0 */
474 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0 */
475 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0 */
476 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0 */
477 /* Skip verify of stap_is_single_operand, has predicate. */
478 /* Skip verify of stap_parse_special_token, has predicate. */
479 /* Skip verify of stap_adjust_register, has predicate. */
480 /* Skip verify of dtrace_parse_probe_argument, has predicate. */
481 /* Skip verify of dtrace_probe_is_enabled, has predicate. */
482 /* Skip verify of dtrace_enable_probe, has predicate. */
483 /* Skip verify of dtrace_disable_probe, has predicate. */
484 /* Skip verify of has_global_solist, invalid_p == 0 */
485 /* Skip verify of has_global_breakpoints, invalid_p == 0 */
486 /* Skip verify of has_shared_address_space, invalid_p == 0 */
487 /* Skip verify of fast_tracepoint_valid_at, invalid_p == 0 */
488 /* Skip verify of guess_tracepoint_registers, invalid_p == 0 */
489 /* Skip verify of auto_charset, invalid_p == 0 */
490 /* Skip verify of auto_wide_charset, invalid_p == 0 */
491 /* Skip verify of solib_symbols_extension, invalid_p == 0 */
492 /* Skip verify of has_dos_based_file_system, invalid_p == 0 */
493 /* Skip verify of gen_return_address, invalid_p == 0 */
494 /* Skip verify of info_proc, has predicate. */
495 /* Skip verify of core_info_proc, has predicate. */
496 /* Skip verify of iterate_over_objfiles_in_search_order, invalid_p == 0 */
497 /* Skip verify of ravenscar_ops, invalid_p == 0 */
498 /* Skip verify of insn_is_call, invalid_p == 0 */
499 /* Skip verify of insn_is_ret, invalid_p == 0 */
500 /* Skip verify of insn_is_jump, invalid_p == 0 */
501 /* Skip verify of program_breakpoint_here_p, invalid_p == 0 */
502 /* Skip verify of auxv_parse, has predicate. */
503 /* Skip verify of print_auxv_entry, invalid_p == 0 */
504 /* Skip verify of vsyscall_range, invalid_p == 0 */
505 /* Skip verify of infcall_mmap, invalid_p == 0 */
506 /* Skip verify of infcall_munmap, invalid_p == 0 */
507 /* Skip verify of gcc_target_options, invalid_p == 0 */
508 /* Skip verify of gnu_triplet_regexp, invalid_p == 0 */
509 /* Skip verify of addressable_memory_unit_size, invalid_p == 0 */
510 /* Skip verify of disassembler_options_implicit, invalid_p == 0 */
511 /* Skip verify of disassembler_options, invalid_p == 0 */
512 /* Skip verify of valid_disassembler_options, invalid_p == 0 */
513 /* Skip verify of type_align, invalid_p == 0 */
514 /* Skip verify of get_pc_address_flags, invalid_p == 0 */
515 /* Skip verify of read_core_file_mappings, invalid_p == 0 */
517 internal_error (_("verify_gdbarch: the following are invalid ...%s"),
522 /* Print out the details of the current architecture. */
525 gdbarch_dump (struct gdbarch
*gdbarch
, struct ui_file
*file
)
527 const char *gdb_nm_file
= "<not-defined>";
529 #if defined (GDB_NM_FILE)
530 gdb_nm_file
= GDB_NM_FILE
;
533 "gdbarch_dump: GDB_NM_FILE = %s\n",
536 "gdbarch_dump: bfd_arch_info = %s\n",
537 gdbarch_bfd_arch_info (gdbarch
)->printable_name
);
539 "gdbarch_dump: byte_order = %s\n",
540 plongest (gdbarch
->byte_order
));
542 "gdbarch_dump: byte_order_for_code = %s\n",
543 plongest (gdbarch
->byte_order_for_code
));
545 "gdbarch_dump: osabi = %s\n",
546 plongest (gdbarch
->osabi
));
548 "gdbarch_dump: target_desc = %s\n",
549 host_address_to_string (gdbarch
->target_desc
));
551 "gdbarch_dump: short_bit = %s\n",
552 plongest (gdbarch
->short_bit
));
554 "gdbarch_dump: int_bit = %s\n",
555 plongest (gdbarch
->int_bit
));
557 "gdbarch_dump: long_bit = %s\n",
558 plongest (gdbarch
->long_bit
));
560 "gdbarch_dump: long_long_bit = %s\n",
561 plongest (gdbarch
->long_long_bit
));
563 "gdbarch_dump: bfloat16_bit = %s\n",
564 plongest (gdbarch
->bfloat16_bit
));
566 "gdbarch_dump: bfloat16_format = %s\n",
567 pformat (gdbarch
, gdbarch
->bfloat16_format
));
569 "gdbarch_dump: half_bit = %s\n",
570 plongest (gdbarch
->half_bit
));
572 "gdbarch_dump: half_format = %s\n",
573 pformat (gdbarch
, gdbarch
->half_format
));
575 "gdbarch_dump: float_bit = %s\n",
576 plongest (gdbarch
->float_bit
));
578 "gdbarch_dump: float_format = %s\n",
579 pformat (gdbarch
, gdbarch
->float_format
));
581 "gdbarch_dump: double_bit = %s\n",
582 plongest (gdbarch
->double_bit
));
584 "gdbarch_dump: double_format = %s\n",
585 pformat (gdbarch
, gdbarch
->double_format
));
587 "gdbarch_dump: long_double_bit = %s\n",
588 plongest (gdbarch
->long_double_bit
));
590 "gdbarch_dump: long_double_format = %s\n",
591 pformat (gdbarch
, gdbarch
->long_double_format
));
593 "gdbarch_dump: wchar_bit = %s\n",
594 plongest (gdbarch
->wchar_bit
));
596 "gdbarch_dump: wchar_signed = %s\n",
597 plongest (gdbarch
->wchar_signed
));
599 "gdbarch_dump: floatformat_for_type = <%s>\n",
600 host_address_to_string (gdbarch
->floatformat_for_type
));
602 "gdbarch_dump: ptr_bit = %s\n",
603 plongest (gdbarch
->ptr_bit
));
605 "gdbarch_dump: addr_bit = %s\n",
606 plongest (gdbarch
->addr_bit
));
608 "gdbarch_dump: dwarf2_addr_size = %s\n",
609 plongest (gdbarch
->dwarf2_addr_size
));
611 "gdbarch_dump: char_signed = %s\n",
612 plongest (gdbarch
->char_signed
));
614 "gdbarch_dump: gdbarch_read_pc_p() = %d\n",
615 gdbarch_read_pc_p (gdbarch
));
617 "gdbarch_dump: read_pc = <%s>\n",
618 host_address_to_string (gdbarch
->read_pc
));
620 "gdbarch_dump: gdbarch_write_pc_p() = %d\n",
621 gdbarch_write_pc_p (gdbarch
));
623 "gdbarch_dump: write_pc = <%s>\n",
624 host_address_to_string (gdbarch
->write_pc
));
626 "gdbarch_dump: virtual_frame_pointer = <%s>\n",
627 host_address_to_string (gdbarch
->virtual_frame_pointer
));
629 "gdbarch_dump: gdbarch_pseudo_register_read_p() = %d\n",
630 gdbarch_pseudo_register_read_p (gdbarch
));
632 "gdbarch_dump: pseudo_register_read = <%s>\n",
633 host_address_to_string (gdbarch
->pseudo_register_read
));
635 "gdbarch_dump: gdbarch_pseudo_register_read_value_p() = %d\n",
636 gdbarch_pseudo_register_read_value_p (gdbarch
));
638 "gdbarch_dump: pseudo_register_read_value = <%s>\n",
639 host_address_to_string (gdbarch
->pseudo_register_read_value
));
641 "gdbarch_dump: gdbarch_pseudo_register_write_p() = %d\n",
642 gdbarch_pseudo_register_write_p (gdbarch
));
644 "gdbarch_dump: pseudo_register_write = <%s>\n",
645 host_address_to_string (gdbarch
->pseudo_register_write
));
647 "gdbarch_dump: num_regs = %s\n",
648 plongest (gdbarch
->num_regs
));
650 "gdbarch_dump: num_pseudo_regs = %s\n",
651 plongest (gdbarch
->num_pseudo_regs
));
653 "gdbarch_dump: gdbarch_ax_pseudo_register_collect_p() = %d\n",
654 gdbarch_ax_pseudo_register_collect_p (gdbarch
));
656 "gdbarch_dump: ax_pseudo_register_collect = <%s>\n",
657 host_address_to_string (gdbarch
->ax_pseudo_register_collect
));
659 "gdbarch_dump: gdbarch_ax_pseudo_register_push_stack_p() = %d\n",
660 gdbarch_ax_pseudo_register_push_stack_p (gdbarch
));
662 "gdbarch_dump: ax_pseudo_register_push_stack = <%s>\n",
663 host_address_to_string (gdbarch
->ax_pseudo_register_push_stack
));
665 "gdbarch_dump: gdbarch_report_signal_info_p() = %d\n",
666 gdbarch_report_signal_info_p (gdbarch
));
668 "gdbarch_dump: report_signal_info = <%s>\n",
669 host_address_to_string (gdbarch
->report_signal_info
));
671 "gdbarch_dump: sp_regnum = %s\n",
672 plongest (gdbarch
->sp_regnum
));
674 "gdbarch_dump: pc_regnum = %s\n",
675 plongest (gdbarch
->pc_regnum
));
677 "gdbarch_dump: ps_regnum = %s\n",
678 plongest (gdbarch
->ps_regnum
));
680 "gdbarch_dump: fp0_regnum = %s\n",
681 plongest (gdbarch
->fp0_regnum
));
683 "gdbarch_dump: stab_reg_to_regnum = <%s>\n",
684 host_address_to_string (gdbarch
->stab_reg_to_regnum
));
686 "gdbarch_dump: ecoff_reg_to_regnum = <%s>\n",
687 host_address_to_string (gdbarch
->ecoff_reg_to_regnum
));
689 "gdbarch_dump: sdb_reg_to_regnum = <%s>\n",
690 host_address_to_string (gdbarch
->sdb_reg_to_regnum
));
692 "gdbarch_dump: dwarf2_reg_to_regnum = <%s>\n",
693 host_address_to_string (gdbarch
->dwarf2_reg_to_regnum
));
695 "gdbarch_dump: register_name = <%s>\n",
696 host_address_to_string (gdbarch
->register_name
));
698 "gdbarch_dump: register_type = <%s>\n",
699 host_address_to_string (gdbarch
->register_type
));
701 "gdbarch_dump: dummy_id = <%s>\n",
702 host_address_to_string (gdbarch
->dummy_id
));
704 "gdbarch_dump: deprecated_fp_regnum = %s\n",
705 plongest (gdbarch
->deprecated_fp_regnum
));
707 "gdbarch_dump: gdbarch_push_dummy_call_p() = %d\n",
708 gdbarch_push_dummy_call_p (gdbarch
));
710 "gdbarch_dump: push_dummy_call = <%s>\n",
711 host_address_to_string (gdbarch
->push_dummy_call
));
713 "gdbarch_dump: call_dummy_location = %s\n",
714 plongest (gdbarch
->call_dummy_location
));
716 "gdbarch_dump: gdbarch_push_dummy_code_p() = %d\n",
717 gdbarch_push_dummy_code_p (gdbarch
));
719 "gdbarch_dump: push_dummy_code = <%s>\n",
720 host_address_to_string (gdbarch
->push_dummy_code
));
722 "gdbarch_dump: code_of_frame_writable = <%s>\n",
723 host_address_to_string (gdbarch
->code_of_frame_writable
));
725 "gdbarch_dump: print_registers_info = <%s>\n",
726 host_address_to_string (gdbarch
->print_registers_info
));
728 "gdbarch_dump: print_float_info = <%s>\n",
729 host_address_to_string (gdbarch
->print_float_info
));
731 "gdbarch_dump: gdbarch_print_vector_info_p() = %d\n",
732 gdbarch_print_vector_info_p (gdbarch
));
734 "gdbarch_dump: print_vector_info = <%s>\n",
735 host_address_to_string (gdbarch
->print_vector_info
));
737 "gdbarch_dump: register_sim_regno = <%s>\n",
738 host_address_to_string (gdbarch
->register_sim_regno
));
740 "gdbarch_dump: cannot_fetch_register = <%s>\n",
741 host_address_to_string (gdbarch
->cannot_fetch_register
));
743 "gdbarch_dump: cannot_store_register = <%s>\n",
744 host_address_to_string (gdbarch
->cannot_store_register
));
746 "gdbarch_dump: gdbarch_get_longjmp_target_p() = %d\n",
747 gdbarch_get_longjmp_target_p (gdbarch
));
749 "gdbarch_dump: get_longjmp_target = <%s>\n",
750 host_address_to_string (gdbarch
->get_longjmp_target
));
752 "gdbarch_dump: believe_pcc_promotion = %s\n",
753 plongest (gdbarch
->believe_pcc_promotion
));
755 "gdbarch_dump: convert_register_p = <%s>\n",
756 host_address_to_string (gdbarch
->convert_register_p
));
758 "gdbarch_dump: register_to_value = <%s>\n",
759 host_address_to_string (gdbarch
->register_to_value
));
761 "gdbarch_dump: value_to_register = <%s>\n",
762 host_address_to_string (gdbarch
->value_to_register
));
764 "gdbarch_dump: value_from_register = <%s>\n",
765 host_address_to_string (gdbarch
->value_from_register
));
767 "gdbarch_dump: pointer_to_address = <%s>\n",
768 host_address_to_string (gdbarch
->pointer_to_address
));
770 "gdbarch_dump: address_to_pointer = <%s>\n",
771 host_address_to_string (gdbarch
->address_to_pointer
));
773 "gdbarch_dump: gdbarch_integer_to_address_p() = %d\n",
774 gdbarch_integer_to_address_p (gdbarch
));
776 "gdbarch_dump: integer_to_address = <%s>\n",
777 host_address_to_string (gdbarch
->integer_to_address
));
779 "gdbarch_dump: return_value = <%s>\n",
780 host_address_to_string (gdbarch
->return_value
));
782 "gdbarch_dump: return_value_as_value = <%s>\n",
783 host_address_to_string (gdbarch
->return_value_as_value
));
785 "gdbarch_dump: get_return_buf_addr = <%s>\n",
786 host_address_to_string (gdbarch
->get_return_buf_addr
));
788 "gdbarch_dump: return_in_first_hidden_param_p = <%s>\n",
789 host_address_to_string (gdbarch
->return_in_first_hidden_param_p
));
791 "gdbarch_dump: skip_prologue = <%s>\n",
792 host_address_to_string (gdbarch
->skip_prologue
));
794 "gdbarch_dump: gdbarch_skip_main_prologue_p() = %d\n",
795 gdbarch_skip_main_prologue_p (gdbarch
));
797 "gdbarch_dump: skip_main_prologue = <%s>\n",
798 host_address_to_string (gdbarch
->skip_main_prologue
));
800 "gdbarch_dump: gdbarch_skip_entrypoint_p() = %d\n",
801 gdbarch_skip_entrypoint_p (gdbarch
));
803 "gdbarch_dump: skip_entrypoint = <%s>\n",
804 host_address_to_string (gdbarch
->skip_entrypoint
));
806 "gdbarch_dump: inner_than = <%s>\n",
807 host_address_to_string (gdbarch
->inner_than
));
809 "gdbarch_dump: breakpoint_from_pc = <%s>\n",
810 host_address_to_string (gdbarch
->breakpoint_from_pc
));
812 "gdbarch_dump: breakpoint_kind_from_pc = <%s>\n",
813 host_address_to_string (gdbarch
->breakpoint_kind_from_pc
));
815 "gdbarch_dump: sw_breakpoint_from_kind = <%s>\n",
816 host_address_to_string (gdbarch
->sw_breakpoint_from_kind
));
818 "gdbarch_dump: breakpoint_kind_from_current_state = <%s>\n",
819 host_address_to_string (gdbarch
->breakpoint_kind_from_current_state
));
821 "gdbarch_dump: gdbarch_adjust_breakpoint_address_p() = %d\n",
822 gdbarch_adjust_breakpoint_address_p (gdbarch
));
824 "gdbarch_dump: adjust_breakpoint_address = <%s>\n",
825 host_address_to_string (gdbarch
->adjust_breakpoint_address
));
827 "gdbarch_dump: memory_insert_breakpoint = <%s>\n",
828 host_address_to_string (gdbarch
->memory_insert_breakpoint
));
830 "gdbarch_dump: memory_remove_breakpoint = <%s>\n",
831 host_address_to_string (gdbarch
->memory_remove_breakpoint
));
833 "gdbarch_dump: decr_pc_after_break = %s\n",
834 core_addr_to_string_nz (gdbarch
->decr_pc_after_break
));
836 "gdbarch_dump: deprecated_function_start_offset = %s\n",
837 core_addr_to_string_nz (gdbarch
->deprecated_function_start_offset
));
839 "gdbarch_dump: remote_register_number = <%s>\n",
840 host_address_to_string (gdbarch
->remote_register_number
));
842 "gdbarch_dump: gdbarch_fetch_tls_load_module_address_p() = %d\n",
843 gdbarch_fetch_tls_load_module_address_p (gdbarch
));
845 "gdbarch_dump: fetch_tls_load_module_address = <%s>\n",
846 host_address_to_string (gdbarch
->fetch_tls_load_module_address
));
848 "gdbarch_dump: gdbarch_get_thread_local_address_p() = %d\n",
849 gdbarch_get_thread_local_address_p (gdbarch
));
851 "gdbarch_dump: get_thread_local_address = <%s>\n",
852 host_address_to_string (gdbarch
->get_thread_local_address
));
854 "gdbarch_dump: frame_args_skip = %s\n",
855 core_addr_to_string_nz (gdbarch
->frame_args_skip
));
857 "gdbarch_dump: unwind_pc = <%s>\n",
858 host_address_to_string (gdbarch
->unwind_pc
));
860 "gdbarch_dump: unwind_sp = <%s>\n",
861 host_address_to_string (gdbarch
->unwind_sp
));
863 "gdbarch_dump: gdbarch_frame_num_args_p() = %d\n",
864 gdbarch_frame_num_args_p (gdbarch
));
866 "gdbarch_dump: frame_num_args = <%s>\n",
867 host_address_to_string (gdbarch
->frame_num_args
));
869 "gdbarch_dump: gdbarch_frame_align_p() = %d\n",
870 gdbarch_frame_align_p (gdbarch
));
872 "gdbarch_dump: frame_align = <%s>\n",
873 host_address_to_string (gdbarch
->frame_align
));
875 "gdbarch_dump: stabs_argument_has_addr = <%s>\n",
876 host_address_to_string (gdbarch
->stabs_argument_has_addr
));
878 "gdbarch_dump: frame_red_zone_size = %s\n",
879 plongest (gdbarch
->frame_red_zone_size
));
881 "gdbarch_dump: convert_from_func_ptr_addr = <%s>\n",
882 host_address_to_string (gdbarch
->convert_from_func_ptr_addr
));
884 "gdbarch_dump: addr_bits_remove = <%s>\n",
885 host_address_to_string (gdbarch
->addr_bits_remove
));
887 "gdbarch_dump: remove_non_address_bits = <%s>\n",
888 host_address_to_string (gdbarch
->remove_non_address_bits
));
890 "gdbarch_dump: memtag_to_string = <%s>\n",
891 host_address_to_string (gdbarch
->memtag_to_string
));
893 "gdbarch_dump: tagged_address_p = <%s>\n",
894 host_address_to_string (gdbarch
->tagged_address_p
));
896 "gdbarch_dump: memtag_matches_p = <%s>\n",
897 host_address_to_string (gdbarch
->memtag_matches_p
));
899 "gdbarch_dump: set_memtags = <%s>\n",
900 host_address_to_string (gdbarch
->set_memtags
));
902 "gdbarch_dump: get_memtag = <%s>\n",
903 host_address_to_string (gdbarch
->get_memtag
));
905 "gdbarch_dump: memtag_granule_size = %s\n",
906 core_addr_to_string_nz (gdbarch
->memtag_granule_size
));
908 "gdbarch_dump: gdbarch_software_single_step_p() = %d\n",
909 gdbarch_software_single_step_p (gdbarch
));
911 "gdbarch_dump: software_single_step = <%s>\n",
912 host_address_to_string (gdbarch
->software_single_step
));
914 "gdbarch_dump: gdbarch_single_step_through_delay_p() = %d\n",
915 gdbarch_single_step_through_delay_p (gdbarch
));
917 "gdbarch_dump: single_step_through_delay = <%s>\n",
918 host_address_to_string (gdbarch
->single_step_through_delay
));
920 "gdbarch_dump: print_insn = <%s>\n",
921 host_address_to_string (gdbarch
->print_insn
));
923 "gdbarch_dump: skip_trampoline_code = <%s>\n",
924 host_address_to_string (gdbarch
->skip_trampoline_code
));
926 "gdbarch_dump: so_ops = %s\n",
927 host_address_to_string (gdbarch
->so_ops
));
929 "gdbarch_dump: skip_solib_resolver = <%s>\n",
930 host_address_to_string (gdbarch
->skip_solib_resolver
));
932 "gdbarch_dump: in_solib_return_trampoline = <%s>\n",
933 host_address_to_string (gdbarch
->in_solib_return_trampoline
));
935 "gdbarch_dump: in_indirect_branch_thunk = <%s>\n",
936 host_address_to_string (gdbarch
->in_indirect_branch_thunk
));
938 "gdbarch_dump: stack_frame_destroyed_p = <%s>\n",
939 host_address_to_string (gdbarch
->stack_frame_destroyed_p
));
941 "gdbarch_dump: gdbarch_elf_make_msymbol_special_p() = %d\n",
942 gdbarch_elf_make_msymbol_special_p (gdbarch
));
944 "gdbarch_dump: elf_make_msymbol_special = <%s>\n",
945 host_address_to_string (gdbarch
->elf_make_msymbol_special
));
947 "gdbarch_dump: coff_make_msymbol_special = <%s>\n",
948 host_address_to_string (gdbarch
->coff_make_msymbol_special
));
950 "gdbarch_dump: make_symbol_special = <%s>\n",
951 host_address_to_string (gdbarch
->make_symbol_special
));
953 "gdbarch_dump: adjust_dwarf2_addr = <%s>\n",
954 host_address_to_string (gdbarch
->adjust_dwarf2_addr
));
956 "gdbarch_dump: adjust_dwarf2_line = <%s>\n",
957 host_address_to_string (gdbarch
->adjust_dwarf2_line
));
959 "gdbarch_dump: cannot_step_breakpoint = %s\n",
960 plongest (gdbarch
->cannot_step_breakpoint
));
962 "gdbarch_dump: have_nonsteppable_watchpoint = %s\n",
963 plongest (gdbarch
->have_nonsteppable_watchpoint
));
965 "gdbarch_dump: gdbarch_address_class_type_flags_p() = %d\n",
966 gdbarch_address_class_type_flags_p (gdbarch
));
968 "gdbarch_dump: address_class_type_flags = <%s>\n",
969 host_address_to_string (gdbarch
->address_class_type_flags
));
971 "gdbarch_dump: gdbarch_address_class_type_flags_to_name_p() = %d\n",
972 gdbarch_address_class_type_flags_to_name_p (gdbarch
));
974 "gdbarch_dump: address_class_type_flags_to_name = <%s>\n",
975 host_address_to_string (gdbarch
->address_class_type_flags_to_name
));
977 "gdbarch_dump: execute_dwarf_cfa_vendor_op = <%s>\n",
978 host_address_to_string (gdbarch
->execute_dwarf_cfa_vendor_op
));
980 "gdbarch_dump: gdbarch_address_class_name_to_type_flags_p() = %d\n",
981 gdbarch_address_class_name_to_type_flags_p (gdbarch
));
983 "gdbarch_dump: address_class_name_to_type_flags = <%s>\n",
984 host_address_to_string (gdbarch
->address_class_name_to_type_flags
));
986 "gdbarch_dump: register_reggroup_p = <%s>\n",
987 host_address_to_string (gdbarch
->register_reggroup_p
));
989 "gdbarch_dump: gdbarch_fetch_pointer_argument_p() = %d\n",
990 gdbarch_fetch_pointer_argument_p (gdbarch
));
992 "gdbarch_dump: fetch_pointer_argument = <%s>\n",
993 host_address_to_string (gdbarch
->fetch_pointer_argument
));
995 "gdbarch_dump: gdbarch_iterate_over_regset_sections_p() = %d\n",
996 gdbarch_iterate_over_regset_sections_p (gdbarch
));
998 "gdbarch_dump: iterate_over_regset_sections = <%s>\n",
999 host_address_to_string (gdbarch
->iterate_over_regset_sections
));
1001 "gdbarch_dump: gdbarch_make_corefile_notes_p() = %d\n",
1002 gdbarch_make_corefile_notes_p (gdbarch
));
1004 "gdbarch_dump: make_corefile_notes = <%s>\n",
1005 host_address_to_string (gdbarch
->make_corefile_notes
));
1007 "gdbarch_dump: gdbarch_find_memory_regions_p() = %d\n",
1008 gdbarch_find_memory_regions_p (gdbarch
));
1010 "gdbarch_dump: find_memory_regions = <%s>\n",
1011 host_address_to_string (gdbarch
->find_memory_regions
));
1013 "gdbarch_dump: gdbarch_create_memtag_section_p() = %d\n",
1014 gdbarch_create_memtag_section_p (gdbarch
));
1016 "gdbarch_dump: create_memtag_section = <%s>\n",
1017 host_address_to_string (gdbarch
->create_memtag_section
));
1019 "gdbarch_dump: gdbarch_fill_memtag_section_p() = %d\n",
1020 gdbarch_fill_memtag_section_p (gdbarch
));
1022 "gdbarch_dump: fill_memtag_section = <%s>\n",
1023 host_address_to_string (gdbarch
->fill_memtag_section
));
1025 "gdbarch_dump: gdbarch_decode_memtag_section_p() = %d\n",
1026 gdbarch_decode_memtag_section_p (gdbarch
));
1028 "gdbarch_dump: decode_memtag_section = <%s>\n",
1029 host_address_to_string (gdbarch
->decode_memtag_section
));
1031 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_p() = %d\n",
1032 gdbarch_core_xfer_shared_libraries_p (gdbarch
));
1034 "gdbarch_dump: core_xfer_shared_libraries = <%s>\n",
1035 host_address_to_string (gdbarch
->core_xfer_shared_libraries
));
1037 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_aix_p() = %d\n",
1038 gdbarch_core_xfer_shared_libraries_aix_p (gdbarch
));
1040 "gdbarch_dump: core_xfer_shared_libraries_aix = <%s>\n",
1041 host_address_to_string (gdbarch
->core_xfer_shared_libraries_aix
));
1043 "gdbarch_dump: gdbarch_core_pid_to_str_p() = %d\n",
1044 gdbarch_core_pid_to_str_p (gdbarch
));
1046 "gdbarch_dump: core_pid_to_str = <%s>\n",
1047 host_address_to_string (gdbarch
->core_pid_to_str
));
1049 "gdbarch_dump: gdbarch_core_thread_name_p() = %d\n",
1050 gdbarch_core_thread_name_p (gdbarch
));
1052 "gdbarch_dump: core_thread_name = <%s>\n",
1053 host_address_to_string (gdbarch
->core_thread_name
));
1055 "gdbarch_dump: gdbarch_core_xfer_siginfo_p() = %d\n",
1056 gdbarch_core_xfer_siginfo_p (gdbarch
));
1058 "gdbarch_dump: core_xfer_siginfo = <%s>\n",
1059 host_address_to_string (gdbarch
->core_xfer_siginfo
));
1061 "gdbarch_dump: gdbarch_gcore_bfd_target_p() = %d\n",
1062 gdbarch_gcore_bfd_target_p (gdbarch
));
1064 "gdbarch_dump: gcore_bfd_target = %s\n",
1065 pstring (gdbarch
->gcore_bfd_target
));
1067 "gdbarch_dump: vtable_function_descriptors = %s\n",
1068 plongest (gdbarch
->vtable_function_descriptors
));
1070 "gdbarch_dump: vbit_in_delta = %s\n",
1071 plongest (gdbarch
->vbit_in_delta
));
1073 "gdbarch_dump: skip_permanent_breakpoint = <%s>\n",
1074 host_address_to_string (gdbarch
->skip_permanent_breakpoint
));
1076 "gdbarch_dump: gdbarch_max_insn_length_p() = %d\n",
1077 gdbarch_max_insn_length_p (gdbarch
));
1079 "gdbarch_dump: max_insn_length = %s\n",
1080 plongest (gdbarch
->max_insn_length
));
1082 "gdbarch_dump: gdbarch_displaced_step_copy_insn_p() = %d\n",
1083 gdbarch_displaced_step_copy_insn_p (gdbarch
));
1085 "gdbarch_dump: displaced_step_copy_insn = <%s>\n",
1086 host_address_to_string (gdbarch
->displaced_step_copy_insn
));
1088 "gdbarch_dump: displaced_step_hw_singlestep = <%s>\n",
1089 host_address_to_string (gdbarch
->displaced_step_hw_singlestep
));
1091 "gdbarch_dump: gdbarch_displaced_step_fixup_p() = %d\n",
1092 gdbarch_displaced_step_fixup_p (gdbarch
));
1094 "gdbarch_dump: displaced_step_fixup = <%s>\n",
1095 host_address_to_string (gdbarch
->displaced_step_fixup
));
1097 "gdbarch_dump: gdbarch_displaced_step_prepare_p() = %d\n",
1098 gdbarch_displaced_step_prepare_p (gdbarch
));
1100 "gdbarch_dump: displaced_step_prepare = <%s>\n",
1101 host_address_to_string (gdbarch
->displaced_step_prepare
));
1103 "gdbarch_dump: displaced_step_finish = <%s>\n",
1104 host_address_to_string (gdbarch
->displaced_step_finish
));
1106 "gdbarch_dump: gdbarch_displaced_step_copy_insn_closure_by_addr_p() = %d\n",
1107 gdbarch_displaced_step_copy_insn_closure_by_addr_p (gdbarch
));
1109 "gdbarch_dump: displaced_step_copy_insn_closure_by_addr = <%s>\n",
1110 host_address_to_string (gdbarch
->displaced_step_copy_insn_closure_by_addr
));
1112 "gdbarch_dump: displaced_step_restore_all_in_ptid = <%s>\n",
1113 host_address_to_string (gdbarch
->displaced_step_restore_all_in_ptid
));
1115 "gdbarch_dump: gdbarch_relocate_instruction_p() = %d\n",
1116 gdbarch_relocate_instruction_p (gdbarch
));
1118 "gdbarch_dump: relocate_instruction = <%s>\n",
1119 host_address_to_string (gdbarch
->relocate_instruction
));
1121 "gdbarch_dump: gdbarch_overlay_update_p() = %d\n",
1122 gdbarch_overlay_update_p (gdbarch
));
1124 "gdbarch_dump: overlay_update = <%s>\n",
1125 host_address_to_string (gdbarch
->overlay_update
));
1127 "gdbarch_dump: gdbarch_core_read_description_p() = %d\n",
1128 gdbarch_core_read_description_p (gdbarch
));
1130 "gdbarch_dump: core_read_description = <%s>\n",
1131 host_address_to_string (gdbarch
->core_read_description
));
1133 "gdbarch_dump: sofun_address_maybe_missing = %s\n",
1134 plongest (gdbarch
->sofun_address_maybe_missing
));
1136 "gdbarch_dump: gdbarch_process_record_p() = %d\n",
1137 gdbarch_process_record_p (gdbarch
));
1139 "gdbarch_dump: process_record = <%s>\n",
1140 host_address_to_string (gdbarch
->process_record
));
1142 "gdbarch_dump: gdbarch_process_record_signal_p() = %d\n",
1143 gdbarch_process_record_signal_p (gdbarch
));
1145 "gdbarch_dump: process_record_signal = <%s>\n",
1146 host_address_to_string (gdbarch
->process_record_signal
));
1148 "gdbarch_dump: gdbarch_gdb_signal_from_target_p() = %d\n",
1149 gdbarch_gdb_signal_from_target_p (gdbarch
));
1151 "gdbarch_dump: gdb_signal_from_target = <%s>\n",
1152 host_address_to_string (gdbarch
->gdb_signal_from_target
));
1154 "gdbarch_dump: gdbarch_gdb_signal_to_target_p() = %d\n",
1155 gdbarch_gdb_signal_to_target_p (gdbarch
));
1157 "gdbarch_dump: gdb_signal_to_target = <%s>\n",
1158 host_address_to_string (gdbarch
->gdb_signal_to_target
));
1160 "gdbarch_dump: gdbarch_get_siginfo_type_p() = %d\n",
1161 gdbarch_get_siginfo_type_p (gdbarch
));
1163 "gdbarch_dump: get_siginfo_type = <%s>\n",
1164 host_address_to_string (gdbarch
->get_siginfo_type
));
1166 "gdbarch_dump: gdbarch_record_special_symbol_p() = %d\n",
1167 gdbarch_record_special_symbol_p (gdbarch
));
1169 "gdbarch_dump: record_special_symbol = <%s>\n",
1170 host_address_to_string (gdbarch
->record_special_symbol
));
1172 "gdbarch_dump: gdbarch_get_syscall_number_p() = %d\n",
1173 gdbarch_get_syscall_number_p (gdbarch
));
1175 "gdbarch_dump: get_syscall_number = <%s>\n",
1176 host_address_to_string (gdbarch
->get_syscall_number
));
1178 "gdbarch_dump: xml_syscall_file = %s\n",
1179 pstring (gdbarch
->xml_syscall_file
));
1181 "gdbarch_dump: syscalls_info = %s\n",
1182 host_address_to_string (gdbarch
->syscalls_info
));
1184 "gdbarch_dump: stap_integer_prefixes = %s\n",
1185 pstring_list (gdbarch
->stap_integer_prefixes
));
1187 "gdbarch_dump: stap_integer_suffixes = %s\n",
1188 pstring_list (gdbarch
->stap_integer_suffixes
));
1190 "gdbarch_dump: stap_register_prefixes = %s\n",
1191 pstring_list (gdbarch
->stap_register_prefixes
));
1193 "gdbarch_dump: stap_register_suffixes = %s\n",
1194 pstring_list (gdbarch
->stap_register_suffixes
));
1196 "gdbarch_dump: stap_register_indirection_prefixes = %s\n",
1197 pstring_list (gdbarch
->stap_register_indirection_prefixes
));
1199 "gdbarch_dump: stap_register_indirection_suffixes = %s\n",
1200 pstring_list (gdbarch
->stap_register_indirection_suffixes
));
1202 "gdbarch_dump: stap_gdb_register_prefix = %s\n",
1203 pstring (gdbarch
->stap_gdb_register_prefix
));
1205 "gdbarch_dump: stap_gdb_register_suffix = %s\n",
1206 pstring (gdbarch
->stap_gdb_register_suffix
));
1208 "gdbarch_dump: gdbarch_stap_is_single_operand_p() = %d\n",
1209 gdbarch_stap_is_single_operand_p (gdbarch
));
1211 "gdbarch_dump: stap_is_single_operand = <%s>\n",
1212 host_address_to_string (gdbarch
->stap_is_single_operand
));
1214 "gdbarch_dump: gdbarch_stap_parse_special_token_p() = %d\n",
1215 gdbarch_stap_parse_special_token_p (gdbarch
));
1217 "gdbarch_dump: stap_parse_special_token = <%s>\n",
1218 host_address_to_string (gdbarch
->stap_parse_special_token
));
1220 "gdbarch_dump: gdbarch_stap_adjust_register_p() = %d\n",
1221 gdbarch_stap_adjust_register_p (gdbarch
));
1223 "gdbarch_dump: stap_adjust_register = <%s>\n",
1224 host_address_to_string (gdbarch
->stap_adjust_register
));
1226 "gdbarch_dump: gdbarch_dtrace_parse_probe_argument_p() = %d\n",
1227 gdbarch_dtrace_parse_probe_argument_p (gdbarch
));
1229 "gdbarch_dump: dtrace_parse_probe_argument = <%s>\n",
1230 host_address_to_string (gdbarch
->dtrace_parse_probe_argument
));
1232 "gdbarch_dump: gdbarch_dtrace_probe_is_enabled_p() = %d\n",
1233 gdbarch_dtrace_probe_is_enabled_p (gdbarch
));
1235 "gdbarch_dump: dtrace_probe_is_enabled = <%s>\n",
1236 host_address_to_string (gdbarch
->dtrace_probe_is_enabled
));
1238 "gdbarch_dump: gdbarch_dtrace_enable_probe_p() = %d\n",
1239 gdbarch_dtrace_enable_probe_p (gdbarch
));
1241 "gdbarch_dump: dtrace_enable_probe = <%s>\n",
1242 host_address_to_string (gdbarch
->dtrace_enable_probe
));
1244 "gdbarch_dump: gdbarch_dtrace_disable_probe_p() = %d\n",
1245 gdbarch_dtrace_disable_probe_p (gdbarch
));
1247 "gdbarch_dump: dtrace_disable_probe = <%s>\n",
1248 host_address_to_string (gdbarch
->dtrace_disable_probe
));
1250 "gdbarch_dump: has_global_solist = %s\n",
1251 plongest (gdbarch
->has_global_solist
));
1253 "gdbarch_dump: has_global_breakpoints = %s\n",
1254 plongest (gdbarch
->has_global_breakpoints
));
1256 "gdbarch_dump: has_shared_address_space = <%s>\n",
1257 host_address_to_string (gdbarch
->has_shared_address_space
));
1259 "gdbarch_dump: fast_tracepoint_valid_at = <%s>\n",
1260 host_address_to_string (gdbarch
->fast_tracepoint_valid_at
));
1262 "gdbarch_dump: guess_tracepoint_registers = <%s>\n",
1263 host_address_to_string (gdbarch
->guess_tracepoint_registers
));
1265 "gdbarch_dump: auto_charset = <%s>\n",
1266 host_address_to_string (gdbarch
->auto_charset
));
1268 "gdbarch_dump: auto_wide_charset = <%s>\n",
1269 host_address_to_string (gdbarch
->auto_wide_charset
));
1271 "gdbarch_dump: solib_symbols_extension = %s\n",
1272 pstring (gdbarch
->solib_symbols_extension
));
1274 "gdbarch_dump: has_dos_based_file_system = %s\n",
1275 plongest (gdbarch
->has_dos_based_file_system
));
1277 "gdbarch_dump: gen_return_address = <%s>\n",
1278 host_address_to_string (gdbarch
->gen_return_address
));
1280 "gdbarch_dump: gdbarch_info_proc_p() = %d\n",
1281 gdbarch_info_proc_p (gdbarch
));
1283 "gdbarch_dump: info_proc = <%s>\n",
1284 host_address_to_string (gdbarch
->info_proc
));
1286 "gdbarch_dump: gdbarch_core_info_proc_p() = %d\n",
1287 gdbarch_core_info_proc_p (gdbarch
));
1289 "gdbarch_dump: core_info_proc = <%s>\n",
1290 host_address_to_string (gdbarch
->core_info_proc
));
1292 "gdbarch_dump: iterate_over_objfiles_in_search_order = <%s>\n",
1293 host_address_to_string (gdbarch
->iterate_over_objfiles_in_search_order
));
1295 "gdbarch_dump: ravenscar_ops = %s\n",
1296 host_address_to_string (gdbarch
->ravenscar_ops
));
1298 "gdbarch_dump: insn_is_call = <%s>\n",
1299 host_address_to_string (gdbarch
->insn_is_call
));
1301 "gdbarch_dump: insn_is_ret = <%s>\n",
1302 host_address_to_string (gdbarch
->insn_is_ret
));
1304 "gdbarch_dump: insn_is_jump = <%s>\n",
1305 host_address_to_string (gdbarch
->insn_is_jump
));
1307 "gdbarch_dump: program_breakpoint_here_p = <%s>\n",
1308 host_address_to_string (gdbarch
->program_breakpoint_here_p
));
1310 "gdbarch_dump: gdbarch_auxv_parse_p() = %d\n",
1311 gdbarch_auxv_parse_p (gdbarch
));
1313 "gdbarch_dump: auxv_parse = <%s>\n",
1314 host_address_to_string (gdbarch
->auxv_parse
));
1316 "gdbarch_dump: print_auxv_entry = <%s>\n",
1317 host_address_to_string (gdbarch
->print_auxv_entry
));
1319 "gdbarch_dump: vsyscall_range = <%s>\n",
1320 host_address_to_string (gdbarch
->vsyscall_range
));
1322 "gdbarch_dump: infcall_mmap = <%s>\n",
1323 host_address_to_string (gdbarch
->infcall_mmap
));
1325 "gdbarch_dump: infcall_munmap = <%s>\n",
1326 host_address_to_string (gdbarch
->infcall_munmap
));
1328 "gdbarch_dump: gcc_target_options = <%s>\n",
1329 host_address_to_string (gdbarch
->gcc_target_options
));
1331 "gdbarch_dump: gnu_triplet_regexp = <%s>\n",
1332 host_address_to_string (gdbarch
->gnu_triplet_regexp
));
1334 "gdbarch_dump: addressable_memory_unit_size = <%s>\n",
1335 host_address_to_string (gdbarch
->addressable_memory_unit_size
));
1337 "gdbarch_dump: disassembler_options_implicit = %s\n",
1338 pstring (gdbarch
->disassembler_options_implicit
));
1340 "gdbarch_dump: disassembler_options = %s\n",
1341 pstring_ptr (gdbarch
->disassembler_options
));
1343 "gdbarch_dump: valid_disassembler_options = %s\n",
1344 host_address_to_string (gdbarch
->valid_disassembler_options
));
1346 "gdbarch_dump: type_align = <%s>\n",
1347 host_address_to_string (gdbarch
->type_align
));
1349 "gdbarch_dump: get_pc_address_flags = <%s>\n",
1350 host_address_to_string (gdbarch
->get_pc_address_flags
));
1352 "gdbarch_dump: read_core_file_mappings = <%s>\n",
1353 host_address_to_string (gdbarch
->read_core_file_mappings
));
1354 if (gdbarch
->dump_tdep
!= NULL
)
1355 gdbarch
->dump_tdep (gdbarch
, file
);
1359 const struct bfd_arch_info
*
1360 gdbarch_bfd_arch_info (struct gdbarch
*gdbarch
)
1362 gdb_assert (gdbarch
!= NULL
);
1363 if (gdbarch_debug
>= 2)
1364 gdb_printf (gdb_stdlog
, "gdbarch_bfd_arch_info called\n");
1365 return gdbarch
->bfd_arch_info
;
1369 gdbarch_byte_order (struct gdbarch
*gdbarch
)
1371 gdb_assert (gdbarch
!= NULL
);
1372 if (gdbarch_debug
>= 2)
1373 gdb_printf (gdb_stdlog
, "gdbarch_byte_order called\n");
1374 return gdbarch
->byte_order
;
1378 gdbarch_byte_order_for_code (struct gdbarch
*gdbarch
)
1380 gdb_assert (gdbarch
!= NULL
);
1381 if (gdbarch_debug
>= 2)
1382 gdb_printf (gdb_stdlog
, "gdbarch_byte_order_for_code called\n");
1383 return gdbarch
->byte_order_for_code
;
1387 gdbarch_osabi (struct gdbarch
*gdbarch
)
1389 gdb_assert (gdbarch
!= NULL
);
1390 if (gdbarch_debug
>= 2)
1391 gdb_printf (gdb_stdlog
, "gdbarch_osabi called\n");
1392 return gdbarch
->osabi
;
1395 const struct target_desc
*
1396 gdbarch_target_desc (struct gdbarch
*gdbarch
)
1398 gdb_assert (gdbarch
!= NULL
);
1399 if (gdbarch_debug
>= 2)
1400 gdb_printf (gdb_stdlog
, "gdbarch_target_desc called\n");
1401 return gdbarch
->target_desc
;
1405 gdbarch_short_bit (struct gdbarch
*gdbarch
)
1407 gdb_assert (gdbarch
!= NULL
);
1408 /* Skip verify of short_bit, invalid_p == 0 */
1409 if (gdbarch_debug
>= 2)
1410 gdb_printf (gdb_stdlog
, "gdbarch_short_bit called\n");
1411 return gdbarch
->short_bit
;
1415 set_gdbarch_short_bit (struct gdbarch
*gdbarch
,
1418 gdbarch
->short_bit
= short_bit
;
1422 gdbarch_int_bit (struct gdbarch
*gdbarch
)
1424 gdb_assert (gdbarch
!= NULL
);
1425 /* Skip verify of int_bit, invalid_p == 0 */
1426 if (gdbarch_debug
>= 2)
1427 gdb_printf (gdb_stdlog
, "gdbarch_int_bit called\n");
1428 return gdbarch
->int_bit
;
1432 set_gdbarch_int_bit (struct gdbarch
*gdbarch
,
1435 gdbarch
->int_bit
= int_bit
;
1439 gdbarch_long_bit (struct gdbarch
*gdbarch
)
1441 gdb_assert (gdbarch
!= NULL
);
1442 /* Skip verify of long_bit, invalid_p == 0 */
1443 if (gdbarch_debug
>= 2)
1444 gdb_printf (gdb_stdlog
, "gdbarch_long_bit called\n");
1445 return gdbarch
->long_bit
;
1449 set_gdbarch_long_bit (struct gdbarch
*gdbarch
,
1452 gdbarch
->long_bit
= long_bit
;
1456 gdbarch_long_long_bit (struct gdbarch
*gdbarch
)
1458 gdb_assert (gdbarch
!= NULL
);
1459 /* Skip verify of long_long_bit, invalid_p == 0 */
1460 if (gdbarch_debug
>= 2)
1461 gdb_printf (gdb_stdlog
, "gdbarch_long_long_bit called\n");
1462 return gdbarch
->long_long_bit
;
1466 set_gdbarch_long_long_bit (struct gdbarch
*gdbarch
,
1469 gdbarch
->long_long_bit
= long_long_bit
;
1473 gdbarch_bfloat16_bit (struct gdbarch
*gdbarch
)
1475 gdb_assert (gdbarch
!= NULL
);
1476 /* Skip verify of bfloat16_bit, invalid_p == 0 */
1477 if (gdbarch_debug
>= 2)
1478 gdb_printf (gdb_stdlog
, "gdbarch_bfloat16_bit called\n");
1479 return gdbarch
->bfloat16_bit
;
1483 set_gdbarch_bfloat16_bit (struct gdbarch
*gdbarch
,
1486 gdbarch
->bfloat16_bit
= bfloat16_bit
;
1489 const struct floatformat
**
1490 gdbarch_bfloat16_format (struct gdbarch
*gdbarch
)
1492 gdb_assert (gdbarch
!= NULL
);
1493 if (gdbarch_debug
>= 2)
1494 gdb_printf (gdb_stdlog
, "gdbarch_bfloat16_format called\n");
1495 return gdbarch
->bfloat16_format
;
1499 set_gdbarch_bfloat16_format (struct gdbarch
*gdbarch
,
1500 const struct floatformat
** bfloat16_format
)
1502 gdbarch
->bfloat16_format
= bfloat16_format
;
1506 gdbarch_half_bit (struct gdbarch
*gdbarch
)
1508 gdb_assert (gdbarch
!= NULL
);
1509 /* Skip verify of half_bit, invalid_p == 0 */
1510 if (gdbarch_debug
>= 2)
1511 gdb_printf (gdb_stdlog
, "gdbarch_half_bit called\n");
1512 return gdbarch
->half_bit
;
1516 set_gdbarch_half_bit (struct gdbarch
*gdbarch
,
1519 gdbarch
->half_bit
= half_bit
;
1522 const struct floatformat
**
1523 gdbarch_half_format (struct gdbarch
*gdbarch
)
1525 gdb_assert (gdbarch
!= NULL
);
1526 if (gdbarch_debug
>= 2)
1527 gdb_printf (gdb_stdlog
, "gdbarch_half_format called\n");
1528 return gdbarch
->half_format
;
1532 set_gdbarch_half_format (struct gdbarch
*gdbarch
,
1533 const struct floatformat
** half_format
)
1535 gdbarch
->half_format
= half_format
;
1539 gdbarch_float_bit (struct gdbarch
*gdbarch
)
1541 gdb_assert (gdbarch
!= NULL
);
1542 /* Skip verify of float_bit, invalid_p == 0 */
1543 if (gdbarch_debug
>= 2)
1544 gdb_printf (gdb_stdlog
, "gdbarch_float_bit called\n");
1545 return gdbarch
->float_bit
;
1549 set_gdbarch_float_bit (struct gdbarch
*gdbarch
,
1552 gdbarch
->float_bit
= float_bit
;
1555 const struct floatformat
**
1556 gdbarch_float_format (struct gdbarch
*gdbarch
)
1558 gdb_assert (gdbarch
!= NULL
);
1559 if (gdbarch_debug
>= 2)
1560 gdb_printf (gdb_stdlog
, "gdbarch_float_format called\n");
1561 return gdbarch
->float_format
;
1565 set_gdbarch_float_format (struct gdbarch
*gdbarch
,
1566 const struct floatformat
** float_format
)
1568 gdbarch
->float_format
= float_format
;
1572 gdbarch_double_bit (struct gdbarch
*gdbarch
)
1574 gdb_assert (gdbarch
!= NULL
);
1575 /* Skip verify of double_bit, invalid_p == 0 */
1576 if (gdbarch_debug
>= 2)
1577 gdb_printf (gdb_stdlog
, "gdbarch_double_bit called\n");
1578 return gdbarch
->double_bit
;
1582 set_gdbarch_double_bit (struct gdbarch
*gdbarch
,
1585 gdbarch
->double_bit
= double_bit
;
1588 const struct floatformat
**
1589 gdbarch_double_format (struct gdbarch
*gdbarch
)
1591 gdb_assert (gdbarch
!= NULL
);
1592 if (gdbarch_debug
>= 2)
1593 gdb_printf (gdb_stdlog
, "gdbarch_double_format called\n");
1594 return gdbarch
->double_format
;
1598 set_gdbarch_double_format (struct gdbarch
*gdbarch
,
1599 const struct floatformat
** double_format
)
1601 gdbarch
->double_format
= double_format
;
1605 gdbarch_long_double_bit (struct gdbarch
*gdbarch
)
1607 gdb_assert (gdbarch
!= NULL
);
1608 /* Skip verify of long_double_bit, invalid_p == 0 */
1609 if (gdbarch_debug
>= 2)
1610 gdb_printf (gdb_stdlog
, "gdbarch_long_double_bit called\n");
1611 return gdbarch
->long_double_bit
;
1615 set_gdbarch_long_double_bit (struct gdbarch
*gdbarch
,
1616 int long_double_bit
)
1618 gdbarch
->long_double_bit
= long_double_bit
;
1621 const struct floatformat
**
1622 gdbarch_long_double_format (struct gdbarch
*gdbarch
)
1624 gdb_assert (gdbarch
!= NULL
);
1625 if (gdbarch_debug
>= 2)
1626 gdb_printf (gdb_stdlog
, "gdbarch_long_double_format called\n");
1627 return gdbarch
->long_double_format
;
1631 set_gdbarch_long_double_format (struct gdbarch
*gdbarch
,
1632 const struct floatformat
** long_double_format
)
1634 gdbarch
->long_double_format
= long_double_format
;
1638 gdbarch_wchar_bit (struct gdbarch
*gdbarch
)
1640 gdb_assert (gdbarch
!= NULL
);
1641 /* Skip verify of wchar_bit, invalid_p == 0 */
1642 if (gdbarch_debug
>= 2)
1643 gdb_printf (gdb_stdlog
, "gdbarch_wchar_bit called\n");
1644 return gdbarch
->wchar_bit
;
1648 set_gdbarch_wchar_bit (struct gdbarch
*gdbarch
,
1651 gdbarch
->wchar_bit
= wchar_bit
;
1655 gdbarch_wchar_signed (struct gdbarch
*gdbarch
)
1657 gdb_assert (gdbarch
!= NULL
);
1658 /* Check variable changed from pre-default. */
1659 gdb_assert (gdbarch
->wchar_signed
!= -1);
1660 if (gdbarch_debug
>= 2)
1661 gdb_printf (gdb_stdlog
, "gdbarch_wchar_signed called\n");
1662 return gdbarch
->wchar_signed
;
1666 set_gdbarch_wchar_signed (struct gdbarch
*gdbarch
,
1669 gdbarch
->wchar_signed
= wchar_signed
;
1672 const struct floatformat
**
1673 gdbarch_floatformat_for_type (struct gdbarch
*gdbarch
, const char *name
, int length
)
1675 gdb_assert (gdbarch
!= NULL
);
1676 gdb_assert (gdbarch
->floatformat_for_type
!= NULL
);
1677 if (gdbarch_debug
>= 2)
1678 gdb_printf (gdb_stdlog
, "gdbarch_floatformat_for_type called\n");
1679 return gdbarch
->floatformat_for_type (gdbarch
, name
, length
);
1683 set_gdbarch_floatformat_for_type (struct gdbarch
*gdbarch
,
1684 gdbarch_floatformat_for_type_ftype floatformat_for_type
)
1686 gdbarch
->floatformat_for_type
= floatformat_for_type
;
1690 gdbarch_ptr_bit (struct gdbarch
*gdbarch
)
1692 gdb_assert (gdbarch
!= NULL
);
1693 /* Skip verify of ptr_bit, invalid_p == 0 */
1694 if (gdbarch_debug
>= 2)
1695 gdb_printf (gdb_stdlog
, "gdbarch_ptr_bit called\n");
1696 return gdbarch
->ptr_bit
;
1700 set_gdbarch_ptr_bit (struct gdbarch
*gdbarch
,
1703 gdbarch
->ptr_bit
= ptr_bit
;
1707 gdbarch_addr_bit (struct gdbarch
*gdbarch
)
1709 gdb_assert (gdbarch
!= NULL
);
1710 /* Check variable changed from pre-default. */
1711 gdb_assert (gdbarch
->addr_bit
!= 0);
1712 if (gdbarch_debug
>= 2)
1713 gdb_printf (gdb_stdlog
, "gdbarch_addr_bit called\n");
1714 return gdbarch
->addr_bit
;
1718 set_gdbarch_addr_bit (struct gdbarch
*gdbarch
,
1721 gdbarch
->addr_bit
= addr_bit
;
1725 gdbarch_dwarf2_addr_size (struct gdbarch
*gdbarch
)
1727 gdb_assert (gdbarch
!= NULL
);
1728 /* Check variable changed from pre-default. */
1729 gdb_assert (gdbarch
->dwarf2_addr_size
!= 0);
1730 if (gdbarch_debug
>= 2)
1731 gdb_printf (gdb_stdlog
, "gdbarch_dwarf2_addr_size called\n");
1732 return gdbarch
->dwarf2_addr_size
;
1736 set_gdbarch_dwarf2_addr_size (struct gdbarch
*gdbarch
,
1737 int dwarf2_addr_size
)
1739 gdbarch
->dwarf2_addr_size
= dwarf2_addr_size
;
1743 gdbarch_char_signed (struct gdbarch
*gdbarch
)
1745 gdb_assert (gdbarch
!= NULL
);
1746 /* Check variable changed from pre-default. */
1747 gdb_assert (gdbarch
->char_signed
!= -1);
1748 if (gdbarch_debug
>= 2)
1749 gdb_printf (gdb_stdlog
, "gdbarch_char_signed called\n");
1750 return gdbarch
->char_signed
;
1754 set_gdbarch_char_signed (struct gdbarch
*gdbarch
,
1757 gdbarch
->char_signed
= char_signed
;
1761 gdbarch_read_pc_p (struct gdbarch
*gdbarch
)
1763 gdb_assert (gdbarch
!= NULL
);
1764 return gdbarch
->read_pc
!= NULL
;
1768 gdbarch_read_pc (struct gdbarch
*gdbarch
, readable_regcache
*regcache
)
1770 gdb_assert (gdbarch
!= NULL
);
1771 gdb_assert (gdbarch
->read_pc
!= NULL
);
1772 if (gdbarch_debug
>= 2)
1773 gdb_printf (gdb_stdlog
, "gdbarch_read_pc called\n");
1774 return gdbarch
->read_pc (regcache
);
1778 set_gdbarch_read_pc (struct gdbarch
*gdbarch
,
1779 gdbarch_read_pc_ftype read_pc
)
1781 gdbarch
->read_pc
= read_pc
;
1785 gdbarch_write_pc_p (struct gdbarch
*gdbarch
)
1787 gdb_assert (gdbarch
!= NULL
);
1788 return gdbarch
->write_pc
!= NULL
;
1792 gdbarch_write_pc (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR val
)
1794 gdb_assert (gdbarch
!= NULL
);
1795 gdb_assert (gdbarch
->write_pc
!= NULL
);
1796 if (gdbarch_debug
>= 2)
1797 gdb_printf (gdb_stdlog
, "gdbarch_write_pc called\n");
1798 gdbarch
->write_pc (regcache
, val
);
1802 set_gdbarch_write_pc (struct gdbarch
*gdbarch
,
1803 gdbarch_write_pc_ftype write_pc
)
1805 gdbarch
->write_pc
= write_pc
;
1809 gdbarch_virtual_frame_pointer (struct gdbarch
*gdbarch
, CORE_ADDR pc
, int *frame_regnum
, LONGEST
*frame_offset
)
1811 gdb_assert (gdbarch
!= NULL
);
1812 gdb_assert (gdbarch
->virtual_frame_pointer
!= NULL
);
1813 if (gdbarch_debug
>= 2)
1814 gdb_printf (gdb_stdlog
, "gdbarch_virtual_frame_pointer called\n");
1815 gdbarch
->virtual_frame_pointer (gdbarch
, pc
, frame_regnum
, frame_offset
);
1819 set_gdbarch_virtual_frame_pointer (struct gdbarch
*gdbarch
,
1820 gdbarch_virtual_frame_pointer_ftype virtual_frame_pointer
)
1822 gdbarch
->virtual_frame_pointer
= virtual_frame_pointer
;
1826 gdbarch_pseudo_register_read_p (struct gdbarch
*gdbarch
)
1828 gdb_assert (gdbarch
!= NULL
);
1829 return gdbarch
->pseudo_register_read
!= NULL
;
1832 enum register_status
1833 gdbarch_pseudo_register_read (struct gdbarch
*gdbarch
, readable_regcache
*regcache
, int cookednum
, gdb_byte
*buf
)
1835 gdb_assert (gdbarch
!= NULL
);
1836 gdb_assert (gdbarch
->pseudo_register_read
!= NULL
);
1837 if (gdbarch_debug
>= 2)
1838 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_read called\n");
1839 return gdbarch
->pseudo_register_read (gdbarch
, regcache
, cookednum
, buf
);
1843 set_gdbarch_pseudo_register_read (struct gdbarch
*gdbarch
,
1844 gdbarch_pseudo_register_read_ftype pseudo_register_read
)
1846 gdbarch
->pseudo_register_read
= pseudo_register_read
;
1850 gdbarch_pseudo_register_read_value_p (struct gdbarch
*gdbarch
)
1852 gdb_assert (gdbarch
!= NULL
);
1853 return gdbarch
->pseudo_register_read_value
!= NULL
;
1857 gdbarch_pseudo_register_read_value (struct gdbarch
*gdbarch
, readable_regcache
*regcache
, int cookednum
)
1859 gdb_assert (gdbarch
!= NULL
);
1860 gdb_assert (gdbarch
->pseudo_register_read_value
!= NULL
);
1861 if (gdbarch_debug
>= 2)
1862 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_read_value called\n");
1863 return gdbarch
->pseudo_register_read_value (gdbarch
, regcache
, cookednum
);
1867 set_gdbarch_pseudo_register_read_value (struct gdbarch
*gdbarch
,
1868 gdbarch_pseudo_register_read_value_ftype pseudo_register_read_value
)
1870 gdbarch
->pseudo_register_read_value
= pseudo_register_read_value
;
1874 gdbarch_pseudo_register_write_p (struct gdbarch
*gdbarch
)
1876 gdb_assert (gdbarch
!= NULL
);
1877 return gdbarch
->pseudo_register_write
!= NULL
;
1881 gdbarch_pseudo_register_write (struct gdbarch
*gdbarch
, struct regcache
*regcache
, int cookednum
, const gdb_byte
*buf
)
1883 gdb_assert (gdbarch
!= NULL
);
1884 gdb_assert (gdbarch
->pseudo_register_write
!= NULL
);
1885 if (gdbarch_debug
>= 2)
1886 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_write called\n");
1887 gdbarch
->pseudo_register_write (gdbarch
, regcache
, cookednum
, buf
);
1891 set_gdbarch_pseudo_register_write (struct gdbarch
*gdbarch
,
1892 gdbarch_pseudo_register_write_ftype pseudo_register_write
)
1894 gdbarch
->pseudo_register_write
= pseudo_register_write
;
1898 gdbarch_num_regs (struct gdbarch
*gdbarch
)
1900 gdb_assert (gdbarch
!= NULL
);
1901 /* Check variable changed from pre-default. */
1902 gdb_assert (gdbarch
->num_regs
!= -1);
1903 if (gdbarch_debug
>= 2)
1904 gdb_printf (gdb_stdlog
, "gdbarch_num_regs called\n");
1905 return gdbarch
->num_regs
;
1909 set_gdbarch_num_regs (struct gdbarch
*gdbarch
,
1912 gdbarch
->num_regs
= num_regs
;
1916 gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
)
1918 gdb_assert (gdbarch
!= NULL
);
1919 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
1920 if (gdbarch_debug
>= 2)
1921 gdb_printf (gdb_stdlog
, "gdbarch_num_pseudo_regs called\n");
1922 return gdbarch
->num_pseudo_regs
;
1926 set_gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
,
1927 int num_pseudo_regs
)
1929 gdbarch
->num_pseudo_regs
= num_pseudo_regs
;
1933 gdbarch_ax_pseudo_register_collect_p (struct gdbarch
*gdbarch
)
1935 gdb_assert (gdbarch
!= NULL
);
1936 return gdbarch
->ax_pseudo_register_collect
!= NULL
;
1940 gdbarch_ax_pseudo_register_collect (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, int reg
)
1942 gdb_assert (gdbarch
!= NULL
);
1943 gdb_assert (gdbarch
->ax_pseudo_register_collect
!= NULL
);
1944 if (gdbarch_debug
>= 2)
1945 gdb_printf (gdb_stdlog
, "gdbarch_ax_pseudo_register_collect called\n");
1946 return gdbarch
->ax_pseudo_register_collect (gdbarch
, ax
, reg
);
1950 set_gdbarch_ax_pseudo_register_collect (struct gdbarch
*gdbarch
,
1951 gdbarch_ax_pseudo_register_collect_ftype ax_pseudo_register_collect
)
1953 gdbarch
->ax_pseudo_register_collect
= ax_pseudo_register_collect
;
1957 gdbarch_ax_pseudo_register_push_stack_p (struct gdbarch
*gdbarch
)
1959 gdb_assert (gdbarch
!= NULL
);
1960 return gdbarch
->ax_pseudo_register_push_stack
!= NULL
;
1964 gdbarch_ax_pseudo_register_push_stack (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, int reg
)
1966 gdb_assert (gdbarch
!= NULL
);
1967 gdb_assert (gdbarch
->ax_pseudo_register_push_stack
!= NULL
);
1968 if (gdbarch_debug
>= 2)
1969 gdb_printf (gdb_stdlog
, "gdbarch_ax_pseudo_register_push_stack called\n");
1970 return gdbarch
->ax_pseudo_register_push_stack (gdbarch
, ax
, reg
);
1974 set_gdbarch_ax_pseudo_register_push_stack (struct gdbarch
*gdbarch
,
1975 gdbarch_ax_pseudo_register_push_stack_ftype ax_pseudo_register_push_stack
)
1977 gdbarch
->ax_pseudo_register_push_stack
= ax_pseudo_register_push_stack
;
1981 gdbarch_report_signal_info_p (struct gdbarch
*gdbarch
)
1983 gdb_assert (gdbarch
!= NULL
);
1984 return gdbarch
->report_signal_info
!= NULL
;
1988 gdbarch_report_signal_info (struct gdbarch
*gdbarch
, struct ui_out
*uiout
, enum gdb_signal siggnal
)
1990 gdb_assert (gdbarch
!= NULL
);
1991 gdb_assert (gdbarch
->report_signal_info
!= NULL
);
1992 if (gdbarch_debug
>= 2)
1993 gdb_printf (gdb_stdlog
, "gdbarch_report_signal_info called\n");
1994 gdbarch
->report_signal_info (gdbarch
, uiout
, siggnal
);
1998 set_gdbarch_report_signal_info (struct gdbarch
*gdbarch
,
1999 gdbarch_report_signal_info_ftype report_signal_info
)
2001 gdbarch
->report_signal_info
= report_signal_info
;
2005 gdbarch_sp_regnum (struct gdbarch
*gdbarch
)
2007 gdb_assert (gdbarch
!= NULL
);
2008 /* Skip verify of sp_regnum, invalid_p == 0 */
2009 if (gdbarch_debug
>= 2)
2010 gdb_printf (gdb_stdlog
, "gdbarch_sp_regnum called\n");
2011 return gdbarch
->sp_regnum
;
2015 set_gdbarch_sp_regnum (struct gdbarch
*gdbarch
,
2018 gdbarch
->sp_regnum
= sp_regnum
;
2022 gdbarch_pc_regnum (struct gdbarch
*gdbarch
)
2024 gdb_assert (gdbarch
!= NULL
);
2025 /* Skip verify of pc_regnum, invalid_p == 0 */
2026 if (gdbarch_debug
>= 2)
2027 gdb_printf (gdb_stdlog
, "gdbarch_pc_regnum called\n");
2028 return gdbarch
->pc_regnum
;
2032 set_gdbarch_pc_regnum (struct gdbarch
*gdbarch
,
2035 gdbarch
->pc_regnum
= pc_regnum
;
2039 gdbarch_ps_regnum (struct gdbarch
*gdbarch
)
2041 gdb_assert (gdbarch
!= NULL
);
2042 /* Skip verify of ps_regnum, invalid_p == 0 */
2043 if (gdbarch_debug
>= 2)
2044 gdb_printf (gdb_stdlog
, "gdbarch_ps_regnum called\n");
2045 return gdbarch
->ps_regnum
;
2049 set_gdbarch_ps_regnum (struct gdbarch
*gdbarch
,
2052 gdbarch
->ps_regnum
= ps_regnum
;
2056 gdbarch_fp0_regnum (struct gdbarch
*gdbarch
)
2058 gdb_assert (gdbarch
!= NULL
);
2059 /* Skip verify of fp0_regnum, invalid_p == 0 */
2060 if (gdbarch_debug
>= 2)
2061 gdb_printf (gdb_stdlog
, "gdbarch_fp0_regnum called\n");
2062 return gdbarch
->fp0_regnum
;
2066 set_gdbarch_fp0_regnum (struct gdbarch
*gdbarch
,
2069 gdbarch
->fp0_regnum
= fp0_regnum
;
2073 gdbarch_stab_reg_to_regnum (struct gdbarch
*gdbarch
, int stab_regnr
)
2075 gdb_assert (gdbarch
!= NULL
);
2076 gdb_assert (gdbarch
->stab_reg_to_regnum
!= NULL
);
2077 if (gdbarch_debug
>= 2)
2078 gdb_printf (gdb_stdlog
, "gdbarch_stab_reg_to_regnum called\n");
2079 return gdbarch
->stab_reg_to_regnum (gdbarch
, stab_regnr
);
2083 set_gdbarch_stab_reg_to_regnum (struct gdbarch
*gdbarch
,
2084 gdbarch_stab_reg_to_regnum_ftype stab_reg_to_regnum
)
2086 gdbarch
->stab_reg_to_regnum
= stab_reg_to_regnum
;
2090 gdbarch_ecoff_reg_to_regnum (struct gdbarch
*gdbarch
, int ecoff_regnr
)
2092 gdb_assert (gdbarch
!= NULL
);
2093 gdb_assert (gdbarch
->ecoff_reg_to_regnum
!= NULL
);
2094 if (gdbarch_debug
>= 2)
2095 gdb_printf (gdb_stdlog
, "gdbarch_ecoff_reg_to_regnum called\n");
2096 return gdbarch
->ecoff_reg_to_regnum (gdbarch
, ecoff_regnr
);
2100 set_gdbarch_ecoff_reg_to_regnum (struct gdbarch
*gdbarch
,
2101 gdbarch_ecoff_reg_to_regnum_ftype ecoff_reg_to_regnum
)
2103 gdbarch
->ecoff_reg_to_regnum
= ecoff_reg_to_regnum
;
2107 gdbarch_sdb_reg_to_regnum (struct gdbarch
*gdbarch
, int sdb_regnr
)
2109 gdb_assert (gdbarch
!= NULL
);
2110 gdb_assert (gdbarch
->sdb_reg_to_regnum
!= NULL
);
2111 if (gdbarch_debug
>= 2)
2112 gdb_printf (gdb_stdlog
, "gdbarch_sdb_reg_to_regnum called\n");
2113 return gdbarch
->sdb_reg_to_regnum (gdbarch
, sdb_regnr
);
2117 set_gdbarch_sdb_reg_to_regnum (struct gdbarch
*gdbarch
,
2118 gdbarch_sdb_reg_to_regnum_ftype sdb_reg_to_regnum
)
2120 gdbarch
->sdb_reg_to_regnum
= sdb_reg_to_regnum
;
2124 gdbarch_dwarf2_reg_to_regnum (struct gdbarch
*gdbarch
, int dwarf2_regnr
)
2126 gdb_assert (gdbarch
!= NULL
);
2127 gdb_assert (gdbarch
->dwarf2_reg_to_regnum
!= NULL
);
2128 if (gdbarch_debug
>= 2)
2129 gdb_printf (gdb_stdlog
, "gdbarch_dwarf2_reg_to_regnum called\n");
2130 return gdbarch
->dwarf2_reg_to_regnum (gdbarch
, dwarf2_regnr
);
2134 set_gdbarch_dwarf2_reg_to_regnum (struct gdbarch
*gdbarch
,
2135 gdbarch_dwarf2_reg_to_regnum_ftype dwarf2_reg_to_regnum
)
2137 gdbarch
->dwarf2_reg_to_regnum
= dwarf2_reg_to_regnum
;
2141 gdbarch_register_name (struct gdbarch
*gdbarch
, int regnr
)
2143 gdb_assert (gdbarch
!= NULL
);
2144 gdb_assert (gdbarch
->register_name
!= NULL
);
2145 gdb_assert (regnr
>= 0);
2146 gdb_assert (regnr
< gdbarch_num_cooked_regs (gdbarch
));
2147 if (gdbarch_debug
>= 2)
2148 gdb_printf (gdb_stdlog
, "gdbarch_register_name called\n");
2149 auto result
= gdbarch
->register_name (gdbarch
, regnr
);
2150 gdb_assert (result
!= nullptr);
2155 set_gdbarch_register_name (struct gdbarch
*gdbarch
,
2156 gdbarch_register_name_ftype register_name
)
2158 gdbarch
->register_name
= register_name
;
2162 gdbarch_register_type (struct gdbarch
*gdbarch
, int reg_nr
)
2164 gdb_assert (gdbarch
!= NULL
);
2165 gdb_assert (gdbarch
->register_type
!= NULL
);
2166 if (gdbarch_debug
>= 2)
2167 gdb_printf (gdb_stdlog
, "gdbarch_register_type called\n");
2168 return gdbarch
->register_type (gdbarch
, reg_nr
);
2172 set_gdbarch_register_type (struct gdbarch
*gdbarch
,
2173 gdbarch_register_type_ftype register_type
)
2175 gdbarch
->register_type
= register_type
;
2179 gdbarch_dummy_id (struct gdbarch
*gdbarch
, frame_info_ptr this_frame
)
2181 gdb_assert (gdbarch
!= NULL
);
2182 gdb_assert (gdbarch
->dummy_id
!= NULL
);
2183 if (gdbarch_debug
>= 2)
2184 gdb_printf (gdb_stdlog
, "gdbarch_dummy_id called\n");
2185 return gdbarch
->dummy_id (gdbarch
, this_frame
);
2189 set_gdbarch_dummy_id (struct gdbarch
*gdbarch
,
2190 gdbarch_dummy_id_ftype dummy_id
)
2192 gdbarch
->dummy_id
= dummy_id
;
2196 gdbarch_deprecated_fp_regnum (struct gdbarch
*gdbarch
)
2198 gdb_assert (gdbarch
!= NULL
);
2199 /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
2200 if (gdbarch_debug
>= 2)
2201 gdb_printf (gdb_stdlog
, "gdbarch_deprecated_fp_regnum called\n");
2202 return gdbarch
->deprecated_fp_regnum
;
2206 set_gdbarch_deprecated_fp_regnum (struct gdbarch
*gdbarch
,
2207 int deprecated_fp_regnum
)
2209 gdbarch
->deprecated_fp_regnum
= deprecated_fp_regnum
;
2213 gdbarch_push_dummy_call_p (struct gdbarch
*gdbarch
)
2215 gdb_assert (gdbarch
!= NULL
);
2216 return gdbarch
->push_dummy_call
!= NULL
;
2220 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
)
2222 gdb_assert (gdbarch
!= NULL
);
2223 gdb_assert (gdbarch
->push_dummy_call
!= NULL
);
2224 if (gdbarch_debug
>= 2)
2225 gdb_printf (gdb_stdlog
, "gdbarch_push_dummy_call called\n");
2226 return gdbarch
->push_dummy_call (gdbarch
, function
, regcache
, bp_addr
, nargs
, args
, sp
, return_method
, struct_addr
);
2230 set_gdbarch_push_dummy_call (struct gdbarch
*gdbarch
,
2231 gdbarch_push_dummy_call_ftype push_dummy_call
)
2233 gdbarch
->push_dummy_call
= push_dummy_call
;
2236 enum call_dummy_location_type
2237 gdbarch_call_dummy_location (struct gdbarch
*gdbarch
)
2239 gdb_assert (gdbarch
!= NULL
);
2240 /* Skip verify of call_dummy_location, invalid_p == 0 */
2241 if (gdbarch_debug
>= 2)
2242 gdb_printf (gdb_stdlog
, "gdbarch_call_dummy_location called\n");
2243 return gdbarch
->call_dummy_location
;
2247 set_gdbarch_call_dummy_location (struct gdbarch
*gdbarch
,
2248 enum call_dummy_location_type call_dummy_location
)
2250 gdbarch
->call_dummy_location
= call_dummy_location
;
2254 gdbarch_push_dummy_code_p (struct gdbarch
*gdbarch
)
2256 gdb_assert (gdbarch
!= NULL
);
2257 return gdbarch
->push_dummy_code
!= NULL
;
2261 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
)
2263 gdb_assert (gdbarch
!= NULL
);
2264 gdb_assert (gdbarch
->push_dummy_code
!= NULL
);
2265 if (gdbarch_debug
>= 2)
2266 gdb_printf (gdb_stdlog
, "gdbarch_push_dummy_code called\n");
2267 return gdbarch
->push_dummy_code (gdbarch
, sp
, funaddr
, args
, nargs
, value_type
, real_pc
, bp_addr
, regcache
);
2271 set_gdbarch_push_dummy_code (struct gdbarch
*gdbarch
,
2272 gdbarch_push_dummy_code_ftype push_dummy_code
)
2274 gdbarch
->push_dummy_code
= push_dummy_code
;
2278 gdbarch_code_of_frame_writable (struct gdbarch
*gdbarch
, frame_info_ptr frame
)
2280 gdb_assert (gdbarch
!= NULL
);
2281 gdb_assert (gdbarch
->code_of_frame_writable
!= NULL
);
2282 if (gdbarch_debug
>= 2)
2283 gdb_printf (gdb_stdlog
, "gdbarch_code_of_frame_writable called\n");
2284 return gdbarch
->code_of_frame_writable (gdbarch
, frame
);
2288 set_gdbarch_code_of_frame_writable (struct gdbarch
*gdbarch
,
2289 gdbarch_code_of_frame_writable_ftype code_of_frame_writable
)
2291 gdbarch
->code_of_frame_writable
= code_of_frame_writable
;
2295 gdbarch_print_registers_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, frame_info_ptr frame
, int regnum
, int all
)
2297 gdb_assert (gdbarch
!= NULL
);
2298 gdb_assert (gdbarch
->print_registers_info
!= NULL
);
2299 if (gdbarch_debug
>= 2)
2300 gdb_printf (gdb_stdlog
, "gdbarch_print_registers_info called\n");
2301 gdbarch
->print_registers_info (gdbarch
, file
, frame
, regnum
, all
);
2305 set_gdbarch_print_registers_info (struct gdbarch
*gdbarch
,
2306 gdbarch_print_registers_info_ftype print_registers_info
)
2308 gdbarch
->print_registers_info
= print_registers_info
;
2312 gdbarch_print_float_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, frame_info_ptr frame
, const char *args
)
2314 gdb_assert (gdbarch
!= NULL
);
2315 gdb_assert (gdbarch
->print_float_info
!= NULL
);
2316 if (gdbarch_debug
>= 2)
2317 gdb_printf (gdb_stdlog
, "gdbarch_print_float_info called\n");
2318 gdbarch
->print_float_info (gdbarch
, file
, frame
, args
);
2322 set_gdbarch_print_float_info (struct gdbarch
*gdbarch
,
2323 gdbarch_print_float_info_ftype print_float_info
)
2325 gdbarch
->print_float_info
= print_float_info
;
2329 gdbarch_print_vector_info_p (struct gdbarch
*gdbarch
)
2331 gdb_assert (gdbarch
!= NULL
);
2332 return gdbarch
->print_vector_info
!= NULL
;
2336 gdbarch_print_vector_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, frame_info_ptr frame
, const char *args
)
2338 gdb_assert (gdbarch
!= NULL
);
2339 gdb_assert (gdbarch
->print_vector_info
!= NULL
);
2340 if (gdbarch_debug
>= 2)
2341 gdb_printf (gdb_stdlog
, "gdbarch_print_vector_info called\n");
2342 gdbarch
->print_vector_info (gdbarch
, file
, frame
, args
);
2346 set_gdbarch_print_vector_info (struct gdbarch
*gdbarch
,
2347 gdbarch_print_vector_info_ftype print_vector_info
)
2349 gdbarch
->print_vector_info
= print_vector_info
;
2353 gdbarch_register_sim_regno (struct gdbarch
*gdbarch
, int reg_nr
)
2355 gdb_assert (gdbarch
!= NULL
);
2356 gdb_assert (gdbarch
->register_sim_regno
!= NULL
);
2357 if (gdbarch_debug
>= 2)
2358 gdb_printf (gdb_stdlog
, "gdbarch_register_sim_regno called\n");
2359 return gdbarch
->register_sim_regno (gdbarch
, reg_nr
);
2363 set_gdbarch_register_sim_regno (struct gdbarch
*gdbarch
,
2364 gdbarch_register_sim_regno_ftype register_sim_regno
)
2366 gdbarch
->register_sim_regno
= register_sim_regno
;
2370 gdbarch_cannot_fetch_register (struct gdbarch
*gdbarch
, int regnum
)
2372 gdb_assert (gdbarch
!= NULL
);
2373 gdb_assert (gdbarch
->cannot_fetch_register
!= NULL
);
2374 if (gdbarch_debug
>= 2)
2375 gdb_printf (gdb_stdlog
, "gdbarch_cannot_fetch_register called\n");
2376 return gdbarch
->cannot_fetch_register (gdbarch
, regnum
);
2380 set_gdbarch_cannot_fetch_register (struct gdbarch
*gdbarch
,
2381 gdbarch_cannot_fetch_register_ftype cannot_fetch_register
)
2383 gdbarch
->cannot_fetch_register
= cannot_fetch_register
;
2387 gdbarch_cannot_store_register (struct gdbarch
*gdbarch
, int regnum
)
2389 gdb_assert (gdbarch
!= NULL
);
2390 gdb_assert (gdbarch
->cannot_store_register
!= NULL
);
2391 if (gdbarch_debug
>= 2)
2392 gdb_printf (gdb_stdlog
, "gdbarch_cannot_store_register called\n");
2393 return gdbarch
->cannot_store_register (gdbarch
, regnum
);
2397 set_gdbarch_cannot_store_register (struct gdbarch
*gdbarch
,
2398 gdbarch_cannot_store_register_ftype cannot_store_register
)
2400 gdbarch
->cannot_store_register
= cannot_store_register
;
2404 gdbarch_get_longjmp_target_p (struct gdbarch
*gdbarch
)
2406 gdb_assert (gdbarch
!= NULL
);
2407 return gdbarch
->get_longjmp_target
!= NULL
;
2411 gdbarch_get_longjmp_target (struct gdbarch
*gdbarch
, frame_info_ptr frame
, CORE_ADDR
*pc
)
2413 gdb_assert (gdbarch
!= NULL
);
2414 gdb_assert (gdbarch
->get_longjmp_target
!= NULL
);
2415 if (gdbarch_debug
>= 2)
2416 gdb_printf (gdb_stdlog
, "gdbarch_get_longjmp_target called\n");
2417 return gdbarch
->get_longjmp_target (frame
, pc
);
2421 set_gdbarch_get_longjmp_target (struct gdbarch
*gdbarch
,
2422 gdbarch_get_longjmp_target_ftype get_longjmp_target
)
2424 gdbarch
->get_longjmp_target
= get_longjmp_target
;
2428 gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
)
2430 gdb_assert (gdbarch
!= NULL
);
2431 /* Skip verify of believe_pcc_promotion, invalid_p == 0 */
2432 if (gdbarch_debug
>= 2)
2433 gdb_printf (gdb_stdlog
, "gdbarch_believe_pcc_promotion called\n");
2434 return gdbarch
->believe_pcc_promotion
;
2438 set_gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
,
2439 int believe_pcc_promotion
)
2441 gdbarch
->believe_pcc_promotion
= believe_pcc_promotion
;
2445 gdbarch_convert_register_p (struct gdbarch
*gdbarch
, int regnum
, struct type
*type
)
2447 gdb_assert (gdbarch
!= NULL
);
2448 gdb_assert (gdbarch
->convert_register_p
!= NULL
);
2449 if (gdbarch_debug
>= 2)
2450 gdb_printf (gdb_stdlog
, "gdbarch_convert_register_p called\n");
2451 return gdbarch
->convert_register_p (gdbarch
, regnum
, type
);
2455 set_gdbarch_convert_register_p (struct gdbarch
*gdbarch
,
2456 gdbarch_convert_register_p_ftype convert_register_p
)
2458 gdbarch
->convert_register_p
= convert_register_p
;
2462 gdbarch_register_to_value (struct gdbarch
*gdbarch
, frame_info_ptr frame
, int regnum
, struct type
*type
, gdb_byte
*buf
, int *optimizedp
, int *unavailablep
)
2464 gdb_assert (gdbarch
!= NULL
);
2465 gdb_assert (gdbarch
->register_to_value
!= NULL
);
2466 if (gdbarch_debug
>= 2)
2467 gdb_printf (gdb_stdlog
, "gdbarch_register_to_value called\n");
2468 return gdbarch
->register_to_value (frame
, regnum
, type
, buf
, optimizedp
, unavailablep
);
2472 set_gdbarch_register_to_value (struct gdbarch
*gdbarch
,
2473 gdbarch_register_to_value_ftype register_to_value
)
2475 gdbarch
->register_to_value
= register_to_value
;
2479 gdbarch_value_to_register (struct gdbarch
*gdbarch
, frame_info_ptr frame
, int regnum
, struct type
*type
, const gdb_byte
*buf
)
2481 gdb_assert (gdbarch
!= NULL
);
2482 gdb_assert (gdbarch
->value_to_register
!= NULL
);
2483 if (gdbarch_debug
>= 2)
2484 gdb_printf (gdb_stdlog
, "gdbarch_value_to_register called\n");
2485 gdbarch
->value_to_register (frame
, regnum
, type
, buf
);
2489 set_gdbarch_value_to_register (struct gdbarch
*gdbarch
,
2490 gdbarch_value_to_register_ftype value_to_register
)
2492 gdbarch
->value_to_register
= value_to_register
;
2496 gdbarch_value_from_register (struct gdbarch
*gdbarch
, struct type
*type
, int regnum
, struct frame_id frame_id
)
2498 gdb_assert (gdbarch
!= NULL
);
2499 gdb_assert (gdbarch
->value_from_register
!= NULL
);
2500 if (gdbarch_debug
>= 2)
2501 gdb_printf (gdb_stdlog
, "gdbarch_value_from_register called\n");
2502 return gdbarch
->value_from_register (gdbarch
, type
, regnum
, frame_id
);
2506 set_gdbarch_value_from_register (struct gdbarch
*gdbarch
,
2507 gdbarch_value_from_register_ftype value_from_register
)
2509 gdbarch
->value_from_register
= value_from_register
;
2513 gdbarch_pointer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, const gdb_byte
*buf
)
2515 gdb_assert (gdbarch
!= NULL
);
2516 gdb_assert (gdbarch
->pointer_to_address
!= NULL
);
2517 if (gdbarch_debug
>= 2)
2518 gdb_printf (gdb_stdlog
, "gdbarch_pointer_to_address called\n");
2519 return gdbarch
->pointer_to_address (gdbarch
, type
, buf
);
2523 set_gdbarch_pointer_to_address (struct gdbarch
*gdbarch
,
2524 gdbarch_pointer_to_address_ftype pointer_to_address
)
2526 gdbarch
->pointer_to_address
= pointer_to_address
;
2530 gdbarch_address_to_pointer (struct gdbarch
*gdbarch
, struct type
*type
, gdb_byte
*buf
, CORE_ADDR addr
)
2532 gdb_assert (gdbarch
!= NULL
);
2533 gdb_assert (gdbarch
->address_to_pointer
!= NULL
);
2534 if (gdbarch_debug
>= 2)
2535 gdb_printf (gdb_stdlog
, "gdbarch_address_to_pointer called\n");
2536 gdbarch
->address_to_pointer (gdbarch
, type
, buf
, addr
);
2540 set_gdbarch_address_to_pointer (struct gdbarch
*gdbarch
,
2541 gdbarch_address_to_pointer_ftype address_to_pointer
)
2543 gdbarch
->address_to_pointer
= address_to_pointer
;
2547 gdbarch_integer_to_address_p (struct gdbarch
*gdbarch
)
2549 gdb_assert (gdbarch
!= NULL
);
2550 return gdbarch
->integer_to_address
!= NULL
;
2554 gdbarch_integer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, const gdb_byte
*buf
)
2556 gdb_assert (gdbarch
!= NULL
);
2557 gdb_assert (gdbarch
->integer_to_address
!= NULL
);
2558 if (gdbarch_debug
>= 2)
2559 gdb_printf (gdb_stdlog
, "gdbarch_integer_to_address called\n");
2560 return gdbarch
->integer_to_address (gdbarch
, type
, buf
);
2564 set_gdbarch_integer_to_address (struct gdbarch
*gdbarch
,
2565 gdbarch_integer_to_address_ftype integer_to_address
)
2567 gdbarch
->integer_to_address
= integer_to_address
;
2571 set_gdbarch_return_value (struct gdbarch
*gdbarch
,
2572 gdbarch_return_value_ftype return_value
)
2574 gdbarch
->return_value
= return_value
;
2577 enum return_value_convention
2578 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
)
2580 gdb_assert (gdbarch
!= NULL
);
2581 gdb_assert (gdbarch
->return_value_as_value
!= NULL
);
2582 if (gdbarch_debug
>= 2)
2583 gdb_printf (gdb_stdlog
, "gdbarch_return_value_as_value called\n");
2584 return gdbarch
->return_value_as_value (gdbarch
, function
, valtype
, regcache
, read_value
, writebuf
);
2588 set_gdbarch_return_value_as_value (struct gdbarch
*gdbarch
,
2589 gdbarch_return_value_as_value_ftype return_value_as_value
)
2591 gdbarch
->return_value_as_value
= return_value_as_value
;
2595 gdbarch_get_return_buf_addr (struct gdbarch
*gdbarch
, struct type
*val_type
, frame_info_ptr cur_frame
)
2597 gdb_assert (gdbarch
!= NULL
);
2598 gdb_assert (gdbarch
->get_return_buf_addr
!= NULL
);
2599 if (gdbarch_debug
>= 2)
2600 gdb_printf (gdb_stdlog
, "gdbarch_get_return_buf_addr called\n");
2601 return gdbarch
->get_return_buf_addr (val_type
, cur_frame
);
2605 set_gdbarch_get_return_buf_addr (struct gdbarch
*gdbarch
,
2606 gdbarch_get_return_buf_addr_ftype get_return_buf_addr
)
2608 gdbarch
->get_return_buf_addr
= get_return_buf_addr
;
2612 gdbarch_return_in_first_hidden_param_p (struct gdbarch
*gdbarch
, struct type
*type
)
2614 gdb_assert (gdbarch
!= NULL
);
2615 gdb_assert (gdbarch
->return_in_first_hidden_param_p
!= NULL
);
2616 if (gdbarch_debug
>= 2)
2617 gdb_printf (gdb_stdlog
, "gdbarch_return_in_first_hidden_param_p called\n");
2618 return gdbarch
->return_in_first_hidden_param_p (gdbarch
, type
);
2622 set_gdbarch_return_in_first_hidden_param_p (struct gdbarch
*gdbarch
,
2623 gdbarch_return_in_first_hidden_param_p_ftype return_in_first_hidden_param_p
)
2625 gdbarch
->return_in_first_hidden_param_p
= return_in_first_hidden_param_p
;
2629 gdbarch_skip_prologue (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2631 gdb_assert (gdbarch
!= NULL
);
2632 gdb_assert (gdbarch
->skip_prologue
!= NULL
);
2633 if (gdbarch_debug
>= 2)
2634 gdb_printf (gdb_stdlog
, "gdbarch_skip_prologue called\n");
2635 return gdbarch
->skip_prologue (gdbarch
, ip
);
2639 set_gdbarch_skip_prologue (struct gdbarch
*gdbarch
,
2640 gdbarch_skip_prologue_ftype skip_prologue
)
2642 gdbarch
->skip_prologue
= skip_prologue
;
2646 gdbarch_skip_main_prologue_p (struct gdbarch
*gdbarch
)
2648 gdb_assert (gdbarch
!= NULL
);
2649 return gdbarch
->skip_main_prologue
!= NULL
;
2653 gdbarch_skip_main_prologue (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2655 gdb_assert (gdbarch
!= NULL
);
2656 gdb_assert (gdbarch
->skip_main_prologue
!= NULL
);
2657 if (gdbarch_debug
>= 2)
2658 gdb_printf (gdb_stdlog
, "gdbarch_skip_main_prologue called\n");
2659 return gdbarch
->skip_main_prologue (gdbarch
, ip
);
2663 set_gdbarch_skip_main_prologue (struct gdbarch
*gdbarch
,
2664 gdbarch_skip_main_prologue_ftype skip_main_prologue
)
2666 gdbarch
->skip_main_prologue
= skip_main_prologue
;
2670 gdbarch_skip_entrypoint_p (struct gdbarch
*gdbarch
)
2672 gdb_assert (gdbarch
!= NULL
);
2673 return gdbarch
->skip_entrypoint
!= NULL
;
2677 gdbarch_skip_entrypoint (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2679 gdb_assert (gdbarch
!= NULL
);
2680 gdb_assert (gdbarch
->skip_entrypoint
!= NULL
);
2681 if (gdbarch_debug
>= 2)
2682 gdb_printf (gdb_stdlog
, "gdbarch_skip_entrypoint called\n");
2683 return gdbarch
->skip_entrypoint (gdbarch
, ip
);
2687 set_gdbarch_skip_entrypoint (struct gdbarch
*gdbarch
,
2688 gdbarch_skip_entrypoint_ftype skip_entrypoint
)
2690 gdbarch
->skip_entrypoint
= skip_entrypoint
;
2694 gdbarch_inner_than (struct gdbarch
*gdbarch
, CORE_ADDR lhs
, CORE_ADDR rhs
)
2696 gdb_assert (gdbarch
!= NULL
);
2697 gdb_assert (gdbarch
->inner_than
!= NULL
);
2698 if (gdbarch_debug
>= 2)
2699 gdb_printf (gdb_stdlog
, "gdbarch_inner_than called\n");
2700 return gdbarch
->inner_than (lhs
, rhs
);
2704 set_gdbarch_inner_than (struct gdbarch
*gdbarch
,
2705 gdbarch_inner_than_ftype inner_than
)
2707 gdbarch
->inner_than
= inner_than
;
2711 gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
, CORE_ADDR
*pcptr
, int *lenptr
)
2713 gdb_assert (gdbarch
!= NULL
);
2714 gdb_assert (gdbarch
->breakpoint_from_pc
!= NULL
);
2715 if (gdbarch_debug
>= 2)
2716 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_from_pc called\n");
2717 return gdbarch
->breakpoint_from_pc (gdbarch
, pcptr
, lenptr
);
2721 set_gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
,
2722 gdbarch_breakpoint_from_pc_ftype breakpoint_from_pc
)
2724 gdbarch
->breakpoint_from_pc
= breakpoint_from_pc
;
2728 gdbarch_breakpoint_kind_from_pc (struct gdbarch
*gdbarch
, CORE_ADDR
*pcptr
)
2730 gdb_assert (gdbarch
!= NULL
);
2731 gdb_assert (gdbarch
->breakpoint_kind_from_pc
!= NULL
);
2732 if (gdbarch_debug
>= 2)
2733 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_kind_from_pc called\n");
2734 return gdbarch
->breakpoint_kind_from_pc (gdbarch
, pcptr
);
2738 set_gdbarch_breakpoint_kind_from_pc (struct gdbarch
*gdbarch
,
2739 gdbarch_breakpoint_kind_from_pc_ftype breakpoint_kind_from_pc
)
2741 gdbarch
->breakpoint_kind_from_pc
= breakpoint_kind_from_pc
;
2745 gdbarch_sw_breakpoint_from_kind (struct gdbarch
*gdbarch
, int kind
, int *size
)
2747 gdb_assert (gdbarch
!= NULL
);
2748 gdb_assert (gdbarch
->sw_breakpoint_from_kind
!= NULL
);
2749 if (gdbarch_debug
>= 2)
2750 gdb_printf (gdb_stdlog
, "gdbarch_sw_breakpoint_from_kind called\n");
2751 return gdbarch
->sw_breakpoint_from_kind (gdbarch
, kind
, size
);
2755 set_gdbarch_sw_breakpoint_from_kind (struct gdbarch
*gdbarch
,
2756 gdbarch_sw_breakpoint_from_kind_ftype sw_breakpoint_from_kind
)
2758 gdbarch
->sw_breakpoint_from_kind
= sw_breakpoint_from_kind
;
2762 gdbarch_breakpoint_kind_from_current_state (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR
*pcptr
)
2764 gdb_assert (gdbarch
!= NULL
);
2765 gdb_assert (gdbarch
->breakpoint_kind_from_current_state
!= NULL
);
2766 if (gdbarch_debug
>= 2)
2767 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_kind_from_current_state called\n");
2768 return gdbarch
->breakpoint_kind_from_current_state (gdbarch
, regcache
, pcptr
);
2772 set_gdbarch_breakpoint_kind_from_current_state (struct gdbarch
*gdbarch
,
2773 gdbarch_breakpoint_kind_from_current_state_ftype breakpoint_kind_from_current_state
)
2775 gdbarch
->breakpoint_kind_from_current_state
= breakpoint_kind_from_current_state
;
2779 gdbarch_adjust_breakpoint_address_p (struct gdbarch
*gdbarch
)
2781 gdb_assert (gdbarch
!= NULL
);
2782 return gdbarch
->adjust_breakpoint_address
!= NULL
;
2786 gdbarch_adjust_breakpoint_address (struct gdbarch
*gdbarch
, CORE_ADDR bpaddr
)
2788 gdb_assert (gdbarch
!= NULL
);
2789 gdb_assert (gdbarch
->adjust_breakpoint_address
!= NULL
);
2790 if (gdbarch_debug
>= 2)
2791 gdb_printf (gdb_stdlog
, "gdbarch_adjust_breakpoint_address called\n");
2792 return gdbarch
->adjust_breakpoint_address (gdbarch
, bpaddr
);
2796 set_gdbarch_adjust_breakpoint_address (struct gdbarch
*gdbarch
,
2797 gdbarch_adjust_breakpoint_address_ftype adjust_breakpoint_address
)
2799 gdbarch
->adjust_breakpoint_address
= adjust_breakpoint_address
;
2803 gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
, struct bp_target_info
*bp_tgt
)
2805 gdb_assert (gdbarch
!= NULL
);
2806 gdb_assert (gdbarch
->memory_insert_breakpoint
!= NULL
);
2807 if (gdbarch_debug
>= 2)
2808 gdb_printf (gdb_stdlog
, "gdbarch_memory_insert_breakpoint called\n");
2809 return gdbarch
->memory_insert_breakpoint (gdbarch
, bp_tgt
);
2813 set_gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
,
2814 gdbarch_memory_insert_breakpoint_ftype memory_insert_breakpoint
)
2816 gdbarch
->memory_insert_breakpoint
= memory_insert_breakpoint
;
2820 gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
, struct bp_target_info
*bp_tgt
)
2822 gdb_assert (gdbarch
!= NULL
);
2823 gdb_assert (gdbarch
->memory_remove_breakpoint
!= NULL
);
2824 if (gdbarch_debug
>= 2)
2825 gdb_printf (gdb_stdlog
, "gdbarch_memory_remove_breakpoint called\n");
2826 return gdbarch
->memory_remove_breakpoint (gdbarch
, bp_tgt
);
2830 set_gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
,
2831 gdbarch_memory_remove_breakpoint_ftype memory_remove_breakpoint
)
2833 gdbarch
->memory_remove_breakpoint
= memory_remove_breakpoint
;
2837 gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
)
2839 gdb_assert (gdbarch
!= NULL
);
2840 /* Skip verify of decr_pc_after_break, invalid_p == 0 */
2841 if (gdbarch_debug
>= 2)
2842 gdb_printf (gdb_stdlog
, "gdbarch_decr_pc_after_break called\n");
2843 return gdbarch
->decr_pc_after_break
;
2847 set_gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
,
2848 CORE_ADDR decr_pc_after_break
)
2850 gdbarch
->decr_pc_after_break
= decr_pc_after_break
;
2854 gdbarch_deprecated_function_start_offset (struct gdbarch
*gdbarch
)
2856 gdb_assert (gdbarch
!= NULL
);
2857 /* Skip verify of deprecated_function_start_offset, invalid_p == 0 */
2858 if (gdbarch_debug
>= 2)
2859 gdb_printf (gdb_stdlog
, "gdbarch_deprecated_function_start_offset called\n");
2860 return gdbarch
->deprecated_function_start_offset
;
2864 set_gdbarch_deprecated_function_start_offset (struct gdbarch
*gdbarch
,
2865 CORE_ADDR deprecated_function_start_offset
)
2867 gdbarch
->deprecated_function_start_offset
= deprecated_function_start_offset
;
2871 gdbarch_remote_register_number (struct gdbarch
*gdbarch
, int regno
)
2873 gdb_assert (gdbarch
!= NULL
);
2874 gdb_assert (gdbarch
->remote_register_number
!= NULL
);
2875 if (gdbarch_debug
>= 2)
2876 gdb_printf (gdb_stdlog
, "gdbarch_remote_register_number called\n");
2877 return gdbarch
->remote_register_number (gdbarch
, regno
);
2881 set_gdbarch_remote_register_number (struct gdbarch
*gdbarch
,
2882 gdbarch_remote_register_number_ftype remote_register_number
)
2884 gdbarch
->remote_register_number
= remote_register_number
;
2888 gdbarch_fetch_tls_load_module_address_p (struct gdbarch
*gdbarch
)
2890 gdb_assert (gdbarch
!= NULL
);
2891 return gdbarch
->fetch_tls_load_module_address
!= NULL
;
2895 gdbarch_fetch_tls_load_module_address (struct gdbarch
*gdbarch
, struct objfile
*objfile
)
2897 gdb_assert (gdbarch
!= NULL
);
2898 gdb_assert (gdbarch
->fetch_tls_load_module_address
!= NULL
);
2899 if (gdbarch_debug
>= 2)
2900 gdb_printf (gdb_stdlog
, "gdbarch_fetch_tls_load_module_address called\n");
2901 return gdbarch
->fetch_tls_load_module_address (objfile
);
2905 set_gdbarch_fetch_tls_load_module_address (struct gdbarch
*gdbarch
,
2906 gdbarch_fetch_tls_load_module_address_ftype fetch_tls_load_module_address
)
2908 gdbarch
->fetch_tls_load_module_address
= fetch_tls_load_module_address
;
2912 gdbarch_get_thread_local_address_p (struct gdbarch
*gdbarch
)
2914 gdb_assert (gdbarch
!= NULL
);
2915 return gdbarch
->get_thread_local_address
!= NULL
;
2919 gdbarch_get_thread_local_address (struct gdbarch
*gdbarch
, ptid_t ptid
, CORE_ADDR lm_addr
, CORE_ADDR offset
)
2921 gdb_assert (gdbarch
!= NULL
);
2922 gdb_assert (gdbarch
->get_thread_local_address
!= NULL
);
2923 if (gdbarch_debug
>= 2)
2924 gdb_printf (gdb_stdlog
, "gdbarch_get_thread_local_address called\n");
2925 return gdbarch
->get_thread_local_address (gdbarch
, ptid
, lm_addr
, offset
);
2929 set_gdbarch_get_thread_local_address (struct gdbarch
*gdbarch
,
2930 gdbarch_get_thread_local_address_ftype get_thread_local_address
)
2932 gdbarch
->get_thread_local_address
= get_thread_local_address
;
2936 gdbarch_frame_args_skip (struct gdbarch
*gdbarch
)
2938 gdb_assert (gdbarch
!= NULL
);
2939 /* Skip verify of frame_args_skip, invalid_p == 0 */
2940 if (gdbarch_debug
>= 2)
2941 gdb_printf (gdb_stdlog
, "gdbarch_frame_args_skip called\n");
2942 return gdbarch
->frame_args_skip
;
2946 set_gdbarch_frame_args_skip (struct gdbarch
*gdbarch
,
2947 CORE_ADDR frame_args_skip
)
2949 gdbarch
->frame_args_skip
= frame_args_skip
;
2953 gdbarch_unwind_pc (struct gdbarch
*gdbarch
, frame_info_ptr next_frame
)
2955 gdb_assert (gdbarch
!= NULL
);
2956 gdb_assert (gdbarch
->unwind_pc
!= NULL
);
2957 if (gdbarch_debug
>= 2)
2958 gdb_printf (gdb_stdlog
, "gdbarch_unwind_pc called\n");
2959 return gdbarch
->unwind_pc (gdbarch
, next_frame
);
2963 set_gdbarch_unwind_pc (struct gdbarch
*gdbarch
,
2964 gdbarch_unwind_pc_ftype unwind_pc
)
2966 gdbarch
->unwind_pc
= unwind_pc
;
2970 gdbarch_unwind_sp (struct gdbarch
*gdbarch
, frame_info_ptr next_frame
)
2972 gdb_assert (gdbarch
!= NULL
);
2973 gdb_assert (gdbarch
->unwind_sp
!= NULL
);
2974 if (gdbarch_debug
>= 2)
2975 gdb_printf (gdb_stdlog
, "gdbarch_unwind_sp called\n");
2976 return gdbarch
->unwind_sp (gdbarch
, next_frame
);
2980 set_gdbarch_unwind_sp (struct gdbarch
*gdbarch
,
2981 gdbarch_unwind_sp_ftype unwind_sp
)
2983 gdbarch
->unwind_sp
= unwind_sp
;
2987 gdbarch_frame_num_args_p (struct gdbarch
*gdbarch
)
2989 gdb_assert (gdbarch
!= NULL
);
2990 return gdbarch
->frame_num_args
!= NULL
;
2994 gdbarch_frame_num_args (struct gdbarch
*gdbarch
, frame_info_ptr frame
)
2996 gdb_assert (gdbarch
!= NULL
);
2997 gdb_assert (gdbarch
->frame_num_args
!= NULL
);
2998 if (gdbarch_debug
>= 2)
2999 gdb_printf (gdb_stdlog
, "gdbarch_frame_num_args called\n");
3000 return gdbarch
->frame_num_args (frame
);
3004 set_gdbarch_frame_num_args (struct gdbarch
*gdbarch
,
3005 gdbarch_frame_num_args_ftype frame_num_args
)
3007 gdbarch
->frame_num_args
= frame_num_args
;
3011 gdbarch_frame_align_p (struct gdbarch
*gdbarch
)
3013 gdb_assert (gdbarch
!= NULL
);
3014 return gdbarch
->frame_align
!= NULL
;
3018 gdbarch_frame_align (struct gdbarch
*gdbarch
, CORE_ADDR address
)
3020 gdb_assert (gdbarch
!= NULL
);
3021 gdb_assert (gdbarch
->frame_align
!= NULL
);
3022 if (gdbarch_debug
>= 2)
3023 gdb_printf (gdb_stdlog
, "gdbarch_frame_align called\n");
3024 return gdbarch
->frame_align (gdbarch
, address
);
3028 set_gdbarch_frame_align (struct gdbarch
*gdbarch
,
3029 gdbarch_frame_align_ftype frame_align
)
3031 gdbarch
->frame_align
= frame_align
;
3035 gdbarch_stabs_argument_has_addr (struct gdbarch
*gdbarch
, struct type
*type
)
3037 gdb_assert (gdbarch
!= NULL
);
3038 gdb_assert (gdbarch
->stabs_argument_has_addr
!= NULL
);
3039 if (gdbarch_debug
>= 2)
3040 gdb_printf (gdb_stdlog
, "gdbarch_stabs_argument_has_addr called\n");
3041 return gdbarch
->stabs_argument_has_addr (gdbarch
, type
);
3045 set_gdbarch_stabs_argument_has_addr (struct gdbarch
*gdbarch
,
3046 gdbarch_stabs_argument_has_addr_ftype stabs_argument_has_addr
)
3048 gdbarch
->stabs_argument_has_addr
= stabs_argument_has_addr
;
3052 gdbarch_frame_red_zone_size (struct gdbarch
*gdbarch
)
3054 gdb_assert (gdbarch
!= NULL
);
3055 /* Skip verify of frame_red_zone_size, invalid_p == 0 */
3056 if (gdbarch_debug
>= 2)
3057 gdb_printf (gdb_stdlog
, "gdbarch_frame_red_zone_size called\n");
3058 return gdbarch
->frame_red_zone_size
;
3062 set_gdbarch_frame_red_zone_size (struct gdbarch
*gdbarch
,
3063 int frame_red_zone_size
)
3065 gdbarch
->frame_red_zone_size
= frame_red_zone_size
;
3069 gdbarch_convert_from_func_ptr_addr (struct gdbarch
*gdbarch
, CORE_ADDR addr
, struct target_ops
*targ
)
3071 gdb_assert (gdbarch
!= NULL
);
3072 gdb_assert (gdbarch
->convert_from_func_ptr_addr
!= NULL
);
3073 if (gdbarch_debug
>= 2)
3074 gdb_printf (gdb_stdlog
, "gdbarch_convert_from_func_ptr_addr called\n");
3075 return gdbarch
->convert_from_func_ptr_addr (gdbarch
, addr
, targ
);
3079 set_gdbarch_convert_from_func_ptr_addr (struct gdbarch
*gdbarch
,
3080 gdbarch_convert_from_func_ptr_addr_ftype convert_from_func_ptr_addr
)
3082 gdbarch
->convert_from_func_ptr_addr
= convert_from_func_ptr_addr
;
3086 gdbarch_addr_bits_remove (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
3088 gdb_assert (gdbarch
!= NULL
);
3089 gdb_assert (gdbarch
->addr_bits_remove
!= NULL
);
3090 if (gdbarch_debug
>= 2)
3091 gdb_printf (gdb_stdlog
, "gdbarch_addr_bits_remove called\n");
3092 return gdbarch
->addr_bits_remove (gdbarch
, addr
);
3096 set_gdbarch_addr_bits_remove (struct gdbarch
*gdbarch
,
3097 gdbarch_addr_bits_remove_ftype addr_bits_remove
)
3099 gdbarch
->addr_bits_remove
= addr_bits_remove
;
3103 gdbarch_remove_non_address_bits (struct gdbarch
*gdbarch
, CORE_ADDR pointer
)
3105 gdb_assert (gdbarch
!= NULL
);
3106 gdb_assert (gdbarch
->remove_non_address_bits
!= NULL
);
3107 if (gdbarch_debug
>= 2)
3108 gdb_printf (gdb_stdlog
, "gdbarch_remove_non_address_bits called\n");
3109 return gdbarch
->remove_non_address_bits (gdbarch
, pointer
);
3113 set_gdbarch_remove_non_address_bits (struct gdbarch
*gdbarch
,
3114 gdbarch_remove_non_address_bits_ftype remove_non_address_bits
)
3116 gdbarch
->remove_non_address_bits
= remove_non_address_bits
;
3120 gdbarch_memtag_to_string (struct gdbarch
*gdbarch
, struct value
*tag
)
3122 gdb_assert (gdbarch
!= NULL
);
3123 gdb_assert (gdbarch
->memtag_to_string
!= NULL
);
3124 if (gdbarch_debug
>= 2)
3125 gdb_printf (gdb_stdlog
, "gdbarch_memtag_to_string called\n");
3126 return gdbarch
->memtag_to_string (gdbarch
, tag
);
3130 set_gdbarch_memtag_to_string (struct gdbarch
*gdbarch
,
3131 gdbarch_memtag_to_string_ftype memtag_to_string
)
3133 gdbarch
->memtag_to_string
= memtag_to_string
;
3137 gdbarch_tagged_address_p (struct gdbarch
*gdbarch
, struct value
*address
)
3139 gdb_assert (gdbarch
!= NULL
);
3140 gdb_assert (gdbarch
->tagged_address_p
!= NULL
);
3141 if (gdbarch_debug
>= 2)
3142 gdb_printf (gdb_stdlog
, "gdbarch_tagged_address_p called\n");
3143 return gdbarch
->tagged_address_p (gdbarch
, address
);
3147 set_gdbarch_tagged_address_p (struct gdbarch
*gdbarch
,
3148 gdbarch_tagged_address_p_ftype tagged_address_p
)
3150 gdbarch
->tagged_address_p
= tagged_address_p
;
3154 gdbarch_memtag_matches_p (struct gdbarch
*gdbarch
, struct value
*address
)
3156 gdb_assert (gdbarch
!= NULL
);
3157 gdb_assert (gdbarch
->memtag_matches_p
!= NULL
);
3158 if (gdbarch_debug
>= 2)
3159 gdb_printf (gdb_stdlog
, "gdbarch_memtag_matches_p called\n");
3160 return gdbarch
->memtag_matches_p (gdbarch
, address
);
3164 set_gdbarch_memtag_matches_p (struct gdbarch
*gdbarch
,
3165 gdbarch_memtag_matches_p_ftype memtag_matches_p
)
3167 gdbarch
->memtag_matches_p
= memtag_matches_p
;
3171 gdbarch_set_memtags (struct gdbarch
*gdbarch
, struct value
*address
, size_t length
, const gdb::byte_vector
&tags
, memtag_type tag_type
)
3173 gdb_assert (gdbarch
!= NULL
);
3174 gdb_assert (gdbarch
->set_memtags
!= NULL
);
3175 if (gdbarch_debug
>= 2)
3176 gdb_printf (gdb_stdlog
, "gdbarch_set_memtags called\n");
3177 return gdbarch
->set_memtags (gdbarch
, address
, length
, tags
, tag_type
);
3181 set_gdbarch_set_memtags (struct gdbarch
*gdbarch
,
3182 gdbarch_set_memtags_ftype set_memtags
)
3184 gdbarch
->set_memtags
= set_memtags
;
3188 gdbarch_get_memtag (struct gdbarch
*gdbarch
, struct value
*address
, memtag_type tag_type
)
3190 gdb_assert (gdbarch
!= NULL
);
3191 gdb_assert (gdbarch
->get_memtag
!= NULL
);
3192 if (gdbarch_debug
>= 2)
3193 gdb_printf (gdb_stdlog
, "gdbarch_get_memtag called\n");
3194 return gdbarch
->get_memtag (gdbarch
, address
, tag_type
);
3198 set_gdbarch_get_memtag (struct gdbarch
*gdbarch
,
3199 gdbarch_get_memtag_ftype get_memtag
)
3201 gdbarch
->get_memtag
= get_memtag
;
3205 gdbarch_memtag_granule_size (struct gdbarch
*gdbarch
)
3207 gdb_assert (gdbarch
!= NULL
);
3208 /* Skip verify of memtag_granule_size, invalid_p == 0 */
3209 if (gdbarch_debug
>= 2)
3210 gdb_printf (gdb_stdlog
, "gdbarch_memtag_granule_size called\n");
3211 return gdbarch
->memtag_granule_size
;
3215 set_gdbarch_memtag_granule_size (struct gdbarch
*gdbarch
,
3216 CORE_ADDR memtag_granule_size
)
3218 gdbarch
->memtag_granule_size
= memtag_granule_size
;
3222 gdbarch_software_single_step_p (struct gdbarch
*gdbarch
)
3224 gdb_assert (gdbarch
!= NULL
);
3225 return gdbarch
->software_single_step
!= NULL
;
3228 std::vector
<CORE_ADDR
>
3229 gdbarch_software_single_step (struct gdbarch
*gdbarch
, struct regcache
*regcache
)
3231 gdb_assert (gdbarch
!= NULL
);
3232 gdb_assert (gdbarch
->software_single_step
!= NULL
);
3233 if (gdbarch_debug
>= 2)
3234 gdb_printf (gdb_stdlog
, "gdbarch_software_single_step called\n");
3235 return gdbarch
->software_single_step (regcache
);
3239 set_gdbarch_software_single_step (struct gdbarch
*gdbarch
,
3240 gdbarch_software_single_step_ftype software_single_step
)
3242 gdbarch
->software_single_step
= software_single_step
;
3246 gdbarch_single_step_through_delay_p (struct gdbarch
*gdbarch
)
3248 gdb_assert (gdbarch
!= NULL
);
3249 return gdbarch
->single_step_through_delay
!= NULL
;
3253 gdbarch_single_step_through_delay (struct gdbarch
*gdbarch
, frame_info_ptr frame
)
3255 gdb_assert (gdbarch
!= NULL
);
3256 gdb_assert (gdbarch
->single_step_through_delay
!= NULL
);
3257 if (gdbarch_debug
>= 2)
3258 gdb_printf (gdb_stdlog
, "gdbarch_single_step_through_delay called\n");
3259 return gdbarch
->single_step_through_delay (gdbarch
, frame
);
3263 set_gdbarch_single_step_through_delay (struct gdbarch
*gdbarch
,
3264 gdbarch_single_step_through_delay_ftype single_step_through_delay
)
3266 gdbarch
->single_step_through_delay
= single_step_through_delay
;
3270 gdbarch_print_insn (struct gdbarch
*gdbarch
, bfd_vma vma
, struct disassemble_info
*info
)
3272 gdb_assert (gdbarch
!= NULL
);
3273 gdb_assert (gdbarch
->print_insn
!= NULL
);
3274 if (gdbarch_debug
>= 2)
3275 gdb_printf (gdb_stdlog
, "gdbarch_print_insn called\n");
3276 return gdbarch
->print_insn (vma
, info
);
3280 set_gdbarch_print_insn (struct gdbarch
*gdbarch
,
3281 gdbarch_print_insn_ftype print_insn
)
3283 gdbarch
->print_insn
= print_insn
;
3287 gdbarch_skip_trampoline_code (struct gdbarch
*gdbarch
, frame_info_ptr frame
, CORE_ADDR pc
)
3289 gdb_assert (gdbarch
!= NULL
);
3290 gdb_assert (gdbarch
->skip_trampoline_code
!= NULL
);
3291 if (gdbarch_debug
>= 2)
3292 gdb_printf (gdb_stdlog
, "gdbarch_skip_trampoline_code called\n");
3293 return gdbarch
->skip_trampoline_code (frame
, pc
);
3297 set_gdbarch_skip_trampoline_code (struct gdbarch
*gdbarch
,
3298 gdbarch_skip_trampoline_code_ftype skip_trampoline_code
)
3300 gdbarch
->skip_trampoline_code
= skip_trampoline_code
;
3303 const struct target_so_ops
*
3304 gdbarch_so_ops (struct gdbarch
*gdbarch
)
3306 gdb_assert (gdbarch
!= NULL
);
3307 if (gdbarch_debug
>= 2)
3308 gdb_printf (gdb_stdlog
, "gdbarch_so_ops called\n");
3309 return gdbarch
->so_ops
;
3313 set_gdbarch_so_ops (struct gdbarch
*gdbarch
,
3314 const struct target_so_ops
* so_ops
)
3316 gdbarch
->so_ops
= so_ops
;
3320 gdbarch_skip_solib_resolver (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3322 gdb_assert (gdbarch
!= NULL
);
3323 gdb_assert (gdbarch
->skip_solib_resolver
!= NULL
);
3324 if (gdbarch_debug
>= 2)
3325 gdb_printf (gdb_stdlog
, "gdbarch_skip_solib_resolver called\n");
3326 return gdbarch
->skip_solib_resolver (gdbarch
, pc
);
3330 set_gdbarch_skip_solib_resolver (struct gdbarch
*gdbarch
,
3331 gdbarch_skip_solib_resolver_ftype skip_solib_resolver
)
3333 gdbarch
->skip_solib_resolver
= skip_solib_resolver
;
3337 gdbarch_in_solib_return_trampoline (struct gdbarch
*gdbarch
, CORE_ADDR pc
, const char *name
)
3339 gdb_assert (gdbarch
!= NULL
);
3340 gdb_assert (gdbarch
->in_solib_return_trampoline
!= NULL
);
3341 if (gdbarch_debug
>= 2)
3342 gdb_printf (gdb_stdlog
, "gdbarch_in_solib_return_trampoline called\n");
3343 return gdbarch
->in_solib_return_trampoline (gdbarch
, pc
, name
);
3347 set_gdbarch_in_solib_return_trampoline (struct gdbarch
*gdbarch
,
3348 gdbarch_in_solib_return_trampoline_ftype in_solib_return_trampoline
)
3350 gdbarch
->in_solib_return_trampoline
= in_solib_return_trampoline
;
3354 gdbarch_in_indirect_branch_thunk (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3356 gdb_assert (gdbarch
!= NULL
);
3357 gdb_assert (gdbarch
->in_indirect_branch_thunk
!= NULL
);
3358 if (gdbarch_debug
>= 2)
3359 gdb_printf (gdb_stdlog
, "gdbarch_in_indirect_branch_thunk called\n");
3360 return gdbarch
->in_indirect_branch_thunk (gdbarch
, pc
);
3364 set_gdbarch_in_indirect_branch_thunk (struct gdbarch
*gdbarch
,
3365 gdbarch_in_indirect_branch_thunk_ftype in_indirect_branch_thunk
)
3367 gdbarch
->in_indirect_branch_thunk
= in_indirect_branch_thunk
;
3371 gdbarch_stack_frame_destroyed_p (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
3373 gdb_assert (gdbarch
!= NULL
);
3374 gdb_assert (gdbarch
->stack_frame_destroyed_p
!= NULL
);
3375 if (gdbarch_debug
>= 2)
3376 gdb_printf (gdb_stdlog
, "gdbarch_stack_frame_destroyed_p called\n");
3377 return gdbarch
->stack_frame_destroyed_p (gdbarch
, addr
);
3381 set_gdbarch_stack_frame_destroyed_p (struct gdbarch
*gdbarch
,
3382 gdbarch_stack_frame_destroyed_p_ftype stack_frame_destroyed_p
)
3384 gdbarch
->stack_frame_destroyed_p
= stack_frame_destroyed_p
;
3388 gdbarch_elf_make_msymbol_special_p (struct gdbarch
*gdbarch
)
3390 gdb_assert (gdbarch
!= NULL
);
3391 return gdbarch
->elf_make_msymbol_special
!= NULL
;
3395 gdbarch_elf_make_msymbol_special (struct gdbarch
*gdbarch
, asymbol
*sym
, struct minimal_symbol
*msym
)
3397 gdb_assert (gdbarch
!= NULL
);
3398 gdb_assert (gdbarch
->elf_make_msymbol_special
!= NULL
);
3399 if (gdbarch_debug
>= 2)
3400 gdb_printf (gdb_stdlog
, "gdbarch_elf_make_msymbol_special called\n");
3401 gdbarch
->elf_make_msymbol_special (sym
, msym
);
3405 set_gdbarch_elf_make_msymbol_special (struct gdbarch
*gdbarch
,
3406 gdbarch_elf_make_msymbol_special_ftype elf_make_msymbol_special
)
3408 gdbarch
->elf_make_msymbol_special
= elf_make_msymbol_special
;
3412 gdbarch_coff_make_msymbol_special (struct gdbarch
*gdbarch
, int val
, struct minimal_symbol
*msym
)
3414 gdb_assert (gdbarch
!= NULL
);
3415 gdb_assert (gdbarch
->coff_make_msymbol_special
!= NULL
);
3416 if (gdbarch_debug
>= 2)
3417 gdb_printf (gdb_stdlog
, "gdbarch_coff_make_msymbol_special called\n");
3418 gdbarch
->coff_make_msymbol_special (val
, msym
);
3422 set_gdbarch_coff_make_msymbol_special (struct gdbarch
*gdbarch
,
3423 gdbarch_coff_make_msymbol_special_ftype coff_make_msymbol_special
)
3425 gdbarch
->coff_make_msymbol_special
= coff_make_msymbol_special
;
3429 gdbarch_make_symbol_special (struct gdbarch
*gdbarch
, struct symbol
*sym
, struct objfile
*objfile
)
3431 gdb_assert (gdbarch
!= NULL
);
3432 gdb_assert (gdbarch
->make_symbol_special
!= NULL
);
3433 if (gdbarch_debug
>= 2)
3434 gdb_printf (gdb_stdlog
, "gdbarch_make_symbol_special called\n");
3435 gdbarch
->make_symbol_special (sym
, objfile
);
3439 set_gdbarch_make_symbol_special (struct gdbarch
*gdbarch
,
3440 gdbarch_make_symbol_special_ftype make_symbol_special
)
3442 gdbarch
->make_symbol_special
= make_symbol_special
;
3446 gdbarch_adjust_dwarf2_addr (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3448 gdb_assert (gdbarch
!= NULL
);
3449 gdb_assert (gdbarch
->adjust_dwarf2_addr
!= NULL
);
3450 if (gdbarch_debug
>= 2)
3451 gdb_printf (gdb_stdlog
, "gdbarch_adjust_dwarf2_addr called\n");
3452 return gdbarch
->adjust_dwarf2_addr (pc
);
3456 set_gdbarch_adjust_dwarf2_addr (struct gdbarch
*gdbarch
,
3457 gdbarch_adjust_dwarf2_addr_ftype adjust_dwarf2_addr
)
3459 gdbarch
->adjust_dwarf2_addr
= adjust_dwarf2_addr
;
3463 gdbarch_adjust_dwarf2_line (struct gdbarch
*gdbarch
, CORE_ADDR addr
, int rel
)
3465 gdb_assert (gdbarch
!= NULL
);
3466 gdb_assert (gdbarch
->adjust_dwarf2_line
!= NULL
);
3467 if (gdbarch_debug
>= 2)
3468 gdb_printf (gdb_stdlog
, "gdbarch_adjust_dwarf2_line called\n");
3469 return gdbarch
->adjust_dwarf2_line (addr
, rel
);
3473 set_gdbarch_adjust_dwarf2_line (struct gdbarch
*gdbarch
,
3474 gdbarch_adjust_dwarf2_line_ftype adjust_dwarf2_line
)
3476 gdbarch
->adjust_dwarf2_line
= adjust_dwarf2_line
;
3480 gdbarch_cannot_step_breakpoint (struct gdbarch
*gdbarch
)
3482 gdb_assert (gdbarch
!= NULL
);
3483 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */
3484 if (gdbarch_debug
>= 2)
3485 gdb_printf (gdb_stdlog
, "gdbarch_cannot_step_breakpoint called\n");
3486 return gdbarch
->cannot_step_breakpoint
;
3490 set_gdbarch_cannot_step_breakpoint (struct gdbarch
*gdbarch
,
3491 int cannot_step_breakpoint
)
3493 gdbarch
->cannot_step_breakpoint
= cannot_step_breakpoint
;
3497 gdbarch_have_nonsteppable_watchpoint (struct gdbarch
*gdbarch
)
3499 gdb_assert (gdbarch
!= NULL
);
3500 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */
3501 if (gdbarch_debug
>= 2)
3502 gdb_printf (gdb_stdlog
, "gdbarch_have_nonsteppable_watchpoint called\n");
3503 return gdbarch
->have_nonsteppable_watchpoint
;
3507 set_gdbarch_have_nonsteppable_watchpoint (struct gdbarch
*gdbarch
,
3508 int have_nonsteppable_watchpoint
)
3510 gdbarch
->have_nonsteppable_watchpoint
= have_nonsteppable_watchpoint
;
3514 gdbarch_address_class_type_flags_p (struct gdbarch
*gdbarch
)
3516 gdb_assert (gdbarch
!= NULL
);
3517 return gdbarch
->address_class_type_flags
!= NULL
;
3521 gdbarch_address_class_type_flags (struct gdbarch
*gdbarch
, int byte_size
, int dwarf2_addr_class
)
3523 gdb_assert (gdbarch
!= NULL
);
3524 gdb_assert (gdbarch
->address_class_type_flags
!= NULL
);
3525 if (gdbarch_debug
>= 2)
3526 gdb_printf (gdb_stdlog
, "gdbarch_address_class_type_flags called\n");
3527 return gdbarch
->address_class_type_flags (byte_size
, dwarf2_addr_class
);
3531 set_gdbarch_address_class_type_flags (struct gdbarch
*gdbarch
,
3532 gdbarch_address_class_type_flags_ftype address_class_type_flags
)
3534 gdbarch
->address_class_type_flags
= address_class_type_flags
;
3538 gdbarch_address_class_type_flags_to_name_p (struct gdbarch
*gdbarch
)
3540 gdb_assert (gdbarch
!= NULL
);
3541 return gdbarch
->address_class_type_flags_to_name
!= NULL
;
3545 gdbarch_address_class_type_flags_to_name (struct gdbarch
*gdbarch
, type_instance_flags type_flags
)
3547 gdb_assert (gdbarch
!= NULL
);
3548 gdb_assert (gdbarch
->address_class_type_flags_to_name
!= NULL
);
3549 if (gdbarch_debug
>= 2)
3550 gdb_printf (gdb_stdlog
, "gdbarch_address_class_type_flags_to_name called\n");
3551 return gdbarch
->address_class_type_flags_to_name (gdbarch
, type_flags
);
3555 set_gdbarch_address_class_type_flags_to_name (struct gdbarch
*gdbarch
,
3556 gdbarch_address_class_type_flags_to_name_ftype address_class_type_flags_to_name
)
3558 gdbarch
->address_class_type_flags_to_name
= address_class_type_flags_to_name
;
3562 gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch
*gdbarch
, gdb_byte op
, struct dwarf2_frame_state
*fs
)
3564 gdb_assert (gdbarch
!= NULL
);
3565 gdb_assert (gdbarch
->execute_dwarf_cfa_vendor_op
!= NULL
);
3566 if (gdbarch_debug
>= 2)
3567 gdb_printf (gdb_stdlog
, "gdbarch_execute_dwarf_cfa_vendor_op called\n");
3568 return gdbarch
->execute_dwarf_cfa_vendor_op (gdbarch
, op
, fs
);
3572 set_gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch
*gdbarch
,
3573 gdbarch_execute_dwarf_cfa_vendor_op_ftype execute_dwarf_cfa_vendor_op
)
3575 gdbarch
->execute_dwarf_cfa_vendor_op
= execute_dwarf_cfa_vendor_op
;
3579 gdbarch_address_class_name_to_type_flags_p (struct gdbarch
*gdbarch
)
3581 gdb_assert (gdbarch
!= NULL
);
3582 return gdbarch
->address_class_name_to_type_flags
!= NULL
;
3586 gdbarch_address_class_name_to_type_flags (struct gdbarch
*gdbarch
, const char *name
, type_instance_flags
*type_flags_ptr
)
3588 gdb_assert (gdbarch
!= NULL
);
3589 gdb_assert (gdbarch
->address_class_name_to_type_flags
!= NULL
);
3590 if (gdbarch_debug
>= 2)
3591 gdb_printf (gdb_stdlog
, "gdbarch_address_class_name_to_type_flags called\n");
3592 return gdbarch
->address_class_name_to_type_flags (gdbarch
, name
, type_flags_ptr
);
3596 set_gdbarch_address_class_name_to_type_flags (struct gdbarch
*gdbarch
,
3597 gdbarch_address_class_name_to_type_flags_ftype address_class_name_to_type_flags
)
3599 gdbarch
->address_class_name_to_type_flags
= address_class_name_to_type_flags
;
3603 gdbarch_register_reggroup_p (struct gdbarch
*gdbarch
, int regnum
, const struct reggroup
*reggroup
)
3605 gdb_assert (gdbarch
!= NULL
);
3606 gdb_assert (gdbarch
->register_reggroup_p
!= NULL
);
3607 if (gdbarch_debug
>= 2)
3608 gdb_printf (gdb_stdlog
, "gdbarch_register_reggroup_p called\n");
3609 return gdbarch
->register_reggroup_p (gdbarch
, regnum
, reggroup
);
3613 set_gdbarch_register_reggroup_p (struct gdbarch
*gdbarch
,
3614 gdbarch_register_reggroup_p_ftype register_reggroup_p
)
3616 gdbarch
->register_reggroup_p
= register_reggroup_p
;
3620 gdbarch_fetch_pointer_argument_p (struct gdbarch
*gdbarch
)
3622 gdb_assert (gdbarch
!= NULL
);
3623 return gdbarch
->fetch_pointer_argument
!= NULL
;
3627 gdbarch_fetch_pointer_argument (struct gdbarch
*gdbarch
, frame_info_ptr frame
, int argi
, struct type
*type
)
3629 gdb_assert (gdbarch
!= NULL
);
3630 gdb_assert (gdbarch
->fetch_pointer_argument
!= NULL
);
3631 if (gdbarch_debug
>= 2)
3632 gdb_printf (gdb_stdlog
, "gdbarch_fetch_pointer_argument called\n");
3633 return gdbarch
->fetch_pointer_argument (frame
, argi
, type
);
3637 set_gdbarch_fetch_pointer_argument (struct gdbarch
*gdbarch
,
3638 gdbarch_fetch_pointer_argument_ftype fetch_pointer_argument
)
3640 gdbarch
->fetch_pointer_argument
= fetch_pointer_argument
;
3644 gdbarch_iterate_over_regset_sections_p (struct gdbarch
*gdbarch
)
3646 gdb_assert (gdbarch
!= NULL
);
3647 return gdbarch
->iterate_over_regset_sections
!= NULL
;
3651 gdbarch_iterate_over_regset_sections (struct gdbarch
*gdbarch
, iterate_over_regset_sections_cb
*cb
, void *cb_data
, const struct regcache
*regcache
)
3653 gdb_assert (gdbarch
!= NULL
);
3654 gdb_assert (gdbarch
->iterate_over_regset_sections
!= NULL
);
3655 if (gdbarch_debug
>= 2)
3656 gdb_printf (gdb_stdlog
, "gdbarch_iterate_over_regset_sections called\n");
3657 gdbarch
->iterate_over_regset_sections (gdbarch
, cb
, cb_data
, regcache
);
3661 set_gdbarch_iterate_over_regset_sections (struct gdbarch
*gdbarch
,
3662 gdbarch_iterate_over_regset_sections_ftype iterate_over_regset_sections
)
3664 gdbarch
->iterate_over_regset_sections
= iterate_over_regset_sections
;
3668 gdbarch_make_corefile_notes_p (struct gdbarch
*gdbarch
)
3670 gdb_assert (gdbarch
!= NULL
);
3671 return gdbarch
->make_corefile_notes
!= NULL
;
3674 gdb::unique_xmalloc_ptr
<char>
3675 gdbarch_make_corefile_notes (struct gdbarch
*gdbarch
, bfd
*obfd
, int *note_size
)
3677 gdb_assert (gdbarch
!= NULL
);
3678 gdb_assert (gdbarch
->make_corefile_notes
!= NULL
);
3679 if (gdbarch_debug
>= 2)
3680 gdb_printf (gdb_stdlog
, "gdbarch_make_corefile_notes called\n");
3681 return gdbarch
->make_corefile_notes (gdbarch
, obfd
, note_size
);
3685 set_gdbarch_make_corefile_notes (struct gdbarch
*gdbarch
,
3686 gdbarch_make_corefile_notes_ftype make_corefile_notes
)
3688 gdbarch
->make_corefile_notes
= make_corefile_notes
;
3692 gdbarch_find_memory_regions_p (struct gdbarch
*gdbarch
)
3694 gdb_assert (gdbarch
!= NULL
);
3695 return gdbarch
->find_memory_regions
!= NULL
;
3699 gdbarch_find_memory_regions (struct gdbarch
*gdbarch
, find_memory_region_ftype func
, void *data
)
3701 gdb_assert (gdbarch
!= NULL
);
3702 gdb_assert (gdbarch
->find_memory_regions
!= NULL
);
3703 if (gdbarch_debug
>= 2)
3704 gdb_printf (gdb_stdlog
, "gdbarch_find_memory_regions called\n");
3705 return gdbarch
->find_memory_regions (gdbarch
, func
, data
);
3709 set_gdbarch_find_memory_regions (struct gdbarch
*gdbarch
,
3710 gdbarch_find_memory_regions_ftype find_memory_regions
)
3712 gdbarch
->find_memory_regions
= find_memory_regions
;
3716 gdbarch_create_memtag_section_p (struct gdbarch
*gdbarch
)
3718 gdb_assert (gdbarch
!= NULL
);
3719 return gdbarch
->create_memtag_section
!= NULL
;
3723 gdbarch_create_memtag_section (struct gdbarch
*gdbarch
, bfd
*obfd
, CORE_ADDR address
, size_t size
)
3725 gdb_assert (gdbarch
!= NULL
);
3726 gdb_assert (gdbarch
->create_memtag_section
!= NULL
);
3727 if (gdbarch_debug
>= 2)
3728 gdb_printf (gdb_stdlog
, "gdbarch_create_memtag_section called\n");
3729 return gdbarch
->create_memtag_section (gdbarch
, obfd
, address
, size
);
3733 set_gdbarch_create_memtag_section (struct gdbarch
*gdbarch
,
3734 gdbarch_create_memtag_section_ftype create_memtag_section
)
3736 gdbarch
->create_memtag_section
= create_memtag_section
;
3740 gdbarch_fill_memtag_section_p (struct gdbarch
*gdbarch
)
3742 gdb_assert (gdbarch
!= NULL
);
3743 return gdbarch
->fill_memtag_section
!= NULL
;
3747 gdbarch_fill_memtag_section (struct gdbarch
*gdbarch
, asection
*osec
)
3749 gdb_assert (gdbarch
!= NULL
);
3750 gdb_assert (gdbarch
->fill_memtag_section
!= NULL
);
3751 if (gdbarch_debug
>= 2)
3752 gdb_printf (gdb_stdlog
, "gdbarch_fill_memtag_section called\n");
3753 return gdbarch
->fill_memtag_section (gdbarch
, osec
);
3757 set_gdbarch_fill_memtag_section (struct gdbarch
*gdbarch
,
3758 gdbarch_fill_memtag_section_ftype fill_memtag_section
)
3760 gdbarch
->fill_memtag_section
= fill_memtag_section
;
3764 gdbarch_decode_memtag_section_p (struct gdbarch
*gdbarch
)
3766 gdb_assert (gdbarch
!= NULL
);
3767 return gdbarch
->decode_memtag_section
!= NULL
;
3771 gdbarch_decode_memtag_section (struct gdbarch
*gdbarch
, bfd_section
*section
, int type
, CORE_ADDR address
, size_t length
)
3773 gdb_assert (gdbarch
!= NULL
);
3774 gdb_assert (gdbarch
->decode_memtag_section
!= NULL
);
3775 if (gdbarch_debug
>= 2)
3776 gdb_printf (gdb_stdlog
, "gdbarch_decode_memtag_section called\n");
3777 return gdbarch
->decode_memtag_section (gdbarch
, section
, type
, address
, length
);
3781 set_gdbarch_decode_memtag_section (struct gdbarch
*gdbarch
,
3782 gdbarch_decode_memtag_section_ftype decode_memtag_section
)
3784 gdbarch
->decode_memtag_section
= decode_memtag_section
;
3788 gdbarch_core_xfer_shared_libraries_p (struct gdbarch
*gdbarch
)
3790 gdb_assert (gdbarch
!= NULL
);
3791 return gdbarch
->core_xfer_shared_libraries
!= NULL
;
3795 gdbarch_core_xfer_shared_libraries (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
3797 gdb_assert (gdbarch
!= NULL
);
3798 gdb_assert (gdbarch
->core_xfer_shared_libraries
!= NULL
);
3799 if (gdbarch_debug
>= 2)
3800 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_shared_libraries called\n");
3801 return gdbarch
->core_xfer_shared_libraries (gdbarch
, readbuf
, offset
, len
);
3805 set_gdbarch_core_xfer_shared_libraries (struct gdbarch
*gdbarch
,
3806 gdbarch_core_xfer_shared_libraries_ftype core_xfer_shared_libraries
)
3808 gdbarch
->core_xfer_shared_libraries
= core_xfer_shared_libraries
;
3812 gdbarch_core_xfer_shared_libraries_aix_p (struct gdbarch
*gdbarch
)
3814 gdb_assert (gdbarch
!= NULL
);
3815 return gdbarch
->core_xfer_shared_libraries_aix
!= NULL
;
3819 gdbarch_core_xfer_shared_libraries_aix (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
3821 gdb_assert (gdbarch
!= NULL
);
3822 gdb_assert (gdbarch
->core_xfer_shared_libraries_aix
!= NULL
);
3823 if (gdbarch_debug
>= 2)
3824 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_shared_libraries_aix called\n");
3825 return gdbarch
->core_xfer_shared_libraries_aix (gdbarch
, readbuf
, offset
, len
);
3829 set_gdbarch_core_xfer_shared_libraries_aix (struct gdbarch
*gdbarch
,
3830 gdbarch_core_xfer_shared_libraries_aix_ftype core_xfer_shared_libraries_aix
)
3832 gdbarch
->core_xfer_shared_libraries_aix
= core_xfer_shared_libraries_aix
;
3836 gdbarch_core_pid_to_str_p (struct gdbarch
*gdbarch
)
3838 gdb_assert (gdbarch
!= NULL
);
3839 return gdbarch
->core_pid_to_str
!= NULL
;
3843 gdbarch_core_pid_to_str (struct gdbarch
*gdbarch
, ptid_t ptid
)
3845 gdb_assert (gdbarch
!= NULL
);
3846 gdb_assert (gdbarch
->core_pid_to_str
!= NULL
);
3847 if (gdbarch_debug
>= 2)
3848 gdb_printf (gdb_stdlog
, "gdbarch_core_pid_to_str called\n");
3849 return gdbarch
->core_pid_to_str (gdbarch
, ptid
);
3853 set_gdbarch_core_pid_to_str (struct gdbarch
*gdbarch
,
3854 gdbarch_core_pid_to_str_ftype core_pid_to_str
)
3856 gdbarch
->core_pid_to_str
= core_pid_to_str
;
3860 gdbarch_core_thread_name_p (struct gdbarch
*gdbarch
)
3862 gdb_assert (gdbarch
!= NULL
);
3863 return gdbarch
->core_thread_name
!= NULL
;
3867 gdbarch_core_thread_name (struct gdbarch
*gdbarch
, struct thread_info
*thr
)
3869 gdb_assert (gdbarch
!= NULL
);
3870 gdb_assert (gdbarch
->core_thread_name
!= NULL
);
3871 if (gdbarch_debug
>= 2)
3872 gdb_printf (gdb_stdlog
, "gdbarch_core_thread_name called\n");
3873 return gdbarch
->core_thread_name (gdbarch
, thr
);
3877 set_gdbarch_core_thread_name (struct gdbarch
*gdbarch
,
3878 gdbarch_core_thread_name_ftype core_thread_name
)
3880 gdbarch
->core_thread_name
= core_thread_name
;
3884 gdbarch_core_xfer_siginfo_p (struct gdbarch
*gdbarch
)
3886 gdb_assert (gdbarch
!= NULL
);
3887 return gdbarch
->core_xfer_siginfo
!= NULL
;
3891 gdbarch_core_xfer_siginfo (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
3893 gdb_assert (gdbarch
!= NULL
);
3894 gdb_assert (gdbarch
->core_xfer_siginfo
!= NULL
);
3895 if (gdbarch_debug
>= 2)
3896 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_siginfo called\n");
3897 return gdbarch
->core_xfer_siginfo (gdbarch
, readbuf
, offset
, len
);
3901 set_gdbarch_core_xfer_siginfo (struct gdbarch
*gdbarch
,
3902 gdbarch_core_xfer_siginfo_ftype core_xfer_siginfo
)
3904 gdbarch
->core_xfer_siginfo
= core_xfer_siginfo
;
3908 gdbarch_gcore_bfd_target_p (struct gdbarch
*gdbarch
)
3910 gdb_assert (gdbarch
!= NULL
);
3911 return gdbarch
->gcore_bfd_target
!= 0;
3915 gdbarch_gcore_bfd_target (struct gdbarch
*gdbarch
)
3917 gdb_assert (gdbarch
!= NULL
);
3918 /* Check variable changed from pre-default. */
3919 gdb_assert (gdbarch
->gcore_bfd_target
!= 0);
3920 if (gdbarch_debug
>= 2)
3921 gdb_printf (gdb_stdlog
, "gdbarch_gcore_bfd_target called\n");
3922 return gdbarch
->gcore_bfd_target
;
3926 set_gdbarch_gcore_bfd_target (struct gdbarch
*gdbarch
,
3927 const char * gcore_bfd_target
)
3929 gdbarch
->gcore_bfd_target
= gcore_bfd_target
;
3933 gdbarch_vtable_function_descriptors (struct gdbarch
*gdbarch
)
3935 gdb_assert (gdbarch
!= NULL
);
3936 /* Skip verify of vtable_function_descriptors, invalid_p == 0 */
3937 if (gdbarch_debug
>= 2)
3938 gdb_printf (gdb_stdlog
, "gdbarch_vtable_function_descriptors called\n");
3939 return gdbarch
->vtable_function_descriptors
;
3943 set_gdbarch_vtable_function_descriptors (struct gdbarch
*gdbarch
,
3944 int vtable_function_descriptors
)
3946 gdbarch
->vtable_function_descriptors
= vtable_function_descriptors
;
3950 gdbarch_vbit_in_delta (struct gdbarch
*gdbarch
)
3952 gdb_assert (gdbarch
!= NULL
);
3953 /* Skip verify of vbit_in_delta, invalid_p == 0 */
3954 if (gdbarch_debug
>= 2)
3955 gdb_printf (gdb_stdlog
, "gdbarch_vbit_in_delta called\n");
3956 return gdbarch
->vbit_in_delta
;
3960 set_gdbarch_vbit_in_delta (struct gdbarch
*gdbarch
,
3963 gdbarch
->vbit_in_delta
= vbit_in_delta
;
3967 gdbarch_skip_permanent_breakpoint (struct gdbarch
*gdbarch
, struct regcache
*regcache
)
3969 gdb_assert (gdbarch
!= NULL
);
3970 gdb_assert (gdbarch
->skip_permanent_breakpoint
!= NULL
);
3971 if (gdbarch_debug
>= 2)
3972 gdb_printf (gdb_stdlog
, "gdbarch_skip_permanent_breakpoint called\n");
3973 gdbarch
->skip_permanent_breakpoint (regcache
);
3977 set_gdbarch_skip_permanent_breakpoint (struct gdbarch
*gdbarch
,
3978 gdbarch_skip_permanent_breakpoint_ftype skip_permanent_breakpoint
)
3980 gdbarch
->skip_permanent_breakpoint
= skip_permanent_breakpoint
;
3984 gdbarch_max_insn_length_p (struct gdbarch
*gdbarch
)
3986 gdb_assert (gdbarch
!= NULL
);
3987 return gdbarch
->max_insn_length
!= 0;
3991 gdbarch_max_insn_length (struct gdbarch
*gdbarch
)
3993 gdb_assert (gdbarch
!= NULL
);
3994 /* Check variable changed from pre-default. */
3995 gdb_assert (gdbarch
->max_insn_length
!= 0);
3996 if (gdbarch_debug
>= 2)
3997 gdb_printf (gdb_stdlog
, "gdbarch_max_insn_length called\n");
3998 return gdbarch
->max_insn_length
;
4002 set_gdbarch_max_insn_length (struct gdbarch
*gdbarch
,
4003 ULONGEST max_insn_length
)
4005 gdbarch
->max_insn_length
= max_insn_length
;
4009 gdbarch_displaced_step_copy_insn_p (struct gdbarch
*gdbarch
)
4011 gdb_assert (gdbarch
!= NULL
);
4012 return gdbarch
->displaced_step_copy_insn
!= NULL
;
4015 displaced_step_copy_insn_closure_up
4016 gdbarch_displaced_step_copy_insn (struct gdbarch
*gdbarch
, CORE_ADDR from
, CORE_ADDR to
, struct regcache
*regs
)
4018 gdb_assert (gdbarch
!= NULL
);
4019 gdb_assert (gdbarch
->displaced_step_copy_insn
!= NULL
);
4020 if (gdbarch_debug
>= 2)
4021 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_copy_insn called\n");
4022 return gdbarch
->displaced_step_copy_insn (gdbarch
, from
, to
, regs
);
4026 set_gdbarch_displaced_step_copy_insn (struct gdbarch
*gdbarch
,
4027 gdbarch_displaced_step_copy_insn_ftype displaced_step_copy_insn
)
4029 gdbarch
->displaced_step_copy_insn
= displaced_step_copy_insn
;
4033 gdbarch_displaced_step_hw_singlestep (struct gdbarch
*gdbarch
)
4035 gdb_assert (gdbarch
!= NULL
);
4036 gdb_assert (gdbarch
->displaced_step_hw_singlestep
!= NULL
);
4037 if (gdbarch_debug
>= 2)
4038 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_hw_singlestep called\n");
4039 return gdbarch
->displaced_step_hw_singlestep (gdbarch
);
4043 set_gdbarch_displaced_step_hw_singlestep (struct gdbarch
*gdbarch
,
4044 gdbarch_displaced_step_hw_singlestep_ftype displaced_step_hw_singlestep
)
4046 gdbarch
->displaced_step_hw_singlestep
= displaced_step_hw_singlestep
;
4050 gdbarch_displaced_step_fixup_p (struct gdbarch
*gdbarch
)
4052 gdb_assert (gdbarch
!= NULL
);
4053 return gdbarch
->displaced_step_fixup
!= NULL
;
4057 gdbarch_displaced_step_fixup (struct gdbarch
*gdbarch
, struct displaced_step_copy_insn_closure
*closure
, CORE_ADDR from
, CORE_ADDR to
, struct regcache
*regs
)
4059 gdb_assert (gdbarch
!= NULL
);
4060 gdb_assert (gdbarch
->displaced_step_fixup
!= NULL
);
4061 /* Do not check predicate: gdbarch->displaced_step_fixup != NULL, allow call. */
4062 if (gdbarch_debug
>= 2)
4063 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_fixup called\n");
4064 gdbarch
->displaced_step_fixup (gdbarch
, closure
, from
, to
, regs
);
4068 set_gdbarch_displaced_step_fixup (struct gdbarch
*gdbarch
,
4069 gdbarch_displaced_step_fixup_ftype displaced_step_fixup
)
4071 gdbarch
->displaced_step_fixup
= displaced_step_fixup
;
4075 gdbarch_displaced_step_prepare_p (struct gdbarch
*gdbarch
)
4077 gdb_assert (gdbarch
!= NULL
);
4078 return gdbarch
->displaced_step_prepare
!= NULL
;
4081 displaced_step_prepare_status
4082 gdbarch_displaced_step_prepare (struct gdbarch
*gdbarch
, thread_info
*thread
, CORE_ADDR
&displaced_pc
)
4084 gdb_assert (gdbarch
!= NULL
);
4085 gdb_assert (gdbarch
->displaced_step_prepare
!= NULL
);
4086 if (gdbarch_debug
>= 2)
4087 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_prepare called\n");
4088 return gdbarch
->displaced_step_prepare (gdbarch
, thread
, displaced_pc
);
4092 set_gdbarch_displaced_step_prepare (struct gdbarch
*gdbarch
,
4093 gdbarch_displaced_step_prepare_ftype displaced_step_prepare
)
4095 gdbarch
->displaced_step_prepare
= displaced_step_prepare
;
4098 displaced_step_finish_status
4099 gdbarch_displaced_step_finish (struct gdbarch
*gdbarch
, thread_info
*thread
, gdb_signal sig
)
4101 gdb_assert (gdbarch
!= NULL
);
4102 gdb_assert (gdbarch
->displaced_step_finish
!= NULL
);
4103 if (gdbarch_debug
>= 2)
4104 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_finish called\n");
4105 return gdbarch
->displaced_step_finish (gdbarch
, thread
, sig
);
4109 set_gdbarch_displaced_step_finish (struct gdbarch
*gdbarch
,
4110 gdbarch_displaced_step_finish_ftype displaced_step_finish
)
4112 gdbarch
->displaced_step_finish
= displaced_step_finish
;
4116 gdbarch_displaced_step_copy_insn_closure_by_addr_p (struct gdbarch
*gdbarch
)
4118 gdb_assert (gdbarch
!= NULL
);
4119 return gdbarch
->displaced_step_copy_insn_closure_by_addr
!= NULL
;
4122 const displaced_step_copy_insn_closure
*
4123 gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch
*gdbarch
, inferior
*inf
, CORE_ADDR addr
)
4125 gdb_assert (gdbarch
!= NULL
);
4126 gdb_assert (gdbarch
->displaced_step_copy_insn_closure_by_addr
!= NULL
);
4127 if (gdbarch_debug
>= 2)
4128 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_copy_insn_closure_by_addr called\n");
4129 return gdbarch
->displaced_step_copy_insn_closure_by_addr (inf
, addr
);
4133 set_gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch
*gdbarch
,
4134 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype displaced_step_copy_insn_closure_by_addr
)
4136 gdbarch
->displaced_step_copy_insn_closure_by_addr
= displaced_step_copy_insn_closure_by_addr
;
4140 gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch
*gdbarch
, inferior
*parent_inf
, ptid_t child_ptid
)
4142 gdb_assert (gdbarch
!= NULL
);
4143 gdb_assert (gdbarch
->displaced_step_restore_all_in_ptid
!= NULL
);
4144 if (gdbarch_debug
>= 2)
4145 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_restore_all_in_ptid called\n");
4146 gdbarch
->displaced_step_restore_all_in_ptid (parent_inf
, child_ptid
);
4150 set_gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch
*gdbarch
,
4151 gdbarch_displaced_step_restore_all_in_ptid_ftype displaced_step_restore_all_in_ptid
)
4153 gdbarch
->displaced_step_restore_all_in_ptid
= displaced_step_restore_all_in_ptid
;
4157 gdbarch_relocate_instruction_p (struct gdbarch
*gdbarch
)
4159 gdb_assert (gdbarch
!= NULL
);
4160 return gdbarch
->relocate_instruction
!= NULL
;
4164 gdbarch_relocate_instruction (struct gdbarch
*gdbarch
, CORE_ADDR
*to
, CORE_ADDR from
)
4166 gdb_assert (gdbarch
!= NULL
);
4167 gdb_assert (gdbarch
->relocate_instruction
!= NULL
);
4168 /* Do not check predicate: gdbarch->relocate_instruction != NULL, allow call. */
4169 if (gdbarch_debug
>= 2)
4170 gdb_printf (gdb_stdlog
, "gdbarch_relocate_instruction called\n");
4171 gdbarch
->relocate_instruction (gdbarch
, to
, from
);
4175 set_gdbarch_relocate_instruction (struct gdbarch
*gdbarch
,
4176 gdbarch_relocate_instruction_ftype relocate_instruction
)
4178 gdbarch
->relocate_instruction
= relocate_instruction
;
4182 gdbarch_overlay_update_p (struct gdbarch
*gdbarch
)
4184 gdb_assert (gdbarch
!= NULL
);
4185 return gdbarch
->overlay_update
!= NULL
;
4189 gdbarch_overlay_update (struct gdbarch
*gdbarch
, struct obj_section
*osect
)
4191 gdb_assert (gdbarch
!= NULL
);
4192 gdb_assert (gdbarch
->overlay_update
!= NULL
);
4193 if (gdbarch_debug
>= 2)
4194 gdb_printf (gdb_stdlog
, "gdbarch_overlay_update called\n");
4195 gdbarch
->overlay_update (osect
);
4199 set_gdbarch_overlay_update (struct gdbarch
*gdbarch
,
4200 gdbarch_overlay_update_ftype overlay_update
)
4202 gdbarch
->overlay_update
= overlay_update
;
4206 gdbarch_core_read_description_p (struct gdbarch
*gdbarch
)
4208 gdb_assert (gdbarch
!= NULL
);
4209 return gdbarch
->core_read_description
!= NULL
;
4212 const struct target_desc
*
4213 gdbarch_core_read_description (struct gdbarch
*gdbarch
, struct target_ops
*target
, bfd
*abfd
)
4215 gdb_assert (gdbarch
!= NULL
);
4216 gdb_assert (gdbarch
->core_read_description
!= NULL
);
4217 if (gdbarch_debug
>= 2)
4218 gdb_printf (gdb_stdlog
, "gdbarch_core_read_description called\n");
4219 return gdbarch
->core_read_description (gdbarch
, target
, abfd
);
4223 set_gdbarch_core_read_description (struct gdbarch
*gdbarch
,
4224 gdbarch_core_read_description_ftype core_read_description
)
4226 gdbarch
->core_read_description
= core_read_description
;
4230 gdbarch_sofun_address_maybe_missing (struct gdbarch
*gdbarch
)
4232 gdb_assert (gdbarch
!= NULL
);
4233 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */
4234 if (gdbarch_debug
>= 2)
4235 gdb_printf (gdb_stdlog
, "gdbarch_sofun_address_maybe_missing called\n");
4236 return gdbarch
->sofun_address_maybe_missing
;
4240 set_gdbarch_sofun_address_maybe_missing (struct gdbarch
*gdbarch
,
4241 int sofun_address_maybe_missing
)
4243 gdbarch
->sofun_address_maybe_missing
= sofun_address_maybe_missing
;
4247 gdbarch_process_record_p (struct gdbarch
*gdbarch
)
4249 gdb_assert (gdbarch
!= NULL
);
4250 return gdbarch
->process_record
!= NULL
;
4254 gdbarch_process_record (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR addr
)
4256 gdb_assert (gdbarch
!= NULL
);
4257 gdb_assert (gdbarch
->process_record
!= NULL
);
4258 if (gdbarch_debug
>= 2)
4259 gdb_printf (gdb_stdlog
, "gdbarch_process_record called\n");
4260 return gdbarch
->process_record (gdbarch
, regcache
, addr
);
4264 set_gdbarch_process_record (struct gdbarch
*gdbarch
,
4265 gdbarch_process_record_ftype process_record
)
4267 gdbarch
->process_record
= process_record
;
4271 gdbarch_process_record_signal_p (struct gdbarch
*gdbarch
)
4273 gdb_assert (gdbarch
!= NULL
);
4274 return gdbarch
->process_record_signal
!= NULL
;
4278 gdbarch_process_record_signal (struct gdbarch
*gdbarch
, struct regcache
*regcache
, enum gdb_signal signal
)
4280 gdb_assert (gdbarch
!= NULL
);
4281 gdb_assert (gdbarch
->process_record_signal
!= NULL
);
4282 if (gdbarch_debug
>= 2)
4283 gdb_printf (gdb_stdlog
, "gdbarch_process_record_signal called\n");
4284 return gdbarch
->process_record_signal (gdbarch
, regcache
, signal
);
4288 set_gdbarch_process_record_signal (struct gdbarch
*gdbarch
,
4289 gdbarch_process_record_signal_ftype process_record_signal
)
4291 gdbarch
->process_record_signal
= process_record_signal
;
4295 gdbarch_gdb_signal_from_target_p (struct gdbarch
*gdbarch
)
4297 gdb_assert (gdbarch
!= NULL
);
4298 return gdbarch
->gdb_signal_from_target
!= NULL
;
4302 gdbarch_gdb_signal_from_target (struct gdbarch
*gdbarch
, int signo
)
4304 gdb_assert (gdbarch
!= NULL
);
4305 gdb_assert (gdbarch
->gdb_signal_from_target
!= NULL
);
4306 if (gdbarch_debug
>= 2)
4307 gdb_printf (gdb_stdlog
, "gdbarch_gdb_signal_from_target called\n");
4308 return gdbarch
->gdb_signal_from_target (gdbarch
, signo
);
4312 set_gdbarch_gdb_signal_from_target (struct gdbarch
*gdbarch
,
4313 gdbarch_gdb_signal_from_target_ftype gdb_signal_from_target
)
4315 gdbarch
->gdb_signal_from_target
= gdb_signal_from_target
;
4319 gdbarch_gdb_signal_to_target_p (struct gdbarch
*gdbarch
)
4321 gdb_assert (gdbarch
!= NULL
);
4322 return gdbarch
->gdb_signal_to_target
!= NULL
;
4326 gdbarch_gdb_signal_to_target (struct gdbarch
*gdbarch
, enum gdb_signal signal
)
4328 gdb_assert (gdbarch
!= NULL
);
4329 gdb_assert (gdbarch
->gdb_signal_to_target
!= NULL
);
4330 if (gdbarch_debug
>= 2)
4331 gdb_printf (gdb_stdlog
, "gdbarch_gdb_signal_to_target called\n");
4332 return gdbarch
->gdb_signal_to_target (gdbarch
, signal
);
4336 set_gdbarch_gdb_signal_to_target (struct gdbarch
*gdbarch
,
4337 gdbarch_gdb_signal_to_target_ftype gdb_signal_to_target
)
4339 gdbarch
->gdb_signal_to_target
= gdb_signal_to_target
;
4343 gdbarch_get_siginfo_type_p (struct gdbarch
*gdbarch
)
4345 gdb_assert (gdbarch
!= NULL
);
4346 return gdbarch
->get_siginfo_type
!= NULL
;
4350 gdbarch_get_siginfo_type (struct gdbarch
*gdbarch
)
4352 gdb_assert (gdbarch
!= NULL
);
4353 gdb_assert (gdbarch
->get_siginfo_type
!= NULL
);
4354 if (gdbarch_debug
>= 2)
4355 gdb_printf (gdb_stdlog
, "gdbarch_get_siginfo_type called\n");
4356 return gdbarch
->get_siginfo_type (gdbarch
);
4360 set_gdbarch_get_siginfo_type (struct gdbarch
*gdbarch
,
4361 gdbarch_get_siginfo_type_ftype get_siginfo_type
)
4363 gdbarch
->get_siginfo_type
= get_siginfo_type
;
4367 gdbarch_record_special_symbol_p (struct gdbarch
*gdbarch
)
4369 gdb_assert (gdbarch
!= NULL
);
4370 return gdbarch
->record_special_symbol
!= NULL
;
4374 gdbarch_record_special_symbol (struct gdbarch
*gdbarch
, struct objfile
*objfile
, asymbol
*sym
)
4376 gdb_assert (gdbarch
!= NULL
);
4377 gdb_assert (gdbarch
->record_special_symbol
!= NULL
);
4378 if (gdbarch_debug
>= 2)
4379 gdb_printf (gdb_stdlog
, "gdbarch_record_special_symbol called\n");
4380 gdbarch
->record_special_symbol (gdbarch
, objfile
, sym
);
4384 set_gdbarch_record_special_symbol (struct gdbarch
*gdbarch
,
4385 gdbarch_record_special_symbol_ftype record_special_symbol
)
4387 gdbarch
->record_special_symbol
= record_special_symbol
;
4391 gdbarch_get_syscall_number_p (struct gdbarch
*gdbarch
)
4393 gdb_assert (gdbarch
!= NULL
);
4394 return gdbarch
->get_syscall_number
!= NULL
;
4398 gdbarch_get_syscall_number (struct gdbarch
*gdbarch
, thread_info
*thread
)
4400 gdb_assert (gdbarch
!= NULL
);
4401 gdb_assert (gdbarch
->get_syscall_number
!= NULL
);
4402 if (gdbarch_debug
>= 2)
4403 gdb_printf (gdb_stdlog
, "gdbarch_get_syscall_number called\n");
4404 return gdbarch
->get_syscall_number (gdbarch
, thread
);
4408 set_gdbarch_get_syscall_number (struct gdbarch
*gdbarch
,
4409 gdbarch_get_syscall_number_ftype get_syscall_number
)
4411 gdbarch
->get_syscall_number
= get_syscall_number
;
4415 gdbarch_xml_syscall_file (struct gdbarch
*gdbarch
)
4417 gdb_assert (gdbarch
!= NULL
);
4418 /* Skip verify of xml_syscall_file, invalid_p == 0 */
4419 if (gdbarch_debug
>= 2)
4420 gdb_printf (gdb_stdlog
, "gdbarch_xml_syscall_file called\n");
4421 return gdbarch
->xml_syscall_file
;
4425 set_gdbarch_xml_syscall_file (struct gdbarch
*gdbarch
,
4426 const char * xml_syscall_file
)
4428 gdbarch
->xml_syscall_file
= xml_syscall_file
;
4431 struct syscalls_info
*
4432 gdbarch_syscalls_info (struct gdbarch
*gdbarch
)
4434 gdb_assert (gdbarch
!= NULL
);
4435 /* Skip verify of syscalls_info, invalid_p == 0 */
4436 if (gdbarch_debug
>= 2)
4437 gdb_printf (gdb_stdlog
, "gdbarch_syscalls_info called\n");
4438 return gdbarch
->syscalls_info
;
4442 set_gdbarch_syscalls_info (struct gdbarch
*gdbarch
,
4443 struct syscalls_info
* syscalls_info
)
4445 gdbarch
->syscalls_info
= syscalls_info
;
4449 gdbarch_stap_integer_prefixes (struct gdbarch
*gdbarch
)
4451 gdb_assert (gdbarch
!= NULL
);
4452 /* Skip verify of stap_integer_prefixes, invalid_p == 0 */
4453 if (gdbarch_debug
>= 2)
4454 gdb_printf (gdb_stdlog
, "gdbarch_stap_integer_prefixes called\n");
4455 return gdbarch
->stap_integer_prefixes
;
4459 set_gdbarch_stap_integer_prefixes (struct gdbarch
*gdbarch
,
4460 const char *const * stap_integer_prefixes
)
4462 gdbarch
->stap_integer_prefixes
= stap_integer_prefixes
;
4466 gdbarch_stap_integer_suffixes (struct gdbarch
*gdbarch
)
4468 gdb_assert (gdbarch
!= NULL
);
4469 /* Skip verify of stap_integer_suffixes, invalid_p == 0 */
4470 if (gdbarch_debug
>= 2)
4471 gdb_printf (gdb_stdlog
, "gdbarch_stap_integer_suffixes called\n");
4472 return gdbarch
->stap_integer_suffixes
;
4476 set_gdbarch_stap_integer_suffixes (struct gdbarch
*gdbarch
,
4477 const char *const * stap_integer_suffixes
)
4479 gdbarch
->stap_integer_suffixes
= stap_integer_suffixes
;
4483 gdbarch_stap_register_prefixes (struct gdbarch
*gdbarch
)
4485 gdb_assert (gdbarch
!= NULL
);
4486 /* Skip verify of stap_register_prefixes, invalid_p == 0 */
4487 if (gdbarch_debug
>= 2)
4488 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_prefixes called\n");
4489 return gdbarch
->stap_register_prefixes
;
4493 set_gdbarch_stap_register_prefixes (struct gdbarch
*gdbarch
,
4494 const char *const * stap_register_prefixes
)
4496 gdbarch
->stap_register_prefixes
= stap_register_prefixes
;
4500 gdbarch_stap_register_suffixes (struct gdbarch
*gdbarch
)
4502 gdb_assert (gdbarch
!= NULL
);
4503 /* Skip verify of stap_register_suffixes, invalid_p == 0 */
4504 if (gdbarch_debug
>= 2)
4505 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_suffixes called\n");
4506 return gdbarch
->stap_register_suffixes
;
4510 set_gdbarch_stap_register_suffixes (struct gdbarch
*gdbarch
,
4511 const char *const * stap_register_suffixes
)
4513 gdbarch
->stap_register_suffixes
= stap_register_suffixes
;
4517 gdbarch_stap_register_indirection_prefixes (struct gdbarch
*gdbarch
)
4519 gdb_assert (gdbarch
!= NULL
);
4520 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0 */
4521 if (gdbarch_debug
>= 2)
4522 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_indirection_prefixes called\n");
4523 return gdbarch
->stap_register_indirection_prefixes
;
4527 set_gdbarch_stap_register_indirection_prefixes (struct gdbarch
*gdbarch
,
4528 const char *const * stap_register_indirection_prefixes
)
4530 gdbarch
->stap_register_indirection_prefixes
= stap_register_indirection_prefixes
;
4534 gdbarch_stap_register_indirection_suffixes (struct gdbarch
*gdbarch
)
4536 gdb_assert (gdbarch
!= NULL
);
4537 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0 */
4538 if (gdbarch_debug
>= 2)
4539 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_indirection_suffixes called\n");
4540 return gdbarch
->stap_register_indirection_suffixes
;
4544 set_gdbarch_stap_register_indirection_suffixes (struct gdbarch
*gdbarch
,
4545 const char *const * stap_register_indirection_suffixes
)
4547 gdbarch
->stap_register_indirection_suffixes
= stap_register_indirection_suffixes
;
4551 gdbarch_stap_gdb_register_prefix (struct gdbarch
*gdbarch
)
4553 gdb_assert (gdbarch
!= NULL
);
4554 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0 */
4555 if (gdbarch_debug
>= 2)
4556 gdb_printf (gdb_stdlog
, "gdbarch_stap_gdb_register_prefix called\n");
4557 return gdbarch
->stap_gdb_register_prefix
;
4561 set_gdbarch_stap_gdb_register_prefix (struct gdbarch
*gdbarch
,
4562 const char * stap_gdb_register_prefix
)
4564 gdbarch
->stap_gdb_register_prefix
= stap_gdb_register_prefix
;
4568 gdbarch_stap_gdb_register_suffix (struct gdbarch
*gdbarch
)
4570 gdb_assert (gdbarch
!= NULL
);
4571 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0 */
4572 if (gdbarch_debug
>= 2)
4573 gdb_printf (gdb_stdlog
, "gdbarch_stap_gdb_register_suffix called\n");
4574 return gdbarch
->stap_gdb_register_suffix
;
4578 set_gdbarch_stap_gdb_register_suffix (struct gdbarch
*gdbarch
,
4579 const char * stap_gdb_register_suffix
)
4581 gdbarch
->stap_gdb_register_suffix
= stap_gdb_register_suffix
;
4585 gdbarch_stap_is_single_operand_p (struct gdbarch
*gdbarch
)
4587 gdb_assert (gdbarch
!= NULL
);
4588 return gdbarch
->stap_is_single_operand
!= NULL
;
4592 gdbarch_stap_is_single_operand (struct gdbarch
*gdbarch
, const char *s
)
4594 gdb_assert (gdbarch
!= NULL
);
4595 gdb_assert (gdbarch
->stap_is_single_operand
!= NULL
);
4596 if (gdbarch_debug
>= 2)
4597 gdb_printf (gdb_stdlog
, "gdbarch_stap_is_single_operand called\n");
4598 return gdbarch
->stap_is_single_operand (gdbarch
, s
);
4602 set_gdbarch_stap_is_single_operand (struct gdbarch
*gdbarch
,
4603 gdbarch_stap_is_single_operand_ftype stap_is_single_operand
)
4605 gdbarch
->stap_is_single_operand
= stap_is_single_operand
;
4609 gdbarch_stap_parse_special_token_p (struct gdbarch
*gdbarch
)
4611 gdb_assert (gdbarch
!= NULL
);
4612 return gdbarch
->stap_parse_special_token
!= NULL
;
4616 gdbarch_stap_parse_special_token (struct gdbarch
*gdbarch
, struct stap_parse_info
*p
)
4618 gdb_assert (gdbarch
!= NULL
);
4619 gdb_assert (gdbarch
->stap_parse_special_token
!= NULL
);
4620 if (gdbarch_debug
>= 2)
4621 gdb_printf (gdb_stdlog
, "gdbarch_stap_parse_special_token called\n");
4622 return gdbarch
->stap_parse_special_token (gdbarch
, p
);
4626 set_gdbarch_stap_parse_special_token (struct gdbarch
*gdbarch
,
4627 gdbarch_stap_parse_special_token_ftype stap_parse_special_token
)
4629 gdbarch
->stap_parse_special_token
= stap_parse_special_token
;
4633 gdbarch_stap_adjust_register_p (struct gdbarch
*gdbarch
)
4635 gdb_assert (gdbarch
!= NULL
);
4636 return gdbarch
->stap_adjust_register
!= NULL
;
4640 gdbarch_stap_adjust_register (struct gdbarch
*gdbarch
, struct stap_parse_info
*p
, const std::string
®name
, int regnum
)
4642 gdb_assert (gdbarch
!= NULL
);
4643 gdb_assert (gdbarch
->stap_adjust_register
!= NULL
);
4644 if (gdbarch_debug
>= 2)
4645 gdb_printf (gdb_stdlog
, "gdbarch_stap_adjust_register called\n");
4646 return gdbarch
->stap_adjust_register (gdbarch
, p
, regname
, regnum
);
4650 set_gdbarch_stap_adjust_register (struct gdbarch
*gdbarch
,
4651 gdbarch_stap_adjust_register_ftype stap_adjust_register
)
4653 gdbarch
->stap_adjust_register
= stap_adjust_register
;
4657 gdbarch_dtrace_parse_probe_argument_p (struct gdbarch
*gdbarch
)
4659 gdb_assert (gdbarch
!= NULL
);
4660 return gdbarch
->dtrace_parse_probe_argument
!= NULL
;
4664 gdbarch_dtrace_parse_probe_argument (struct gdbarch
*gdbarch
, int narg
)
4666 gdb_assert (gdbarch
!= NULL
);
4667 gdb_assert (gdbarch
->dtrace_parse_probe_argument
!= NULL
);
4668 if (gdbarch_debug
>= 2)
4669 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_parse_probe_argument called\n");
4670 return gdbarch
->dtrace_parse_probe_argument (gdbarch
, narg
);
4674 set_gdbarch_dtrace_parse_probe_argument (struct gdbarch
*gdbarch
,
4675 gdbarch_dtrace_parse_probe_argument_ftype dtrace_parse_probe_argument
)
4677 gdbarch
->dtrace_parse_probe_argument
= dtrace_parse_probe_argument
;
4681 gdbarch_dtrace_probe_is_enabled_p (struct gdbarch
*gdbarch
)
4683 gdb_assert (gdbarch
!= NULL
);
4684 return gdbarch
->dtrace_probe_is_enabled
!= NULL
;
4688 gdbarch_dtrace_probe_is_enabled (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4690 gdb_assert (gdbarch
!= NULL
);
4691 gdb_assert (gdbarch
->dtrace_probe_is_enabled
!= NULL
);
4692 if (gdbarch_debug
>= 2)
4693 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_probe_is_enabled called\n");
4694 return gdbarch
->dtrace_probe_is_enabled (gdbarch
, addr
);
4698 set_gdbarch_dtrace_probe_is_enabled (struct gdbarch
*gdbarch
,
4699 gdbarch_dtrace_probe_is_enabled_ftype dtrace_probe_is_enabled
)
4701 gdbarch
->dtrace_probe_is_enabled
= dtrace_probe_is_enabled
;
4705 gdbarch_dtrace_enable_probe_p (struct gdbarch
*gdbarch
)
4707 gdb_assert (gdbarch
!= NULL
);
4708 return gdbarch
->dtrace_enable_probe
!= NULL
;
4712 gdbarch_dtrace_enable_probe (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4714 gdb_assert (gdbarch
!= NULL
);
4715 gdb_assert (gdbarch
->dtrace_enable_probe
!= NULL
);
4716 if (gdbarch_debug
>= 2)
4717 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_enable_probe called\n");
4718 gdbarch
->dtrace_enable_probe (gdbarch
, addr
);
4722 set_gdbarch_dtrace_enable_probe (struct gdbarch
*gdbarch
,
4723 gdbarch_dtrace_enable_probe_ftype dtrace_enable_probe
)
4725 gdbarch
->dtrace_enable_probe
= dtrace_enable_probe
;
4729 gdbarch_dtrace_disable_probe_p (struct gdbarch
*gdbarch
)
4731 gdb_assert (gdbarch
!= NULL
);
4732 return gdbarch
->dtrace_disable_probe
!= NULL
;
4736 gdbarch_dtrace_disable_probe (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4738 gdb_assert (gdbarch
!= NULL
);
4739 gdb_assert (gdbarch
->dtrace_disable_probe
!= NULL
);
4740 if (gdbarch_debug
>= 2)
4741 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_disable_probe called\n");
4742 gdbarch
->dtrace_disable_probe (gdbarch
, addr
);
4746 set_gdbarch_dtrace_disable_probe (struct gdbarch
*gdbarch
,
4747 gdbarch_dtrace_disable_probe_ftype dtrace_disable_probe
)
4749 gdbarch
->dtrace_disable_probe
= dtrace_disable_probe
;
4753 gdbarch_has_global_solist (struct gdbarch
*gdbarch
)
4755 gdb_assert (gdbarch
!= NULL
);
4756 /* Skip verify of has_global_solist, invalid_p == 0 */
4757 if (gdbarch_debug
>= 2)
4758 gdb_printf (gdb_stdlog
, "gdbarch_has_global_solist called\n");
4759 return gdbarch
->has_global_solist
;
4763 set_gdbarch_has_global_solist (struct gdbarch
*gdbarch
,
4764 int has_global_solist
)
4766 gdbarch
->has_global_solist
= has_global_solist
;
4770 gdbarch_has_global_breakpoints (struct gdbarch
*gdbarch
)
4772 gdb_assert (gdbarch
!= NULL
);
4773 /* Skip verify of has_global_breakpoints, invalid_p == 0 */
4774 if (gdbarch_debug
>= 2)
4775 gdb_printf (gdb_stdlog
, "gdbarch_has_global_breakpoints called\n");
4776 return gdbarch
->has_global_breakpoints
;
4780 set_gdbarch_has_global_breakpoints (struct gdbarch
*gdbarch
,
4781 int has_global_breakpoints
)
4783 gdbarch
->has_global_breakpoints
= has_global_breakpoints
;
4787 gdbarch_has_shared_address_space (struct gdbarch
*gdbarch
)
4789 gdb_assert (gdbarch
!= NULL
);
4790 gdb_assert (gdbarch
->has_shared_address_space
!= NULL
);
4791 if (gdbarch_debug
>= 2)
4792 gdb_printf (gdb_stdlog
, "gdbarch_has_shared_address_space called\n");
4793 return gdbarch
->has_shared_address_space (gdbarch
);
4797 set_gdbarch_has_shared_address_space (struct gdbarch
*gdbarch
,
4798 gdbarch_has_shared_address_space_ftype has_shared_address_space
)
4800 gdbarch
->has_shared_address_space
= has_shared_address_space
;
4804 gdbarch_fast_tracepoint_valid_at (struct gdbarch
*gdbarch
, CORE_ADDR addr
, std::string
*msg
)
4806 gdb_assert (gdbarch
!= NULL
);
4807 gdb_assert (gdbarch
->fast_tracepoint_valid_at
!= NULL
);
4808 if (gdbarch_debug
>= 2)
4809 gdb_printf (gdb_stdlog
, "gdbarch_fast_tracepoint_valid_at called\n");
4810 return gdbarch
->fast_tracepoint_valid_at (gdbarch
, addr
, msg
);
4814 set_gdbarch_fast_tracepoint_valid_at (struct gdbarch
*gdbarch
,
4815 gdbarch_fast_tracepoint_valid_at_ftype fast_tracepoint_valid_at
)
4817 gdbarch
->fast_tracepoint_valid_at
= fast_tracepoint_valid_at
;
4821 gdbarch_guess_tracepoint_registers (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR addr
)
4823 gdb_assert (gdbarch
!= NULL
);
4824 gdb_assert (gdbarch
->guess_tracepoint_registers
!= NULL
);
4825 if (gdbarch_debug
>= 2)
4826 gdb_printf (gdb_stdlog
, "gdbarch_guess_tracepoint_registers called\n");
4827 gdbarch
->guess_tracepoint_registers (gdbarch
, regcache
, addr
);
4831 set_gdbarch_guess_tracepoint_registers (struct gdbarch
*gdbarch
,
4832 gdbarch_guess_tracepoint_registers_ftype guess_tracepoint_registers
)
4834 gdbarch
->guess_tracepoint_registers
= guess_tracepoint_registers
;
4838 gdbarch_auto_charset (struct gdbarch
*gdbarch
)
4840 gdb_assert (gdbarch
!= NULL
);
4841 gdb_assert (gdbarch
->auto_charset
!= NULL
);
4842 if (gdbarch_debug
>= 2)
4843 gdb_printf (gdb_stdlog
, "gdbarch_auto_charset called\n");
4844 return gdbarch
->auto_charset ();
4848 set_gdbarch_auto_charset (struct gdbarch
*gdbarch
,
4849 gdbarch_auto_charset_ftype auto_charset
)
4851 gdbarch
->auto_charset
= auto_charset
;
4855 gdbarch_auto_wide_charset (struct gdbarch
*gdbarch
)
4857 gdb_assert (gdbarch
!= NULL
);
4858 gdb_assert (gdbarch
->auto_wide_charset
!= NULL
);
4859 if (gdbarch_debug
>= 2)
4860 gdb_printf (gdb_stdlog
, "gdbarch_auto_wide_charset called\n");
4861 return gdbarch
->auto_wide_charset ();
4865 set_gdbarch_auto_wide_charset (struct gdbarch
*gdbarch
,
4866 gdbarch_auto_wide_charset_ftype auto_wide_charset
)
4868 gdbarch
->auto_wide_charset
= auto_wide_charset
;
4872 gdbarch_solib_symbols_extension (struct gdbarch
*gdbarch
)
4874 gdb_assert (gdbarch
!= NULL
);
4875 /* Skip verify of solib_symbols_extension, invalid_p == 0 */
4876 if (gdbarch_debug
>= 2)
4877 gdb_printf (gdb_stdlog
, "gdbarch_solib_symbols_extension called\n");
4878 return gdbarch
->solib_symbols_extension
;
4882 set_gdbarch_solib_symbols_extension (struct gdbarch
*gdbarch
,
4883 const char * solib_symbols_extension
)
4885 gdbarch
->solib_symbols_extension
= solib_symbols_extension
;
4889 gdbarch_has_dos_based_file_system (struct gdbarch
*gdbarch
)
4891 gdb_assert (gdbarch
!= NULL
);
4892 /* Skip verify of has_dos_based_file_system, invalid_p == 0 */
4893 if (gdbarch_debug
>= 2)
4894 gdb_printf (gdb_stdlog
, "gdbarch_has_dos_based_file_system called\n");
4895 return gdbarch
->has_dos_based_file_system
;
4899 set_gdbarch_has_dos_based_file_system (struct gdbarch
*gdbarch
,
4900 int has_dos_based_file_system
)
4902 gdbarch
->has_dos_based_file_system
= has_dos_based_file_system
;
4906 gdbarch_gen_return_address (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, struct axs_value
*value
, CORE_ADDR scope
)
4908 gdb_assert (gdbarch
!= NULL
);
4909 gdb_assert (gdbarch
->gen_return_address
!= NULL
);
4910 if (gdbarch_debug
>= 2)
4911 gdb_printf (gdb_stdlog
, "gdbarch_gen_return_address called\n");
4912 gdbarch
->gen_return_address (gdbarch
, ax
, value
, scope
);
4916 set_gdbarch_gen_return_address (struct gdbarch
*gdbarch
,
4917 gdbarch_gen_return_address_ftype gen_return_address
)
4919 gdbarch
->gen_return_address
= gen_return_address
;
4923 gdbarch_info_proc_p (struct gdbarch
*gdbarch
)
4925 gdb_assert (gdbarch
!= NULL
);
4926 return gdbarch
->info_proc
!= NULL
;
4930 gdbarch_info_proc (struct gdbarch
*gdbarch
, const char *args
, enum info_proc_what what
)
4932 gdb_assert (gdbarch
!= NULL
);
4933 gdb_assert (gdbarch
->info_proc
!= NULL
);
4934 if (gdbarch_debug
>= 2)
4935 gdb_printf (gdb_stdlog
, "gdbarch_info_proc called\n");
4936 gdbarch
->info_proc (gdbarch
, args
, what
);
4940 set_gdbarch_info_proc (struct gdbarch
*gdbarch
,
4941 gdbarch_info_proc_ftype info_proc
)
4943 gdbarch
->info_proc
= info_proc
;
4947 gdbarch_core_info_proc_p (struct gdbarch
*gdbarch
)
4949 gdb_assert (gdbarch
!= NULL
);
4950 return gdbarch
->core_info_proc
!= NULL
;
4954 gdbarch_core_info_proc (struct gdbarch
*gdbarch
, const char *args
, enum info_proc_what what
)
4956 gdb_assert (gdbarch
!= NULL
);
4957 gdb_assert (gdbarch
->core_info_proc
!= NULL
);
4958 if (gdbarch_debug
>= 2)
4959 gdb_printf (gdb_stdlog
, "gdbarch_core_info_proc called\n");
4960 gdbarch
->core_info_proc (gdbarch
, args
, what
);
4964 set_gdbarch_core_info_proc (struct gdbarch
*gdbarch
,
4965 gdbarch_core_info_proc_ftype core_info_proc
)
4967 gdbarch
->core_info_proc
= core_info_proc
;
4971 gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch
*gdbarch
, iterate_over_objfiles_in_search_order_cb_ftype cb
, struct objfile
*current_objfile
)
4973 gdb_assert (gdbarch
!= NULL
);
4974 gdb_assert (gdbarch
->iterate_over_objfiles_in_search_order
!= NULL
);
4975 if (gdbarch_debug
>= 2)
4976 gdb_printf (gdb_stdlog
, "gdbarch_iterate_over_objfiles_in_search_order called\n");
4977 gdbarch
->iterate_over_objfiles_in_search_order (gdbarch
, cb
, current_objfile
);
4981 set_gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch
*gdbarch
,
4982 gdbarch_iterate_over_objfiles_in_search_order_ftype iterate_over_objfiles_in_search_order
)
4984 gdbarch
->iterate_over_objfiles_in_search_order
= iterate_over_objfiles_in_search_order
;
4987 struct ravenscar_arch_ops
*
4988 gdbarch_ravenscar_ops (struct gdbarch
*gdbarch
)
4990 gdb_assert (gdbarch
!= NULL
);
4991 /* Skip verify of ravenscar_ops, invalid_p == 0 */
4992 if (gdbarch_debug
>= 2)
4993 gdb_printf (gdb_stdlog
, "gdbarch_ravenscar_ops called\n");
4994 return gdbarch
->ravenscar_ops
;
4998 set_gdbarch_ravenscar_ops (struct gdbarch
*gdbarch
,
4999 struct ravenscar_arch_ops
* ravenscar_ops
)
5001 gdbarch
->ravenscar_ops
= ravenscar_ops
;
5005 gdbarch_insn_is_call (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5007 gdb_assert (gdbarch
!= NULL
);
5008 gdb_assert (gdbarch
->insn_is_call
!= NULL
);
5009 if (gdbarch_debug
>= 2)
5010 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_call called\n");
5011 return gdbarch
->insn_is_call (gdbarch
, addr
);
5015 set_gdbarch_insn_is_call (struct gdbarch
*gdbarch
,
5016 gdbarch_insn_is_call_ftype insn_is_call
)
5018 gdbarch
->insn_is_call
= insn_is_call
;
5022 gdbarch_insn_is_ret (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5024 gdb_assert (gdbarch
!= NULL
);
5025 gdb_assert (gdbarch
->insn_is_ret
!= NULL
);
5026 if (gdbarch_debug
>= 2)
5027 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_ret called\n");
5028 return gdbarch
->insn_is_ret (gdbarch
, addr
);
5032 set_gdbarch_insn_is_ret (struct gdbarch
*gdbarch
,
5033 gdbarch_insn_is_ret_ftype insn_is_ret
)
5035 gdbarch
->insn_is_ret
= insn_is_ret
;
5039 gdbarch_insn_is_jump (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5041 gdb_assert (gdbarch
!= NULL
);
5042 gdb_assert (gdbarch
->insn_is_jump
!= NULL
);
5043 if (gdbarch_debug
>= 2)
5044 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_jump called\n");
5045 return gdbarch
->insn_is_jump (gdbarch
, addr
);
5049 set_gdbarch_insn_is_jump (struct gdbarch
*gdbarch
,
5050 gdbarch_insn_is_jump_ftype insn_is_jump
)
5052 gdbarch
->insn_is_jump
= insn_is_jump
;
5056 gdbarch_program_breakpoint_here_p (struct gdbarch
*gdbarch
, CORE_ADDR address
)
5058 gdb_assert (gdbarch
!= NULL
);
5059 gdb_assert (gdbarch
->program_breakpoint_here_p
!= NULL
);
5060 if (gdbarch_debug
>= 2)
5061 gdb_printf (gdb_stdlog
, "gdbarch_program_breakpoint_here_p called\n");
5062 return gdbarch
->program_breakpoint_here_p (gdbarch
, address
);
5066 set_gdbarch_program_breakpoint_here_p (struct gdbarch
*gdbarch
,
5067 gdbarch_program_breakpoint_here_p_ftype program_breakpoint_here_p
)
5069 gdbarch
->program_breakpoint_here_p
= program_breakpoint_here_p
;
5073 gdbarch_auxv_parse_p (struct gdbarch
*gdbarch
)
5075 gdb_assert (gdbarch
!= NULL
);
5076 return gdbarch
->auxv_parse
!= NULL
;
5080 gdbarch_auxv_parse (struct gdbarch
*gdbarch
, const gdb_byte
**readptr
, const gdb_byte
*endptr
, CORE_ADDR
*typep
, CORE_ADDR
*valp
)
5082 gdb_assert (gdbarch
!= NULL
);
5083 gdb_assert (gdbarch
->auxv_parse
!= NULL
);
5084 if (gdbarch_debug
>= 2)
5085 gdb_printf (gdb_stdlog
, "gdbarch_auxv_parse called\n");
5086 return gdbarch
->auxv_parse (gdbarch
, readptr
, endptr
, typep
, valp
);
5090 set_gdbarch_auxv_parse (struct gdbarch
*gdbarch
,
5091 gdbarch_auxv_parse_ftype auxv_parse
)
5093 gdbarch
->auxv_parse
= auxv_parse
;
5097 gdbarch_print_auxv_entry (struct gdbarch
*gdbarch
, struct ui_file
*file
, CORE_ADDR type
, CORE_ADDR val
)
5099 gdb_assert (gdbarch
!= NULL
);
5100 gdb_assert (gdbarch
->print_auxv_entry
!= NULL
);
5101 if (gdbarch_debug
>= 2)
5102 gdb_printf (gdb_stdlog
, "gdbarch_print_auxv_entry called\n");
5103 gdbarch
->print_auxv_entry (gdbarch
, file
, type
, val
);
5107 set_gdbarch_print_auxv_entry (struct gdbarch
*gdbarch
,
5108 gdbarch_print_auxv_entry_ftype print_auxv_entry
)
5110 gdbarch
->print_auxv_entry
= print_auxv_entry
;
5114 gdbarch_vsyscall_range (struct gdbarch
*gdbarch
, struct mem_range
*range
)
5116 gdb_assert (gdbarch
!= NULL
);
5117 gdb_assert (gdbarch
->vsyscall_range
!= NULL
);
5118 if (gdbarch_debug
>= 2)
5119 gdb_printf (gdb_stdlog
, "gdbarch_vsyscall_range called\n");
5120 return gdbarch
->vsyscall_range (gdbarch
, range
);
5124 set_gdbarch_vsyscall_range (struct gdbarch
*gdbarch
,
5125 gdbarch_vsyscall_range_ftype vsyscall_range
)
5127 gdbarch
->vsyscall_range
= vsyscall_range
;
5131 gdbarch_infcall_mmap (struct gdbarch
*gdbarch
, CORE_ADDR size
, unsigned prot
)
5133 gdb_assert (gdbarch
!= NULL
);
5134 gdb_assert (gdbarch
->infcall_mmap
!= NULL
);
5135 if (gdbarch_debug
>= 2)
5136 gdb_printf (gdb_stdlog
, "gdbarch_infcall_mmap called\n");
5137 return gdbarch
->infcall_mmap (size
, prot
);
5141 set_gdbarch_infcall_mmap (struct gdbarch
*gdbarch
,
5142 gdbarch_infcall_mmap_ftype infcall_mmap
)
5144 gdbarch
->infcall_mmap
= infcall_mmap
;
5148 gdbarch_infcall_munmap (struct gdbarch
*gdbarch
, CORE_ADDR addr
, CORE_ADDR size
)
5150 gdb_assert (gdbarch
!= NULL
);
5151 gdb_assert (gdbarch
->infcall_munmap
!= NULL
);
5152 if (gdbarch_debug
>= 2)
5153 gdb_printf (gdb_stdlog
, "gdbarch_infcall_munmap called\n");
5154 gdbarch
->infcall_munmap (addr
, size
);
5158 set_gdbarch_infcall_munmap (struct gdbarch
*gdbarch
,
5159 gdbarch_infcall_munmap_ftype infcall_munmap
)
5161 gdbarch
->infcall_munmap
= infcall_munmap
;
5165 gdbarch_gcc_target_options (struct gdbarch
*gdbarch
)
5167 gdb_assert (gdbarch
!= NULL
);
5168 gdb_assert (gdbarch
->gcc_target_options
!= NULL
);
5169 if (gdbarch_debug
>= 2)
5170 gdb_printf (gdb_stdlog
, "gdbarch_gcc_target_options called\n");
5171 return gdbarch
->gcc_target_options (gdbarch
);
5175 set_gdbarch_gcc_target_options (struct gdbarch
*gdbarch
,
5176 gdbarch_gcc_target_options_ftype gcc_target_options
)
5178 gdbarch
->gcc_target_options
= gcc_target_options
;
5182 gdbarch_gnu_triplet_regexp (struct gdbarch
*gdbarch
)
5184 gdb_assert (gdbarch
!= NULL
);
5185 gdb_assert (gdbarch
->gnu_triplet_regexp
!= NULL
);
5186 if (gdbarch_debug
>= 2)
5187 gdb_printf (gdb_stdlog
, "gdbarch_gnu_triplet_regexp called\n");
5188 return gdbarch
->gnu_triplet_regexp (gdbarch
);
5192 set_gdbarch_gnu_triplet_regexp (struct gdbarch
*gdbarch
,
5193 gdbarch_gnu_triplet_regexp_ftype gnu_triplet_regexp
)
5195 gdbarch
->gnu_triplet_regexp
= gnu_triplet_regexp
;
5199 gdbarch_addressable_memory_unit_size (struct gdbarch
*gdbarch
)
5201 gdb_assert (gdbarch
!= NULL
);
5202 gdb_assert (gdbarch
->addressable_memory_unit_size
!= NULL
);
5203 if (gdbarch_debug
>= 2)
5204 gdb_printf (gdb_stdlog
, "gdbarch_addressable_memory_unit_size called\n");
5205 return gdbarch
->addressable_memory_unit_size (gdbarch
);
5209 set_gdbarch_addressable_memory_unit_size (struct gdbarch
*gdbarch
,
5210 gdbarch_addressable_memory_unit_size_ftype addressable_memory_unit_size
)
5212 gdbarch
->addressable_memory_unit_size
= addressable_memory_unit_size
;
5216 gdbarch_disassembler_options_implicit (struct gdbarch
*gdbarch
)
5218 gdb_assert (gdbarch
!= NULL
);
5219 /* Skip verify of disassembler_options_implicit, invalid_p == 0 */
5220 if (gdbarch_debug
>= 2)
5221 gdb_printf (gdb_stdlog
, "gdbarch_disassembler_options_implicit called\n");
5222 return gdbarch
->disassembler_options_implicit
;
5226 set_gdbarch_disassembler_options_implicit (struct gdbarch
*gdbarch
,
5227 const char * disassembler_options_implicit
)
5229 gdbarch
->disassembler_options_implicit
= disassembler_options_implicit
;
5233 gdbarch_disassembler_options (struct gdbarch
*gdbarch
)
5235 gdb_assert (gdbarch
!= NULL
);
5236 /* Skip verify of disassembler_options, invalid_p == 0 */
5237 if (gdbarch_debug
>= 2)
5238 gdb_printf (gdb_stdlog
, "gdbarch_disassembler_options called\n");
5239 return gdbarch
->disassembler_options
;
5243 set_gdbarch_disassembler_options (struct gdbarch
*gdbarch
,
5244 char ** disassembler_options
)
5246 gdbarch
->disassembler_options
= disassembler_options
;
5249 const disasm_options_and_args_t
*
5250 gdbarch_valid_disassembler_options (struct gdbarch
*gdbarch
)
5252 gdb_assert (gdbarch
!= NULL
);
5253 /* Skip verify of valid_disassembler_options, invalid_p == 0 */
5254 if (gdbarch_debug
>= 2)
5255 gdb_printf (gdb_stdlog
, "gdbarch_valid_disassembler_options called\n");
5256 return gdbarch
->valid_disassembler_options
;
5260 set_gdbarch_valid_disassembler_options (struct gdbarch
*gdbarch
,
5261 const disasm_options_and_args_t
* valid_disassembler_options
)
5263 gdbarch
->valid_disassembler_options
= valid_disassembler_options
;
5267 gdbarch_type_align (struct gdbarch
*gdbarch
, struct type
*type
)
5269 gdb_assert (gdbarch
!= NULL
);
5270 gdb_assert (gdbarch
->type_align
!= NULL
);
5271 if (gdbarch_debug
>= 2)
5272 gdb_printf (gdb_stdlog
, "gdbarch_type_align called\n");
5273 return gdbarch
->type_align (gdbarch
, type
);
5277 set_gdbarch_type_align (struct gdbarch
*gdbarch
,
5278 gdbarch_type_align_ftype type_align
)
5280 gdbarch
->type_align
= type_align
;
5284 gdbarch_get_pc_address_flags (struct gdbarch
*gdbarch
, frame_info_ptr frame
, CORE_ADDR pc
)
5286 gdb_assert (gdbarch
!= NULL
);
5287 gdb_assert (gdbarch
->get_pc_address_flags
!= NULL
);
5288 if (gdbarch_debug
>= 2)
5289 gdb_printf (gdb_stdlog
, "gdbarch_get_pc_address_flags called\n");
5290 return gdbarch
->get_pc_address_flags (frame
, pc
);
5294 set_gdbarch_get_pc_address_flags (struct gdbarch
*gdbarch
,
5295 gdbarch_get_pc_address_flags_ftype get_pc_address_flags
)
5297 gdbarch
->get_pc_address_flags
= get_pc_address_flags
;
5301 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
)
5303 gdb_assert (gdbarch
!= NULL
);
5304 gdb_assert (gdbarch
->read_core_file_mappings
!= NULL
);
5305 if (gdbarch_debug
>= 2)
5306 gdb_printf (gdb_stdlog
, "gdbarch_read_core_file_mappings called\n");
5307 gdbarch
->read_core_file_mappings (gdbarch
, cbfd
, pre_loop_cb
, loop_cb
);
5311 set_gdbarch_read_core_file_mappings (struct gdbarch
*gdbarch
,
5312 gdbarch_read_core_file_mappings_ftype read_core_file_mappings
)
5314 gdbarch
->read_core_file_mappings
= read_core_file_mappings
;