1 /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */
4 /* Dynamic architecture support for GDB, the GNU debugger.
6 Copyright (C) 1998-2024 Free Software Foundation, Inc.
8 This file is part of GDB.
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>. */
23 /* To regenerate this file, run:
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
= floatformats_bfloat16
;
57 int half_bit
= 2*TARGET_CHAR_BIT
;
58 const struct floatformat
** half_format
= floatformats_ieee_half
;
59 int float_bit
= 4*TARGET_CHAR_BIT
;
60 const struct floatformat
** float_format
= floatformats_ieee_single
;
61 int double_bit
= 8*TARGET_CHAR_BIT
;
62 const struct floatformat
** double_format
= floatformats_ieee_double
;
63 int long_double_bit
= 8*TARGET_CHAR_BIT
;
64 const struct floatformat
** long_double_format
= floatformats_ieee_double
;
65 int wchar_bit
= 4*TARGET_CHAR_BIT
;
66 int wchar_signed
= -1;
67 gdbarch_floatformat_for_type_ftype
*floatformat_for_type
= default_floatformat_for_type
;
68 int ptr_bit
= 4*TARGET_CHAR_BIT
;
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;
78 gdbarch_deprecated_pseudo_register_write_ftype
*deprecated_pseudo_register_write
= nullptr;
80 int num_pseudo_regs
= 0;
81 gdbarch_ax_pseudo_register_collect_ftype
*ax_pseudo_register_collect
= nullptr;
82 gdbarch_ax_pseudo_register_push_stack_ftype
*ax_pseudo_register_push_stack
= nullptr;
83 gdbarch_report_signal_info_ftype
*report_signal_info
= nullptr;
88 gdbarch_stab_reg_to_regnum_ftype
*stab_reg_to_regnum
= no_op_reg_to_regnum
;
89 gdbarch_ecoff_reg_to_regnum_ftype
*ecoff_reg_to_regnum
= no_op_reg_to_regnum
;
90 gdbarch_sdb_reg_to_regnum_ftype
*sdb_reg_to_regnum
= no_op_reg_to_regnum
;
91 gdbarch_dwarf2_reg_to_regnum_ftype
*dwarf2_reg_to_regnum
= no_op_reg_to_regnum
;
92 gdbarch_register_name_ftype
*register_name
= nullptr;
93 gdbarch_register_type_ftype
*register_type
= nullptr;
94 gdbarch_dummy_id_ftype
*dummy_id
= default_dummy_id
;
95 int deprecated_fp_regnum
= -1;
96 gdbarch_push_dummy_call_ftype
*push_dummy_call
= nullptr;
97 enum call_dummy_location_type call_dummy_location
= AT_ENTRY_POINT
;
98 gdbarch_push_dummy_code_ftype
*push_dummy_code
= nullptr;
99 gdbarch_code_of_frame_writable_ftype
*code_of_frame_writable
= default_code_of_frame_writable
;
100 gdbarch_print_registers_info_ftype
*print_registers_info
= default_print_registers_info
;
101 gdbarch_print_float_info_ftype
*print_float_info
= default_print_float_info
;
102 gdbarch_print_vector_info_ftype
*print_vector_info
= nullptr;
103 gdbarch_register_sim_regno_ftype
*register_sim_regno
= legacy_register_sim_regno
;
104 gdbarch_cannot_fetch_register_ftype
*cannot_fetch_register
= cannot_register_not
;
105 gdbarch_cannot_store_register_ftype
*cannot_store_register
= cannot_register_not
;
106 gdbarch_get_longjmp_target_ftype
*get_longjmp_target
= nullptr;
107 int believe_pcc_promotion
= 0;
108 gdbarch_convert_register_p_ftype
*convert_register_p
= generic_convert_register_p
;
109 gdbarch_register_to_value_ftype
*register_to_value
= nullptr;
110 gdbarch_value_to_register_ftype
*value_to_register
= nullptr;
111 gdbarch_value_from_register_ftype
*value_from_register
= default_value_from_register
;
112 gdbarch_dwarf2_reg_piece_offset_ftype
*dwarf2_reg_piece_offset
= default_dwarf2_reg_piece_offset
;
113 gdbarch_pointer_to_address_ftype
*pointer_to_address
= unsigned_pointer_to_address
;
114 gdbarch_address_to_pointer_ftype
*address_to_pointer
= unsigned_address_to_pointer
;
115 gdbarch_integer_to_address_ftype
*integer_to_address
= nullptr;
116 gdbarch_return_value_ftype
*return_value
= nullptr;
117 gdbarch_return_value_as_value_ftype
*return_value_as_value
= default_gdbarch_return_value
;
118 gdbarch_get_return_buf_addr_ftype
*get_return_buf_addr
= default_get_return_buf_addr
;
119 gdbarch_dwarf2_omit_typedef_p_ftype
*dwarf2_omit_typedef_p
= default_dwarf2_omit_typedef_p
;
120 gdbarch_update_call_site_pc_ftype
*update_call_site_pc
= default_update_call_site_pc
;
121 gdbarch_return_in_first_hidden_param_p_ftype
*return_in_first_hidden_param_p
= default_return_in_first_hidden_param_p
;
122 gdbarch_skip_prologue_ftype
*skip_prologue
= nullptr;
123 gdbarch_skip_main_prologue_ftype
*skip_main_prologue
= nullptr;
124 gdbarch_skip_entrypoint_ftype
*skip_entrypoint
= nullptr;
125 gdbarch_inner_than_ftype
*inner_than
= nullptr;
126 gdbarch_breakpoint_from_pc_ftype
*breakpoint_from_pc
= default_breakpoint_from_pc
;
127 gdbarch_breakpoint_kind_from_pc_ftype
*breakpoint_kind_from_pc
= nullptr;
128 gdbarch_sw_breakpoint_from_kind_ftype
*sw_breakpoint_from_kind
= NULL
;
129 gdbarch_breakpoint_kind_from_current_state_ftype
*breakpoint_kind_from_current_state
= default_breakpoint_kind_from_current_state
;
130 gdbarch_adjust_breakpoint_address_ftype
*adjust_breakpoint_address
= nullptr;
131 gdbarch_memory_insert_breakpoint_ftype
*memory_insert_breakpoint
= default_memory_insert_breakpoint
;
132 gdbarch_memory_remove_breakpoint_ftype
*memory_remove_breakpoint
= default_memory_remove_breakpoint
;
133 CORE_ADDR decr_pc_after_break
= 0;
134 CORE_ADDR deprecated_function_start_offset
= 0;
135 gdbarch_remote_register_number_ftype
*remote_register_number
= default_remote_register_number
;
136 gdbarch_fetch_tls_load_module_address_ftype
*fetch_tls_load_module_address
= nullptr;
137 gdbarch_get_thread_local_address_ftype
*get_thread_local_address
= nullptr;
138 CORE_ADDR frame_args_skip
= 0;
139 gdbarch_unwind_pc_ftype
*unwind_pc
= default_unwind_pc
;
140 gdbarch_unwind_sp_ftype
*unwind_sp
= default_unwind_sp
;
141 gdbarch_frame_num_args_ftype
*frame_num_args
= nullptr;
142 gdbarch_frame_align_ftype
*frame_align
= nullptr;
143 gdbarch_stabs_argument_has_addr_ftype
*stabs_argument_has_addr
= default_stabs_argument_has_addr
;
144 int frame_red_zone_size
= 0;
145 gdbarch_convert_from_func_ptr_addr_ftype
*convert_from_func_ptr_addr
= convert_from_func_ptr_addr_identity
;
146 gdbarch_addr_bits_remove_ftype
*addr_bits_remove
= core_addr_identity
;
147 gdbarch_remove_non_address_bits_watchpoint_ftype
*remove_non_address_bits_watchpoint
= default_remove_non_address_bits
;
148 gdbarch_remove_non_address_bits_breakpoint_ftype
*remove_non_address_bits_breakpoint
= default_remove_non_address_bits
;
149 gdbarch_remove_non_address_bits_memory_ftype
*remove_non_address_bits_memory
= default_remove_non_address_bits
;
150 gdbarch_memtag_to_string_ftype
*memtag_to_string
= default_memtag_to_string
;
151 gdbarch_tagged_address_p_ftype
*tagged_address_p
= default_tagged_address_p
;
152 gdbarch_memtag_matches_p_ftype
*memtag_matches_p
= default_memtag_matches_p
;
153 gdbarch_set_memtags_ftype
*set_memtags
= default_set_memtags
;
154 gdbarch_get_memtag_ftype
*get_memtag
= default_get_memtag
;
155 CORE_ADDR memtag_granule_size
= 0;
156 gdbarch_software_single_step_ftype
*software_single_step
= nullptr;
157 gdbarch_single_step_through_delay_ftype
*single_step_through_delay
= nullptr;
158 gdbarch_print_insn_ftype
*print_insn
= default_print_insn
;
159 gdbarch_skip_trampoline_code_ftype
*skip_trampoline_code
= generic_skip_trampoline_code
;
160 const solib_ops
* so_ops
= &solib_target_so_ops
;
161 gdbarch_skip_solib_resolver_ftype
*skip_solib_resolver
= generic_skip_solib_resolver
;
162 gdbarch_in_solib_return_trampoline_ftype
*in_solib_return_trampoline
= generic_in_solib_return_trampoline
;
163 gdbarch_in_indirect_branch_thunk_ftype
*in_indirect_branch_thunk
= default_in_indirect_branch_thunk
;
164 gdbarch_stack_frame_destroyed_p_ftype
*stack_frame_destroyed_p
= generic_stack_frame_destroyed_p
;
165 gdbarch_elf_make_msymbol_special_ftype
*elf_make_msymbol_special
= nullptr;
166 gdbarch_coff_make_msymbol_special_ftype
*coff_make_msymbol_special
= default_coff_make_msymbol_special
;
167 gdbarch_make_symbol_special_ftype
*make_symbol_special
= default_make_symbol_special
;
168 gdbarch_adjust_dwarf2_addr_ftype
*adjust_dwarf2_addr
= default_adjust_dwarf2_addr
;
169 gdbarch_adjust_dwarf2_line_ftype
*adjust_dwarf2_line
= default_adjust_dwarf2_line
;
170 int cannot_step_breakpoint
= 0;
171 int have_nonsteppable_watchpoint
= 0;
172 gdbarch_address_class_type_flags_ftype
*address_class_type_flags
= nullptr;
173 gdbarch_address_class_type_flags_to_name_ftype
*address_class_type_flags_to_name
= nullptr;
174 gdbarch_execute_dwarf_cfa_vendor_op_ftype
*execute_dwarf_cfa_vendor_op
= default_execute_dwarf_cfa_vendor_op
;
175 gdbarch_address_class_name_to_type_flags_ftype
*address_class_name_to_type_flags
= nullptr;
176 gdbarch_register_reggroup_p_ftype
*register_reggroup_p
= default_register_reggroup_p
;
177 gdbarch_fetch_pointer_argument_ftype
*fetch_pointer_argument
= nullptr;
178 gdbarch_iterate_over_regset_sections_ftype
*iterate_over_regset_sections
= nullptr;
179 gdbarch_make_corefile_notes_ftype
*make_corefile_notes
= nullptr;
180 gdbarch_find_memory_regions_ftype
*find_memory_regions
= nullptr;
181 gdbarch_create_memtag_section_ftype
*create_memtag_section
= nullptr;
182 gdbarch_fill_memtag_section_ftype
*fill_memtag_section
= nullptr;
183 gdbarch_decode_memtag_section_ftype
*decode_memtag_section
= nullptr;
184 gdbarch_core_xfer_shared_libraries_ftype
*core_xfer_shared_libraries
= nullptr;
185 gdbarch_core_xfer_shared_libraries_aix_ftype
*core_xfer_shared_libraries_aix
= nullptr;
186 gdbarch_core_pid_to_str_ftype
*core_pid_to_str
= nullptr;
187 gdbarch_core_thread_name_ftype
*core_thread_name
= nullptr;
188 gdbarch_core_xfer_siginfo_ftype
*core_xfer_siginfo
= nullptr;
189 gdbarch_core_read_x86_xsave_layout_ftype
*core_read_x86_xsave_layout
= nullptr;
190 const char * gcore_bfd_target
= 0;
191 int vtable_function_descriptors
= 0;
192 int vbit_in_delta
= 0;
193 gdbarch_skip_permanent_breakpoint_ftype
*skip_permanent_breakpoint
= default_skip_permanent_breakpoint
;
194 ULONGEST max_insn_length
= 0;
195 gdbarch_displaced_step_copy_insn_ftype
*displaced_step_copy_insn
= nullptr;
196 gdbarch_displaced_step_hw_singlestep_ftype
*displaced_step_hw_singlestep
= default_displaced_step_hw_singlestep
;
197 gdbarch_displaced_step_fixup_ftype
*displaced_step_fixup
= NULL
;
198 gdbarch_displaced_step_prepare_ftype
*displaced_step_prepare
= nullptr;
199 gdbarch_displaced_step_finish_ftype
*displaced_step_finish
= NULL
;
200 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype
*displaced_step_copy_insn_closure_by_addr
= nullptr;
201 gdbarch_displaced_step_restore_all_in_ptid_ftype
*displaced_step_restore_all_in_ptid
= nullptr;
202 ULONGEST displaced_step_buffer_length
= 0;
203 gdbarch_relocate_instruction_ftype
*relocate_instruction
= NULL
;
204 gdbarch_overlay_update_ftype
*overlay_update
= nullptr;
205 gdbarch_core_read_description_ftype
*core_read_description
= nullptr;
206 int sofun_address_maybe_missing
= 0;
207 gdbarch_process_record_ftype
*process_record
= nullptr;
208 gdbarch_process_record_signal_ftype
*process_record_signal
= nullptr;
209 gdbarch_gdb_signal_from_target_ftype
*gdb_signal_from_target
= nullptr;
210 gdbarch_gdb_signal_to_target_ftype
*gdb_signal_to_target
= nullptr;
211 gdbarch_get_siginfo_type_ftype
*get_siginfo_type
= nullptr;
212 gdbarch_record_special_symbol_ftype
*record_special_symbol
= nullptr;
213 gdbarch_get_syscall_number_ftype
*get_syscall_number
= nullptr;
214 const char * xml_syscall_file
= 0;
215 struct syscalls_info
* syscalls_info
= 0;
216 const char *const * stap_integer_prefixes
= 0;
217 const char *const * stap_integer_suffixes
= 0;
218 const char *const * stap_register_prefixes
= 0;
219 const char *const * stap_register_suffixes
= 0;
220 const char *const * stap_register_indirection_prefixes
= 0;
221 const char *const * stap_register_indirection_suffixes
= 0;
222 const char * stap_gdb_register_prefix
= 0;
223 const char * stap_gdb_register_suffix
= 0;
224 gdbarch_stap_is_single_operand_ftype
*stap_is_single_operand
= nullptr;
225 gdbarch_stap_parse_special_token_ftype
*stap_parse_special_token
= nullptr;
226 gdbarch_stap_adjust_register_ftype
*stap_adjust_register
= nullptr;
227 gdbarch_dtrace_parse_probe_argument_ftype
*dtrace_parse_probe_argument
= nullptr;
228 gdbarch_dtrace_probe_is_enabled_ftype
*dtrace_probe_is_enabled
= nullptr;
229 gdbarch_dtrace_enable_probe_ftype
*dtrace_enable_probe
= nullptr;
230 gdbarch_dtrace_disable_probe_ftype
*dtrace_disable_probe
= nullptr;
231 int has_global_solist
= 0;
232 int has_global_breakpoints
= 0;
233 gdbarch_has_shared_address_space_ftype
*has_shared_address_space
= default_has_shared_address_space
;
234 gdbarch_fast_tracepoint_valid_at_ftype
*fast_tracepoint_valid_at
= default_fast_tracepoint_valid_at
;
235 gdbarch_guess_tracepoint_registers_ftype
*guess_tracepoint_registers
= default_guess_tracepoint_registers
;
236 gdbarch_auto_charset_ftype
*auto_charset
= default_auto_charset
;
237 gdbarch_auto_wide_charset_ftype
*auto_wide_charset
= default_auto_wide_charset
;
238 const char * solib_symbols_extension
= 0;
239 int has_dos_based_file_system
= 0;
240 gdbarch_gen_return_address_ftype
*gen_return_address
= default_gen_return_address
;
241 gdbarch_info_proc_ftype
*info_proc
= nullptr;
242 gdbarch_core_info_proc_ftype
*core_info_proc
= nullptr;
243 gdbarch_iterate_over_objfiles_in_search_order_ftype
*iterate_over_objfiles_in_search_order
= default_iterate_over_objfiles_in_search_order
;
244 struct ravenscar_arch_ops
* ravenscar_ops
= NULL
;
245 gdbarch_insn_is_call_ftype
*insn_is_call
= default_insn_is_call
;
246 gdbarch_insn_is_ret_ftype
*insn_is_ret
= default_insn_is_ret
;
247 gdbarch_insn_is_jump_ftype
*insn_is_jump
= default_insn_is_jump
;
248 gdbarch_program_breakpoint_here_p_ftype
*program_breakpoint_here_p
= default_program_breakpoint_here_p
;
249 gdbarch_auxv_parse_ftype
*auxv_parse
= nullptr;
250 gdbarch_print_auxv_entry_ftype
*print_auxv_entry
= default_print_auxv_entry
;
251 gdbarch_vsyscall_range_ftype
*vsyscall_range
= default_vsyscall_range
;
252 gdbarch_infcall_mmap_ftype
*infcall_mmap
= default_infcall_mmap
;
253 gdbarch_infcall_munmap_ftype
*infcall_munmap
= default_infcall_munmap
;
254 gdbarch_gcc_target_options_ftype
*gcc_target_options
= default_gcc_target_options
;
255 gdbarch_gnu_triplet_regexp_ftype
*gnu_triplet_regexp
= default_gnu_triplet_regexp
;
256 gdbarch_addressable_memory_unit_size_ftype
*addressable_memory_unit_size
= default_addressable_memory_unit_size
;
257 const char * disassembler_options_implicit
= 0;
258 std::string
* disassembler_options
= 0;
259 const disasm_options_and_args_t
* valid_disassembler_options
= 0;
260 gdbarch_type_align_ftype
*type_align
= default_type_align
;
261 gdbarch_get_pc_address_flags_ftype
*get_pc_address_flags
= default_get_pc_address_flags
;
262 gdbarch_read_core_file_mappings_ftype
*read_core_file_mappings
= default_read_core_file_mappings
;
263 gdbarch_use_target_description_from_corefile_notes_ftype
*use_target_description_from_corefile_notes
= default_use_target_description_from_corefile_notes
;
264 gdbarch_core_parse_exec_context_ftype
*core_parse_exec_context
= default_core_parse_exec_context
;
267 /* Create a new ``struct gdbarch'' based on information provided by
268 ``struct gdbarch_info''. */
271 gdbarch_alloc (const struct gdbarch_info
*info
,
272 gdbarch_tdep_up tdep
)
274 struct gdbarch
*gdbarch
;
276 gdbarch
= new struct gdbarch
;
278 gdbarch
->tdep
= std::move (tdep
);
280 gdbarch
->bfd_arch_info
= info
->bfd_arch_info
;
281 gdbarch
->byte_order
= info
->byte_order
;
282 gdbarch
->byte_order_for_code
= info
->byte_order_for_code
;
283 gdbarch
->osabi
= info
->osabi
;
284 gdbarch
->target_desc
= info
->target_desc
;
291 /* Ensure that all values in a GDBARCH are reasonable. */
294 verify_gdbarch (struct gdbarch
*gdbarch
)
299 if (gdbarch
->byte_order
== BFD_ENDIAN_UNKNOWN
)
300 log
.puts ("\n\tbyte-order");
301 if (gdbarch
->bfd_arch_info
== NULL
)
302 log
.puts ("\n\tbfd_arch_info");
303 /* Check those that need to be defined for the given multi-arch level. */
304 /* Skip verify of short_bit, invalid_p == 0. */
305 /* Skip verify of int_bit, invalid_p == 0. */
306 /* Skip verify of long_bit, invalid_p == 0. */
307 /* Skip verify of long_long_bit, invalid_p == 0. */
308 /* Skip verify of bfloat16_bit, invalid_p == 0. */
309 /* Skip verify of bfloat16_format, invalid_p == 0. */
310 /* Skip verify of half_bit, invalid_p == 0. */
311 /* Skip verify of half_format, invalid_p == 0. */
312 /* Skip verify of float_bit, invalid_p == 0. */
313 /* Skip verify of float_format, invalid_p == 0. */
314 /* Skip verify of double_bit, invalid_p == 0. */
315 /* Skip verify of double_format, invalid_p == 0. */
316 /* Skip verify of long_double_bit, invalid_p == 0. */
317 /* Skip verify of long_double_format, invalid_p == 0. */
318 /* Skip verify of wchar_bit, invalid_p == 0. */
319 if (gdbarch
->wchar_signed
== -1)
320 gdbarch
->wchar_signed
= 1;
321 /* Skip verify of wchar_signed, invalid_p == 0. */
322 /* Skip verify of floatformat_for_type, invalid_p == 0. */
323 /* Skip verify of ptr_bit, invalid_p == 0. */
324 if (gdbarch
->addr_bit
== 0)
325 gdbarch
->addr_bit
= gdbarch_ptr_bit (gdbarch
);
326 /* Skip verify of addr_bit, invalid_p == 0. */
327 if (gdbarch
->dwarf2_addr_size
== 0)
328 gdbarch
->dwarf2_addr_size
= gdbarch_ptr_bit (gdbarch
) / TARGET_CHAR_BIT
;
329 /* Skip verify of dwarf2_addr_size, invalid_p == 0. */
330 if (gdbarch
->char_signed
== -1)
331 gdbarch
->char_signed
= 1;
332 /* Skip verify of char_signed, invalid_p == 0. */
333 /* Skip verify of read_pc, has predicate. */
334 /* Skip verify of write_pc, has predicate. */
335 /* Skip verify of virtual_frame_pointer, invalid_p == 0. */
336 /* Skip verify of pseudo_register_read, has predicate. */
337 /* Skip verify of pseudo_register_read_value, has predicate. */
338 /* Skip verify of pseudo_register_write, has predicate. */
339 /* Skip verify of deprecated_pseudo_register_write, has predicate. */
340 if (gdbarch
->num_regs
== -1)
341 log
.puts ("\n\tnum_regs");
342 /* Skip verify of num_pseudo_regs, invalid_p == 0. */
343 /* Skip verify of ax_pseudo_register_collect, has predicate. */
344 /* Skip verify of ax_pseudo_register_push_stack, has predicate. */
345 /* Skip verify of report_signal_info, has predicate. */
346 /* Skip verify of sp_regnum, invalid_p == 0. */
347 /* Skip verify of pc_regnum, invalid_p == 0. */
348 /* Skip verify of ps_regnum, invalid_p == 0. */
349 /* Skip verify of fp0_regnum, invalid_p == 0. */
350 /* Skip verify of stab_reg_to_regnum, invalid_p == 0. */
351 /* Skip verify of ecoff_reg_to_regnum, invalid_p == 0. */
352 /* Skip verify of sdb_reg_to_regnum, invalid_p == 0. */
353 /* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0. */
354 if (gdbarch
->register_name
== 0)
355 log
.puts ("\n\tregister_name");
356 if (gdbarch
->register_type
== 0)
357 log
.puts ("\n\tregister_type");
358 /* Skip verify of dummy_id, invalid_p == 0. */
359 /* Skip verify of deprecated_fp_regnum, invalid_p == 0. */
360 /* Skip verify of push_dummy_call, has predicate. */
361 /* Skip verify of call_dummy_location, invalid_p == 0. */
362 /* Skip verify of push_dummy_code, has predicate. */
363 /* Skip verify of code_of_frame_writable, invalid_p == 0. */
364 /* Skip verify of print_registers_info, invalid_p == 0. */
365 /* Skip verify of print_float_info, invalid_p == 0. */
366 /* Skip verify of print_vector_info, has predicate. */
367 /* Skip verify of register_sim_regno, invalid_p == 0. */
368 /* Skip verify of cannot_fetch_register, invalid_p == 0. */
369 /* Skip verify of cannot_store_register, invalid_p == 0. */
370 /* Skip verify of get_longjmp_target, has predicate. */
371 /* Skip verify of believe_pcc_promotion, invalid_p == 0. */
372 /* Skip verify of convert_register_p, invalid_p == 0. */
373 /* Skip verify of register_to_value, invalid_p == 0. */
374 /* Skip verify of value_to_register, invalid_p == 0. */
375 /* Skip verify of value_from_register, invalid_p == 0. */
376 /* Skip verify of dwarf2_reg_piece_offset, invalid_p == 0. */
377 /* Skip verify of pointer_to_address, invalid_p == 0. */
378 /* Skip verify of address_to_pointer, invalid_p == 0. */
379 /* Skip verify of integer_to_address, has predicate. */
380 /* Skip verify of return_value, invalid_p == 0. */
381 if ((gdbarch
->return_value_as_value
== default_gdbarch_return_value
) == (gdbarch
->return_value
== nullptr))
382 log
.puts ("\n\treturn_value_as_value");
383 /* Skip verify of get_return_buf_addr, invalid_p == 0. */
384 /* Skip verify of dwarf2_omit_typedef_p, invalid_p == 0. */
385 /* Skip verify of update_call_site_pc, invalid_p == 0. */
386 /* Skip verify of return_in_first_hidden_param_p, invalid_p == 0. */
387 if (gdbarch
->skip_prologue
== 0)
388 log
.puts ("\n\tskip_prologue");
389 /* Skip verify of skip_main_prologue, has predicate. */
390 /* Skip verify of skip_entrypoint, has predicate. */
391 if (gdbarch
->inner_than
== 0)
392 log
.puts ("\n\tinner_than");
393 /* Skip verify of breakpoint_from_pc, invalid_p == 0. */
394 if (gdbarch
->breakpoint_kind_from_pc
== 0)
395 log
.puts ("\n\tbreakpoint_kind_from_pc");
396 /* Skip verify of sw_breakpoint_from_kind, invalid_p == 0. */
397 /* Skip verify of breakpoint_kind_from_current_state, invalid_p == 0. */
398 /* Skip verify of adjust_breakpoint_address, has predicate. */
399 /* Skip verify of memory_insert_breakpoint, invalid_p == 0. */
400 /* Skip verify of memory_remove_breakpoint, invalid_p == 0. */
401 /* Skip verify of decr_pc_after_break, invalid_p == 0. */
402 /* Skip verify of deprecated_function_start_offset, invalid_p == 0. */
403 /* Skip verify of remote_register_number, invalid_p == 0. */
404 /* Skip verify of fetch_tls_load_module_address, has predicate. */
405 /* Skip verify of get_thread_local_address, has predicate. */
406 /* Skip verify of frame_args_skip, invalid_p == 0. */
407 /* Skip verify of unwind_pc, invalid_p == 0. */
408 /* Skip verify of unwind_sp, invalid_p == 0. */
409 /* Skip verify of frame_num_args, has predicate. */
410 /* Skip verify of frame_align, has predicate. */
411 /* Skip verify of stabs_argument_has_addr, invalid_p == 0. */
412 /* Skip verify of frame_red_zone_size, invalid_p == 0. */
413 /* Skip verify of convert_from_func_ptr_addr, invalid_p == 0. */
414 /* Skip verify of addr_bits_remove, invalid_p == 0. */
415 /* Skip verify of remove_non_address_bits_watchpoint, invalid_p == 0. */
416 /* Skip verify of remove_non_address_bits_breakpoint, invalid_p == 0. */
417 /* Skip verify of remove_non_address_bits_memory, invalid_p == 0. */
418 /* Skip verify of memtag_to_string, invalid_p == 0. */
419 /* Skip verify of tagged_address_p, invalid_p == 0. */
420 /* Skip verify of memtag_matches_p, invalid_p == 0. */
421 /* Skip verify of set_memtags, invalid_p == 0. */
422 /* Skip verify of get_memtag, invalid_p == 0. */
423 /* Skip verify of memtag_granule_size, invalid_p == 0. */
424 /* Skip verify of software_single_step, has predicate. */
425 /* Skip verify of single_step_through_delay, has predicate. */
426 /* Skip verify of print_insn, invalid_p == 0. */
427 /* Skip verify of skip_trampoline_code, invalid_p == 0. */
428 /* Skip verify of so_ops, invalid_p == 0. */
429 /* Skip verify of skip_solib_resolver, invalid_p == 0. */
430 /* Skip verify of in_solib_return_trampoline, invalid_p == 0. */
431 /* Skip verify of in_indirect_branch_thunk, invalid_p == 0. */
432 /* Skip verify of stack_frame_destroyed_p, invalid_p == 0. */
433 /* Skip verify of elf_make_msymbol_special, has predicate. */
434 /* Skip verify of coff_make_msymbol_special, invalid_p == 0. */
435 /* Skip verify of make_symbol_special, invalid_p == 0. */
436 /* Skip verify of adjust_dwarf2_addr, invalid_p == 0. */
437 /* Skip verify of adjust_dwarf2_line, invalid_p == 0. */
438 /* Skip verify of cannot_step_breakpoint, invalid_p == 0. */
439 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0. */
440 /* Skip verify of address_class_type_flags, has predicate. */
441 /* Skip verify of address_class_type_flags_to_name, has predicate. */
442 /* Skip verify of execute_dwarf_cfa_vendor_op, invalid_p == 0. */
443 /* Skip verify of address_class_name_to_type_flags, has predicate. */
444 /* Skip verify of register_reggroup_p, invalid_p == 0. */
445 /* Skip verify of fetch_pointer_argument, has predicate. */
446 /* Skip verify of iterate_over_regset_sections, has predicate. */
447 /* Skip verify of make_corefile_notes, has predicate. */
448 /* Skip verify of find_memory_regions, has predicate. */
449 /* Skip verify of create_memtag_section, has predicate. */
450 /* Skip verify of fill_memtag_section, has predicate. */
451 /* Skip verify of decode_memtag_section, has predicate. */
452 /* Skip verify of core_xfer_shared_libraries, has predicate. */
453 /* Skip verify of core_xfer_shared_libraries_aix, has predicate. */
454 /* Skip verify of core_pid_to_str, has predicate. */
455 /* Skip verify of core_thread_name, has predicate. */
456 /* Skip verify of core_xfer_siginfo, has predicate. */
457 /* Skip verify of core_read_x86_xsave_layout, has predicate. */
458 /* Skip verify of gcore_bfd_target, has predicate. */
459 /* Skip verify of vtable_function_descriptors, invalid_p == 0. */
460 /* Skip verify of vbit_in_delta, invalid_p == 0. */
461 /* Skip verify of skip_permanent_breakpoint, invalid_p == 0. */
462 /* Skip verify of max_insn_length, has predicate. */
463 /* Skip verify of displaced_step_copy_insn, has predicate. */
464 /* Skip verify of displaced_step_hw_singlestep, invalid_p == 0. */
465 if ((gdbarch
->displaced_step_copy_insn
== nullptr) != (gdbarch
->displaced_step_fixup
== nullptr))
466 log
.puts ("\n\tdisplaced_step_fixup");
467 /* Skip verify of displaced_step_prepare, has predicate. */
468 if ((! gdbarch
->displaced_step_finish
) != (! gdbarch
->displaced_step_prepare
))
469 log
.puts ("\n\tdisplaced_step_finish");
470 /* Skip verify of displaced_step_copy_insn_closure_by_addr, has predicate. */
471 /* Skip verify of displaced_step_restore_all_in_ptid, invalid_p == 0. */
472 if (gdbarch
->displaced_step_buffer_length
== 0)
473 gdbarch
->displaced_step_buffer_length
= gdbarch
->max_insn_length
;
474 if (gdbarch
->displaced_step_buffer_length
< gdbarch
->max_insn_length
)
475 log
.puts ("\n\tdisplaced_step_buffer_length");
476 /* Skip verify of relocate_instruction, has predicate. */
477 /* Skip verify of overlay_update, has predicate. */
478 /* Skip verify of core_read_description, has predicate. */
479 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0. */
480 /* Skip verify of process_record, has predicate. */
481 /* Skip verify of process_record_signal, has predicate. */
482 /* Skip verify of gdb_signal_from_target, has predicate. */
483 /* Skip verify of gdb_signal_to_target, has predicate. */
484 /* Skip verify of get_siginfo_type, has predicate. */
485 /* Skip verify of record_special_symbol, has predicate. */
486 /* Skip verify of get_syscall_number, has predicate. */
487 /* Skip verify of xml_syscall_file, invalid_p == 0. */
488 /* Skip verify of syscalls_info, invalid_p == 0. */
489 /* Skip verify of stap_integer_prefixes, invalid_p == 0. */
490 /* Skip verify of stap_integer_suffixes, invalid_p == 0. */
491 /* Skip verify of stap_register_prefixes, invalid_p == 0. */
492 /* Skip verify of stap_register_suffixes, invalid_p == 0. */
493 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0. */
494 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0. */
495 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0. */
496 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0. */
497 /* Skip verify of stap_is_single_operand, has predicate. */
498 /* Skip verify of stap_parse_special_token, has predicate. */
499 /* Skip verify of stap_adjust_register, has predicate. */
500 /* Skip verify of dtrace_parse_probe_argument, has predicate. */
501 /* Skip verify of dtrace_probe_is_enabled, has predicate. */
502 /* Skip verify of dtrace_enable_probe, has predicate. */
503 /* Skip verify of dtrace_disable_probe, has predicate. */
504 /* Skip verify of has_global_solist, invalid_p == 0. */
505 /* Skip verify of has_global_breakpoints, invalid_p == 0. */
506 /* Skip verify of has_shared_address_space, invalid_p == 0. */
507 /* Skip verify of fast_tracepoint_valid_at, invalid_p == 0. */
508 /* Skip verify of guess_tracepoint_registers, invalid_p == 0. */
509 /* Skip verify of auto_charset, invalid_p == 0. */
510 /* Skip verify of auto_wide_charset, invalid_p == 0. */
511 /* Skip verify of solib_symbols_extension, invalid_p == 0. */
512 /* Skip verify of has_dos_based_file_system, invalid_p == 0. */
513 /* Skip verify of gen_return_address, invalid_p == 0. */
514 /* Skip verify of info_proc, has predicate. */
515 /* Skip verify of core_info_proc, has predicate. */
516 /* Skip verify of iterate_over_objfiles_in_search_order, invalid_p == 0. */
517 /* Skip verify of ravenscar_ops, invalid_p == 0. */
518 /* Skip verify of insn_is_call, invalid_p == 0. */
519 /* Skip verify of insn_is_ret, invalid_p == 0. */
520 /* Skip verify of insn_is_jump, invalid_p == 0. */
521 /* Skip verify of program_breakpoint_here_p, invalid_p == 0. */
522 /* Skip verify of auxv_parse, has predicate. */
523 /* Skip verify of print_auxv_entry, invalid_p == 0. */
524 /* Skip verify of vsyscall_range, invalid_p == 0. */
525 /* Skip verify of infcall_mmap, invalid_p == 0. */
526 /* Skip verify of infcall_munmap, invalid_p == 0. */
527 /* Skip verify of gcc_target_options, invalid_p == 0. */
528 /* Skip verify of gnu_triplet_regexp, invalid_p == 0. */
529 /* Skip verify of addressable_memory_unit_size, invalid_p == 0. */
530 /* Skip verify of disassembler_options_implicit, invalid_p == 0. */
531 /* Skip verify of disassembler_options, invalid_p == 0. */
532 /* Skip verify of valid_disassembler_options, invalid_p == 0. */
533 /* Skip verify of type_align, invalid_p == 0. */
534 /* Skip verify of get_pc_address_flags, invalid_p == 0. */
535 /* Skip verify of read_core_file_mappings, invalid_p == 0. */
536 /* Skip verify of use_target_description_from_corefile_notes, invalid_p == 0. */
537 /* Skip verify of core_parse_exec_context, invalid_p == 0. */
539 internal_error (_("verify_gdbarch: the following are invalid ...%s"),
544 /* Print out the details of the current architecture. */
547 gdbarch_dump (struct gdbarch
*gdbarch
, struct ui_file
*file
)
549 const char *gdb_nm_file
= "<not-defined>";
551 #if defined (GDB_NM_FILE)
552 gdb_nm_file
= GDB_NM_FILE
;
555 "gdbarch_dump: GDB_NM_FILE = %s\n",
558 "gdbarch_dump: bfd_arch_info = %s\n",
559 gdbarch_bfd_arch_info (gdbarch
)->printable_name
);
561 "gdbarch_dump: byte_order = %s\n",
562 plongest (gdbarch
->byte_order
));
564 "gdbarch_dump: byte_order_for_code = %s\n",
565 plongest (gdbarch
->byte_order_for_code
));
567 "gdbarch_dump: osabi = %s\n",
568 plongest (gdbarch
->osabi
));
570 "gdbarch_dump: target_desc = %s\n",
571 host_address_to_string (gdbarch
->target_desc
));
573 "gdbarch_dump: short_bit = %s\n",
574 plongest (gdbarch
->short_bit
));
576 "gdbarch_dump: int_bit = %s\n",
577 plongest (gdbarch
->int_bit
));
579 "gdbarch_dump: long_bit = %s\n",
580 plongest (gdbarch
->long_bit
));
582 "gdbarch_dump: long_long_bit = %s\n",
583 plongest (gdbarch
->long_long_bit
));
585 "gdbarch_dump: bfloat16_bit = %s\n",
586 plongest (gdbarch
->bfloat16_bit
));
588 "gdbarch_dump: bfloat16_format = %s\n",
589 pformat (gdbarch
, gdbarch
->bfloat16_format
));
591 "gdbarch_dump: half_bit = %s\n",
592 plongest (gdbarch
->half_bit
));
594 "gdbarch_dump: half_format = %s\n",
595 pformat (gdbarch
, gdbarch
->half_format
));
597 "gdbarch_dump: float_bit = %s\n",
598 plongest (gdbarch
->float_bit
));
600 "gdbarch_dump: float_format = %s\n",
601 pformat (gdbarch
, gdbarch
->float_format
));
603 "gdbarch_dump: double_bit = %s\n",
604 plongest (gdbarch
->double_bit
));
606 "gdbarch_dump: double_format = %s\n",
607 pformat (gdbarch
, gdbarch
->double_format
));
609 "gdbarch_dump: long_double_bit = %s\n",
610 plongest (gdbarch
->long_double_bit
));
612 "gdbarch_dump: long_double_format = %s\n",
613 pformat (gdbarch
, gdbarch
->long_double_format
));
615 "gdbarch_dump: wchar_bit = %s\n",
616 plongest (gdbarch
->wchar_bit
));
618 "gdbarch_dump: wchar_signed = %s\n",
619 plongest (gdbarch
->wchar_signed
));
621 "gdbarch_dump: floatformat_for_type = <%s>\n",
622 host_address_to_string (gdbarch
->floatformat_for_type
));
624 "gdbarch_dump: ptr_bit = %s\n",
625 plongest (gdbarch
->ptr_bit
));
627 "gdbarch_dump: addr_bit = %s\n",
628 plongest (gdbarch
->addr_bit
));
630 "gdbarch_dump: dwarf2_addr_size = %s\n",
631 plongest (gdbarch
->dwarf2_addr_size
));
633 "gdbarch_dump: char_signed = %s\n",
634 plongest (gdbarch
->char_signed
));
636 "gdbarch_dump: gdbarch_read_pc_p() = %d\n",
637 gdbarch_read_pc_p (gdbarch
));
639 "gdbarch_dump: read_pc = <%s>\n",
640 host_address_to_string (gdbarch
->read_pc
));
642 "gdbarch_dump: gdbarch_write_pc_p() = %d\n",
643 gdbarch_write_pc_p (gdbarch
));
645 "gdbarch_dump: write_pc = <%s>\n",
646 host_address_to_string (gdbarch
->write_pc
));
648 "gdbarch_dump: virtual_frame_pointer = <%s>\n",
649 host_address_to_string (gdbarch
->virtual_frame_pointer
));
651 "gdbarch_dump: gdbarch_pseudo_register_read_p() = %d\n",
652 gdbarch_pseudo_register_read_p (gdbarch
));
654 "gdbarch_dump: pseudo_register_read = <%s>\n",
655 host_address_to_string (gdbarch
->pseudo_register_read
));
657 "gdbarch_dump: gdbarch_pseudo_register_read_value_p() = %d\n",
658 gdbarch_pseudo_register_read_value_p (gdbarch
));
660 "gdbarch_dump: pseudo_register_read_value = <%s>\n",
661 host_address_to_string (gdbarch
->pseudo_register_read_value
));
663 "gdbarch_dump: gdbarch_pseudo_register_write_p() = %d\n",
664 gdbarch_pseudo_register_write_p (gdbarch
));
666 "gdbarch_dump: pseudo_register_write = <%s>\n",
667 host_address_to_string (gdbarch
->pseudo_register_write
));
669 "gdbarch_dump: gdbarch_deprecated_pseudo_register_write_p() = %d\n",
670 gdbarch_deprecated_pseudo_register_write_p (gdbarch
));
672 "gdbarch_dump: deprecated_pseudo_register_write = <%s>\n",
673 host_address_to_string (gdbarch
->deprecated_pseudo_register_write
));
675 "gdbarch_dump: num_regs = %s\n",
676 plongest (gdbarch
->num_regs
));
678 "gdbarch_dump: num_pseudo_regs = %s\n",
679 plongest (gdbarch
->num_pseudo_regs
));
681 "gdbarch_dump: gdbarch_ax_pseudo_register_collect_p() = %d\n",
682 gdbarch_ax_pseudo_register_collect_p (gdbarch
));
684 "gdbarch_dump: ax_pseudo_register_collect = <%s>\n",
685 host_address_to_string (gdbarch
->ax_pseudo_register_collect
));
687 "gdbarch_dump: gdbarch_ax_pseudo_register_push_stack_p() = %d\n",
688 gdbarch_ax_pseudo_register_push_stack_p (gdbarch
));
690 "gdbarch_dump: ax_pseudo_register_push_stack = <%s>\n",
691 host_address_to_string (gdbarch
->ax_pseudo_register_push_stack
));
693 "gdbarch_dump: gdbarch_report_signal_info_p() = %d\n",
694 gdbarch_report_signal_info_p (gdbarch
));
696 "gdbarch_dump: report_signal_info = <%s>\n",
697 host_address_to_string (gdbarch
->report_signal_info
));
699 "gdbarch_dump: sp_regnum = %s\n",
700 plongest (gdbarch
->sp_regnum
));
702 "gdbarch_dump: pc_regnum = %s\n",
703 plongest (gdbarch
->pc_regnum
));
705 "gdbarch_dump: ps_regnum = %s\n",
706 plongest (gdbarch
->ps_regnum
));
708 "gdbarch_dump: fp0_regnum = %s\n",
709 plongest (gdbarch
->fp0_regnum
));
711 "gdbarch_dump: stab_reg_to_regnum = <%s>\n",
712 host_address_to_string (gdbarch
->stab_reg_to_regnum
));
714 "gdbarch_dump: ecoff_reg_to_regnum = <%s>\n",
715 host_address_to_string (gdbarch
->ecoff_reg_to_regnum
));
717 "gdbarch_dump: sdb_reg_to_regnum = <%s>\n",
718 host_address_to_string (gdbarch
->sdb_reg_to_regnum
));
720 "gdbarch_dump: dwarf2_reg_to_regnum = <%s>\n",
721 host_address_to_string (gdbarch
->dwarf2_reg_to_regnum
));
723 "gdbarch_dump: register_name = <%s>\n",
724 host_address_to_string (gdbarch
->register_name
));
726 "gdbarch_dump: register_type = <%s>\n",
727 host_address_to_string (gdbarch
->register_type
));
729 "gdbarch_dump: dummy_id = <%s>\n",
730 host_address_to_string (gdbarch
->dummy_id
));
732 "gdbarch_dump: deprecated_fp_regnum = %s\n",
733 plongest (gdbarch
->deprecated_fp_regnum
));
735 "gdbarch_dump: gdbarch_push_dummy_call_p() = %d\n",
736 gdbarch_push_dummy_call_p (gdbarch
));
738 "gdbarch_dump: push_dummy_call = <%s>\n",
739 host_address_to_string (gdbarch
->push_dummy_call
));
741 "gdbarch_dump: call_dummy_location = %s\n",
742 plongest (gdbarch
->call_dummy_location
));
744 "gdbarch_dump: gdbarch_push_dummy_code_p() = %d\n",
745 gdbarch_push_dummy_code_p (gdbarch
));
747 "gdbarch_dump: push_dummy_code = <%s>\n",
748 host_address_to_string (gdbarch
->push_dummy_code
));
750 "gdbarch_dump: code_of_frame_writable = <%s>\n",
751 host_address_to_string (gdbarch
->code_of_frame_writable
));
753 "gdbarch_dump: print_registers_info = <%s>\n",
754 host_address_to_string (gdbarch
->print_registers_info
));
756 "gdbarch_dump: print_float_info = <%s>\n",
757 host_address_to_string (gdbarch
->print_float_info
));
759 "gdbarch_dump: gdbarch_print_vector_info_p() = %d\n",
760 gdbarch_print_vector_info_p (gdbarch
));
762 "gdbarch_dump: print_vector_info = <%s>\n",
763 host_address_to_string (gdbarch
->print_vector_info
));
765 "gdbarch_dump: register_sim_regno = <%s>\n",
766 host_address_to_string (gdbarch
->register_sim_regno
));
768 "gdbarch_dump: cannot_fetch_register = <%s>\n",
769 host_address_to_string (gdbarch
->cannot_fetch_register
));
771 "gdbarch_dump: cannot_store_register = <%s>\n",
772 host_address_to_string (gdbarch
->cannot_store_register
));
774 "gdbarch_dump: gdbarch_get_longjmp_target_p() = %d\n",
775 gdbarch_get_longjmp_target_p (gdbarch
));
777 "gdbarch_dump: get_longjmp_target = <%s>\n",
778 host_address_to_string (gdbarch
->get_longjmp_target
));
780 "gdbarch_dump: believe_pcc_promotion = %s\n",
781 plongest (gdbarch
->believe_pcc_promotion
));
783 "gdbarch_dump: convert_register_p = <%s>\n",
784 host_address_to_string (gdbarch
->convert_register_p
));
786 "gdbarch_dump: register_to_value = <%s>\n",
787 host_address_to_string (gdbarch
->register_to_value
));
789 "gdbarch_dump: value_to_register = <%s>\n",
790 host_address_to_string (gdbarch
->value_to_register
));
792 "gdbarch_dump: value_from_register = <%s>\n",
793 host_address_to_string (gdbarch
->value_from_register
));
795 "gdbarch_dump: dwarf2_reg_piece_offset = <%s>\n",
796 host_address_to_string (gdbarch
->dwarf2_reg_piece_offset
));
798 "gdbarch_dump: pointer_to_address = <%s>\n",
799 host_address_to_string (gdbarch
->pointer_to_address
));
801 "gdbarch_dump: address_to_pointer = <%s>\n",
802 host_address_to_string (gdbarch
->address_to_pointer
));
804 "gdbarch_dump: gdbarch_integer_to_address_p() = %d\n",
805 gdbarch_integer_to_address_p (gdbarch
));
807 "gdbarch_dump: integer_to_address = <%s>\n",
808 host_address_to_string (gdbarch
->integer_to_address
));
810 "gdbarch_dump: return_value = <%s>\n",
811 host_address_to_string (gdbarch
->return_value
));
813 "gdbarch_dump: return_value_as_value = <%s>\n",
814 host_address_to_string (gdbarch
->return_value_as_value
));
816 "gdbarch_dump: get_return_buf_addr = <%s>\n",
817 host_address_to_string (gdbarch
->get_return_buf_addr
));
819 "gdbarch_dump: dwarf2_omit_typedef_p = <%s>\n",
820 host_address_to_string (gdbarch
->dwarf2_omit_typedef_p
));
822 "gdbarch_dump: update_call_site_pc = <%s>\n",
823 host_address_to_string (gdbarch
->update_call_site_pc
));
825 "gdbarch_dump: return_in_first_hidden_param_p = <%s>\n",
826 host_address_to_string (gdbarch
->return_in_first_hidden_param_p
));
828 "gdbarch_dump: skip_prologue = <%s>\n",
829 host_address_to_string (gdbarch
->skip_prologue
));
831 "gdbarch_dump: gdbarch_skip_main_prologue_p() = %d\n",
832 gdbarch_skip_main_prologue_p (gdbarch
));
834 "gdbarch_dump: skip_main_prologue = <%s>\n",
835 host_address_to_string (gdbarch
->skip_main_prologue
));
837 "gdbarch_dump: gdbarch_skip_entrypoint_p() = %d\n",
838 gdbarch_skip_entrypoint_p (gdbarch
));
840 "gdbarch_dump: skip_entrypoint = <%s>\n",
841 host_address_to_string (gdbarch
->skip_entrypoint
));
843 "gdbarch_dump: inner_than = <%s>\n",
844 host_address_to_string (gdbarch
->inner_than
));
846 "gdbarch_dump: breakpoint_from_pc = <%s>\n",
847 host_address_to_string (gdbarch
->breakpoint_from_pc
));
849 "gdbarch_dump: breakpoint_kind_from_pc = <%s>\n",
850 host_address_to_string (gdbarch
->breakpoint_kind_from_pc
));
852 "gdbarch_dump: sw_breakpoint_from_kind = <%s>\n",
853 host_address_to_string (gdbarch
->sw_breakpoint_from_kind
));
855 "gdbarch_dump: breakpoint_kind_from_current_state = <%s>\n",
856 host_address_to_string (gdbarch
->breakpoint_kind_from_current_state
));
858 "gdbarch_dump: gdbarch_adjust_breakpoint_address_p() = %d\n",
859 gdbarch_adjust_breakpoint_address_p (gdbarch
));
861 "gdbarch_dump: adjust_breakpoint_address = <%s>\n",
862 host_address_to_string (gdbarch
->adjust_breakpoint_address
));
864 "gdbarch_dump: memory_insert_breakpoint = <%s>\n",
865 host_address_to_string (gdbarch
->memory_insert_breakpoint
));
867 "gdbarch_dump: memory_remove_breakpoint = <%s>\n",
868 host_address_to_string (gdbarch
->memory_remove_breakpoint
));
870 "gdbarch_dump: decr_pc_after_break = %s\n",
871 core_addr_to_string_nz (gdbarch
->decr_pc_after_break
));
873 "gdbarch_dump: deprecated_function_start_offset = %s\n",
874 core_addr_to_string_nz (gdbarch
->deprecated_function_start_offset
));
876 "gdbarch_dump: remote_register_number = <%s>\n",
877 host_address_to_string (gdbarch
->remote_register_number
));
879 "gdbarch_dump: gdbarch_fetch_tls_load_module_address_p() = %d\n",
880 gdbarch_fetch_tls_load_module_address_p (gdbarch
));
882 "gdbarch_dump: fetch_tls_load_module_address = <%s>\n",
883 host_address_to_string (gdbarch
->fetch_tls_load_module_address
));
885 "gdbarch_dump: gdbarch_get_thread_local_address_p() = %d\n",
886 gdbarch_get_thread_local_address_p (gdbarch
));
888 "gdbarch_dump: get_thread_local_address = <%s>\n",
889 host_address_to_string (gdbarch
->get_thread_local_address
));
891 "gdbarch_dump: frame_args_skip = %s\n",
892 core_addr_to_string_nz (gdbarch
->frame_args_skip
));
894 "gdbarch_dump: unwind_pc = <%s>\n",
895 host_address_to_string (gdbarch
->unwind_pc
));
897 "gdbarch_dump: unwind_sp = <%s>\n",
898 host_address_to_string (gdbarch
->unwind_sp
));
900 "gdbarch_dump: gdbarch_frame_num_args_p() = %d\n",
901 gdbarch_frame_num_args_p (gdbarch
));
903 "gdbarch_dump: frame_num_args = <%s>\n",
904 host_address_to_string (gdbarch
->frame_num_args
));
906 "gdbarch_dump: gdbarch_frame_align_p() = %d\n",
907 gdbarch_frame_align_p (gdbarch
));
909 "gdbarch_dump: frame_align = <%s>\n",
910 host_address_to_string (gdbarch
->frame_align
));
912 "gdbarch_dump: stabs_argument_has_addr = <%s>\n",
913 host_address_to_string (gdbarch
->stabs_argument_has_addr
));
915 "gdbarch_dump: frame_red_zone_size = %s\n",
916 plongest (gdbarch
->frame_red_zone_size
));
918 "gdbarch_dump: convert_from_func_ptr_addr = <%s>\n",
919 host_address_to_string (gdbarch
->convert_from_func_ptr_addr
));
921 "gdbarch_dump: addr_bits_remove = <%s>\n",
922 host_address_to_string (gdbarch
->addr_bits_remove
));
924 "gdbarch_dump: remove_non_address_bits_watchpoint = <%s>\n",
925 host_address_to_string (gdbarch
->remove_non_address_bits_watchpoint
));
927 "gdbarch_dump: remove_non_address_bits_breakpoint = <%s>\n",
928 host_address_to_string (gdbarch
->remove_non_address_bits_breakpoint
));
930 "gdbarch_dump: remove_non_address_bits_memory = <%s>\n",
931 host_address_to_string (gdbarch
->remove_non_address_bits_memory
));
933 "gdbarch_dump: memtag_to_string = <%s>\n",
934 host_address_to_string (gdbarch
->memtag_to_string
));
936 "gdbarch_dump: tagged_address_p = <%s>\n",
937 host_address_to_string (gdbarch
->tagged_address_p
));
939 "gdbarch_dump: memtag_matches_p = <%s>\n",
940 host_address_to_string (gdbarch
->memtag_matches_p
));
942 "gdbarch_dump: set_memtags = <%s>\n",
943 host_address_to_string (gdbarch
->set_memtags
));
945 "gdbarch_dump: get_memtag = <%s>\n",
946 host_address_to_string (gdbarch
->get_memtag
));
948 "gdbarch_dump: memtag_granule_size = %s\n",
949 core_addr_to_string_nz (gdbarch
->memtag_granule_size
));
951 "gdbarch_dump: gdbarch_software_single_step_p() = %d\n",
952 gdbarch_software_single_step_p (gdbarch
));
954 "gdbarch_dump: software_single_step = <%s>\n",
955 host_address_to_string (gdbarch
->software_single_step
));
957 "gdbarch_dump: gdbarch_single_step_through_delay_p() = %d\n",
958 gdbarch_single_step_through_delay_p (gdbarch
));
960 "gdbarch_dump: single_step_through_delay = <%s>\n",
961 host_address_to_string (gdbarch
->single_step_through_delay
));
963 "gdbarch_dump: print_insn = <%s>\n",
964 host_address_to_string (gdbarch
->print_insn
));
966 "gdbarch_dump: skip_trampoline_code = <%s>\n",
967 host_address_to_string (gdbarch
->skip_trampoline_code
));
969 "gdbarch_dump: so_ops = %s\n",
970 host_address_to_string (gdbarch
->so_ops
));
972 "gdbarch_dump: skip_solib_resolver = <%s>\n",
973 host_address_to_string (gdbarch
->skip_solib_resolver
));
975 "gdbarch_dump: in_solib_return_trampoline = <%s>\n",
976 host_address_to_string (gdbarch
->in_solib_return_trampoline
));
978 "gdbarch_dump: in_indirect_branch_thunk = <%s>\n",
979 host_address_to_string (gdbarch
->in_indirect_branch_thunk
));
981 "gdbarch_dump: stack_frame_destroyed_p = <%s>\n",
982 host_address_to_string (gdbarch
->stack_frame_destroyed_p
));
984 "gdbarch_dump: gdbarch_elf_make_msymbol_special_p() = %d\n",
985 gdbarch_elf_make_msymbol_special_p (gdbarch
));
987 "gdbarch_dump: elf_make_msymbol_special = <%s>\n",
988 host_address_to_string (gdbarch
->elf_make_msymbol_special
));
990 "gdbarch_dump: coff_make_msymbol_special = <%s>\n",
991 host_address_to_string (gdbarch
->coff_make_msymbol_special
));
993 "gdbarch_dump: make_symbol_special = <%s>\n",
994 host_address_to_string (gdbarch
->make_symbol_special
));
996 "gdbarch_dump: adjust_dwarf2_addr = <%s>\n",
997 host_address_to_string (gdbarch
->adjust_dwarf2_addr
));
999 "gdbarch_dump: adjust_dwarf2_line = <%s>\n",
1000 host_address_to_string (gdbarch
->adjust_dwarf2_line
));
1002 "gdbarch_dump: cannot_step_breakpoint = %s\n",
1003 plongest (gdbarch
->cannot_step_breakpoint
));
1005 "gdbarch_dump: have_nonsteppable_watchpoint = %s\n",
1006 plongest (gdbarch
->have_nonsteppable_watchpoint
));
1008 "gdbarch_dump: gdbarch_address_class_type_flags_p() = %d\n",
1009 gdbarch_address_class_type_flags_p (gdbarch
));
1011 "gdbarch_dump: address_class_type_flags = <%s>\n",
1012 host_address_to_string (gdbarch
->address_class_type_flags
));
1014 "gdbarch_dump: gdbarch_address_class_type_flags_to_name_p() = %d\n",
1015 gdbarch_address_class_type_flags_to_name_p (gdbarch
));
1017 "gdbarch_dump: address_class_type_flags_to_name = <%s>\n",
1018 host_address_to_string (gdbarch
->address_class_type_flags_to_name
));
1020 "gdbarch_dump: execute_dwarf_cfa_vendor_op = <%s>\n",
1021 host_address_to_string (gdbarch
->execute_dwarf_cfa_vendor_op
));
1023 "gdbarch_dump: gdbarch_address_class_name_to_type_flags_p() = %d\n",
1024 gdbarch_address_class_name_to_type_flags_p (gdbarch
));
1026 "gdbarch_dump: address_class_name_to_type_flags = <%s>\n",
1027 host_address_to_string (gdbarch
->address_class_name_to_type_flags
));
1029 "gdbarch_dump: register_reggroup_p = <%s>\n",
1030 host_address_to_string (gdbarch
->register_reggroup_p
));
1032 "gdbarch_dump: gdbarch_fetch_pointer_argument_p() = %d\n",
1033 gdbarch_fetch_pointer_argument_p (gdbarch
));
1035 "gdbarch_dump: fetch_pointer_argument = <%s>\n",
1036 host_address_to_string (gdbarch
->fetch_pointer_argument
));
1038 "gdbarch_dump: gdbarch_iterate_over_regset_sections_p() = %d\n",
1039 gdbarch_iterate_over_regset_sections_p (gdbarch
));
1041 "gdbarch_dump: iterate_over_regset_sections = <%s>\n",
1042 host_address_to_string (gdbarch
->iterate_over_regset_sections
));
1044 "gdbarch_dump: gdbarch_make_corefile_notes_p() = %d\n",
1045 gdbarch_make_corefile_notes_p (gdbarch
));
1047 "gdbarch_dump: make_corefile_notes = <%s>\n",
1048 host_address_to_string (gdbarch
->make_corefile_notes
));
1050 "gdbarch_dump: gdbarch_find_memory_regions_p() = %d\n",
1051 gdbarch_find_memory_regions_p (gdbarch
));
1053 "gdbarch_dump: find_memory_regions = <%s>\n",
1054 host_address_to_string (gdbarch
->find_memory_regions
));
1056 "gdbarch_dump: gdbarch_create_memtag_section_p() = %d\n",
1057 gdbarch_create_memtag_section_p (gdbarch
));
1059 "gdbarch_dump: create_memtag_section = <%s>\n",
1060 host_address_to_string (gdbarch
->create_memtag_section
));
1062 "gdbarch_dump: gdbarch_fill_memtag_section_p() = %d\n",
1063 gdbarch_fill_memtag_section_p (gdbarch
));
1065 "gdbarch_dump: fill_memtag_section = <%s>\n",
1066 host_address_to_string (gdbarch
->fill_memtag_section
));
1068 "gdbarch_dump: gdbarch_decode_memtag_section_p() = %d\n",
1069 gdbarch_decode_memtag_section_p (gdbarch
));
1071 "gdbarch_dump: decode_memtag_section = <%s>\n",
1072 host_address_to_string (gdbarch
->decode_memtag_section
));
1074 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_p() = %d\n",
1075 gdbarch_core_xfer_shared_libraries_p (gdbarch
));
1077 "gdbarch_dump: core_xfer_shared_libraries = <%s>\n",
1078 host_address_to_string (gdbarch
->core_xfer_shared_libraries
));
1080 "gdbarch_dump: gdbarch_core_xfer_shared_libraries_aix_p() = %d\n",
1081 gdbarch_core_xfer_shared_libraries_aix_p (gdbarch
));
1083 "gdbarch_dump: core_xfer_shared_libraries_aix = <%s>\n",
1084 host_address_to_string (gdbarch
->core_xfer_shared_libraries_aix
));
1086 "gdbarch_dump: gdbarch_core_pid_to_str_p() = %d\n",
1087 gdbarch_core_pid_to_str_p (gdbarch
));
1089 "gdbarch_dump: core_pid_to_str = <%s>\n",
1090 host_address_to_string (gdbarch
->core_pid_to_str
));
1092 "gdbarch_dump: gdbarch_core_thread_name_p() = %d\n",
1093 gdbarch_core_thread_name_p (gdbarch
));
1095 "gdbarch_dump: core_thread_name = <%s>\n",
1096 host_address_to_string (gdbarch
->core_thread_name
));
1098 "gdbarch_dump: gdbarch_core_xfer_siginfo_p() = %d\n",
1099 gdbarch_core_xfer_siginfo_p (gdbarch
));
1101 "gdbarch_dump: core_xfer_siginfo = <%s>\n",
1102 host_address_to_string (gdbarch
->core_xfer_siginfo
));
1104 "gdbarch_dump: gdbarch_core_read_x86_xsave_layout_p() = %d\n",
1105 gdbarch_core_read_x86_xsave_layout_p (gdbarch
));
1107 "gdbarch_dump: core_read_x86_xsave_layout = <%s>\n",
1108 host_address_to_string (gdbarch
->core_read_x86_xsave_layout
));
1110 "gdbarch_dump: gdbarch_gcore_bfd_target_p() = %d\n",
1111 gdbarch_gcore_bfd_target_p (gdbarch
));
1113 "gdbarch_dump: gcore_bfd_target = %s\n",
1114 pstring (gdbarch
->gcore_bfd_target
));
1116 "gdbarch_dump: vtable_function_descriptors = %s\n",
1117 plongest (gdbarch
->vtable_function_descriptors
));
1119 "gdbarch_dump: vbit_in_delta = %s\n",
1120 plongest (gdbarch
->vbit_in_delta
));
1122 "gdbarch_dump: skip_permanent_breakpoint = <%s>\n",
1123 host_address_to_string (gdbarch
->skip_permanent_breakpoint
));
1125 "gdbarch_dump: gdbarch_max_insn_length_p() = %d\n",
1126 gdbarch_max_insn_length_p (gdbarch
));
1128 "gdbarch_dump: max_insn_length = %s\n",
1129 plongest (gdbarch
->max_insn_length
));
1131 "gdbarch_dump: gdbarch_displaced_step_copy_insn_p() = %d\n",
1132 gdbarch_displaced_step_copy_insn_p (gdbarch
));
1134 "gdbarch_dump: displaced_step_copy_insn = <%s>\n",
1135 host_address_to_string (gdbarch
->displaced_step_copy_insn
));
1137 "gdbarch_dump: displaced_step_hw_singlestep = <%s>\n",
1138 host_address_to_string (gdbarch
->displaced_step_hw_singlestep
));
1140 "gdbarch_dump: displaced_step_fixup = <%s>\n",
1141 host_address_to_string (gdbarch
->displaced_step_fixup
));
1143 "gdbarch_dump: gdbarch_displaced_step_prepare_p() = %d\n",
1144 gdbarch_displaced_step_prepare_p (gdbarch
));
1146 "gdbarch_dump: displaced_step_prepare = <%s>\n",
1147 host_address_to_string (gdbarch
->displaced_step_prepare
));
1149 "gdbarch_dump: displaced_step_finish = <%s>\n",
1150 host_address_to_string (gdbarch
->displaced_step_finish
));
1152 "gdbarch_dump: gdbarch_displaced_step_copy_insn_closure_by_addr_p() = %d\n",
1153 gdbarch_displaced_step_copy_insn_closure_by_addr_p (gdbarch
));
1155 "gdbarch_dump: displaced_step_copy_insn_closure_by_addr = <%s>\n",
1156 host_address_to_string (gdbarch
->displaced_step_copy_insn_closure_by_addr
));
1158 "gdbarch_dump: displaced_step_restore_all_in_ptid = <%s>\n",
1159 host_address_to_string (gdbarch
->displaced_step_restore_all_in_ptid
));
1161 "gdbarch_dump: displaced_step_buffer_length = %s\n",
1162 plongest (gdbarch
->displaced_step_buffer_length
));
1164 "gdbarch_dump: gdbarch_relocate_instruction_p() = %d\n",
1165 gdbarch_relocate_instruction_p (gdbarch
));
1167 "gdbarch_dump: relocate_instruction = <%s>\n",
1168 host_address_to_string (gdbarch
->relocate_instruction
));
1170 "gdbarch_dump: gdbarch_overlay_update_p() = %d\n",
1171 gdbarch_overlay_update_p (gdbarch
));
1173 "gdbarch_dump: overlay_update = <%s>\n",
1174 host_address_to_string (gdbarch
->overlay_update
));
1176 "gdbarch_dump: gdbarch_core_read_description_p() = %d\n",
1177 gdbarch_core_read_description_p (gdbarch
));
1179 "gdbarch_dump: core_read_description = <%s>\n",
1180 host_address_to_string (gdbarch
->core_read_description
));
1182 "gdbarch_dump: sofun_address_maybe_missing = %s\n",
1183 plongest (gdbarch
->sofun_address_maybe_missing
));
1185 "gdbarch_dump: gdbarch_process_record_p() = %d\n",
1186 gdbarch_process_record_p (gdbarch
));
1188 "gdbarch_dump: process_record = <%s>\n",
1189 host_address_to_string (gdbarch
->process_record
));
1191 "gdbarch_dump: gdbarch_process_record_signal_p() = %d\n",
1192 gdbarch_process_record_signal_p (gdbarch
));
1194 "gdbarch_dump: process_record_signal = <%s>\n",
1195 host_address_to_string (gdbarch
->process_record_signal
));
1197 "gdbarch_dump: gdbarch_gdb_signal_from_target_p() = %d\n",
1198 gdbarch_gdb_signal_from_target_p (gdbarch
));
1200 "gdbarch_dump: gdb_signal_from_target = <%s>\n",
1201 host_address_to_string (gdbarch
->gdb_signal_from_target
));
1203 "gdbarch_dump: gdbarch_gdb_signal_to_target_p() = %d\n",
1204 gdbarch_gdb_signal_to_target_p (gdbarch
));
1206 "gdbarch_dump: gdb_signal_to_target = <%s>\n",
1207 host_address_to_string (gdbarch
->gdb_signal_to_target
));
1209 "gdbarch_dump: gdbarch_get_siginfo_type_p() = %d\n",
1210 gdbarch_get_siginfo_type_p (gdbarch
));
1212 "gdbarch_dump: get_siginfo_type = <%s>\n",
1213 host_address_to_string (gdbarch
->get_siginfo_type
));
1215 "gdbarch_dump: gdbarch_record_special_symbol_p() = %d\n",
1216 gdbarch_record_special_symbol_p (gdbarch
));
1218 "gdbarch_dump: record_special_symbol = <%s>\n",
1219 host_address_to_string (gdbarch
->record_special_symbol
));
1221 "gdbarch_dump: gdbarch_get_syscall_number_p() = %d\n",
1222 gdbarch_get_syscall_number_p (gdbarch
));
1224 "gdbarch_dump: get_syscall_number = <%s>\n",
1225 host_address_to_string (gdbarch
->get_syscall_number
));
1227 "gdbarch_dump: xml_syscall_file = %s\n",
1228 pstring (gdbarch
->xml_syscall_file
));
1230 "gdbarch_dump: syscalls_info = %s\n",
1231 host_address_to_string (gdbarch
->syscalls_info
));
1233 "gdbarch_dump: stap_integer_prefixes = %s\n",
1234 pstring_list (gdbarch
->stap_integer_prefixes
));
1236 "gdbarch_dump: stap_integer_suffixes = %s\n",
1237 pstring_list (gdbarch
->stap_integer_suffixes
));
1239 "gdbarch_dump: stap_register_prefixes = %s\n",
1240 pstring_list (gdbarch
->stap_register_prefixes
));
1242 "gdbarch_dump: stap_register_suffixes = %s\n",
1243 pstring_list (gdbarch
->stap_register_suffixes
));
1245 "gdbarch_dump: stap_register_indirection_prefixes = %s\n",
1246 pstring_list (gdbarch
->stap_register_indirection_prefixes
));
1248 "gdbarch_dump: stap_register_indirection_suffixes = %s\n",
1249 pstring_list (gdbarch
->stap_register_indirection_suffixes
));
1251 "gdbarch_dump: stap_gdb_register_prefix = %s\n",
1252 pstring (gdbarch
->stap_gdb_register_prefix
));
1254 "gdbarch_dump: stap_gdb_register_suffix = %s\n",
1255 pstring (gdbarch
->stap_gdb_register_suffix
));
1257 "gdbarch_dump: gdbarch_stap_is_single_operand_p() = %d\n",
1258 gdbarch_stap_is_single_operand_p (gdbarch
));
1260 "gdbarch_dump: stap_is_single_operand = <%s>\n",
1261 host_address_to_string (gdbarch
->stap_is_single_operand
));
1263 "gdbarch_dump: gdbarch_stap_parse_special_token_p() = %d\n",
1264 gdbarch_stap_parse_special_token_p (gdbarch
));
1266 "gdbarch_dump: stap_parse_special_token = <%s>\n",
1267 host_address_to_string (gdbarch
->stap_parse_special_token
));
1269 "gdbarch_dump: gdbarch_stap_adjust_register_p() = %d\n",
1270 gdbarch_stap_adjust_register_p (gdbarch
));
1272 "gdbarch_dump: stap_adjust_register = <%s>\n",
1273 host_address_to_string (gdbarch
->stap_adjust_register
));
1275 "gdbarch_dump: gdbarch_dtrace_parse_probe_argument_p() = %d\n",
1276 gdbarch_dtrace_parse_probe_argument_p (gdbarch
));
1278 "gdbarch_dump: dtrace_parse_probe_argument = <%s>\n",
1279 host_address_to_string (gdbarch
->dtrace_parse_probe_argument
));
1281 "gdbarch_dump: gdbarch_dtrace_probe_is_enabled_p() = %d\n",
1282 gdbarch_dtrace_probe_is_enabled_p (gdbarch
));
1284 "gdbarch_dump: dtrace_probe_is_enabled = <%s>\n",
1285 host_address_to_string (gdbarch
->dtrace_probe_is_enabled
));
1287 "gdbarch_dump: gdbarch_dtrace_enable_probe_p() = %d\n",
1288 gdbarch_dtrace_enable_probe_p (gdbarch
));
1290 "gdbarch_dump: dtrace_enable_probe = <%s>\n",
1291 host_address_to_string (gdbarch
->dtrace_enable_probe
));
1293 "gdbarch_dump: gdbarch_dtrace_disable_probe_p() = %d\n",
1294 gdbarch_dtrace_disable_probe_p (gdbarch
));
1296 "gdbarch_dump: dtrace_disable_probe = <%s>\n",
1297 host_address_to_string (gdbarch
->dtrace_disable_probe
));
1299 "gdbarch_dump: has_global_solist = %s\n",
1300 plongest (gdbarch
->has_global_solist
));
1302 "gdbarch_dump: has_global_breakpoints = %s\n",
1303 plongest (gdbarch
->has_global_breakpoints
));
1305 "gdbarch_dump: has_shared_address_space = <%s>\n",
1306 host_address_to_string (gdbarch
->has_shared_address_space
));
1308 "gdbarch_dump: fast_tracepoint_valid_at = <%s>\n",
1309 host_address_to_string (gdbarch
->fast_tracepoint_valid_at
));
1311 "gdbarch_dump: guess_tracepoint_registers = <%s>\n",
1312 host_address_to_string (gdbarch
->guess_tracepoint_registers
));
1314 "gdbarch_dump: auto_charset = <%s>\n",
1315 host_address_to_string (gdbarch
->auto_charset
));
1317 "gdbarch_dump: auto_wide_charset = <%s>\n",
1318 host_address_to_string (gdbarch
->auto_wide_charset
));
1320 "gdbarch_dump: solib_symbols_extension = %s\n",
1321 pstring (gdbarch
->solib_symbols_extension
));
1323 "gdbarch_dump: has_dos_based_file_system = %s\n",
1324 plongest (gdbarch
->has_dos_based_file_system
));
1326 "gdbarch_dump: gen_return_address = <%s>\n",
1327 host_address_to_string (gdbarch
->gen_return_address
));
1329 "gdbarch_dump: gdbarch_info_proc_p() = %d\n",
1330 gdbarch_info_proc_p (gdbarch
));
1332 "gdbarch_dump: info_proc = <%s>\n",
1333 host_address_to_string (gdbarch
->info_proc
));
1335 "gdbarch_dump: gdbarch_core_info_proc_p() = %d\n",
1336 gdbarch_core_info_proc_p (gdbarch
));
1338 "gdbarch_dump: core_info_proc = <%s>\n",
1339 host_address_to_string (gdbarch
->core_info_proc
));
1341 "gdbarch_dump: iterate_over_objfiles_in_search_order = <%s>\n",
1342 host_address_to_string (gdbarch
->iterate_over_objfiles_in_search_order
));
1344 "gdbarch_dump: ravenscar_ops = %s\n",
1345 host_address_to_string (gdbarch
->ravenscar_ops
));
1347 "gdbarch_dump: insn_is_call = <%s>\n",
1348 host_address_to_string (gdbarch
->insn_is_call
));
1350 "gdbarch_dump: insn_is_ret = <%s>\n",
1351 host_address_to_string (gdbarch
->insn_is_ret
));
1353 "gdbarch_dump: insn_is_jump = <%s>\n",
1354 host_address_to_string (gdbarch
->insn_is_jump
));
1356 "gdbarch_dump: program_breakpoint_here_p = <%s>\n",
1357 host_address_to_string (gdbarch
->program_breakpoint_here_p
));
1359 "gdbarch_dump: gdbarch_auxv_parse_p() = %d\n",
1360 gdbarch_auxv_parse_p (gdbarch
));
1362 "gdbarch_dump: auxv_parse = <%s>\n",
1363 host_address_to_string (gdbarch
->auxv_parse
));
1365 "gdbarch_dump: print_auxv_entry = <%s>\n",
1366 host_address_to_string (gdbarch
->print_auxv_entry
));
1368 "gdbarch_dump: vsyscall_range = <%s>\n",
1369 host_address_to_string (gdbarch
->vsyscall_range
));
1371 "gdbarch_dump: infcall_mmap = <%s>\n",
1372 host_address_to_string (gdbarch
->infcall_mmap
));
1374 "gdbarch_dump: infcall_munmap = <%s>\n",
1375 host_address_to_string (gdbarch
->infcall_munmap
));
1377 "gdbarch_dump: gcc_target_options = <%s>\n",
1378 host_address_to_string (gdbarch
->gcc_target_options
));
1380 "gdbarch_dump: gnu_triplet_regexp = <%s>\n",
1381 host_address_to_string (gdbarch
->gnu_triplet_regexp
));
1383 "gdbarch_dump: addressable_memory_unit_size = <%s>\n",
1384 host_address_to_string (gdbarch
->addressable_memory_unit_size
));
1386 "gdbarch_dump: disassembler_options_implicit = %s\n",
1387 pstring (gdbarch
->disassembler_options_implicit
));
1389 "gdbarch_dump: disassembler_options = %s\n",
1390 pstring_ptr (gdbarch
->disassembler_options
));
1392 "gdbarch_dump: valid_disassembler_options = %s\n",
1393 host_address_to_string (gdbarch
->valid_disassembler_options
));
1395 "gdbarch_dump: type_align = <%s>\n",
1396 host_address_to_string (gdbarch
->type_align
));
1398 "gdbarch_dump: get_pc_address_flags = <%s>\n",
1399 host_address_to_string (gdbarch
->get_pc_address_flags
));
1401 "gdbarch_dump: read_core_file_mappings = <%s>\n",
1402 host_address_to_string (gdbarch
->read_core_file_mappings
));
1404 "gdbarch_dump: use_target_description_from_corefile_notes = <%s>\n",
1405 host_address_to_string (gdbarch
->use_target_description_from_corefile_notes
));
1407 "gdbarch_dump: core_parse_exec_context = <%s>\n",
1408 host_address_to_string (gdbarch
->core_parse_exec_context
));
1409 if (gdbarch
->dump_tdep
!= NULL
)
1410 gdbarch
->dump_tdep (gdbarch
, file
);
1414 const struct bfd_arch_info
*
1415 gdbarch_bfd_arch_info (struct gdbarch
*gdbarch
)
1417 gdb_assert (gdbarch
!= NULL
);
1418 if (gdbarch_debug
>= 2)
1419 gdb_printf (gdb_stdlog
, "gdbarch_bfd_arch_info called\n");
1420 return gdbarch
->bfd_arch_info
;
1424 gdbarch_byte_order (struct gdbarch
*gdbarch
)
1426 gdb_assert (gdbarch
!= NULL
);
1427 if (gdbarch_debug
>= 2)
1428 gdb_printf (gdb_stdlog
, "gdbarch_byte_order called\n");
1429 return gdbarch
->byte_order
;
1433 gdbarch_byte_order_for_code (struct gdbarch
*gdbarch
)
1435 gdb_assert (gdbarch
!= NULL
);
1436 if (gdbarch_debug
>= 2)
1437 gdb_printf (gdb_stdlog
, "gdbarch_byte_order_for_code called\n");
1438 return gdbarch
->byte_order_for_code
;
1442 gdbarch_osabi (struct gdbarch
*gdbarch
)
1444 gdb_assert (gdbarch
!= NULL
);
1445 if (gdbarch_debug
>= 2)
1446 gdb_printf (gdb_stdlog
, "gdbarch_osabi called\n");
1447 return gdbarch
->osabi
;
1450 const struct target_desc
*
1451 gdbarch_target_desc (struct gdbarch
*gdbarch
)
1453 gdb_assert (gdbarch
!= NULL
);
1454 if (gdbarch_debug
>= 2)
1455 gdb_printf (gdb_stdlog
, "gdbarch_target_desc called\n");
1456 return gdbarch
->target_desc
;
1460 gdbarch_short_bit (struct gdbarch
*gdbarch
)
1462 gdb_assert (gdbarch
!= NULL
);
1463 /* Skip verify of short_bit, invalid_p == 0. */
1464 if (gdbarch_debug
>= 2)
1465 gdb_printf (gdb_stdlog
, "gdbarch_short_bit called\n");
1466 return gdbarch
->short_bit
;
1470 set_gdbarch_short_bit (struct gdbarch
*gdbarch
,
1473 gdbarch
->short_bit
= short_bit
;
1477 gdbarch_int_bit (struct gdbarch
*gdbarch
)
1479 gdb_assert (gdbarch
!= NULL
);
1480 /* Skip verify of int_bit, invalid_p == 0. */
1481 if (gdbarch_debug
>= 2)
1482 gdb_printf (gdb_stdlog
, "gdbarch_int_bit called\n");
1483 return gdbarch
->int_bit
;
1487 set_gdbarch_int_bit (struct gdbarch
*gdbarch
,
1490 gdbarch
->int_bit
= int_bit
;
1494 gdbarch_long_bit (struct gdbarch
*gdbarch
)
1496 gdb_assert (gdbarch
!= NULL
);
1497 /* Skip verify of long_bit, invalid_p == 0. */
1498 if (gdbarch_debug
>= 2)
1499 gdb_printf (gdb_stdlog
, "gdbarch_long_bit called\n");
1500 return gdbarch
->long_bit
;
1504 set_gdbarch_long_bit (struct gdbarch
*gdbarch
,
1507 gdbarch
->long_bit
= long_bit
;
1511 gdbarch_long_long_bit (struct gdbarch
*gdbarch
)
1513 gdb_assert (gdbarch
!= NULL
);
1514 /* Skip verify of long_long_bit, invalid_p == 0. */
1515 if (gdbarch_debug
>= 2)
1516 gdb_printf (gdb_stdlog
, "gdbarch_long_long_bit called\n");
1517 return gdbarch
->long_long_bit
;
1521 set_gdbarch_long_long_bit (struct gdbarch
*gdbarch
,
1524 gdbarch
->long_long_bit
= long_long_bit
;
1528 gdbarch_bfloat16_bit (struct gdbarch
*gdbarch
)
1530 gdb_assert (gdbarch
!= NULL
);
1531 /* Skip verify of bfloat16_bit, invalid_p == 0. */
1532 if (gdbarch_debug
>= 2)
1533 gdb_printf (gdb_stdlog
, "gdbarch_bfloat16_bit called\n");
1534 return gdbarch
->bfloat16_bit
;
1538 set_gdbarch_bfloat16_bit (struct gdbarch
*gdbarch
,
1541 gdbarch
->bfloat16_bit
= bfloat16_bit
;
1544 const struct floatformat
**
1545 gdbarch_bfloat16_format (struct gdbarch
*gdbarch
)
1547 gdb_assert (gdbarch
!= NULL
);
1548 /* Skip verify of bfloat16_format, invalid_p == 0. */
1549 if (gdbarch_debug
>= 2)
1550 gdb_printf (gdb_stdlog
, "gdbarch_bfloat16_format called\n");
1551 return gdbarch
->bfloat16_format
;
1555 set_gdbarch_bfloat16_format (struct gdbarch
*gdbarch
,
1556 const struct floatformat
** bfloat16_format
)
1558 gdbarch
->bfloat16_format
= bfloat16_format
;
1562 gdbarch_half_bit (struct gdbarch
*gdbarch
)
1564 gdb_assert (gdbarch
!= NULL
);
1565 /* Skip verify of half_bit, invalid_p == 0. */
1566 if (gdbarch_debug
>= 2)
1567 gdb_printf (gdb_stdlog
, "gdbarch_half_bit called\n");
1568 return gdbarch
->half_bit
;
1572 set_gdbarch_half_bit (struct gdbarch
*gdbarch
,
1575 gdbarch
->half_bit
= half_bit
;
1578 const struct floatformat
**
1579 gdbarch_half_format (struct gdbarch
*gdbarch
)
1581 gdb_assert (gdbarch
!= NULL
);
1582 /* Skip verify of half_format, invalid_p == 0. */
1583 if (gdbarch_debug
>= 2)
1584 gdb_printf (gdb_stdlog
, "gdbarch_half_format called\n");
1585 return gdbarch
->half_format
;
1589 set_gdbarch_half_format (struct gdbarch
*gdbarch
,
1590 const struct floatformat
** half_format
)
1592 gdbarch
->half_format
= half_format
;
1596 gdbarch_float_bit (struct gdbarch
*gdbarch
)
1598 gdb_assert (gdbarch
!= NULL
);
1599 /* Skip verify of float_bit, invalid_p == 0. */
1600 if (gdbarch_debug
>= 2)
1601 gdb_printf (gdb_stdlog
, "gdbarch_float_bit called\n");
1602 return gdbarch
->float_bit
;
1606 set_gdbarch_float_bit (struct gdbarch
*gdbarch
,
1609 gdbarch
->float_bit
= float_bit
;
1612 const struct floatformat
**
1613 gdbarch_float_format (struct gdbarch
*gdbarch
)
1615 gdb_assert (gdbarch
!= NULL
);
1616 /* Skip verify of float_format, invalid_p == 0. */
1617 if (gdbarch_debug
>= 2)
1618 gdb_printf (gdb_stdlog
, "gdbarch_float_format called\n");
1619 return gdbarch
->float_format
;
1623 set_gdbarch_float_format (struct gdbarch
*gdbarch
,
1624 const struct floatformat
** float_format
)
1626 gdbarch
->float_format
= float_format
;
1630 gdbarch_double_bit (struct gdbarch
*gdbarch
)
1632 gdb_assert (gdbarch
!= NULL
);
1633 /* Skip verify of double_bit, invalid_p == 0. */
1634 if (gdbarch_debug
>= 2)
1635 gdb_printf (gdb_stdlog
, "gdbarch_double_bit called\n");
1636 return gdbarch
->double_bit
;
1640 set_gdbarch_double_bit (struct gdbarch
*gdbarch
,
1643 gdbarch
->double_bit
= double_bit
;
1646 const struct floatformat
**
1647 gdbarch_double_format (struct gdbarch
*gdbarch
)
1649 gdb_assert (gdbarch
!= NULL
);
1650 /* Skip verify of double_format, invalid_p == 0. */
1651 if (gdbarch_debug
>= 2)
1652 gdb_printf (gdb_stdlog
, "gdbarch_double_format called\n");
1653 return gdbarch
->double_format
;
1657 set_gdbarch_double_format (struct gdbarch
*gdbarch
,
1658 const struct floatformat
** double_format
)
1660 gdbarch
->double_format
= double_format
;
1664 gdbarch_long_double_bit (struct gdbarch
*gdbarch
)
1666 gdb_assert (gdbarch
!= NULL
);
1667 /* Skip verify of long_double_bit, invalid_p == 0. */
1668 if (gdbarch_debug
>= 2)
1669 gdb_printf (gdb_stdlog
, "gdbarch_long_double_bit called\n");
1670 return gdbarch
->long_double_bit
;
1674 set_gdbarch_long_double_bit (struct gdbarch
*gdbarch
,
1675 int long_double_bit
)
1677 gdbarch
->long_double_bit
= long_double_bit
;
1680 const struct floatformat
**
1681 gdbarch_long_double_format (struct gdbarch
*gdbarch
)
1683 gdb_assert (gdbarch
!= NULL
);
1684 /* Skip verify of long_double_format, invalid_p == 0. */
1685 if (gdbarch_debug
>= 2)
1686 gdb_printf (gdb_stdlog
, "gdbarch_long_double_format called\n");
1687 return gdbarch
->long_double_format
;
1691 set_gdbarch_long_double_format (struct gdbarch
*gdbarch
,
1692 const struct floatformat
** long_double_format
)
1694 gdbarch
->long_double_format
= long_double_format
;
1698 gdbarch_wchar_bit (struct gdbarch
*gdbarch
)
1700 gdb_assert (gdbarch
!= NULL
);
1701 /* Skip verify of wchar_bit, invalid_p == 0. */
1702 if (gdbarch_debug
>= 2)
1703 gdb_printf (gdb_stdlog
, "gdbarch_wchar_bit called\n");
1704 return gdbarch
->wchar_bit
;
1708 set_gdbarch_wchar_bit (struct gdbarch
*gdbarch
,
1711 gdbarch
->wchar_bit
= wchar_bit
;
1715 gdbarch_wchar_signed (struct gdbarch
*gdbarch
)
1717 gdb_assert (gdbarch
!= NULL
);
1718 /* Check variable changed from its initial value. */
1719 gdb_assert (gdbarch
->wchar_signed
!= -1);
1720 if (gdbarch_debug
>= 2)
1721 gdb_printf (gdb_stdlog
, "gdbarch_wchar_signed called\n");
1722 return gdbarch
->wchar_signed
;
1726 set_gdbarch_wchar_signed (struct gdbarch
*gdbarch
,
1729 gdbarch
->wchar_signed
= wchar_signed
;
1732 const struct floatformat
**
1733 gdbarch_floatformat_for_type (struct gdbarch
*gdbarch
, const char *name
, int length
)
1735 gdb_assert (gdbarch
!= NULL
);
1736 gdb_assert (gdbarch
->floatformat_for_type
!= NULL
);
1737 if (gdbarch_debug
>= 2)
1738 gdb_printf (gdb_stdlog
, "gdbarch_floatformat_for_type called\n");
1739 return gdbarch
->floatformat_for_type (gdbarch
, name
, length
);
1743 set_gdbarch_floatformat_for_type (struct gdbarch
*gdbarch
,
1744 gdbarch_floatformat_for_type_ftype floatformat_for_type
)
1746 gdbarch
->floatformat_for_type
= floatformat_for_type
;
1750 gdbarch_ptr_bit (struct gdbarch
*gdbarch
)
1752 gdb_assert (gdbarch
!= NULL
);
1753 /* Skip verify of ptr_bit, invalid_p == 0. */
1754 if (gdbarch_debug
>= 2)
1755 gdb_printf (gdb_stdlog
, "gdbarch_ptr_bit called\n");
1756 return gdbarch
->ptr_bit
;
1760 set_gdbarch_ptr_bit (struct gdbarch
*gdbarch
,
1763 gdbarch
->ptr_bit
= ptr_bit
;
1767 gdbarch_addr_bit (struct gdbarch
*gdbarch
)
1769 gdb_assert (gdbarch
!= NULL
);
1770 /* Check variable changed from its initial value. */
1771 gdb_assert (gdbarch
->addr_bit
!= 0);
1772 if (gdbarch_debug
>= 2)
1773 gdb_printf (gdb_stdlog
, "gdbarch_addr_bit called\n");
1774 return gdbarch
->addr_bit
;
1778 set_gdbarch_addr_bit (struct gdbarch
*gdbarch
,
1781 gdbarch
->addr_bit
= addr_bit
;
1785 gdbarch_dwarf2_addr_size (struct gdbarch
*gdbarch
)
1787 gdb_assert (gdbarch
!= NULL
);
1788 /* Check variable changed from its initial value. */
1789 gdb_assert (gdbarch
->dwarf2_addr_size
!= 0);
1790 if (gdbarch_debug
>= 2)
1791 gdb_printf (gdb_stdlog
, "gdbarch_dwarf2_addr_size called\n");
1792 return gdbarch
->dwarf2_addr_size
;
1796 set_gdbarch_dwarf2_addr_size (struct gdbarch
*gdbarch
,
1797 int dwarf2_addr_size
)
1799 gdbarch
->dwarf2_addr_size
= dwarf2_addr_size
;
1803 gdbarch_char_signed (struct gdbarch
*gdbarch
)
1805 gdb_assert (gdbarch
!= NULL
);
1806 /* Check variable changed from its initial value. */
1807 gdb_assert (gdbarch
->char_signed
!= -1);
1808 if (gdbarch_debug
>= 2)
1809 gdb_printf (gdb_stdlog
, "gdbarch_char_signed called\n");
1810 return gdbarch
->char_signed
;
1814 set_gdbarch_char_signed (struct gdbarch
*gdbarch
,
1817 gdbarch
->char_signed
= char_signed
;
1821 gdbarch_read_pc_p (struct gdbarch
*gdbarch
)
1823 gdb_assert (gdbarch
!= NULL
);
1824 return gdbarch
->read_pc
!= NULL
;
1828 gdbarch_read_pc (struct gdbarch
*gdbarch
, readable_regcache
*regcache
)
1830 gdb_assert (gdbarch
!= NULL
);
1831 gdb_assert (gdbarch
->read_pc
!= NULL
);
1832 if (gdbarch_debug
>= 2)
1833 gdb_printf (gdb_stdlog
, "gdbarch_read_pc called\n");
1834 return gdbarch
->read_pc (regcache
);
1838 set_gdbarch_read_pc (struct gdbarch
*gdbarch
,
1839 gdbarch_read_pc_ftype read_pc
)
1841 gdbarch
->read_pc
= read_pc
;
1845 gdbarch_write_pc_p (struct gdbarch
*gdbarch
)
1847 gdb_assert (gdbarch
!= NULL
);
1848 return gdbarch
->write_pc
!= NULL
;
1852 gdbarch_write_pc (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR val
)
1854 gdb_assert (gdbarch
!= NULL
);
1855 gdb_assert (gdbarch
->write_pc
!= NULL
);
1856 if (gdbarch_debug
>= 2)
1857 gdb_printf (gdb_stdlog
, "gdbarch_write_pc called\n");
1858 gdbarch
->write_pc (regcache
, val
);
1862 set_gdbarch_write_pc (struct gdbarch
*gdbarch
,
1863 gdbarch_write_pc_ftype write_pc
)
1865 gdbarch
->write_pc
= write_pc
;
1869 gdbarch_virtual_frame_pointer (struct gdbarch
*gdbarch
, CORE_ADDR pc
, int *frame_regnum
, LONGEST
*frame_offset
)
1871 gdb_assert (gdbarch
!= NULL
);
1872 gdb_assert (gdbarch
->virtual_frame_pointer
!= NULL
);
1873 if (gdbarch_debug
>= 2)
1874 gdb_printf (gdb_stdlog
, "gdbarch_virtual_frame_pointer called\n");
1875 gdbarch
->virtual_frame_pointer (gdbarch
, pc
, frame_regnum
, frame_offset
);
1879 set_gdbarch_virtual_frame_pointer (struct gdbarch
*gdbarch
,
1880 gdbarch_virtual_frame_pointer_ftype virtual_frame_pointer
)
1882 gdbarch
->virtual_frame_pointer
= virtual_frame_pointer
;
1886 gdbarch_pseudo_register_read_p (struct gdbarch
*gdbarch
)
1888 gdb_assert (gdbarch
!= NULL
);
1889 return gdbarch
->pseudo_register_read
!= NULL
;
1892 enum register_status
1893 gdbarch_pseudo_register_read (struct gdbarch
*gdbarch
, readable_regcache
*regcache
, int cookednum
, gdb_byte
*buf
)
1895 gdb_assert (gdbarch
!= NULL
);
1896 gdb_assert (gdbarch
->pseudo_register_read
!= NULL
);
1897 if (gdbarch_debug
>= 2)
1898 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_read called\n");
1899 return gdbarch
->pseudo_register_read (gdbarch
, regcache
, cookednum
, buf
);
1903 set_gdbarch_pseudo_register_read (struct gdbarch
*gdbarch
,
1904 gdbarch_pseudo_register_read_ftype pseudo_register_read
)
1906 gdbarch
->pseudo_register_read
= pseudo_register_read
;
1910 gdbarch_pseudo_register_read_value_p (struct gdbarch
*gdbarch
)
1912 gdb_assert (gdbarch
!= NULL
);
1913 return gdbarch
->pseudo_register_read_value
!= NULL
;
1917 gdbarch_pseudo_register_read_value (struct gdbarch
*gdbarch
, const frame_info_ptr
&next_frame
, int cookednum
)
1919 gdb_assert (gdbarch
!= NULL
);
1920 gdb_assert (gdbarch
->pseudo_register_read_value
!= NULL
);
1921 if (gdbarch_debug
>= 2)
1922 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_read_value called\n");
1923 return gdbarch
->pseudo_register_read_value (gdbarch
, next_frame
, cookednum
);
1927 set_gdbarch_pseudo_register_read_value (struct gdbarch
*gdbarch
,
1928 gdbarch_pseudo_register_read_value_ftype pseudo_register_read_value
)
1930 gdbarch
->pseudo_register_read_value
= pseudo_register_read_value
;
1934 gdbarch_pseudo_register_write_p (struct gdbarch
*gdbarch
)
1936 gdb_assert (gdbarch
!= NULL
);
1937 return gdbarch
->pseudo_register_write
!= NULL
;
1941 gdbarch_pseudo_register_write (struct gdbarch
*gdbarch
, const frame_info_ptr
&next_frame
, int pseudo_reg_num
, gdb::array_view
<const gdb_byte
> buf
)
1943 gdb_assert (gdbarch
!= NULL
);
1944 gdb_assert (gdbarch
->pseudo_register_write
!= NULL
);
1945 if (gdbarch_debug
>= 2)
1946 gdb_printf (gdb_stdlog
, "gdbarch_pseudo_register_write called\n");
1947 gdbarch
->pseudo_register_write (gdbarch
, next_frame
, pseudo_reg_num
, buf
);
1951 set_gdbarch_pseudo_register_write (struct gdbarch
*gdbarch
,
1952 gdbarch_pseudo_register_write_ftype pseudo_register_write
)
1954 gdbarch
->pseudo_register_write
= pseudo_register_write
;
1958 gdbarch_deprecated_pseudo_register_write_p (struct gdbarch
*gdbarch
)
1960 gdb_assert (gdbarch
!= NULL
);
1961 return gdbarch
->deprecated_pseudo_register_write
!= NULL
;
1965 gdbarch_deprecated_pseudo_register_write (struct gdbarch
*gdbarch
, struct regcache
*regcache
, int cookednum
, const gdb_byte
*buf
)
1967 gdb_assert (gdbarch
!= NULL
);
1968 gdb_assert (gdbarch
->deprecated_pseudo_register_write
!= NULL
);
1969 if (gdbarch_debug
>= 2)
1970 gdb_printf (gdb_stdlog
, "gdbarch_deprecated_pseudo_register_write called\n");
1971 gdbarch
->deprecated_pseudo_register_write (gdbarch
, regcache
, cookednum
, buf
);
1975 set_gdbarch_deprecated_pseudo_register_write (struct gdbarch
*gdbarch
,
1976 gdbarch_deprecated_pseudo_register_write_ftype deprecated_pseudo_register_write
)
1978 gdbarch
->deprecated_pseudo_register_write
= deprecated_pseudo_register_write
;
1982 gdbarch_num_regs (struct gdbarch
*gdbarch
)
1984 gdb_assert (gdbarch
!= NULL
);
1985 /* Check variable changed from its initial value. */
1986 gdb_assert (gdbarch
->num_regs
!= -1);
1987 if (gdbarch_debug
>= 2)
1988 gdb_printf (gdb_stdlog
, "gdbarch_num_regs called\n");
1989 return gdbarch
->num_regs
;
1993 set_gdbarch_num_regs (struct gdbarch
*gdbarch
,
1996 gdbarch
->num_regs
= num_regs
;
2000 gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
)
2002 gdb_assert (gdbarch
!= NULL
);
2003 /* Skip verify of num_pseudo_regs, invalid_p == 0. */
2004 if (gdbarch_debug
>= 2)
2005 gdb_printf (gdb_stdlog
, "gdbarch_num_pseudo_regs called\n");
2006 return gdbarch
->num_pseudo_regs
;
2010 set_gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
,
2011 int num_pseudo_regs
)
2013 gdbarch
->num_pseudo_regs
= num_pseudo_regs
;
2017 gdbarch_ax_pseudo_register_collect_p (struct gdbarch
*gdbarch
)
2019 gdb_assert (gdbarch
!= NULL
);
2020 return gdbarch
->ax_pseudo_register_collect
!= NULL
;
2024 gdbarch_ax_pseudo_register_collect (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, int reg
)
2026 gdb_assert (gdbarch
!= NULL
);
2027 gdb_assert (gdbarch
->ax_pseudo_register_collect
!= NULL
);
2028 if (gdbarch_debug
>= 2)
2029 gdb_printf (gdb_stdlog
, "gdbarch_ax_pseudo_register_collect called\n");
2030 return gdbarch
->ax_pseudo_register_collect (gdbarch
, ax
, reg
);
2034 set_gdbarch_ax_pseudo_register_collect (struct gdbarch
*gdbarch
,
2035 gdbarch_ax_pseudo_register_collect_ftype ax_pseudo_register_collect
)
2037 gdbarch
->ax_pseudo_register_collect
= ax_pseudo_register_collect
;
2041 gdbarch_ax_pseudo_register_push_stack_p (struct gdbarch
*gdbarch
)
2043 gdb_assert (gdbarch
!= NULL
);
2044 return gdbarch
->ax_pseudo_register_push_stack
!= NULL
;
2048 gdbarch_ax_pseudo_register_push_stack (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, int reg
)
2050 gdb_assert (gdbarch
!= NULL
);
2051 gdb_assert (gdbarch
->ax_pseudo_register_push_stack
!= NULL
);
2052 if (gdbarch_debug
>= 2)
2053 gdb_printf (gdb_stdlog
, "gdbarch_ax_pseudo_register_push_stack called\n");
2054 return gdbarch
->ax_pseudo_register_push_stack (gdbarch
, ax
, reg
);
2058 set_gdbarch_ax_pseudo_register_push_stack (struct gdbarch
*gdbarch
,
2059 gdbarch_ax_pseudo_register_push_stack_ftype ax_pseudo_register_push_stack
)
2061 gdbarch
->ax_pseudo_register_push_stack
= ax_pseudo_register_push_stack
;
2065 gdbarch_report_signal_info_p (struct gdbarch
*gdbarch
)
2067 gdb_assert (gdbarch
!= NULL
);
2068 return gdbarch
->report_signal_info
!= NULL
;
2072 gdbarch_report_signal_info (struct gdbarch
*gdbarch
, struct ui_out
*uiout
, enum gdb_signal siggnal
)
2074 gdb_assert (gdbarch
!= NULL
);
2075 gdb_assert (gdbarch
->report_signal_info
!= NULL
);
2076 if (gdbarch_debug
>= 2)
2077 gdb_printf (gdb_stdlog
, "gdbarch_report_signal_info called\n");
2078 gdbarch
->report_signal_info (gdbarch
, uiout
, siggnal
);
2082 set_gdbarch_report_signal_info (struct gdbarch
*gdbarch
,
2083 gdbarch_report_signal_info_ftype report_signal_info
)
2085 gdbarch
->report_signal_info
= report_signal_info
;
2089 gdbarch_sp_regnum (struct gdbarch
*gdbarch
)
2091 gdb_assert (gdbarch
!= NULL
);
2092 /* Skip verify of sp_regnum, invalid_p == 0. */
2093 if (gdbarch_debug
>= 2)
2094 gdb_printf (gdb_stdlog
, "gdbarch_sp_regnum called\n");
2095 return gdbarch
->sp_regnum
;
2099 set_gdbarch_sp_regnum (struct gdbarch
*gdbarch
,
2102 gdbarch
->sp_regnum
= sp_regnum
;
2106 gdbarch_pc_regnum (struct gdbarch
*gdbarch
)
2108 gdb_assert (gdbarch
!= NULL
);
2109 /* Skip verify of pc_regnum, invalid_p == 0. */
2110 if (gdbarch_debug
>= 2)
2111 gdb_printf (gdb_stdlog
, "gdbarch_pc_regnum called\n");
2112 return gdbarch
->pc_regnum
;
2116 set_gdbarch_pc_regnum (struct gdbarch
*gdbarch
,
2119 gdbarch
->pc_regnum
= pc_regnum
;
2123 gdbarch_ps_regnum (struct gdbarch
*gdbarch
)
2125 gdb_assert (gdbarch
!= NULL
);
2126 /* Skip verify of ps_regnum, invalid_p == 0. */
2127 if (gdbarch_debug
>= 2)
2128 gdb_printf (gdb_stdlog
, "gdbarch_ps_regnum called\n");
2129 return gdbarch
->ps_regnum
;
2133 set_gdbarch_ps_regnum (struct gdbarch
*gdbarch
,
2136 gdbarch
->ps_regnum
= ps_regnum
;
2140 gdbarch_fp0_regnum (struct gdbarch
*gdbarch
)
2142 gdb_assert (gdbarch
!= NULL
);
2143 /* Skip verify of fp0_regnum, invalid_p == 0. */
2144 if (gdbarch_debug
>= 2)
2145 gdb_printf (gdb_stdlog
, "gdbarch_fp0_regnum called\n");
2146 return gdbarch
->fp0_regnum
;
2150 set_gdbarch_fp0_regnum (struct gdbarch
*gdbarch
,
2153 gdbarch
->fp0_regnum
= fp0_regnum
;
2157 gdbarch_stab_reg_to_regnum (struct gdbarch
*gdbarch
, int stab_regnr
)
2159 gdb_assert (gdbarch
!= NULL
);
2160 gdb_assert (gdbarch
->stab_reg_to_regnum
!= NULL
);
2161 if (gdbarch_debug
>= 2)
2162 gdb_printf (gdb_stdlog
, "gdbarch_stab_reg_to_regnum called\n");
2163 return gdbarch
->stab_reg_to_regnum (gdbarch
, stab_regnr
);
2167 set_gdbarch_stab_reg_to_regnum (struct gdbarch
*gdbarch
,
2168 gdbarch_stab_reg_to_regnum_ftype stab_reg_to_regnum
)
2170 gdbarch
->stab_reg_to_regnum
= stab_reg_to_regnum
;
2174 gdbarch_ecoff_reg_to_regnum (struct gdbarch
*gdbarch
, int ecoff_regnr
)
2176 gdb_assert (gdbarch
!= NULL
);
2177 gdb_assert (gdbarch
->ecoff_reg_to_regnum
!= NULL
);
2178 if (gdbarch_debug
>= 2)
2179 gdb_printf (gdb_stdlog
, "gdbarch_ecoff_reg_to_regnum called\n");
2180 return gdbarch
->ecoff_reg_to_regnum (gdbarch
, ecoff_regnr
);
2184 set_gdbarch_ecoff_reg_to_regnum (struct gdbarch
*gdbarch
,
2185 gdbarch_ecoff_reg_to_regnum_ftype ecoff_reg_to_regnum
)
2187 gdbarch
->ecoff_reg_to_regnum
= ecoff_reg_to_regnum
;
2191 gdbarch_sdb_reg_to_regnum (struct gdbarch
*gdbarch
, int sdb_regnr
)
2193 gdb_assert (gdbarch
!= NULL
);
2194 gdb_assert (gdbarch
->sdb_reg_to_regnum
!= NULL
);
2195 if (gdbarch_debug
>= 2)
2196 gdb_printf (gdb_stdlog
, "gdbarch_sdb_reg_to_regnum called\n");
2197 return gdbarch
->sdb_reg_to_regnum (gdbarch
, sdb_regnr
);
2201 set_gdbarch_sdb_reg_to_regnum (struct gdbarch
*gdbarch
,
2202 gdbarch_sdb_reg_to_regnum_ftype sdb_reg_to_regnum
)
2204 gdbarch
->sdb_reg_to_regnum
= sdb_reg_to_regnum
;
2208 gdbarch_dwarf2_reg_to_regnum (struct gdbarch
*gdbarch
, int dwarf2_regnr
)
2210 gdb_assert (gdbarch
!= NULL
);
2211 gdb_assert (gdbarch
->dwarf2_reg_to_regnum
!= NULL
);
2212 if (gdbarch_debug
>= 2)
2213 gdb_printf (gdb_stdlog
, "gdbarch_dwarf2_reg_to_regnum called\n");
2214 return gdbarch
->dwarf2_reg_to_regnum (gdbarch
, dwarf2_regnr
);
2218 set_gdbarch_dwarf2_reg_to_regnum (struct gdbarch
*gdbarch
,
2219 gdbarch_dwarf2_reg_to_regnum_ftype dwarf2_reg_to_regnum
)
2221 gdbarch
->dwarf2_reg_to_regnum
= dwarf2_reg_to_regnum
;
2225 gdbarch_register_name (struct gdbarch
*gdbarch
, int regnr
)
2227 gdb_assert (gdbarch
!= NULL
);
2228 gdb_assert (gdbarch
->register_name
!= NULL
);
2229 gdb_assert (regnr
>= 0);
2230 gdb_assert (regnr
< gdbarch_num_cooked_regs (gdbarch
));
2231 if (gdbarch_debug
>= 2)
2232 gdb_printf (gdb_stdlog
, "gdbarch_register_name called\n");
2233 auto result
= gdbarch
->register_name (gdbarch
, regnr
);
2234 gdb_assert (result
!= nullptr);
2239 set_gdbarch_register_name (struct gdbarch
*gdbarch
,
2240 gdbarch_register_name_ftype register_name
)
2242 gdbarch
->register_name
= register_name
;
2246 gdbarch_register_type (struct gdbarch
*gdbarch
, int reg_nr
)
2248 gdb_assert (gdbarch
!= NULL
);
2249 gdb_assert (gdbarch
->register_type
!= NULL
);
2250 if (gdbarch_debug
>= 2)
2251 gdb_printf (gdb_stdlog
, "gdbarch_register_type called\n");
2252 return gdbarch
->register_type (gdbarch
, reg_nr
);
2256 set_gdbarch_register_type (struct gdbarch
*gdbarch
,
2257 gdbarch_register_type_ftype register_type
)
2259 gdbarch
->register_type
= register_type
;
2263 gdbarch_dummy_id (struct gdbarch
*gdbarch
, const frame_info_ptr
&this_frame
)
2265 gdb_assert (gdbarch
!= NULL
);
2266 gdb_assert (gdbarch
->dummy_id
!= NULL
);
2267 if (gdbarch_debug
>= 2)
2268 gdb_printf (gdb_stdlog
, "gdbarch_dummy_id called\n");
2269 return gdbarch
->dummy_id (gdbarch
, this_frame
);
2273 set_gdbarch_dummy_id (struct gdbarch
*gdbarch
,
2274 gdbarch_dummy_id_ftype dummy_id
)
2276 gdbarch
->dummy_id
= dummy_id
;
2280 gdbarch_deprecated_fp_regnum (struct gdbarch
*gdbarch
)
2282 gdb_assert (gdbarch
!= NULL
);
2283 /* Skip verify of deprecated_fp_regnum, invalid_p == 0. */
2284 if (gdbarch_debug
>= 2)
2285 gdb_printf (gdb_stdlog
, "gdbarch_deprecated_fp_regnum called\n");
2286 return gdbarch
->deprecated_fp_regnum
;
2290 set_gdbarch_deprecated_fp_regnum (struct gdbarch
*gdbarch
,
2291 int deprecated_fp_regnum
)
2293 gdbarch
->deprecated_fp_regnum
= deprecated_fp_regnum
;
2297 gdbarch_push_dummy_call_p (struct gdbarch
*gdbarch
)
2299 gdb_assert (gdbarch
!= NULL
);
2300 return gdbarch
->push_dummy_call
!= NULL
;
2304 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
)
2306 gdb_assert (gdbarch
!= NULL
);
2307 gdb_assert (gdbarch
->push_dummy_call
!= NULL
);
2308 if (gdbarch_debug
>= 2)
2309 gdb_printf (gdb_stdlog
, "gdbarch_push_dummy_call called\n");
2310 return gdbarch
->push_dummy_call (gdbarch
, function
, regcache
, bp_addr
, nargs
, args
, sp
, return_method
, struct_addr
);
2314 set_gdbarch_push_dummy_call (struct gdbarch
*gdbarch
,
2315 gdbarch_push_dummy_call_ftype push_dummy_call
)
2317 gdbarch
->push_dummy_call
= push_dummy_call
;
2320 enum call_dummy_location_type
2321 gdbarch_call_dummy_location (struct gdbarch
*gdbarch
)
2323 gdb_assert (gdbarch
!= NULL
);
2324 /* Skip verify of call_dummy_location, invalid_p == 0. */
2325 if (gdbarch_debug
>= 2)
2326 gdb_printf (gdb_stdlog
, "gdbarch_call_dummy_location called\n");
2327 return gdbarch
->call_dummy_location
;
2331 set_gdbarch_call_dummy_location (struct gdbarch
*gdbarch
,
2332 enum call_dummy_location_type call_dummy_location
)
2334 gdbarch
->call_dummy_location
= call_dummy_location
;
2338 gdbarch_push_dummy_code_p (struct gdbarch
*gdbarch
)
2340 gdb_assert (gdbarch
!= NULL
);
2341 return gdbarch
->push_dummy_code
!= NULL
;
2345 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
)
2347 gdb_assert (gdbarch
!= NULL
);
2348 gdb_assert (gdbarch
->push_dummy_code
!= NULL
);
2349 if (gdbarch_debug
>= 2)
2350 gdb_printf (gdb_stdlog
, "gdbarch_push_dummy_code called\n");
2351 return gdbarch
->push_dummy_code (gdbarch
, sp
, funaddr
, args
, nargs
, value_type
, real_pc
, bp_addr
, regcache
);
2355 set_gdbarch_push_dummy_code (struct gdbarch
*gdbarch
,
2356 gdbarch_push_dummy_code_ftype push_dummy_code
)
2358 gdbarch
->push_dummy_code
= push_dummy_code
;
2362 gdbarch_code_of_frame_writable (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
)
2364 gdb_assert (gdbarch
!= NULL
);
2365 gdb_assert (gdbarch
->code_of_frame_writable
!= NULL
);
2366 if (gdbarch_debug
>= 2)
2367 gdb_printf (gdb_stdlog
, "gdbarch_code_of_frame_writable called\n");
2368 return gdbarch
->code_of_frame_writable (gdbarch
, frame
);
2372 set_gdbarch_code_of_frame_writable (struct gdbarch
*gdbarch
,
2373 gdbarch_code_of_frame_writable_ftype code_of_frame_writable
)
2375 gdbarch
->code_of_frame_writable
= code_of_frame_writable
;
2379 gdbarch_print_registers_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, const frame_info_ptr
&frame
, int regnum
, int all
)
2381 gdb_assert (gdbarch
!= NULL
);
2382 gdb_assert (gdbarch
->print_registers_info
!= NULL
);
2383 if (gdbarch_debug
>= 2)
2384 gdb_printf (gdb_stdlog
, "gdbarch_print_registers_info called\n");
2385 gdbarch
->print_registers_info (gdbarch
, file
, frame
, regnum
, all
);
2389 set_gdbarch_print_registers_info (struct gdbarch
*gdbarch
,
2390 gdbarch_print_registers_info_ftype print_registers_info
)
2392 gdbarch
->print_registers_info
= print_registers_info
;
2396 gdbarch_print_float_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, const frame_info_ptr
&frame
, const char *args
)
2398 gdb_assert (gdbarch
!= NULL
);
2399 gdb_assert (gdbarch
->print_float_info
!= NULL
);
2400 if (gdbarch_debug
>= 2)
2401 gdb_printf (gdb_stdlog
, "gdbarch_print_float_info called\n");
2402 gdbarch
->print_float_info (gdbarch
, file
, frame
, args
);
2406 set_gdbarch_print_float_info (struct gdbarch
*gdbarch
,
2407 gdbarch_print_float_info_ftype print_float_info
)
2409 gdbarch
->print_float_info
= print_float_info
;
2413 gdbarch_print_vector_info_p (struct gdbarch
*gdbarch
)
2415 gdb_assert (gdbarch
!= NULL
);
2416 return gdbarch
->print_vector_info
!= NULL
;
2420 gdbarch_print_vector_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, const frame_info_ptr
&frame
, const char *args
)
2422 gdb_assert (gdbarch
!= NULL
);
2423 gdb_assert (gdbarch
->print_vector_info
!= NULL
);
2424 if (gdbarch_debug
>= 2)
2425 gdb_printf (gdb_stdlog
, "gdbarch_print_vector_info called\n");
2426 gdbarch
->print_vector_info (gdbarch
, file
, frame
, args
);
2430 set_gdbarch_print_vector_info (struct gdbarch
*gdbarch
,
2431 gdbarch_print_vector_info_ftype print_vector_info
)
2433 gdbarch
->print_vector_info
= print_vector_info
;
2437 gdbarch_register_sim_regno (struct gdbarch
*gdbarch
, int reg_nr
)
2439 gdb_assert (gdbarch
!= NULL
);
2440 gdb_assert (gdbarch
->register_sim_regno
!= NULL
);
2441 if (gdbarch_debug
>= 2)
2442 gdb_printf (gdb_stdlog
, "gdbarch_register_sim_regno called\n");
2443 return gdbarch
->register_sim_regno (gdbarch
, reg_nr
);
2447 set_gdbarch_register_sim_regno (struct gdbarch
*gdbarch
,
2448 gdbarch_register_sim_regno_ftype register_sim_regno
)
2450 gdbarch
->register_sim_regno
= register_sim_regno
;
2454 gdbarch_cannot_fetch_register (struct gdbarch
*gdbarch
, int regnum
)
2456 gdb_assert (gdbarch
!= NULL
);
2457 gdb_assert (gdbarch
->cannot_fetch_register
!= NULL
);
2458 if (gdbarch_debug
>= 2)
2459 gdb_printf (gdb_stdlog
, "gdbarch_cannot_fetch_register called\n");
2460 return gdbarch
->cannot_fetch_register (gdbarch
, regnum
);
2464 set_gdbarch_cannot_fetch_register (struct gdbarch
*gdbarch
,
2465 gdbarch_cannot_fetch_register_ftype cannot_fetch_register
)
2467 gdbarch
->cannot_fetch_register
= cannot_fetch_register
;
2471 gdbarch_cannot_store_register (struct gdbarch
*gdbarch
, int regnum
)
2473 gdb_assert (gdbarch
!= NULL
);
2474 gdb_assert (gdbarch
->cannot_store_register
!= NULL
);
2475 if (gdbarch_debug
>= 2)
2476 gdb_printf (gdb_stdlog
, "gdbarch_cannot_store_register called\n");
2477 return gdbarch
->cannot_store_register (gdbarch
, regnum
);
2481 set_gdbarch_cannot_store_register (struct gdbarch
*gdbarch
,
2482 gdbarch_cannot_store_register_ftype cannot_store_register
)
2484 gdbarch
->cannot_store_register
= cannot_store_register
;
2488 gdbarch_get_longjmp_target_p (struct gdbarch
*gdbarch
)
2490 gdb_assert (gdbarch
!= NULL
);
2491 return gdbarch
->get_longjmp_target
!= NULL
;
2495 gdbarch_get_longjmp_target (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
, CORE_ADDR
*pc
)
2497 gdb_assert (gdbarch
!= NULL
);
2498 gdb_assert (gdbarch
->get_longjmp_target
!= NULL
);
2499 if (gdbarch_debug
>= 2)
2500 gdb_printf (gdb_stdlog
, "gdbarch_get_longjmp_target called\n");
2501 return gdbarch
->get_longjmp_target (frame
, pc
);
2505 set_gdbarch_get_longjmp_target (struct gdbarch
*gdbarch
,
2506 gdbarch_get_longjmp_target_ftype get_longjmp_target
)
2508 gdbarch
->get_longjmp_target
= get_longjmp_target
;
2512 gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
)
2514 gdb_assert (gdbarch
!= NULL
);
2515 /* Skip verify of believe_pcc_promotion, invalid_p == 0. */
2516 if (gdbarch_debug
>= 2)
2517 gdb_printf (gdb_stdlog
, "gdbarch_believe_pcc_promotion called\n");
2518 return gdbarch
->believe_pcc_promotion
;
2522 set_gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
,
2523 int believe_pcc_promotion
)
2525 gdbarch
->believe_pcc_promotion
= believe_pcc_promotion
;
2529 gdbarch_convert_register_p (struct gdbarch
*gdbarch
, int regnum
, struct type
*type
)
2531 gdb_assert (gdbarch
!= NULL
);
2532 gdb_assert (gdbarch
->convert_register_p
!= NULL
);
2533 if (gdbarch_debug
>= 2)
2534 gdb_printf (gdb_stdlog
, "gdbarch_convert_register_p called\n");
2535 return gdbarch
->convert_register_p (gdbarch
, regnum
, type
);
2539 set_gdbarch_convert_register_p (struct gdbarch
*gdbarch
,
2540 gdbarch_convert_register_p_ftype convert_register_p
)
2542 gdbarch
->convert_register_p
= convert_register_p
;
2546 gdbarch_register_to_value (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
, int regnum
, struct type
*type
, gdb_byte
*buf
, int *optimizedp
, int *unavailablep
)
2548 gdb_assert (gdbarch
!= NULL
);
2549 gdb_assert (gdbarch
->register_to_value
!= NULL
);
2550 if (gdbarch_debug
>= 2)
2551 gdb_printf (gdb_stdlog
, "gdbarch_register_to_value called\n");
2552 return gdbarch
->register_to_value (frame
, regnum
, type
, buf
, optimizedp
, unavailablep
);
2556 set_gdbarch_register_to_value (struct gdbarch
*gdbarch
,
2557 gdbarch_register_to_value_ftype register_to_value
)
2559 gdbarch
->register_to_value
= register_to_value
;
2563 gdbarch_value_to_register (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
, int regnum
, struct type
*type
, const gdb_byte
*buf
)
2565 gdb_assert (gdbarch
!= NULL
);
2566 gdb_assert (gdbarch
->value_to_register
!= NULL
);
2567 if (gdbarch_debug
>= 2)
2568 gdb_printf (gdb_stdlog
, "gdbarch_value_to_register called\n");
2569 gdbarch
->value_to_register (frame
, regnum
, type
, buf
);
2573 set_gdbarch_value_to_register (struct gdbarch
*gdbarch
,
2574 gdbarch_value_to_register_ftype value_to_register
)
2576 gdbarch
->value_to_register
= value_to_register
;
2580 gdbarch_value_from_register (struct gdbarch
*gdbarch
, struct type
*type
, int regnum
, const frame_info_ptr
&this_frame
)
2582 gdb_assert (gdbarch
!= NULL
);
2583 gdb_assert (gdbarch
->value_from_register
!= NULL
);
2584 if (gdbarch_debug
>= 2)
2585 gdb_printf (gdb_stdlog
, "gdbarch_value_from_register called\n");
2586 return gdbarch
->value_from_register (gdbarch
, type
, regnum
, this_frame
);
2590 set_gdbarch_value_from_register (struct gdbarch
*gdbarch
,
2591 gdbarch_value_from_register_ftype value_from_register
)
2593 gdbarch
->value_from_register
= value_from_register
;
2597 gdbarch_dwarf2_reg_piece_offset (struct gdbarch
*gdbarch
, int regnum
, ULONGEST size
)
2599 gdb_assert (gdbarch
!= NULL
);
2600 gdb_assert (gdbarch
->dwarf2_reg_piece_offset
!= NULL
);
2601 if (gdbarch_debug
>= 2)
2602 gdb_printf (gdb_stdlog
, "gdbarch_dwarf2_reg_piece_offset called\n");
2603 return gdbarch
->dwarf2_reg_piece_offset (gdbarch
, regnum
, size
);
2607 set_gdbarch_dwarf2_reg_piece_offset (struct gdbarch
*gdbarch
,
2608 gdbarch_dwarf2_reg_piece_offset_ftype dwarf2_reg_piece_offset
)
2610 gdbarch
->dwarf2_reg_piece_offset
= dwarf2_reg_piece_offset
;
2614 gdbarch_pointer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, const gdb_byte
*buf
)
2616 gdb_assert (gdbarch
!= NULL
);
2617 gdb_assert (gdbarch
->pointer_to_address
!= NULL
);
2618 if (gdbarch_debug
>= 2)
2619 gdb_printf (gdb_stdlog
, "gdbarch_pointer_to_address called\n");
2620 return gdbarch
->pointer_to_address (gdbarch
, type
, buf
);
2624 set_gdbarch_pointer_to_address (struct gdbarch
*gdbarch
,
2625 gdbarch_pointer_to_address_ftype pointer_to_address
)
2627 gdbarch
->pointer_to_address
= pointer_to_address
;
2631 gdbarch_address_to_pointer (struct gdbarch
*gdbarch
, struct type
*type
, gdb_byte
*buf
, CORE_ADDR addr
)
2633 gdb_assert (gdbarch
!= NULL
);
2634 gdb_assert (gdbarch
->address_to_pointer
!= NULL
);
2635 if (gdbarch_debug
>= 2)
2636 gdb_printf (gdb_stdlog
, "gdbarch_address_to_pointer called\n");
2637 gdbarch
->address_to_pointer (gdbarch
, type
, buf
, addr
);
2641 set_gdbarch_address_to_pointer (struct gdbarch
*gdbarch
,
2642 gdbarch_address_to_pointer_ftype address_to_pointer
)
2644 gdbarch
->address_to_pointer
= address_to_pointer
;
2648 gdbarch_integer_to_address_p (struct gdbarch
*gdbarch
)
2650 gdb_assert (gdbarch
!= NULL
);
2651 return gdbarch
->integer_to_address
!= NULL
;
2655 gdbarch_integer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, const gdb_byte
*buf
)
2657 gdb_assert (gdbarch
!= NULL
);
2658 gdb_assert (gdbarch
->integer_to_address
!= NULL
);
2659 if (gdbarch_debug
>= 2)
2660 gdb_printf (gdb_stdlog
, "gdbarch_integer_to_address called\n");
2661 return gdbarch
->integer_to_address (gdbarch
, type
, buf
);
2665 set_gdbarch_integer_to_address (struct gdbarch
*gdbarch
,
2666 gdbarch_integer_to_address_ftype integer_to_address
)
2668 gdbarch
->integer_to_address
= integer_to_address
;
2672 set_gdbarch_return_value (struct gdbarch
*gdbarch
,
2673 gdbarch_return_value_ftype return_value
)
2675 gdbarch
->return_value
= return_value
;
2678 enum return_value_convention
2679 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
)
2681 gdb_assert (gdbarch
!= NULL
);
2682 gdb_assert (gdbarch
->return_value_as_value
!= NULL
);
2683 if (gdbarch_debug
>= 2)
2684 gdb_printf (gdb_stdlog
, "gdbarch_return_value_as_value called\n");
2685 return gdbarch
->return_value_as_value (gdbarch
, function
, valtype
, regcache
, read_value
, writebuf
);
2689 set_gdbarch_return_value_as_value (struct gdbarch
*gdbarch
,
2690 gdbarch_return_value_as_value_ftype return_value_as_value
)
2692 gdbarch
->return_value_as_value
= return_value_as_value
;
2696 gdbarch_get_return_buf_addr (struct gdbarch
*gdbarch
, struct type
*val_type
, const frame_info_ptr
&cur_frame
)
2698 gdb_assert (gdbarch
!= NULL
);
2699 gdb_assert (gdbarch
->get_return_buf_addr
!= NULL
);
2700 if (gdbarch_debug
>= 2)
2701 gdb_printf (gdb_stdlog
, "gdbarch_get_return_buf_addr called\n");
2702 return gdbarch
->get_return_buf_addr (val_type
, cur_frame
);
2706 set_gdbarch_get_return_buf_addr (struct gdbarch
*gdbarch
,
2707 gdbarch_get_return_buf_addr_ftype get_return_buf_addr
)
2709 gdbarch
->get_return_buf_addr
= get_return_buf_addr
;
2713 gdbarch_dwarf2_omit_typedef_p (struct gdbarch
*gdbarch
, struct type
*target_type
, const char *producer
, const char *name
)
2715 gdb_assert (gdbarch
!= NULL
);
2716 gdb_assert (gdbarch
->dwarf2_omit_typedef_p
!= NULL
);
2717 if (gdbarch_debug
>= 2)
2718 gdb_printf (gdb_stdlog
, "gdbarch_dwarf2_omit_typedef_p called\n");
2719 return gdbarch
->dwarf2_omit_typedef_p (target_type
, producer
, name
);
2723 set_gdbarch_dwarf2_omit_typedef_p (struct gdbarch
*gdbarch
,
2724 gdbarch_dwarf2_omit_typedef_p_ftype dwarf2_omit_typedef_p
)
2726 gdbarch
->dwarf2_omit_typedef_p
= dwarf2_omit_typedef_p
;
2730 gdbarch_update_call_site_pc (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
2732 gdb_assert (gdbarch
!= NULL
);
2733 gdb_assert (gdbarch
->update_call_site_pc
!= NULL
);
2734 if (gdbarch_debug
>= 2)
2735 gdb_printf (gdb_stdlog
, "gdbarch_update_call_site_pc called\n");
2736 return gdbarch
->update_call_site_pc (gdbarch
, pc
);
2740 set_gdbarch_update_call_site_pc (struct gdbarch
*gdbarch
,
2741 gdbarch_update_call_site_pc_ftype update_call_site_pc
)
2743 gdbarch
->update_call_site_pc
= update_call_site_pc
;
2747 gdbarch_return_in_first_hidden_param_p (struct gdbarch
*gdbarch
, struct type
*type
)
2749 gdb_assert (gdbarch
!= NULL
);
2750 gdb_assert (gdbarch
->return_in_first_hidden_param_p
!= NULL
);
2751 if (gdbarch_debug
>= 2)
2752 gdb_printf (gdb_stdlog
, "gdbarch_return_in_first_hidden_param_p called\n");
2753 return gdbarch
->return_in_first_hidden_param_p (gdbarch
, type
);
2757 set_gdbarch_return_in_first_hidden_param_p (struct gdbarch
*gdbarch
,
2758 gdbarch_return_in_first_hidden_param_p_ftype return_in_first_hidden_param_p
)
2760 gdbarch
->return_in_first_hidden_param_p
= return_in_first_hidden_param_p
;
2764 gdbarch_skip_prologue (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2766 gdb_assert (gdbarch
!= NULL
);
2767 gdb_assert (gdbarch
->skip_prologue
!= NULL
);
2768 if (gdbarch_debug
>= 2)
2769 gdb_printf (gdb_stdlog
, "gdbarch_skip_prologue called\n");
2770 return gdbarch
->skip_prologue (gdbarch
, ip
);
2774 set_gdbarch_skip_prologue (struct gdbarch
*gdbarch
,
2775 gdbarch_skip_prologue_ftype skip_prologue
)
2777 gdbarch
->skip_prologue
= skip_prologue
;
2781 gdbarch_skip_main_prologue_p (struct gdbarch
*gdbarch
)
2783 gdb_assert (gdbarch
!= NULL
);
2784 return gdbarch
->skip_main_prologue
!= NULL
;
2788 gdbarch_skip_main_prologue (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2790 gdb_assert (gdbarch
!= NULL
);
2791 gdb_assert (gdbarch
->skip_main_prologue
!= NULL
);
2792 if (gdbarch_debug
>= 2)
2793 gdb_printf (gdb_stdlog
, "gdbarch_skip_main_prologue called\n");
2794 return gdbarch
->skip_main_prologue (gdbarch
, ip
);
2798 set_gdbarch_skip_main_prologue (struct gdbarch
*gdbarch
,
2799 gdbarch_skip_main_prologue_ftype skip_main_prologue
)
2801 gdbarch
->skip_main_prologue
= skip_main_prologue
;
2805 gdbarch_skip_entrypoint_p (struct gdbarch
*gdbarch
)
2807 gdb_assert (gdbarch
!= NULL
);
2808 return gdbarch
->skip_entrypoint
!= NULL
;
2812 gdbarch_skip_entrypoint (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
2814 gdb_assert (gdbarch
!= NULL
);
2815 gdb_assert (gdbarch
->skip_entrypoint
!= NULL
);
2816 if (gdbarch_debug
>= 2)
2817 gdb_printf (gdb_stdlog
, "gdbarch_skip_entrypoint called\n");
2818 return gdbarch
->skip_entrypoint (gdbarch
, ip
);
2822 set_gdbarch_skip_entrypoint (struct gdbarch
*gdbarch
,
2823 gdbarch_skip_entrypoint_ftype skip_entrypoint
)
2825 gdbarch
->skip_entrypoint
= skip_entrypoint
;
2829 gdbarch_inner_than (struct gdbarch
*gdbarch
, CORE_ADDR lhs
, CORE_ADDR rhs
)
2831 gdb_assert (gdbarch
!= NULL
);
2832 gdb_assert (gdbarch
->inner_than
!= NULL
);
2833 if (gdbarch_debug
>= 2)
2834 gdb_printf (gdb_stdlog
, "gdbarch_inner_than called\n");
2835 return gdbarch
->inner_than (lhs
, rhs
);
2839 set_gdbarch_inner_than (struct gdbarch
*gdbarch
,
2840 gdbarch_inner_than_ftype inner_than
)
2842 gdbarch
->inner_than
= inner_than
;
2846 gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
, CORE_ADDR
*pcptr
, int *lenptr
)
2848 gdb_assert (gdbarch
!= NULL
);
2849 gdb_assert (gdbarch
->breakpoint_from_pc
!= NULL
);
2850 if (gdbarch_debug
>= 2)
2851 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_from_pc called\n");
2852 return gdbarch
->breakpoint_from_pc (gdbarch
, pcptr
, lenptr
);
2856 set_gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
,
2857 gdbarch_breakpoint_from_pc_ftype breakpoint_from_pc
)
2859 gdbarch
->breakpoint_from_pc
= breakpoint_from_pc
;
2863 gdbarch_breakpoint_kind_from_pc (struct gdbarch
*gdbarch
, CORE_ADDR
*pcptr
)
2865 gdb_assert (gdbarch
!= NULL
);
2866 gdb_assert (gdbarch
->breakpoint_kind_from_pc
!= NULL
);
2867 if (gdbarch_debug
>= 2)
2868 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_kind_from_pc called\n");
2869 return gdbarch
->breakpoint_kind_from_pc (gdbarch
, pcptr
);
2873 set_gdbarch_breakpoint_kind_from_pc (struct gdbarch
*gdbarch
,
2874 gdbarch_breakpoint_kind_from_pc_ftype breakpoint_kind_from_pc
)
2876 gdbarch
->breakpoint_kind_from_pc
= breakpoint_kind_from_pc
;
2880 gdbarch_sw_breakpoint_from_kind (struct gdbarch
*gdbarch
, int kind
, int *size
)
2882 gdb_assert (gdbarch
!= NULL
);
2883 gdb_assert (gdbarch
->sw_breakpoint_from_kind
!= NULL
);
2884 if (gdbarch_debug
>= 2)
2885 gdb_printf (gdb_stdlog
, "gdbarch_sw_breakpoint_from_kind called\n");
2886 return gdbarch
->sw_breakpoint_from_kind (gdbarch
, kind
, size
);
2890 set_gdbarch_sw_breakpoint_from_kind (struct gdbarch
*gdbarch
,
2891 gdbarch_sw_breakpoint_from_kind_ftype sw_breakpoint_from_kind
)
2893 gdbarch
->sw_breakpoint_from_kind
= sw_breakpoint_from_kind
;
2897 gdbarch_breakpoint_kind_from_current_state (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR
*pcptr
)
2899 gdb_assert (gdbarch
!= NULL
);
2900 gdb_assert (gdbarch
->breakpoint_kind_from_current_state
!= NULL
);
2901 if (gdbarch_debug
>= 2)
2902 gdb_printf (gdb_stdlog
, "gdbarch_breakpoint_kind_from_current_state called\n");
2903 return gdbarch
->breakpoint_kind_from_current_state (gdbarch
, regcache
, pcptr
);
2907 set_gdbarch_breakpoint_kind_from_current_state (struct gdbarch
*gdbarch
,
2908 gdbarch_breakpoint_kind_from_current_state_ftype breakpoint_kind_from_current_state
)
2910 gdbarch
->breakpoint_kind_from_current_state
= breakpoint_kind_from_current_state
;
2914 gdbarch_adjust_breakpoint_address_p (struct gdbarch
*gdbarch
)
2916 gdb_assert (gdbarch
!= NULL
);
2917 return gdbarch
->adjust_breakpoint_address
!= NULL
;
2921 gdbarch_adjust_breakpoint_address (struct gdbarch
*gdbarch
, CORE_ADDR bpaddr
)
2923 gdb_assert (gdbarch
!= NULL
);
2924 gdb_assert (gdbarch
->adjust_breakpoint_address
!= NULL
);
2925 if (gdbarch_debug
>= 2)
2926 gdb_printf (gdb_stdlog
, "gdbarch_adjust_breakpoint_address called\n");
2927 return gdbarch
->adjust_breakpoint_address (gdbarch
, bpaddr
);
2931 set_gdbarch_adjust_breakpoint_address (struct gdbarch
*gdbarch
,
2932 gdbarch_adjust_breakpoint_address_ftype adjust_breakpoint_address
)
2934 gdbarch
->adjust_breakpoint_address
= adjust_breakpoint_address
;
2938 gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
, struct bp_target_info
*bp_tgt
)
2940 gdb_assert (gdbarch
!= NULL
);
2941 gdb_assert (gdbarch
->memory_insert_breakpoint
!= NULL
);
2942 if (gdbarch_debug
>= 2)
2943 gdb_printf (gdb_stdlog
, "gdbarch_memory_insert_breakpoint called\n");
2944 return gdbarch
->memory_insert_breakpoint (gdbarch
, bp_tgt
);
2948 set_gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
,
2949 gdbarch_memory_insert_breakpoint_ftype memory_insert_breakpoint
)
2951 gdbarch
->memory_insert_breakpoint
= memory_insert_breakpoint
;
2955 gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
, struct bp_target_info
*bp_tgt
)
2957 gdb_assert (gdbarch
!= NULL
);
2958 gdb_assert (gdbarch
->memory_remove_breakpoint
!= NULL
);
2959 if (gdbarch_debug
>= 2)
2960 gdb_printf (gdb_stdlog
, "gdbarch_memory_remove_breakpoint called\n");
2961 return gdbarch
->memory_remove_breakpoint (gdbarch
, bp_tgt
);
2965 set_gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
,
2966 gdbarch_memory_remove_breakpoint_ftype memory_remove_breakpoint
)
2968 gdbarch
->memory_remove_breakpoint
= memory_remove_breakpoint
;
2972 gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
)
2974 gdb_assert (gdbarch
!= NULL
);
2975 /* Skip verify of decr_pc_after_break, invalid_p == 0. */
2976 if (gdbarch_debug
>= 2)
2977 gdb_printf (gdb_stdlog
, "gdbarch_decr_pc_after_break called\n");
2978 return gdbarch
->decr_pc_after_break
;
2982 set_gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
,
2983 CORE_ADDR decr_pc_after_break
)
2985 gdbarch
->decr_pc_after_break
= decr_pc_after_break
;
2989 gdbarch_deprecated_function_start_offset (struct gdbarch
*gdbarch
)
2991 gdb_assert (gdbarch
!= NULL
);
2992 /* Skip verify of deprecated_function_start_offset, invalid_p == 0. */
2993 if (gdbarch_debug
>= 2)
2994 gdb_printf (gdb_stdlog
, "gdbarch_deprecated_function_start_offset called\n");
2995 return gdbarch
->deprecated_function_start_offset
;
2999 set_gdbarch_deprecated_function_start_offset (struct gdbarch
*gdbarch
,
3000 CORE_ADDR deprecated_function_start_offset
)
3002 gdbarch
->deprecated_function_start_offset
= deprecated_function_start_offset
;
3006 gdbarch_remote_register_number (struct gdbarch
*gdbarch
, int regno
)
3008 gdb_assert (gdbarch
!= NULL
);
3009 gdb_assert (gdbarch
->remote_register_number
!= NULL
);
3010 if (gdbarch_debug
>= 2)
3011 gdb_printf (gdb_stdlog
, "gdbarch_remote_register_number called\n");
3012 return gdbarch
->remote_register_number (gdbarch
, regno
);
3016 set_gdbarch_remote_register_number (struct gdbarch
*gdbarch
,
3017 gdbarch_remote_register_number_ftype remote_register_number
)
3019 gdbarch
->remote_register_number
= remote_register_number
;
3023 gdbarch_fetch_tls_load_module_address_p (struct gdbarch
*gdbarch
)
3025 gdb_assert (gdbarch
!= NULL
);
3026 return gdbarch
->fetch_tls_load_module_address
!= NULL
;
3030 gdbarch_fetch_tls_load_module_address (struct gdbarch
*gdbarch
, struct objfile
*objfile
)
3032 gdb_assert (gdbarch
!= NULL
);
3033 gdb_assert (gdbarch
->fetch_tls_load_module_address
!= NULL
);
3034 if (gdbarch_debug
>= 2)
3035 gdb_printf (gdb_stdlog
, "gdbarch_fetch_tls_load_module_address called\n");
3036 return gdbarch
->fetch_tls_load_module_address (objfile
);
3040 set_gdbarch_fetch_tls_load_module_address (struct gdbarch
*gdbarch
,
3041 gdbarch_fetch_tls_load_module_address_ftype fetch_tls_load_module_address
)
3043 gdbarch
->fetch_tls_load_module_address
= fetch_tls_load_module_address
;
3047 gdbarch_get_thread_local_address_p (struct gdbarch
*gdbarch
)
3049 gdb_assert (gdbarch
!= NULL
);
3050 return gdbarch
->get_thread_local_address
!= NULL
;
3054 gdbarch_get_thread_local_address (struct gdbarch
*gdbarch
, ptid_t ptid
, CORE_ADDR lm_addr
, CORE_ADDR offset
)
3056 gdb_assert (gdbarch
!= NULL
);
3057 gdb_assert (gdbarch
->get_thread_local_address
!= NULL
);
3058 if (gdbarch_debug
>= 2)
3059 gdb_printf (gdb_stdlog
, "gdbarch_get_thread_local_address called\n");
3060 return gdbarch
->get_thread_local_address (gdbarch
, ptid
, lm_addr
, offset
);
3064 set_gdbarch_get_thread_local_address (struct gdbarch
*gdbarch
,
3065 gdbarch_get_thread_local_address_ftype get_thread_local_address
)
3067 gdbarch
->get_thread_local_address
= get_thread_local_address
;
3071 gdbarch_frame_args_skip (struct gdbarch
*gdbarch
)
3073 gdb_assert (gdbarch
!= NULL
);
3074 /* Skip verify of frame_args_skip, invalid_p == 0. */
3075 if (gdbarch_debug
>= 2)
3076 gdb_printf (gdb_stdlog
, "gdbarch_frame_args_skip called\n");
3077 return gdbarch
->frame_args_skip
;
3081 set_gdbarch_frame_args_skip (struct gdbarch
*gdbarch
,
3082 CORE_ADDR frame_args_skip
)
3084 gdbarch
->frame_args_skip
= frame_args_skip
;
3088 gdbarch_unwind_pc (struct gdbarch
*gdbarch
, const frame_info_ptr
&next_frame
)
3090 gdb_assert (gdbarch
!= NULL
);
3091 gdb_assert (gdbarch
->unwind_pc
!= NULL
);
3092 if (gdbarch_debug
>= 2)
3093 gdb_printf (gdb_stdlog
, "gdbarch_unwind_pc called\n");
3094 return gdbarch
->unwind_pc (gdbarch
, next_frame
);
3098 set_gdbarch_unwind_pc (struct gdbarch
*gdbarch
,
3099 gdbarch_unwind_pc_ftype unwind_pc
)
3101 gdbarch
->unwind_pc
= unwind_pc
;
3105 gdbarch_unwind_sp (struct gdbarch
*gdbarch
, const frame_info_ptr
&next_frame
)
3107 gdb_assert (gdbarch
!= NULL
);
3108 gdb_assert (gdbarch
->unwind_sp
!= NULL
);
3109 if (gdbarch_debug
>= 2)
3110 gdb_printf (gdb_stdlog
, "gdbarch_unwind_sp called\n");
3111 return gdbarch
->unwind_sp (gdbarch
, next_frame
);
3115 set_gdbarch_unwind_sp (struct gdbarch
*gdbarch
,
3116 gdbarch_unwind_sp_ftype unwind_sp
)
3118 gdbarch
->unwind_sp
= unwind_sp
;
3122 gdbarch_frame_num_args_p (struct gdbarch
*gdbarch
)
3124 gdb_assert (gdbarch
!= NULL
);
3125 return gdbarch
->frame_num_args
!= NULL
;
3129 gdbarch_frame_num_args (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
)
3131 gdb_assert (gdbarch
!= NULL
);
3132 gdb_assert (gdbarch
->frame_num_args
!= NULL
);
3133 if (gdbarch_debug
>= 2)
3134 gdb_printf (gdb_stdlog
, "gdbarch_frame_num_args called\n");
3135 return gdbarch
->frame_num_args (frame
);
3139 set_gdbarch_frame_num_args (struct gdbarch
*gdbarch
,
3140 gdbarch_frame_num_args_ftype frame_num_args
)
3142 gdbarch
->frame_num_args
= frame_num_args
;
3146 gdbarch_frame_align_p (struct gdbarch
*gdbarch
)
3148 gdb_assert (gdbarch
!= NULL
);
3149 return gdbarch
->frame_align
!= NULL
;
3153 gdbarch_frame_align (struct gdbarch
*gdbarch
, CORE_ADDR address
)
3155 gdb_assert (gdbarch
!= NULL
);
3156 gdb_assert (gdbarch
->frame_align
!= NULL
);
3157 if (gdbarch_debug
>= 2)
3158 gdb_printf (gdb_stdlog
, "gdbarch_frame_align called\n");
3159 return gdbarch
->frame_align (gdbarch
, address
);
3163 set_gdbarch_frame_align (struct gdbarch
*gdbarch
,
3164 gdbarch_frame_align_ftype frame_align
)
3166 gdbarch
->frame_align
= frame_align
;
3170 gdbarch_stabs_argument_has_addr (struct gdbarch
*gdbarch
, struct type
*type
)
3172 gdb_assert (gdbarch
!= NULL
);
3173 gdb_assert (gdbarch
->stabs_argument_has_addr
!= NULL
);
3174 if (gdbarch_debug
>= 2)
3175 gdb_printf (gdb_stdlog
, "gdbarch_stabs_argument_has_addr called\n");
3176 return gdbarch
->stabs_argument_has_addr (gdbarch
, type
);
3180 set_gdbarch_stabs_argument_has_addr (struct gdbarch
*gdbarch
,
3181 gdbarch_stabs_argument_has_addr_ftype stabs_argument_has_addr
)
3183 gdbarch
->stabs_argument_has_addr
= stabs_argument_has_addr
;
3187 gdbarch_frame_red_zone_size (struct gdbarch
*gdbarch
)
3189 gdb_assert (gdbarch
!= NULL
);
3190 /* Skip verify of frame_red_zone_size, invalid_p == 0. */
3191 if (gdbarch_debug
>= 2)
3192 gdb_printf (gdb_stdlog
, "gdbarch_frame_red_zone_size called\n");
3193 return gdbarch
->frame_red_zone_size
;
3197 set_gdbarch_frame_red_zone_size (struct gdbarch
*gdbarch
,
3198 int frame_red_zone_size
)
3200 gdbarch
->frame_red_zone_size
= frame_red_zone_size
;
3204 gdbarch_convert_from_func_ptr_addr (struct gdbarch
*gdbarch
, CORE_ADDR addr
, struct target_ops
*targ
)
3206 gdb_assert (gdbarch
!= NULL
);
3207 gdb_assert (gdbarch
->convert_from_func_ptr_addr
!= NULL
);
3208 if (gdbarch_debug
>= 2)
3209 gdb_printf (gdb_stdlog
, "gdbarch_convert_from_func_ptr_addr called\n");
3210 return gdbarch
->convert_from_func_ptr_addr (gdbarch
, addr
, targ
);
3214 set_gdbarch_convert_from_func_ptr_addr (struct gdbarch
*gdbarch
,
3215 gdbarch_convert_from_func_ptr_addr_ftype convert_from_func_ptr_addr
)
3217 gdbarch
->convert_from_func_ptr_addr
= convert_from_func_ptr_addr
;
3221 gdbarch_addr_bits_remove (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
3223 gdb_assert (gdbarch
!= NULL
);
3224 gdb_assert (gdbarch
->addr_bits_remove
!= NULL
);
3225 if (gdbarch_debug
>= 2)
3226 gdb_printf (gdb_stdlog
, "gdbarch_addr_bits_remove called\n");
3227 return gdbarch
->addr_bits_remove (gdbarch
, addr
);
3231 set_gdbarch_addr_bits_remove (struct gdbarch
*gdbarch
,
3232 gdbarch_addr_bits_remove_ftype addr_bits_remove
)
3234 gdbarch
->addr_bits_remove
= addr_bits_remove
;
3238 gdbarch_remove_non_address_bits_watchpoint (struct gdbarch
*gdbarch
, CORE_ADDR pointer
)
3240 gdb_assert (gdbarch
!= NULL
);
3241 gdb_assert (gdbarch
->remove_non_address_bits_watchpoint
!= NULL
);
3242 if (gdbarch_debug
>= 2)
3243 gdb_printf (gdb_stdlog
, "gdbarch_remove_non_address_bits_watchpoint called\n");
3244 return gdbarch
->remove_non_address_bits_watchpoint (gdbarch
, pointer
);
3248 set_gdbarch_remove_non_address_bits_watchpoint (struct gdbarch
*gdbarch
,
3249 gdbarch_remove_non_address_bits_watchpoint_ftype remove_non_address_bits_watchpoint
)
3251 gdbarch
->remove_non_address_bits_watchpoint
= remove_non_address_bits_watchpoint
;
3255 gdbarch_remove_non_address_bits_breakpoint (struct gdbarch
*gdbarch
, CORE_ADDR pointer
)
3257 gdb_assert (gdbarch
!= NULL
);
3258 gdb_assert (gdbarch
->remove_non_address_bits_breakpoint
!= NULL
);
3259 if (gdbarch_debug
>= 2)
3260 gdb_printf (gdb_stdlog
, "gdbarch_remove_non_address_bits_breakpoint called\n");
3261 return gdbarch
->remove_non_address_bits_breakpoint (gdbarch
, pointer
);
3265 set_gdbarch_remove_non_address_bits_breakpoint (struct gdbarch
*gdbarch
,
3266 gdbarch_remove_non_address_bits_breakpoint_ftype remove_non_address_bits_breakpoint
)
3268 gdbarch
->remove_non_address_bits_breakpoint
= remove_non_address_bits_breakpoint
;
3272 gdbarch_remove_non_address_bits_memory (struct gdbarch
*gdbarch
, CORE_ADDR pointer
)
3274 gdb_assert (gdbarch
!= NULL
);
3275 gdb_assert (gdbarch
->remove_non_address_bits_memory
!= NULL
);
3276 if (gdbarch_debug
>= 2)
3277 gdb_printf (gdb_stdlog
, "gdbarch_remove_non_address_bits_memory called\n");
3278 return gdbarch
->remove_non_address_bits_memory (gdbarch
, pointer
);
3282 set_gdbarch_remove_non_address_bits_memory (struct gdbarch
*gdbarch
,
3283 gdbarch_remove_non_address_bits_memory_ftype remove_non_address_bits_memory
)
3285 gdbarch
->remove_non_address_bits_memory
= remove_non_address_bits_memory
;
3289 gdbarch_memtag_to_string (struct gdbarch
*gdbarch
, struct value
*tag
)
3291 gdb_assert (gdbarch
!= NULL
);
3292 gdb_assert (gdbarch
->memtag_to_string
!= NULL
);
3293 if (gdbarch_debug
>= 2)
3294 gdb_printf (gdb_stdlog
, "gdbarch_memtag_to_string called\n");
3295 return gdbarch
->memtag_to_string (gdbarch
, tag
);
3299 set_gdbarch_memtag_to_string (struct gdbarch
*gdbarch
,
3300 gdbarch_memtag_to_string_ftype memtag_to_string
)
3302 gdbarch
->memtag_to_string
= memtag_to_string
;
3306 gdbarch_tagged_address_p (struct gdbarch
*gdbarch
, CORE_ADDR address
)
3308 gdb_assert (gdbarch
!= NULL
);
3309 gdb_assert (gdbarch
->tagged_address_p
!= NULL
);
3310 if (gdbarch_debug
>= 2)
3311 gdb_printf (gdb_stdlog
, "gdbarch_tagged_address_p called\n");
3312 return gdbarch
->tagged_address_p (gdbarch
, address
);
3316 set_gdbarch_tagged_address_p (struct gdbarch
*gdbarch
,
3317 gdbarch_tagged_address_p_ftype tagged_address_p
)
3319 gdbarch
->tagged_address_p
= tagged_address_p
;
3323 gdbarch_memtag_matches_p (struct gdbarch
*gdbarch
, struct value
*address
)
3325 gdb_assert (gdbarch
!= NULL
);
3326 gdb_assert (gdbarch
->memtag_matches_p
!= NULL
);
3327 if (gdbarch_debug
>= 2)
3328 gdb_printf (gdb_stdlog
, "gdbarch_memtag_matches_p called\n");
3329 return gdbarch
->memtag_matches_p (gdbarch
, address
);
3333 set_gdbarch_memtag_matches_p (struct gdbarch
*gdbarch
,
3334 gdbarch_memtag_matches_p_ftype memtag_matches_p
)
3336 gdbarch
->memtag_matches_p
= memtag_matches_p
;
3340 gdbarch_set_memtags (struct gdbarch
*gdbarch
, struct value
*address
, size_t length
, const gdb::byte_vector
&tags
, memtag_type tag_type
)
3342 gdb_assert (gdbarch
!= NULL
);
3343 gdb_assert (gdbarch
->set_memtags
!= NULL
);
3344 if (gdbarch_debug
>= 2)
3345 gdb_printf (gdb_stdlog
, "gdbarch_set_memtags called\n");
3346 return gdbarch
->set_memtags (gdbarch
, address
, length
, tags
, tag_type
);
3350 set_gdbarch_set_memtags (struct gdbarch
*gdbarch
,
3351 gdbarch_set_memtags_ftype set_memtags
)
3353 gdbarch
->set_memtags
= set_memtags
;
3357 gdbarch_get_memtag (struct gdbarch
*gdbarch
, struct value
*address
, memtag_type tag_type
)
3359 gdb_assert (gdbarch
!= NULL
);
3360 gdb_assert (gdbarch
->get_memtag
!= NULL
);
3361 if (gdbarch_debug
>= 2)
3362 gdb_printf (gdb_stdlog
, "gdbarch_get_memtag called\n");
3363 return gdbarch
->get_memtag (gdbarch
, address
, tag_type
);
3367 set_gdbarch_get_memtag (struct gdbarch
*gdbarch
,
3368 gdbarch_get_memtag_ftype get_memtag
)
3370 gdbarch
->get_memtag
= get_memtag
;
3374 gdbarch_memtag_granule_size (struct gdbarch
*gdbarch
)
3376 gdb_assert (gdbarch
!= NULL
);
3377 /* Skip verify of memtag_granule_size, invalid_p == 0. */
3378 if (gdbarch_debug
>= 2)
3379 gdb_printf (gdb_stdlog
, "gdbarch_memtag_granule_size called\n");
3380 return gdbarch
->memtag_granule_size
;
3384 set_gdbarch_memtag_granule_size (struct gdbarch
*gdbarch
,
3385 CORE_ADDR memtag_granule_size
)
3387 gdbarch
->memtag_granule_size
= memtag_granule_size
;
3391 gdbarch_software_single_step_p (struct gdbarch
*gdbarch
)
3393 gdb_assert (gdbarch
!= NULL
);
3394 return gdbarch
->software_single_step
!= NULL
;
3397 std::vector
<CORE_ADDR
>
3398 gdbarch_software_single_step (struct gdbarch
*gdbarch
, struct regcache
*regcache
)
3400 gdb_assert (gdbarch
!= NULL
);
3401 gdb_assert (gdbarch
->software_single_step
!= NULL
);
3402 if (gdbarch_debug
>= 2)
3403 gdb_printf (gdb_stdlog
, "gdbarch_software_single_step called\n");
3404 return gdbarch
->software_single_step (regcache
);
3408 set_gdbarch_software_single_step (struct gdbarch
*gdbarch
,
3409 gdbarch_software_single_step_ftype software_single_step
)
3411 gdbarch
->software_single_step
= software_single_step
;
3415 gdbarch_single_step_through_delay_p (struct gdbarch
*gdbarch
)
3417 gdb_assert (gdbarch
!= NULL
);
3418 return gdbarch
->single_step_through_delay
!= NULL
;
3422 gdbarch_single_step_through_delay (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
)
3424 gdb_assert (gdbarch
!= NULL
);
3425 gdb_assert (gdbarch
->single_step_through_delay
!= NULL
);
3426 if (gdbarch_debug
>= 2)
3427 gdb_printf (gdb_stdlog
, "gdbarch_single_step_through_delay called\n");
3428 return gdbarch
->single_step_through_delay (gdbarch
, frame
);
3432 set_gdbarch_single_step_through_delay (struct gdbarch
*gdbarch
,
3433 gdbarch_single_step_through_delay_ftype single_step_through_delay
)
3435 gdbarch
->single_step_through_delay
= single_step_through_delay
;
3439 gdbarch_print_insn (struct gdbarch
*gdbarch
, bfd_vma vma
, struct disassemble_info
*info
)
3441 gdb_assert (gdbarch
!= NULL
);
3442 gdb_assert (gdbarch
->print_insn
!= NULL
);
3443 if (gdbarch_debug
>= 2)
3444 gdb_printf (gdb_stdlog
, "gdbarch_print_insn called\n");
3445 return gdbarch
->print_insn (vma
, info
);
3449 set_gdbarch_print_insn (struct gdbarch
*gdbarch
,
3450 gdbarch_print_insn_ftype print_insn
)
3452 gdbarch
->print_insn
= print_insn
;
3456 gdbarch_skip_trampoline_code (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
, CORE_ADDR pc
)
3458 gdb_assert (gdbarch
!= NULL
);
3459 gdb_assert (gdbarch
->skip_trampoline_code
!= NULL
);
3460 if (gdbarch_debug
>= 2)
3461 gdb_printf (gdb_stdlog
, "gdbarch_skip_trampoline_code called\n");
3462 return gdbarch
->skip_trampoline_code (frame
, pc
);
3466 set_gdbarch_skip_trampoline_code (struct gdbarch
*gdbarch
,
3467 gdbarch_skip_trampoline_code_ftype skip_trampoline_code
)
3469 gdbarch
->skip_trampoline_code
= skip_trampoline_code
;
3473 gdbarch_so_ops (struct gdbarch
*gdbarch
)
3475 gdb_assert (gdbarch
!= NULL
);
3476 /* Skip verify of so_ops, invalid_p == 0. */
3477 if (gdbarch_debug
>= 2)
3478 gdb_printf (gdb_stdlog
, "gdbarch_so_ops called\n");
3479 return gdbarch
->so_ops
;
3483 set_gdbarch_so_ops (struct gdbarch
*gdbarch
,
3484 const solib_ops
* so_ops
)
3486 gdbarch
->so_ops
= so_ops
;
3490 gdbarch_skip_solib_resolver (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3492 gdb_assert (gdbarch
!= NULL
);
3493 gdb_assert (gdbarch
->skip_solib_resolver
!= NULL
);
3494 if (gdbarch_debug
>= 2)
3495 gdb_printf (gdb_stdlog
, "gdbarch_skip_solib_resolver called\n");
3496 return gdbarch
->skip_solib_resolver (gdbarch
, pc
);
3500 set_gdbarch_skip_solib_resolver (struct gdbarch
*gdbarch
,
3501 gdbarch_skip_solib_resolver_ftype skip_solib_resolver
)
3503 gdbarch
->skip_solib_resolver
= skip_solib_resolver
;
3507 gdbarch_in_solib_return_trampoline (struct gdbarch
*gdbarch
, CORE_ADDR pc
, const char *name
)
3509 gdb_assert (gdbarch
!= NULL
);
3510 gdb_assert (gdbarch
->in_solib_return_trampoline
!= NULL
);
3511 if (gdbarch_debug
>= 2)
3512 gdb_printf (gdb_stdlog
, "gdbarch_in_solib_return_trampoline called\n");
3513 return gdbarch
->in_solib_return_trampoline (gdbarch
, pc
, name
);
3517 set_gdbarch_in_solib_return_trampoline (struct gdbarch
*gdbarch
,
3518 gdbarch_in_solib_return_trampoline_ftype in_solib_return_trampoline
)
3520 gdbarch
->in_solib_return_trampoline
= in_solib_return_trampoline
;
3524 gdbarch_in_indirect_branch_thunk (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3526 gdb_assert (gdbarch
!= NULL
);
3527 gdb_assert (gdbarch
->in_indirect_branch_thunk
!= NULL
);
3528 if (gdbarch_debug
>= 2)
3529 gdb_printf (gdb_stdlog
, "gdbarch_in_indirect_branch_thunk called\n");
3530 return gdbarch
->in_indirect_branch_thunk (gdbarch
, pc
);
3534 set_gdbarch_in_indirect_branch_thunk (struct gdbarch
*gdbarch
,
3535 gdbarch_in_indirect_branch_thunk_ftype in_indirect_branch_thunk
)
3537 gdbarch
->in_indirect_branch_thunk
= in_indirect_branch_thunk
;
3541 gdbarch_stack_frame_destroyed_p (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
3543 gdb_assert (gdbarch
!= NULL
);
3544 gdb_assert (gdbarch
->stack_frame_destroyed_p
!= NULL
);
3545 if (gdbarch_debug
>= 2)
3546 gdb_printf (gdb_stdlog
, "gdbarch_stack_frame_destroyed_p called\n");
3547 return gdbarch
->stack_frame_destroyed_p (gdbarch
, addr
);
3551 set_gdbarch_stack_frame_destroyed_p (struct gdbarch
*gdbarch
,
3552 gdbarch_stack_frame_destroyed_p_ftype stack_frame_destroyed_p
)
3554 gdbarch
->stack_frame_destroyed_p
= stack_frame_destroyed_p
;
3558 gdbarch_elf_make_msymbol_special_p (struct gdbarch
*gdbarch
)
3560 gdb_assert (gdbarch
!= NULL
);
3561 return gdbarch
->elf_make_msymbol_special
!= NULL
;
3565 gdbarch_elf_make_msymbol_special (struct gdbarch
*gdbarch
, asymbol
*sym
, struct minimal_symbol
*msym
)
3567 gdb_assert (gdbarch
!= NULL
);
3568 gdb_assert (gdbarch
->elf_make_msymbol_special
!= NULL
);
3569 if (gdbarch_debug
>= 2)
3570 gdb_printf (gdb_stdlog
, "gdbarch_elf_make_msymbol_special called\n");
3571 gdbarch
->elf_make_msymbol_special (sym
, msym
);
3575 set_gdbarch_elf_make_msymbol_special (struct gdbarch
*gdbarch
,
3576 gdbarch_elf_make_msymbol_special_ftype elf_make_msymbol_special
)
3578 gdbarch
->elf_make_msymbol_special
= elf_make_msymbol_special
;
3582 gdbarch_coff_make_msymbol_special (struct gdbarch
*gdbarch
, int val
, struct minimal_symbol
*msym
)
3584 gdb_assert (gdbarch
!= NULL
);
3585 gdb_assert (gdbarch
->coff_make_msymbol_special
!= NULL
);
3586 if (gdbarch_debug
>= 2)
3587 gdb_printf (gdb_stdlog
, "gdbarch_coff_make_msymbol_special called\n");
3588 gdbarch
->coff_make_msymbol_special (val
, msym
);
3592 set_gdbarch_coff_make_msymbol_special (struct gdbarch
*gdbarch
,
3593 gdbarch_coff_make_msymbol_special_ftype coff_make_msymbol_special
)
3595 gdbarch
->coff_make_msymbol_special
= coff_make_msymbol_special
;
3599 gdbarch_make_symbol_special (struct gdbarch
*gdbarch
, struct symbol
*sym
, struct objfile
*objfile
)
3601 gdb_assert (gdbarch
!= NULL
);
3602 gdb_assert (gdbarch
->make_symbol_special
!= NULL
);
3603 if (gdbarch_debug
>= 2)
3604 gdb_printf (gdb_stdlog
, "gdbarch_make_symbol_special called\n");
3605 gdbarch
->make_symbol_special (sym
, objfile
);
3609 set_gdbarch_make_symbol_special (struct gdbarch
*gdbarch
,
3610 gdbarch_make_symbol_special_ftype make_symbol_special
)
3612 gdbarch
->make_symbol_special
= make_symbol_special
;
3616 gdbarch_adjust_dwarf2_addr (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
3618 gdb_assert (gdbarch
!= NULL
);
3619 gdb_assert (gdbarch
->adjust_dwarf2_addr
!= NULL
);
3620 if (gdbarch_debug
>= 2)
3621 gdb_printf (gdb_stdlog
, "gdbarch_adjust_dwarf2_addr called\n");
3622 return gdbarch
->adjust_dwarf2_addr (pc
);
3626 set_gdbarch_adjust_dwarf2_addr (struct gdbarch
*gdbarch
,
3627 gdbarch_adjust_dwarf2_addr_ftype adjust_dwarf2_addr
)
3629 gdbarch
->adjust_dwarf2_addr
= adjust_dwarf2_addr
;
3633 gdbarch_adjust_dwarf2_line (struct gdbarch
*gdbarch
, CORE_ADDR addr
, int rel
)
3635 gdb_assert (gdbarch
!= NULL
);
3636 gdb_assert (gdbarch
->adjust_dwarf2_line
!= NULL
);
3637 if (gdbarch_debug
>= 2)
3638 gdb_printf (gdb_stdlog
, "gdbarch_adjust_dwarf2_line called\n");
3639 return gdbarch
->adjust_dwarf2_line (addr
, rel
);
3643 set_gdbarch_adjust_dwarf2_line (struct gdbarch
*gdbarch
,
3644 gdbarch_adjust_dwarf2_line_ftype adjust_dwarf2_line
)
3646 gdbarch
->adjust_dwarf2_line
= adjust_dwarf2_line
;
3650 gdbarch_cannot_step_breakpoint (struct gdbarch
*gdbarch
)
3652 gdb_assert (gdbarch
!= NULL
);
3653 /* Skip verify of cannot_step_breakpoint, invalid_p == 0. */
3654 if (gdbarch_debug
>= 2)
3655 gdb_printf (gdb_stdlog
, "gdbarch_cannot_step_breakpoint called\n");
3656 return gdbarch
->cannot_step_breakpoint
;
3660 set_gdbarch_cannot_step_breakpoint (struct gdbarch
*gdbarch
,
3661 int cannot_step_breakpoint
)
3663 gdbarch
->cannot_step_breakpoint
= cannot_step_breakpoint
;
3667 gdbarch_have_nonsteppable_watchpoint (struct gdbarch
*gdbarch
)
3669 gdb_assert (gdbarch
!= NULL
);
3670 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0. */
3671 if (gdbarch_debug
>= 2)
3672 gdb_printf (gdb_stdlog
, "gdbarch_have_nonsteppable_watchpoint called\n");
3673 return gdbarch
->have_nonsteppable_watchpoint
;
3677 set_gdbarch_have_nonsteppable_watchpoint (struct gdbarch
*gdbarch
,
3678 int have_nonsteppable_watchpoint
)
3680 gdbarch
->have_nonsteppable_watchpoint
= have_nonsteppable_watchpoint
;
3684 gdbarch_address_class_type_flags_p (struct gdbarch
*gdbarch
)
3686 gdb_assert (gdbarch
!= NULL
);
3687 return gdbarch
->address_class_type_flags
!= NULL
;
3691 gdbarch_address_class_type_flags (struct gdbarch
*gdbarch
, int byte_size
, int dwarf2_addr_class
)
3693 gdb_assert (gdbarch
!= NULL
);
3694 gdb_assert (gdbarch
->address_class_type_flags
!= NULL
);
3695 if (gdbarch_debug
>= 2)
3696 gdb_printf (gdb_stdlog
, "gdbarch_address_class_type_flags called\n");
3697 return gdbarch
->address_class_type_flags (byte_size
, dwarf2_addr_class
);
3701 set_gdbarch_address_class_type_flags (struct gdbarch
*gdbarch
,
3702 gdbarch_address_class_type_flags_ftype address_class_type_flags
)
3704 gdbarch
->address_class_type_flags
= address_class_type_flags
;
3708 gdbarch_address_class_type_flags_to_name_p (struct gdbarch
*gdbarch
)
3710 gdb_assert (gdbarch
!= NULL
);
3711 return gdbarch
->address_class_type_flags_to_name
!= NULL
;
3715 gdbarch_address_class_type_flags_to_name (struct gdbarch
*gdbarch
, type_instance_flags type_flags
)
3717 gdb_assert (gdbarch
!= NULL
);
3718 gdb_assert (gdbarch
->address_class_type_flags_to_name
!= NULL
);
3719 if (gdbarch_debug
>= 2)
3720 gdb_printf (gdb_stdlog
, "gdbarch_address_class_type_flags_to_name called\n");
3721 return gdbarch
->address_class_type_flags_to_name (gdbarch
, type_flags
);
3725 set_gdbarch_address_class_type_flags_to_name (struct gdbarch
*gdbarch
,
3726 gdbarch_address_class_type_flags_to_name_ftype address_class_type_flags_to_name
)
3728 gdbarch
->address_class_type_flags_to_name
= address_class_type_flags_to_name
;
3732 gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch
*gdbarch
, gdb_byte op
, struct dwarf2_frame_state
*fs
)
3734 gdb_assert (gdbarch
!= NULL
);
3735 gdb_assert (gdbarch
->execute_dwarf_cfa_vendor_op
!= NULL
);
3736 if (gdbarch_debug
>= 2)
3737 gdb_printf (gdb_stdlog
, "gdbarch_execute_dwarf_cfa_vendor_op called\n");
3738 return gdbarch
->execute_dwarf_cfa_vendor_op (gdbarch
, op
, fs
);
3742 set_gdbarch_execute_dwarf_cfa_vendor_op (struct gdbarch
*gdbarch
,
3743 gdbarch_execute_dwarf_cfa_vendor_op_ftype execute_dwarf_cfa_vendor_op
)
3745 gdbarch
->execute_dwarf_cfa_vendor_op
= execute_dwarf_cfa_vendor_op
;
3749 gdbarch_address_class_name_to_type_flags_p (struct gdbarch
*gdbarch
)
3751 gdb_assert (gdbarch
!= NULL
);
3752 return gdbarch
->address_class_name_to_type_flags
!= NULL
;
3756 gdbarch_address_class_name_to_type_flags (struct gdbarch
*gdbarch
, const char *name
, type_instance_flags
*type_flags_ptr
)
3758 gdb_assert (gdbarch
!= NULL
);
3759 gdb_assert (gdbarch
->address_class_name_to_type_flags
!= NULL
);
3760 if (gdbarch_debug
>= 2)
3761 gdb_printf (gdb_stdlog
, "gdbarch_address_class_name_to_type_flags called\n");
3762 return gdbarch
->address_class_name_to_type_flags (gdbarch
, name
, type_flags_ptr
);
3766 set_gdbarch_address_class_name_to_type_flags (struct gdbarch
*gdbarch
,
3767 gdbarch_address_class_name_to_type_flags_ftype address_class_name_to_type_flags
)
3769 gdbarch
->address_class_name_to_type_flags
= address_class_name_to_type_flags
;
3773 gdbarch_register_reggroup_p (struct gdbarch
*gdbarch
, int regnum
, const struct reggroup
*reggroup
)
3775 gdb_assert (gdbarch
!= NULL
);
3776 gdb_assert (gdbarch
->register_reggroup_p
!= NULL
);
3777 if (gdbarch_debug
>= 2)
3778 gdb_printf (gdb_stdlog
, "gdbarch_register_reggroup_p called\n");
3779 return gdbarch
->register_reggroup_p (gdbarch
, regnum
, reggroup
);
3783 set_gdbarch_register_reggroup_p (struct gdbarch
*gdbarch
,
3784 gdbarch_register_reggroup_p_ftype register_reggroup_p
)
3786 gdbarch
->register_reggroup_p
= register_reggroup_p
;
3790 gdbarch_fetch_pointer_argument_p (struct gdbarch
*gdbarch
)
3792 gdb_assert (gdbarch
!= NULL
);
3793 return gdbarch
->fetch_pointer_argument
!= NULL
;
3797 gdbarch_fetch_pointer_argument (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
, int argi
, struct type
*type
)
3799 gdb_assert (gdbarch
!= NULL
);
3800 gdb_assert (gdbarch
->fetch_pointer_argument
!= NULL
);
3801 if (gdbarch_debug
>= 2)
3802 gdb_printf (gdb_stdlog
, "gdbarch_fetch_pointer_argument called\n");
3803 return gdbarch
->fetch_pointer_argument (frame
, argi
, type
);
3807 set_gdbarch_fetch_pointer_argument (struct gdbarch
*gdbarch
,
3808 gdbarch_fetch_pointer_argument_ftype fetch_pointer_argument
)
3810 gdbarch
->fetch_pointer_argument
= fetch_pointer_argument
;
3814 gdbarch_iterate_over_regset_sections_p (struct gdbarch
*gdbarch
)
3816 gdb_assert (gdbarch
!= NULL
);
3817 return gdbarch
->iterate_over_regset_sections
!= NULL
;
3821 gdbarch_iterate_over_regset_sections (struct gdbarch
*gdbarch
, iterate_over_regset_sections_cb
*cb
, void *cb_data
, const struct regcache
*regcache
)
3823 gdb_assert (gdbarch
!= NULL
);
3824 gdb_assert (gdbarch
->iterate_over_regset_sections
!= NULL
);
3825 if (gdbarch_debug
>= 2)
3826 gdb_printf (gdb_stdlog
, "gdbarch_iterate_over_regset_sections called\n");
3827 gdbarch
->iterate_over_regset_sections (gdbarch
, cb
, cb_data
, regcache
);
3831 set_gdbarch_iterate_over_regset_sections (struct gdbarch
*gdbarch
,
3832 gdbarch_iterate_over_regset_sections_ftype iterate_over_regset_sections
)
3834 gdbarch
->iterate_over_regset_sections
= iterate_over_regset_sections
;
3838 gdbarch_make_corefile_notes_p (struct gdbarch
*gdbarch
)
3840 gdb_assert (gdbarch
!= NULL
);
3841 return gdbarch
->make_corefile_notes
!= NULL
;
3844 gdb::unique_xmalloc_ptr
<char>
3845 gdbarch_make_corefile_notes (struct gdbarch
*gdbarch
, bfd
*obfd
, int *note_size
)
3847 gdb_assert (gdbarch
!= NULL
);
3848 gdb_assert (gdbarch
->make_corefile_notes
!= NULL
);
3849 if (gdbarch_debug
>= 2)
3850 gdb_printf (gdb_stdlog
, "gdbarch_make_corefile_notes called\n");
3851 return gdbarch
->make_corefile_notes (gdbarch
, obfd
, note_size
);
3855 set_gdbarch_make_corefile_notes (struct gdbarch
*gdbarch
,
3856 gdbarch_make_corefile_notes_ftype make_corefile_notes
)
3858 gdbarch
->make_corefile_notes
= make_corefile_notes
;
3862 gdbarch_find_memory_regions_p (struct gdbarch
*gdbarch
)
3864 gdb_assert (gdbarch
!= NULL
);
3865 return gdbarch
->find_memory_regions
!= NULL
;
3869 gdbarch_find_memory_regions (struct gdbarch
*gdbarch
, find_memory_region_ftype func
, void *data
)
3871 gdb_assert (gdbarch
!= NULL
);
3872 gdb_assert (gdbarch
->find_memory_regions
!= NULL
);
3873 if (gdbarch_debug
>= 2)
3874 gdb_printf (gdb_stdlog
, "gdbarch_find_memory_regions called\n");
3875 return gdbarch
->find_memory_regions (gdbarch
, func
, data
);
3879 set_gdbarch_find_memory_regions (struct gdbarch
*gdbarch
,
3880 gdbarch_find_memory_regions_ftype find_memory_regions
)
3882 gdbarch
->find_memory_regions
= find_memory_regions
;
3886 gdbarch_create_memtag_section_p (struct gdbarch
*gdbarch
)
3888 gdb_assert (gdbarch
!= NULL
);
3889 return gdbarch
->create_memtag_section
!= NULL
;
3893 gdbarch_create_memtag_section (struct gdbarch
*gdbarch
, bfd
*obfd
, CORE_ADDR address
, size_t size
)
3895 gdb_assert (gdbarch
!= NULL
);
3896 gdb_assert (gdbarch
->create_memtag_section
!= NULL
);
3897 if (gdbarch_debug
>= 2)
3898 gdb_printf (gdb_stdlog
, "gdbarch_create_memtag_section called\n");
3899 return gdbarch
->create_memtag_section (gdbarch
, obfd
, address
, size
);
3903 set_gdbarch_create_memtag_section (struct gdbarch
*gdbarch
,
3904 gdbarch_create_memtag_section_ftype create_memtag_section
)
3906 gdbarch
->create_memtag_section
= create_memtag_section
;
3910 gdbarch_fill_memtag_section_p (struct gdbarch
*gdbarch
)
3912 gdb_assert (gdbarch
!= NULL
);
3913 return gdbarch
->fill_memtag_section
!= NULL
;
3917 gdbarch_fill_memtag_section (struct gdbarch
*gdbarch
, asection
*osec
)
3919 gdb_assert (gdbarch
!= NULL
);
3920 gdb_assert (gdbarch
->fill_memtag_section
!= NULL
);
3921 if (gdbarch_debug
>= 2)
3922 gdb_printf (gdb_stdlog
, "gdbarch_fill_memtag_section called\n");
3923 return gdbarch
->fill_memtag_section (gdbarch
, osec
);
3927 set_gdbarch_fill_memtag_section (struct gdbarch
*gdbarch
,
3928 gdbarch_fill_memtag_section_ftype fill_memtag_section
)
3930 gdbarch
->fill_memtag_section
= fill_memtag_section
;
3934 gdbarch_decode_memtag_section_p (struct gdbarch
*gdbarch
)
3936 gdb_assert (gdbarch
!= NULL
);
3937 return gdbarch
->decode_memtag_section
!= NULL
;
3941 gdbarch_decode_memtag_section (struct gdbarch
*gdbarch
, bfd_section
*section
, int type
, CORE_ADDR address
, size_t length
)
3943 gdb_assert (gdbarch
!= NULL
);
3944 gdb_assert (gdbarch
->decode_memtag_section
!= NULL
);
3945 if (gdbarch_debug
>= 2)
3946 gdb_printf (gdb_stdlog
, "gdbarch_decode_memtag_section called\n");
3947 return gdbarch
->decode_memtag_section (gdbarch
, section
, type
, address
, length
);
3951 set_gdbarch_decode_memtag_section (struct gdbarch
*gdbarch
,
3952 gdbarch_decode_memtag_section_ftype decode_memtag_section
)
3954 gdbarch
->decode_memtag_section
= decode_memtag_section
;
3958 gdbarch_core_xfer_shared_libraries_p (struct gdbarch
*gdbarch
)
3960 gdb_assert (gdbarch
!= NULL
);
3961 return gdbarch
->core_xfer_shared_libraries
!= NULL
;
3965 gdbarch_core_xfer_shared_libraries (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
3967 gdb_assert (gdbarch
!= NULL
);
3968 gdb_assert (gdbarch
->core_xfer_shared_libraries
!= NULL
);
3969 if (gdbarch_debug
>= 2)
3970 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_shared_libraries called\n");
3971 return gdbarch
->core_xfer_shared_libraries (gdbarch
, readbuf
, offset
, len
);
3975 set_gdbarch_core_xfer_shared_libraries (struct gdbarch
*gdbarch
,
3976 gdbarch_core_xfer_shared_libraries_ftype core_xfer_shared_libraries
)
3978 gdbarch
->core_xfer_shared_libraries
= core_xfer_shared_libraries
;
3982 gdbarch_core_xfer_shared_libraries_aix_p (struct gdbarch
*gdbarch
)
3984 gdb_assert (gdbarch
!= NULL
);
3985 return gdbarch
->core_xfer_shared_libraries_aix
!= NULL
;
3989 gdbarch_core_xfer_shared_libraries_aix (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
3991 gdb_assert (gdbarch
!= NULL
);
3992 gdb_assert (gdbarch
->core_xfer_shared_libraries_aix
!= NULL
);
3993 if (gdbarch_debug
>= 2)
3994 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_shared_libraries_aix called\n");
3995 return gdbarch
->core_xfer_shared_libraries_aix (gdbarch
, readbuf
, offset
, len
);
3999 set_gdbarch_core_xfer_shared_libraries_aix (struct gdbarch
*gdbarch
,
4000 gdbarch_core_xfer_shared_libraries_aix_ftype core_xfer_shared_libraries_aix
)
4002 gdbarch
->core_xfer_shared_libraries_aix
= core_xfer_shared_libraries_aix
;
4006 gdbarch_core_pid_to_str_p (struct gdbarch
*gdbarch
)
4008 gdb_assert (gdbarch
!= NULL
);
4009 return gdbarch
->core_pid_to_str
!= NULL
;
4013 gdbarch_core_pid_to_str (struct gdbarch
*gdbarch
, ptid_t ptid
)
4015 gdb_assert (gdbarch
!= NULL
);
4016 gdb_assert (gdbarch
->core_pid_to_str
!= NULL
);
4017 if (gdbarch_debug
>= 2)
4018 gdb_printf (gdb_stdlog
, "gdbarch_core_pid_to_str called\n");
4019 return gdbarch
->core_pid_to_str (gdbarch
, ptid
);
4023 set_gdbarch_core_pid_to_str (struct gdbarch
*gdbarch
,
4024 gdbarch_core_pid_to_str_ftype core_pid_to_str
)
4026 gdbarch
->core_pid_to_str
= core_pid_to_str
;
4030 gdbarch_core_thread_name_p (struct gdbarch
*gdbarch
)
4032 gdb_assert (gdbarch
!= NULL
);
4033 return gdbarch
->core_thread_name
!= NULL
;
4037 gdbarch_core_thread_name (struct gdbarch
*gdbarch
, struct thread_info
*thr
)
4039 gdb_assert (gdbarch
!= NULL
);
4040 gdb_assert (gdbarch
->core_thread_name
!= NULL
);
4041 if (gdbarch_debug
>= 2)
4042 gdb_printf (gdb_stdlog
, "gdbarch_core_thread_name called\n");
4043 return gdbarch
->core_thread_name (gdbarch
, thr
);
4047 set_gdbarch_core_thread_name (struct gdbarch
*gdbarch
,
4048 gdbarch_core_thread_name_ftype core_thread_name
)
4050 gdbarch
->core_thread_name
= core_thread_name
;
4054 gdbarch_core_xfer_siginfo_p (struct gdbarch
*gdbarch
)
4056 gdb_assert (gdbarch
!= NULL
);
4057 return gdbarch
->core_xfer_siginfo
!= NULL
;
4061 gdbarch_core_xfer_siginfo (struct gdbarch
*gdbarch
, gdb_byte
*readbuf
, ULONGEST offset
, ULONGEST len
)
4063 gdb_assert (gdbarch
!= NULL
);
4064 gdb_assert (gdbarch
->core_xfer_siginfo
!= NULL
);
4065 if (gdbarch_debug
>= 2)
4066 gdb_printf (gdb_stdlog
, "gdbarch_core_xfer_siginfo called\n");
4067 return gdbarch
->core_xfer_siginfo (gdbarch
, readbuf
, offset
, len
);
4071 set_gdbarch_core_xfer_siginfo (struct gdbarch
*gdbarch
,
4072 gdbarch_core_xfer_siginfo_ftype core_xfer_siginfo
)
4074 gdbarch
->core_xfer_siginfo
= core_xfer_siginfo
;
4078 gdbarch_core_read_x86_xsave_layout_p (struct gdbarch
*gdbarch
)
4080 gdb_assert (gdbarch
!= NULL
);
4081 return gdbarch
->core_read_x86_xsave_layout
!= NULL
;
4085 gdbarch_core_read_x86_xsave_layout (struct gdbarch
*gdbarch
, x86_xsave_layout
&xsave_layout
)
4087 gdb_assert (gdbarch
!= NULL
);
4088 gdb_assert (gdbarch
->core_read_x86_xsave_layout
!= NULL
);
4089 if (gdbarch_debug
>= 2)
4090 gdb_printf (gdb_stdlog
, "gdbarch_core_read_x86_xsave_layout called\n");
4091 return gdbarch
->core_read_x86_xsave_layout (gdbarch
, xsave_layout
);
4095 set_gdbarch_core_read_x86_xsave_layout (struct gdbarch
*gdbarch
,
4096 gdbarch_core_read_x86_xsave_layout_ftype core_read_x86_xsave_layout
)
4098 gdbarch
->core_read_x86_xsave_layout
= core_read_x86_xsave_layout
;
4102 gdbarch_gcore_bfd_target_p (struct gdbarch
*gdbarch
)
4104 gdb_assert (gdbarch
!= NULL
);
4105 return gdbarch
->gcore_bfd_target
!= NULL
;
4109 gdbarch_gcore_bfd_target (struct gdbarch
*gdbarch
)
4111 gdb_assert (gdbarch
!= NULL
);
4112 /* Check predicate was used. */
4113 gdb_assert (gdbarch_gcore_bfd_target_p (gdbarch
));
4114 if (gdbarch_debug
>= 2)
4115 gdb_printf (gdb_stdlog
, "gdbarch_gcore_bfd_target called\n");
4116 return gdbarch
->gcore_bfd_target
;
4120 set_gdbarch_gcore_bfd_target (struct gdbarch
*gdbarch
,
4121 const char * gcore_bfd_target
)
4123 gdbarch
->gcore_bfd_target
= gcore_bfd_target
;
4127 gdbarch_vtable_function_descriptors (struct gdbarch
*gdbarch
)
4129 gdb_assert (gdbarch
!= NULL
);
4130 /* Skip verify of vtable_function_descriptors, invalid_p == 0. */
4131 if (gdbarch_debug
>= 2)
4132 gdb_printf (gdb_stdlog
, "gdbarch_vtable_function_descriptors called\n");
4133 return gdbarch
->vtable_function_descriptors
;
4137 set_gdbarch_vtable_function_descriptors (struct gdbarch
*gdbarch
,
4138 int vtable_function_descriptors
)
4140 gdbarch
->vtable_function_descriptors
= vtable_function_descriptors
;
4144 gdbarch_vbit_in_delta (struct gdbarch
*gdbarch
)
4146 gdb_assert (gdbarch
!= NULL
);
4147 /* Skip verify of vbit_in_delta, invalid_p == 0. */
4148 if (gdbarch_debug
>= 2)
4149 gdb_printf (gdb_stdlog
, "gdbarch_vbit_in_delta called\n");
4150 return gdbarch
->vbit_in_delta
;
4154 set_gdbarch_vbit_in_delta (struct gdbarch
*gdbarch
,
4157 gdbarch
->vbit_in_delta
= vbit_in_delta
;
4161 gdbarch_skip_permanent_breakpoint (struct gdbarch
*gdbarch
, struct regcache
*regcache
)
4163 gdb_assert (gdbarch
!= NULL
);
4164 gdb_assert (gdbarch
->skip_permanent_breakpoint
!= NULL
);
4165 if (gdbarch_debug
>= 2)
4166 gdb_printf (gdb_stdlog
, "gdbarch_skip_permanent_breakpoint called\n");
4167 gdbarch
->skip_permanent_breakpoint (regcache
);
4171 set_gdbarch_skip_permanent_breakpoint (struct gdbarch
*gdbarch
,
4172 gdbarch_skip_permanent_breakpoint_ftype skip_permanent_breakpoint
)
4174 gdbarch
->skip_permanent_breakpoint
= skip_permanent_breakpoint
;
4178 gdbarch_max_insn_length_p (struct gdbarch
*gdbarch
)
4180 gdb_assert (gdbarch
!= NULL
);
4181 return gdbarch
->max_insn_length
!= 0;
4185 gdbarch_max_insn_length (struct gdbarch
*gdbarch
)
4187 gdb_assert (gdbarch
!= NULL
);
4188 /* Check predicate was used. */
4189 gdb_assert (gdbarch_max_insn_length_p (gdbarch
));
4190 if (gdbarch_debug
>= 2)
4191 gdb_printf (gdb_stdlog
, "gdbarch_max_insn_length called\n");
4192 return gdbarch
->max_insn_length
;
4196 set_gdbarch_max_insn_length (struct gdbarch
*gdbarch
,
4197 ULONGEST max_insn_length
)
4199 gdbarch
->max_insn_length
= max_insn_length
;
4203 gdbarch_displaced_step_copy_insn_p (struct gdbarch
*gdbarch
)
4205 gdb_assert (gdbarch
!= NULL
);
4206 return gdbarch
->displaced_step_copy_insn
!= NULL
;
4209 displaced_step_copy_insn_closure_up
4210 gdbarch_displaced_step_copy_insn (struct gdbarch
*gdbarch
, CORE_ADDR from
, CORE_ADDR to
, struct regcache
*regs
)
4212 gdb_assert (gdbarch
!= NULL
);
4213 gdb_assert (gdbarch
->displaced_step_copy_insn
!= NULL
);
4214 if (gdbarch_debug
>= 2)
4215 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_copy_insn called\n");
4216 return gdbarch
->displaced_step_copy_insn (gdbarch
, from
, to
, regs
);
4220 set_gdbarch_displaced_step_copy_insn (struct gdbarch
*gdbarch
,
4221 gdbarch_displaced_step_copy_insn_ftype displaced_step_copy_insn
)
4223 gdbarch
->displaced_step_copy_insn
= displaced_step_copy_insn
;
4227 gdbarch_displaced_step_hw_singlestep (struct gdbarch
*gdbarch
)
4229 gdb_assert (gdbarch
!= NULL
);
4230 gdb_assert (gdbarch
->displaced_step_hw_singlestep
!= NULL
);
4231 if (gdbarch_debug
>= 2)
4232 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_hw_singlestep called\n");
4233 return gdbarch
->displaced_step_hw_singlestep (gdbarch
);
4237 set_gdbarch_displaced_step_hw_singlestep (struct gdbarch
*gdbarch
,
4238 gdbarch_displaced_step_hw_singlestep_ftype displaced_step_hw_singlestep
)
4240 gdbarch
->displaced_step_hw_singlestep
= displaced_step_hw_singlestep
;
4244 gdbarch_displaced_step_fixup (struct gdbarch
*gdbarch
, struct displaced_step_copy_insn_closure
*closure
, CORE_ADDR from
, CORE_ADDR to
, struct regcache
*regs
, bool completed_p
)
4246 gdb_assert (gdbarch
!= NULL
);
4247 gdb_assert (gdbarch
->displaced_step_fixup
!= NULL
);
4248 if (gdbarch_debug
>= 2)
4249 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_fixup called\n");
4250 gdbarch
->displaced_step_fixup (gdbarch
, closure
, from
, to
, regs
, completed_p
);
4254 set_gdbarch_displaced_step_fixup (struct gdbarch
*gdbarch
,
4255 gdbarch_displaced_step_fixup_ftype displaced_step_fixup
)
4257 gdbarch
->displaced_step_fixup
= displaced_step_fixup
;
4261 gdbarch_displaced_step_prepare_p (struct gdbarch
*gdbarch
)
4263 gdb_assert (gdbarch
!= NULL
);
4264 return gdbarch
->displaced_step_prepare
!= NULL
;
4267 displaced_step_prepare_status
4268 gdbarch_displaced_step_prepare (struct gdbarch
*gdbarch
, thread_info
*thread
, CORE_ADDR
&displaced_pc
)
4270 gdb_assert (gdbarch
!= NULL
);
4271 gdb_assert (gdbarch
->displaced_step_prepare
!= NULL
);
4272 if (gdbarch_debug
>= 2)
4273 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_prepare called\n");
4274 return gdbarch
->displaced_step_prepare (gdbarch
, thread
, displaced_pc
);
4278 set_gdbarch_displaced_step_prepare (struct gdbarch
*gdbarch
,
4279 gdbarch_displaced_step_prepare_ftype displaced_step_prepare
)
4281 gdbarch
->displaced_step_prepare
= displaced_step_prepare
;
4284 displaced_step_finish_status
4285 gdbarch_displaced_step_finish (struct gdbarch
*gdbarch
, thread_info
*thread
, const target_waitstatus
&ws
)
4287 gdb_assert (gdbarch
!= NULL
);
4288 gdb_assert (gdbarch
->displaced_step_finish
!= NULL
);
4289 if (gdbarch_debug
>= 2)
4290 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_finish called\n");
4291 return gdbarch
->displaced_step_finish (gdbarch
, thread
, ws
);
4295 set_gdbarch_displaced_step_finish (struct gdbarch
*gdbarch
,
4296 gdbarch_displaced_step_finish_ftype displaced_step_finish
)
4298 gdbarch
->displaced_step_finish
= displaced_step_finish
;
4302 gdbarch_displaced_step_copy_insn_closure_by_addr_p (struct gdbarch
*gdbarch
)
4304 gdb_assert (gdbarch
!= NULL
);
4305 return gdbarch
->displaced_step_copy_insn_closure_by_addr
!= NULL
;
4308 const displaced_step_copy_insn_closure
*
4309 gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch
*gdbarch
, inferior
*inf
, CORE_ADDR addr
)
4311 gdb_assert (gdbarch
!= NULL
);
4312 gdb_assert (gdbarch
->displaced_step_copy_insn_closure_by_addr
!= NULL
);
4313 if (gdbarch_debug
>= 2)
4314 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_copy_insn_closure_by_addr called\n");
4315 return gdbarch
->displaced_step_copy_insn_closure_by_addr (inf
, addr
);
4319 set_gdbarch_displaced_step_copy_insn_closure_by_addr (struct gdbarch
*gdbarch
,
4320 gdbarch_displaced_step_copy_insn_closure_by_addr_ftype displaced_step_copy_insn_closure_by_addr
)
4322 gdbarch
->displaced_step_copy_insn_closure_by_addr
= displaced_step_copy_insn_closure_by_addr
;
4326 gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch
*gdbarch
, inferior
*parent_inf
, ptid_t child_ptid
)
4328 gdb_assert (gdbarch
!= NULL
);
4329 gdb_assert (gdbarch
->displaced_step_restore_all_in_ptid
!= NULL
);
4330 if (gdbarch_debug
>= 2)
4331 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_restore_all_in_ptid called\n");
4332 gdbarch
->displaced_step_restore_all_in_ptid (parent_inf
, child_ptid
);
4336 set_gdbarch_displaced_step_restore_all_in_ptid (struct gdbarch
*gdbarch
,
4337 gdbarch_displaced_step_restore_all_in_ptid_ftype displaced_step_restore_all_in_ptid
)
4339 gdbarch
->displaced_step_restore_all_in_ptid
= displaced_step_restore_all_in_ptid
;
4343 gdbarch_displaced_step_buffer_length (struct gdbarch
*gdbarch
)
4345 gdb_assert (gdbarch
!= NULL
);
4346 /* Check variable is valid. */
4347 gdb_assert (!(gdbarch
->displaced_step_buffer_length
< gdbarch
->max_insn_length
));
4348 if (gdbarch_debug
>= 2)
4349 gdb_printf (gdb_stdlog
, "gdbarch_displaced_step_buffer_length called\n");
4350 return gdbarch
->displaced_step_buffer_length
;
4354 set_gdbarch_displaced_step_buffer_length (struct gdbarch
*gdbarch
,
4355 ULONGEST displaced_step_buffer_length
)
4357 gdbarch
->displaced_step_buffer_length
= displaced_step_buffer_length
;
4361 gdbarch_relocate_instruction_p (struct gdbarch
*gdbarch
)
4363 gdb_assert (gdbarch
!= NULL
);
4364 return gdbarch
->relocate_instruction
!= NULL
;
4368 gdbarch_relocate_instruction (struct gdbarch
*gdbarch
, CORE_ADDR
*to
, CORE_ADDR from
)
4370 gdb_assert (gdbarch
!= NULL
);
4371 gdb_assert (gdbarch
->relocate_instruction
!= NULL
);
4372 /* Do not check predicate: gdbarch->relocate_instruction != NULL, allow call. */
4373 if (gdbarch_debug
>= 2)
4374 gdb_printf (gdb_stdlog
, "gdbarch_relocate_instruction called\n");
4375 gdbarch
->relocate_instruction (gdbarch
, to
, from
);
4379 set_gdbarch_relocate_instruction (struct gdbarch
*gdbarch
,
4380 gdbarch_relocate_instruction_ftype relocate_instruction
)
4382 gdbarch
->relocate_instruction
= relocate_instruction
;
4386 gdbarch_overlay_update_p (struct gdbarch
*gdbarch
)
4388 gdb_assert (gdbarch
!= NULL
);
4389 return gdbarch
->overlay_update
!= NULL
;
4393 gdbarch_overlay_update (struct gdbarch
*gdbarch
, struct obj_section
*osect
)
4395 gdb_assert (gdbarch
!= NULL
);
4396 gdb_assert (gdbarch
->overlay_update
!= NULL
);
4397 if (gdbarch_debug
>= 2)
4398 gdb_printf (gdb_stdlog
, "gdbarch_overlay_update called\n");
4399 gdbarch
->overlay_update (osect
);
4403 set_gdbarch_overlay_update (struct gdbarch
*gdbarch
,
4404 gdbarch_overlay_update_ftype overlay_update
)
4406 gdbarch
->overlay_update
= overlay_update
;
4410 gdbarch_core_read_description_p (struct gdbarch
*gdbarch
)
4412 gdb_assert (gdbarch
!= NULL
);
4413 return gdbarch
->core_read_description
!= NULL
;
4416 const struct target_desc
*
4417 gdbarch_core_read_description (struct gdbarch
*gdbarch
, struct target_ops
*target
, bfd
*abfd
)
4419 gdb_assert (gdbarch
!= NULL
);
4420 gdb_assert (gdbarch
->core_read_description
!= NULL
);
4421 if (gdbarch_debug
>= 2)
4422 gdb_printf (gdb_stdlog
, "gdbarch_core_read_description called\n");
4423 return gdbarch
->core_read_description (gdbarch
, target
, abfd
);
4427 set_gdbarch_core_read_description (struct gdbarch
*gdbarch
,
4428 gdbarch_core_read_description_ftype core_read_description
)
4430 gdbarch
->core_read_description
= core_read_description
;
4434 gdbarch_sofun_address_maybe_missing (struct gdbarch
*gdbarch
)
4436 gdb_assert (gdbarch
!= NULL
);
4437 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0. */
4438 if (gdbarch_debug
>= 2)
4439 gdb_printf (gdb_stdlog
, "gdbarch_sofun_address_maybe_missing called\n");
4440 return gdbarch
->sofun_address_maybe_missing
;
4444 set_gdbarch_sofun_address_maybe_missing (struct gdbarch
*gdbarch
,
4445 int sofun_address_maybe_missing
)
4447 gdbarch
->sofun_address_maybe_missing
= sofun_address_maybe_missing
;
4451 gdbarch_process_record_p (struct gdbarch
*gdbarch
)
4453 gdb_assert (gdbarch
!= NULL
);
4454 return gdbarch
->process_record
!= NULL
;
4458 gdbarch_process_record (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR addr
)
4460 gdb_assert (gdbarch
!= NULL
);
4461 gdb_assert (gdbarch
->process_record
!= NULL
);
4462 if (gdbarch_debug
>= 2)
4463 gdb_printf (gdb_stdlog
, "gdbarch_process_record called\n");
4464 return gdbarch
->process_record (gdbarch
, regcache
, addr
);
4468 set_gdbarch_process_record (struct gdbarch
*gdbarch
,
4469 gdbarch_process_record_ftype process_record
)
4471 gdbarch
->process_record
= process_record
;
4475 gdbarch_process_record_signal_p (struct gdbarch
*gdbarch
)
4477 gdb_assert (gdbarch
!= NULL
);
4478 return gdbarch
->process_record_signal
!= NULL
;
4482 gdbarch_process_record_signal (struct gdbarch
*gdbarch
, struct regcache
*regcache
, enum gdb_signal signal
)
4484 gdb_assert (gdbarch
!= NULL
);
4485 gdb_assert (gdbarch
->process_record_signal
!= NULL
);
4486 if (gdbarch_debug
>= 2)
4487 gdb_printf (gdb_stdlog
, "gdbarch_process_record_signal called\n");
4488 return gdbarch
->process_record_signal (gdbarch
, regcache
, signal
);
4492 set_gdbarch_process_record_signal (struct gdbarch
*gdbarch
,
4493 gdbarch_process_record_signal_ftype process_record_signal
)
4495 gdbarch
->process_record_signal
= process_record_signal
;
4499 gdbarch_gdb_signal_from_target_p (struct gdbarch
*gdbarch
)
4501 gdb_assert (gdbarch
!= NULL
);
4502 return gdbarch
->gdb_signal_from_target
!= NULL
;
4506 gdbarch_gdb_signal_from_target (struct gdbarch
*gdbarch
, int signo
)
4508 gdb_assert (gdbarch
!= NULL
);
4509 gdb_assert (gdbarch
->gdb_signal_from_target
!= NULL
);
4510 if (gdbarch_debug
>= 2)
4511 gdb_printf (gdb_stdlog
, "gdbarch_gdb_signal_from_target called\n");
4512 return gdbarch
->gdb_signal_from_target (gdbarch
, signo
);
4516 set_gdbarch_gdb_signal_from_target (struct gdbarch
*gdbarch
,
4517 gdbarch_gdb_signal_from_target_ftype gdb_signal_from_target
)
4519 gdbarch
->gdb_signal_from_target
= gdb_signal_from_target
;
4523 gdbarch_gdb_signal_to_target_p (struct gdbarch
*gdbarch
)
4525 gdb_assert (gdbarch
!= NULL
);
4526 return gdbarch
->gdb_signal_to_target
!= NULL
;
4530 gdbarch_gdb_signal_to_target (struct gdbarch
*gdbarch
, enum gdb_signal signal
)
4532 gdb_assert (gdbarch
!= NULL
);
4533 gdb_assert (gdbarch
->gdb_signal_to_target
!= NULL
);
4534 if (gdbarch_debug
>= 2)
4535 gdb_printf (gdb_stdlog
, "gdbarch_gdb_signal_to_target called\n");
4536 return gdbarch
->gdb_signal_to_target (gdbarch
, signal
);
4540 set_gdbarch_gdb_signal_to_target (struct gdbarch
*gdbarch
,
4541 gdbarch_gdb_signal_to_target_ftype gdb_signal_to_target
)
4543 gdbarch
->gdb_signal_to_target
= gdb_signal_to_target
;
4547 gdbarch_get_siginfo_type_p (struct gdbarch
*gdbarch
)
4549 gdb_assert (gdbarch
!= NULL
);
4550 return gdbarch
->get_siginfo_type
!= NULL
;
4554 gdbarch_get_siginfo_type (struct gdbarch
*gdbarch
)
4556 gdb_assert (gdbarch
!= NULL
);
4557 gdb_assert (gdbarch
->get_siginfo_type
!= NULL
);
4558 if (gdbarch_debug
>= 2)
4559 gdb_printf (gdb_stdlog
, "gdbarch_get_siginfo_type called\n");
4560 return gdbarch
->get_siginfo_type (gdbarch
);
4564 set_gdbarch_get_siginfo_type (struct gdbarch
*gdbarch
,
4565 gdbarch_get_siginfo_type_ftype get_siginfo_type
)
4567 gdbarch
->get_siginfo_type
= get_siginfo_type
;
4571 gdbarch_record_special_symbol_p (struct gdbarch
*gdbarch
)
4573 gdb_assert (gdbarch
!= NULL
);
4574 return gdbarch
->record_special_symbol
!= NULL
;
4578 gdbarch_record_special_symbol (struct gdbarch
*gdbarch
, struct objfile
*objfile
, asymbol
*sym
)
4580 gdb_assert (gdbarch
!= NULL
);
4581 gdb_assert (gdbarch
->record_special_symbol
!= NULL
);
4582 if (gdbarch_debug
>= 2)
4583 gdb_printf (gdb_stdlog
, "gdbarch_record_special_symbol called\n");
4584 gdbarch
->record_special_symbol (gdbarch
, objfile
, sym
);
4588 set_gdbarch_record_special_symbol (struct gdbarch
*gdbarch
,
4589 gdbarch_record_special_symbol_ftype record_special_symbol
)
4591 gdbarch
->record_special_symbol
= record_special_symbol
;
4595 gdbarch_get_syscall_number_p (struct gdbarch
*gdbarch
)
4597 gdb_assert (gdbarch
!= NULL
);
4598 return gdbarch
->get_syscall_number
!= NULL
;
4602 gdbarch_get_syscall_number (struct gdbarch
*gdbarch
, thread_info
*thread
)
4604 gdb_assert (gdbarch
!= NULL
);
4605 gdb_assert (gdbarch
->get_syscall_number
!= NULL
);
4606 if (gdbarch_debug
>= 2)
4607 gdb_printf (gdb_stdlog
, "gdbarch_get_syscall_number called\n");
4608 return gdbarch
->get_syscall_number (gdbarch
, thread
);
4612 set_gdbarch_get_syscall_number (struct gdbarch
*gdbarch
,
4613 gdbarch_get_syscall_number_ftype get_syscall_number
)
4615 gdbarch
->get_syscall_number
= get_syscall_number
;
4619 gdbarch_xml_syscall_file (struct gdbarch
*gdbarch
)
4621 gdb_assert (gdbarch
!= NULL
);
4622 /* Skip verify of xml_syscall_file, invalid_p == 0. */
4623 if (gdbarch_debug
>= 2)
4624 gdb_printf (gdb_stdlog
, "gdbarch_xml_syscall_file called\n");
4625 return gdbarch
->xml_syscall_file
;
4629 set_gdbarch_xml_syscall_file (struct gdbarch
*gdbarch
,
4630 const char * xml_syscall_file
)
4632 gdbarch
->xml_syscall_file
= xml_syscall_file
;
4635 struct syscalls_info
*
4636 gdbarch_syscalls_info (struct gdbarch
*gdbarch
)
4638 gdb_assert (gdbarch
!= NULL
);
4639 /* Skip verify of syscalls_info, invalid_p == 0. */
4640 if (gdbarch_debug
>= 2)
4641 gdb_printf (gdb_stdlog
, "gdbarch_syscalls_info called\n");
4642 return gdbarch
->syscalls_info
;
4646 set_gdbarch_syscalls_info (struct gdbarch
*gdbarch
,
4647 struct syscalls_info
* syscalls_info
)
4649 gdbarch
->syscalls_info
= syscalls_info
;
4653 gdbarch_stap_integer_prefixes (struct gdbarch
*gdbarch
)
4655 gdb_assert (gdbarch
!= NULL
);
4656 /* Skip verify of stap_integer_prefixes, invalid_p == 0. */
4657 if (gdbarch_debug
>= 2)
4658 gdb_printf (gdb_stdlog
, "gdbarch_stap_integer_prefixes called\n");
4659 return gdbarch
->stap_integer_prefixes
;
4663 set_gdbarch_stap_integer_prefixes (struct gdbarch
*gdbarch
,
4664 const char *const * stap_integer_prefixes
)
4666 gdbarch
->stap_integer_prefixes
= stap_integer_prefixes
;
4670 gdbarch_stap_integer_suffixes (struct gdbarch
*gdbarch
)
4672 gdb_assert (gdbarch
!= NULL
);
4673 /* Skip verify of stap_integer_suffixes, invalid_p == 0. */
4674 if (gdbarch_debug
>= 2)
4675 gdb_printf (gdb_stdlog
, "gdbarch_stap_integer_suffixes called\n");
4676 return gdbarch
->stap_integer_suffixes
;
4680 set_gdbarch_stap_integer_suffixes (struct gdbarch
*gdbarch
,
4681 const char *const * stap_integer_suffixes
)
4683 gdbarch
->stap_integer_suffixes
= stap_integer_suffixes
;
4687 gdbarch_stap_register_prefixes (struct gdbarch
*gdbarch
)
4689 gdb_assert (gdbarch
!= NULL
);
4690 /* Skip verify of stap_register_prefixes, invalid_p == 0. */
4691 if (gdbarch_debug
>= 2)
4692 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_prefixes called\n");
4693 return gdbarch
->stap_register_prefixes
;
4697 set_gdbarch_stap_register_prefixes (struct gdbarch
*gdbarch
,
4698 const char *const * stap_register_prefixes
)
4700 gdbarch
->stap_register_prefixes
= stap_register_prefixes
;
4704 gdbarch_stap_register_suffixes (struct gdbarch
*gdbarch
)
4706 gdb_assert (gdbarch
!= NULL
);
4707 /* Skip verify of stap_register_suffixes, invalid_p == 0. */
4708 if (gdbarch_debug
>= 2)
4709 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_suffixes called\n");
4710 return gdbarch
->stap_register_suffixes
;
4714 set_gdbarch_stap_register_suffixes (struct gdbarch
*gdbarch
,
4715 const char *const * stap_register_suffixes
)
4717 gdbarch
->stap_register_suffixes
= stap_register_suffixes
;
4721 gdbarch_stap_register_indirection_prefixes (struct gdbarch
*gdbarch
)
4723 gdb_assert (gdbarch
!= NULL
);
4724 /* Skip verify of stap_register_indirection_prefixes, invalid_p == 0. */
4725 if (gdbarch_debug
>= 2)
4726 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_indirection_prefixes called\n");
4727 return gdbarch
->stap_register_indirection_prefixes
;
4731 set_gdbarch_stap_register_indirection_prefixes (struct gdbarch
*gdbarch
,
4732 const char *const * stap_register_indirection_prefixes
)
4734 gdbarch
->stap_register_indirection_prefixes
= stap_register_indirection_prefixes
;
4738 gdbarch_stap_register_indirection_suffixes (struct gdbarch
*gdbarch
)
4740 gdb_assert (gdbarch
!= NULL
);
4741 /* Skip verify of stap_register_indirection_suffixes, invalid_p == 0. */
4742 if (gdbarch_debug
>= 2)
4743 gdb_printf (gdb_stdlog
, "gdbarch_stap_register_indirection_suffixes called\n");
4744 return gdbarch
->stap_register_indirection_suffixes
;
4748 set_gdbarch_stap_register_indirection_suffixes (struct gdbarch
*gdbarch
,
4749 const char *const * stap_register_indirection_suffixes
)
4751 gdbarch
->stap_register_indirection_suffixes
= stap_register_indirection_suffixes
;
4755 gdbarch_stap_gdb_register_prefix (struct gdbarch
*gdbarch
)
4757 gdb_assert (gdbarch
!= NULL
);
4758 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0. */
4759 if (gdbarch_debug
>= 2)
4760 gdb_printf (gdb_stdlog
, "gdbarch_stap_gdb_register_prefix called\n");
4761 return gdbarch
->stap_gdb_register_prefix
;
4765 set_gdbarch_stap_gdb_register_prefix (struct gdbarch
*gdbarch
,
4766 const char * stap_gdb_register_prefix
)
4768 gdbarch
->stap_gdb_register_prefix
= stap_gdb_register_prefix
;
4772 gdbarch_stap_gdb_register_suffix (struct gdbarch
*gdbarch
)
4774 gdb_assert (gdbarch
!= NULL
);
4775 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0. */
4776 if (gdbarch_debug
>= 2)
4777 gdb_printf (gdb_stdlog
, "gdbarch_stap_gdb_register_suffix called\n");
4778 return gdbarch
->stap_gdb_register_suffix
;
4782 set_gdbarch_stap_gdb_register_suffix (struct gdbarch
*gdbarch
,
4783 const char * stap_gdb_register_suffix
)
4785 gdbarch
->stap_gdb_register_suffix
= stap_gdb_register_suffix
;
4789 gdbarch_stap_is_single_operand_p (struct gdbarch
*gdbarch
)
4791 gdb_assert (gdbarch
!= NULL
);
4792 return gdbarch
->stap_is_single_operand
!= NULL
;
4796 gdbarch_stap_is_single_operand (struct gdbarch
*gdbarch
, const char *s
)
4798 gdb_assert (gdbarch
!= NULL
);
4799 gdb_assert (gdbarch
->stap_is_single_operand
!= NULL
);
4800 if (gdbarch_debug
>= 2)
4801 gdb_printf (gdb_stdlog
, "gdbarch_stap_is_single_operand called\n");
4802 return gdbarch
->stap_is_single_operand (gdbarch
, s
);
4806 set_gdbarch_stap_is_single_operand (struct gdbarch
*gdbarch
,
4807 gdbarch_stap_is_single_operand_ftype stap_is_single_operand
)
4809 gdbarch
->stap_is_single_operand
= stap_is_single_operand
;
4813 gdbarch_stap_parse_special_token_p (struct gdbarch
*gdbarch
)
4815 gdb_assert (gdbarch
!= NULL
);
4816 return gdbarch
->stap_parse_special_token
!= NULL
;
4820 gdbarch_stap_parse_special_token (struct gdbarch
*gdbarch
, struct stap_parse_info
*p
)
4822 gdb_assert (gdbarch
!= NULL
);
4823 gdb_assert (gdbarch
->stap_parse_special_token
!= NULL
);
4824 if (gdbarch_debug
>= 2)
4825 gdb_printf (gdb_stdlog
, "gdbarch_stap_parse_special_token called\n");
4826 return gdbarch
->stap_parse_special_token (gdbarch
, p
);
4830 set_gdbarch_stap_parse_special_token (struct gdbarch
*gdbarch
,
4831 gdbarch_stap_parse_special_token_ftype stap_parse_special_token
)
4833 gdbarch
->stap_parse_special_token
= stap_parse_special_token
;
4837 gdbarch_stap_adjust_register_p (struct gdbarch
*gdbarch
)
4839 gdb_assert (gdbarch
!= NULL
);
4840 return gdbarch
->stap_adjust_register
!= NULL
;
4844 gdbarch_stap_adjust_register (struct gdbarch
*gdbarch
, struct stap_parse_info
*p
, const std::string
®name
, int regnum
)
4846 gdb_assert (gdbarch
!= NULL
);
4847 gdb_assert (gdbarch
->stap_adjust_register
!= NULL
);
4848 if (gdbarch_debug
>= 2)
4849 gdb_printf (gdb_stdlog
, "gdbarch_stap_adjust_register called\n");
4850 return gdbarch
->stap_adjust_register (gdbarch
, p
, regname
, regnum
);
4854 set_gdbarch_stap_adjust_register (struct gdbarch
*gdbarch
,
4855 gdbarch_stap_adjust_register_ftype stap_adjust_register
)
4857 gdbarch
->stap_adjust_register
= stap_adjust_register
;
4861 gdbarch_dtrace_parse_probe_argument_p (struct gdbarch
*gdbarch
)
4863 gdb_assert (gdbarch
!= NULL
);
4864 return gdbarch
->dtrace_parse_probe_argument
!= NULL
;
4868 gdbarch_dtrace_parse_probe_argument (struct gdbarch
*gdbarch
, int narg
)
4870 gdb_assert (gdbarch
!= NULL
);
4871 gdb_assert (gdbarch
->dtrace_parse_probe_argument
!= NULL
);
4872 if (gdbarch_debug
>= 2)
4873 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_parse_probe_argument called\n");
4874 return gdbarch
->dtrace_parse_probe_argument (gdbarch
, narg
);
4878 set_gdbarch_dtrace_parse_probe_argument (struct gdbarch
*gdbarch
,
4879 gdbarch_dtrace_parse_probe_argument_ftype dtrace_parse_probe_argument
)
4881 gdbarch
->dtrace_parse_probe_argument
= dtrace_parse_probe_argument
;
4885 gdbarch_dtrace_probe_is_enabled_p (struct gdbarch
*gdbarch
)
4887 gdb_assert (gdbarch
!= NULL
);
4888 return gdbarch
->dtrace_probe_is_enabled
!= NULL
;
4892 gdbarch_dtrace_probe_is_enabled (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4894 gdb_assert (gdbarch
!= NULL
);
4895 gdb_assert (gdbarch
->dtrace_probe_is_enabled
!= NULL
);
4896 if (gdbarch_debug
>= 2)
4897 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_probe_is_enabled called\n");
4898 return gdbarch
->dtrace_probe_is_enabled (gdbarch
, addr
);
4902 set_gdbarch_dtrace_probe_is_enabled (struct gdbarch
*gdbarch
,
4903 gdbarch_dtrace_probe_is_enabled_ftype dtrace_probe_is_enabled
)
4905 gdbarch
->dtrace_probe_is_enabled
= dtrace_probe_is_enabled
;
4909 gdbarch_dtrace_enable_probe_p (struct gdbarch
*gdbarch
)
4911 gdb_assert (gdbarch
!= NULL
);
4912 return gdbarch
->dtrace_enable_probe
!= NULL
;
4916 gdbarch_dtrace_enable_probe (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4918 gdb_assert (gdbarch
!= NULL
);
4919 gdb_assert (gdbarch
->dtrace_enable_probe
!= NULL
);
4920 if (gdbarch_debug
>= 2)
4921 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_enable_probe called\n");
4922 gdbarch
->dtrace_enable_probe (gdbarch
, addr
);
4926 set_gdbarch_dtrace_enable_probe (struct gdbarch
*gdbarch
,
4927 gdbarch_dtrace_enable_probe_ftype dtrace_enable_probe
)
4929 gdbarch
->dtrace_enable_probe
= dtrace_enable_probe
;
4933 gdbarch_dtrace_disable_probe_p (struct gdbarch
*gdbarch
)
4935 gdb_assert (gdbarch
!= NULL
);
4936 return gdbarch
->dtrace_disable_probe
!= NULL
;
4940 gdbarch_dtrace_disable_probe (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
4942 gdb_assert (gdbarch
!= NULL
);
4943 gdb_assert (gdbarch
->dtrace_disable_probe
!= NULL
);
4944 if (gdbarch_debug
>= 2)
4945 gdb_printf (gdb_stdlog
, "gdbarch_dtrace_disable_probe called\n");
4946 gdbarch
->dtrace_disable_probe (gdbarch
, addr
);
4950 set_gdbarch_dtrace_disable_probe (struct gdbarch
*gdbarch
,
4951 gdbarch_dtrace_disable_probe_ftype dtrace_disable_probe
)
4953 gdbarch
->dtrace_disable_probe
= dtrace_disable_probe
;
4957 gdbarch_has_global_solist (struct gdbarch
*gdbarch
)
4959 gdb_assert (gdbarch
!= NULL
);
4960 /* Skip verify of has_global_solist, invalid_p == 0. */
4961 if (gdbarch_debug
>= 2)
4962 gdb_printf (gdb_stdlog
, "gdbarch_has_global_solist called\n");
4963 return gdbarch
->has_global_solist
;
4967 set_gdbarch_has_global_solist (struct gdbarch
*gdbarch
,
4968 int has_global_solist
)
4970 gdbarch
->has_global_solist
= has_global_solist
;
4974 gdbarch_has_global_breakpoints (struct gdbarch
*gdbarch
)
4976 gdb_assert (gdbarch
!= NULL
);
4977 /* Skip verify of has_global_breakpoints, invalid_p == 0. */
4978 if (gdbarch_debug
>= 2)
4979 gdb_printf (gdb_stdlog
, "gdbarch_has_global_breakpoints called\n");
4980 return gdbarch
->has_global_breakpoints
;
4984 set_gdbarch_has_global_breakpoints (struct gdbarch
*gdbarch
,
4985 int has_global_breakpoints
)
4987 gdbarch
->has_global_breakpoints
= has_global_breakpoints
;
4991 gdbarch_has_shared_address_space (struct gdbarch
*gdbarch
)
4993 gdb_assert (gdbarch
!= NULL
);
4994 gdb_assert (gdbarch
->has_shared_address_space
!= NULL
);
4995 if (gdbarch_debug
>= 2)
4996 gdb_printf (gdb_stdlog
, "gdbarch_has_shared_address_space called\n");
4997 return gdbarch
->has_shared_address_space (gdbarch
);
5001 set_gdbarch_has_shared_address_space (struct gdbarch
*gdbarch
,
5002 gdbarch_has_shared_address_space_ftype has_shared_address_space
)
5004 gdbarch
->has_shared_address_space
= has_shared_address_space
;
5008 gdbarch_fast_tracepoint_valid_at (struct gdbarch
*gdbarch
, CORE_ADDR addr
, std::string
*msg
)
5010 gdb_assert (gdbarch
!= NULL
);
5011 gdb_assert (gdbarch
->fast_tracepoint_valid_at
!= NULL
);
5012 if (gdbarch_debug
>= 2)
5013 gdb_printf (gdb_stdlog
, "gdbarch_fast_tracepoint_valid_at called\n");
5014 return gdbarch
->fast_tracepoint_valid_at (gdbarch
, addr
, msg
);
5018 set_gdbarch_fast_tracepoint_valid_at (struct gdbarch
*gdbarch
,
5019 gdbarch_fast_tracepoint_valid_at_ftype fast_tracepoint_valid_at
)
5021 gdbarch
->fast_tracepoint_valid_at
= fast_tracepoint_valid_at
;
5025 gdbarch_guess_tracepoint_registers (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR addr
)
5027 gdb_assert (gdbarch
!= NULL
);
5028 gdb_assert (gdbarch
->guess_tracepoint_registers
!= NULL
);
5029 if (gdbarch_debug
>= 2)
5030 gdb_printf (gdb_stdlog
, "gdbarch_guess_tracepoint_registers called\n");
5031 gdbarch
->guess_tracepoint_registers (gdbarch
, regcache
, addr
);
5035 set_gdbarch_guess_tracepoint_registers (struct gdbarch
*gdbarch
,
5036 gdbarch_guess_tracepoint_registers_ftype guess_tracepoint_registers
)
5038 gdbarch
->guess_tracepoint_registers
= guess_tracepoint_registers
;
5042 gdbarch_auto_charset (struct gdbarch
*gdbarch
)
5044 gdb_assert (gdbarch
!= NULL
);
5045 gdb_assert (gdbarch
->auto_charset
!= NULL
);
5046 if (gdbarch_debug
>= 2)
5047 gdb_printf (gdb_stdlog
, "gdbarch_auto_charset called\n");
5048 return gdbarch
->auto_charset ();
5052 set_gdbarch_auto_charset (struct gdbarch
*gdbarch
,
5053 gdbarch_auto_charset_ftype auto_charset
)
5055 gdbarch
->auto_charset
= auto_charset
;
5059 gdbarch_auto_wide_charset (struct gdbarch
*gdbarch
)
5061 gdb_assert (gdbarch
!= NULL
);
5062 gdb_assert (gdbarch
->auto_wide_charset
!= NULL
);
5063 if (gdbarch_debug
>= 2)
5064 gdb_printf (gdb_stdlog
, "gdbarch_auto_wide_charset called\n");
5065 return gdbarch
->auto_wide_charset ();
5069 set_gdbarch_auto_wide_charset (struct gdbarch
*gdbarch
,
5070 gdbarch_auto_wide_charset_ftype auto_wide_charset
)
5072 gdbarch
->auto_wide_charset
= auto_wide_charset
;
5076 gdbarch_solib_symbols_extension (struct gdbarch
*gdbarch
)
5078 gdb_assert (gdbarch
!= NULL
);
5079 /* Skip verify of solib_symbols_extension, invalid_p == 0. */
5080 if (gdbarch_debug
>= 2)
5081 gdb_printf (gdb_stdlog
, "gdbarch_solib_symbols_extension called\n");
5082 return gdbarch
->solib_symbols_extension
;
5086 set_gdbarch_solib_symbols_extension (struct gdbarch
*gdbarch
,
5087 const char * solib_symbols_extension
)
5089 gdbarch
->solib_symbols_extension
= solib_symbols_extension
;
5093 gdbarch_has_dos_based_file_system (struct gdbarch
*gdbarch
)
5095 gdb_assert (gdbarch
!= NULL
);
5096 /* Skip verify of has_dos_based_file_system, invalid_p == 0. */
5097 if (gdbarch_debug
>= 2)
5098 gdb_printf (gdb_stdlog
, "gdbarch_has_dos_based_file_system called\n");
5099 return gdbarch
->has_dos_based_file_system
;
5103 set_gdbarch_has_dos_based_file_system (struct gdbarch
*gdbarch
,
5104 int has_dos_based_file_system
)
5106 gdbarch
->has_dos_based_file_system
= has_dos_based_file_system
;
5110 gdbarch_gen_return_address (struct gdbarch
*gdbarch
, struct agent_expr
*ax
, struct axs_value
*value
, CORE_ADDR scope
)
5112 gdb_assert (gdbarch
!= NULL
);
5113 gdb_assert (gdbarch
->gen_return_address
!= NULL
);
5114 if (gdbarch_debug
>= 2)
5115 gdb_printf (gdb_stdlog
, "gdbarch_gen_return_address called\n");
5116 gdbarch
->gen_return_address (gdbarch
, ax
, value
, scope
);
5120 set_gdbarch_gen_return_address (struct gdbarch
*gdbarch
,
5121 gdbarch_gen_return_address_ftype gen_return_address
)
5123 gdbarch
->gen_return_address
= gen_return_address
;
5127 gdbarch_info_proc_p (struct gdbarch
*gdbarch
)
5129 gdb_assert (gdbarch
!= NULL
);
5130 return gdbarch
->info_proc
!= NULL
;
5134 gdbarch_info_proc (struct gdbarch
*gdbarch
, const char *args
, enum info_proc_what what
)
5136 gdb_assert (gdbarch
!= NULL
);
5137 gdb_assert (gdbarch
->info_proc
!= NULL
);
5138 if (gdbarch_debug
>= 2)
5139 gdb_printf (gdb_stdlog
, "gdbarch_info_proc called\n");
5140 gdbarch
->info_proc (gdbarch
, args
, what
);
5144 set_gdbarch_info_proc (struct gdbarch
*gdbarch
,
5145 gdbarch_info_proc_ftype info_proc
)
5147 gdbarch
->info_proc
= info_proc
;
5151 gdbarch_core_info_proc_p (struct gdbarch
*gdbarch
)
5153 gdb_assert (gdbarch
!= NULL
);
5154 return gdbarch
->core_info_proc
!= NULL
;
5158 gdbarch_core_info_proc (struct gdbarch
*gdbarch
, const char *args
, enum info_proc_what what
)
5160 gdb_assert (gdbarch
!= NULL
);
5161 gdb_assert (gdbarch
->core_info_proc
!= NULL
);
5162 if (gdbarch_debug
>= 2)
5163 gdb_printf (gdb_stdlog
, "gdbarch_core_info_proc called\n");
5164 gdbarch
->core_info_proc (gdbarch
, args
, what
);
5168 set_gdbarch_core_info_proc (struct gdbarch
*gdbarch
,
5169 gdbarch_core_info_proc_ftype core_info_proc
)
5171 gdbarch
->core_info_proc
= core_info_proc
;
5175 gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch
*gdbarch
, iterate_over_objfiles_in_search_order_cb_ftype cb
, struct objfile
*current_objfile
)
5177 gdb_assert (gdbarch
!= NULL
);
5178 gdb_assert (gdbarch
->iterate_over_objfiles_in_search_order
!= NULL
);
5179 if (gdbarch_debug
>= 2)
5180 gdb_printf (gdb_stdlog
, "gdbarch_iterate_over_objfiles_in_search_order called\n");
5181 gdbarch
->iterate_over_objfiles_in_search_order (gdbarch
, cb
, current_objfile
);
5185 set_gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch
*gdbarch
,
5186 gdbarch_iterate_over_objfiles_in_search_order_ftype iterate_over_objfiles_in_search_order
)
5188 gdbarch
->iterate_over_objfiles_in_search_order
= iterate_over_objfiles_in_search_order
;
5191 struct ravenscar_arch_ops
*
5192 gdbarch_ravenscar_ops (struct gdbarch
*gdbarch
)
5194 gdb_assert (gdbarch
!= NULL
);
5195 /* Skip verify of ravenscar_ops, invalid_p == 0. */
5196 if (gdbarch_debug
>= 2)
5197 gdb_printf (gdb_stdlog
, "gdbarch_ravenscar_ops called\n");
5198 return gdbarch
->ravenscar_ops
;
5202 set_gdbarch_ravenscar_ops (struct gdbarch
*gdbarch
,
5203 struct ravenscar_arch_ops
* ravenscar_ops
)
5205 gdbarch
->ravenscar_ops
= ravenscar_ops
;
5209 gdbarch_insn_is_call (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5211 gdb_assert (gdbarch
!= NULL
);
5212 gdb_assert (gdbarch
->insn_is_call
!= NULL
);
5213 if (gdbarch_debug
>= 2)
5214 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_call called\n");
5215 return gdbarch
->insn_is_call (gdbarch
, addr
);
5219 set_gdbarch_insn_is_call (struct gdbarch
*gdbarch
,
5220 gdbarch_insn_is_call_ftype insn_is_call
)
5222 gdbarch
->insn_is_call
= insn_is_call
;
5226 gdbarch_insn_is_ret (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5228 gdb_assert (gdbarch
!= NULL
);
5229 gdb_assert (gdbarch
->insn_is_ret
!= NULL
);
5230 if (gdbarch_debug
>= 2)
5231 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_ret called\n");
5232 return gdbarch
->insn_is_ret (gdbarch
, addr
);
5236 set_gdbarch_insn_is_ret (struct gdbarch
*gdbarch
,
5237 gdbarch_insn_is_ret_ftype insn_is_ret
)
5239 gdbarch
->insn_is_ret
= insn_is_ret
;
5243 gdbarch_insn_is_jump (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5245 gdb_assert (gdbarch
!= NULL
);
5246 gdb_assert (gdbarch
->insn_is_jump
!= NULL
);
5247 if (gdbarch_debug
>= 2)
5248 gdb_printf (gdb_stdlog
, "gdbarch_insn_is_jump called\n");
5249 return gdbarch
->insn_is_jump (gdbarch
, addr
);
5253 set_gdbarch_insn_is_jump (struct gdbarch
*gdbarch
,
5254 gdbarch_insn_is_jump_ftype insn_is_jump
)
5256 gdbarch
->insn_is_jump
= insn_is_jump
;
5260 gdbarch_program_breakpoint_here_p (struct gdbarch
*gdbarch
, CORE_ADDR address
)
5262 gdb_assert (gdbarch
!= NULL
);
5263 gdb_assert (gdbarch
->program_breakpoint_here_p
!= NULL
);
5264 if (gdbarch_debug
>= 2)
5265 gdb_printf (gdb_stdlog
, "gdbarch_program_breakpoint_here_p called\n");
5266 return gdbarch
->program_breakpoint_here_p (gdbarch
, address
);
5270 set_gdbarch_program_breakpoint_here_p (struct gdbarch
*gdbarch
,
5271 gdbarch_program_breakpoint_here_p_ftype program_breakpoint_here_p
)
5273 gdbarch
->program_breakpoint_here_p
= program_breakpoint_here_p
;
5277 gdbarch_auxv_parse_p (struct gdbarch
*gdbarch
)
5279 gdb_assert (gdbarch
!= NULL
);
5280 return gdbarch
->auxv_parse
!= NULL
;
5284 gdbarch_auxv_parse (struct gdbarch
*gdbarch
, const gdb_byte
**readptr
, const gdb_byte
*endptr
, CORE_ADDR
*typep
, CORE_ADDR
*valp
)
5286 gdb_assert (gdbarch
!= NULL
);
5287 gdb_assert (gdbarch
->auxv_parse
!= NULL
);
5288 if (gdbarch_debug
>= 2)
5289 gdb_printf (gdb_stdlog
, "gdbarch_auxv_parse called\n");
5290 return gdbarch
->auxv_parse (gdbarch
, readptr
, endptr
, typep
, valp
);
5294 set_gdbarch_auxv_parse (struct gdbarch
*gdbarch
,
5295 gdbarch_auxv_parse_ftype auxv_parse
)
5297 gdbarch
->auxv_parse
= auxv_parse
;
5301 gdbarch_print_auxv_entry (struct gdbarch
*gdbarch
, struct ui_file
*file
, CORE_ADDR type
, CORE_ADDR val
)
5303 gdb_assert (gdbarch
!= NULL
);
5304 gdb_assert (gdbarch
->print_auxv_entry
!= NULL
);
5305 if (gdbarch_debug
>= 2)
5306 gdb_printf (gdb_stdlog
, "gdbarch_print_auxv_entry called\n");
5307 gdbarch
->print_auxv_entry (gdbarch
, file
, type
, val
);
5311 set_gdbarch_print_auxv_entry (struct gdbarch
*gdbarch
,
5312 gdbarch_print_auxv_entry_ftype print_auxv_entry
)
5314 gdbarch
->print_auxv_entry
= print_auxv_entry
;
5318 gdbarch_vsyscall_range (struct gdbarch
*gdbarch
, struct mem_range
*range
)
5320 gdb_assert (gdbarch
!= NULL
);
5321 gdb_assert (gdbarch
->vsyscall_range
!= NULL
);
5322 if (gdbarch_debug
>= 2)
5323 gdb_printf (gdb_stdlog
, "gdbarch_vsyscall_range called\n");
5324 return gdbarch
->vsyscall_range (gdbarch
, range
);
5328 set_gdbarch_vsyscall_range (struct gdbarch
*gdbarch
,
5329 gdbarch_vsyscall_range_ftype vsyscall_range
)
5331 gdbarch
->vsyscall_range
= vsyscall_range
;
5335 gdbarch_infcall_mmap (struct gdbarch
*gdbarch
, CORE_ADDR size
, unsigned prot
)
5337 gdb_assert (gdbarch
!= NULL
);
5338 gdb_assert (gdbarch
->infcall_mmap
!= NULL
);
5339 if (gdbarch_debug
>= 2)
5340 gdb_printf (gdb_stdlog
, "gdbarch_infcall_mmap called\n");
5341 return gdbarch
->infcall_mmap (size
, prot
);
5345 set_gdbarch_infcall_mmap (struct gdbarch
*gdbarch
,
5346 gdbarch_infcall_mmap_ftype infcall_mmap
)
5348 gdbarch
->infcall_mmap
= infcall_mmap
;
5352 gdbarch_infcall_munmap (struct gdbarch
*gdbarch
, CORE_ADDR addr
, CORE_ADDR size
)
5354 gdb_assert (gdbarch
!= NULL
);
5355 gdb_assert (gdbarch
->infcall_munmap
!= NULL
);
5356 if (gdbarch_debug
>= 2)
5357 gdb_printf (gdb_stdlog
, "gdbarch_infcall_munmap called\n");
5358 gdbarch
->infcall_munmap (addr
, size
);
5362 set_gdbarch_infcall_munmap (struct gdbarch
*gdbarch
,
5363 gdbarch_infcall_munmap_ftype infcall_munmap
)
5365 gdbarch
->infcall_munmap
= infcall_munmap
;
5369 gdbarch_gcc_target_options (struct gdbarch
*gdbarch
)
5371 gdb_assert (gdbarch
!= NULL
);
5372 gdb_assert (gdbarch
->gcc_target_options
!= NULL
);
5373 if (gdbarch_debug
>= 2)
5374 gdb_printf (gdb_stdlog
, "gdbarch_gcc_target_options called\n");
5375 return gdbarch
->gcc_target_options (gdbarch
);
5379 set_gdbarch_gcc_target_options (struct gdbarch
*gdbarch
,
5380 gdbarch_gcc_target_options_ftype gcc_target_options
)
5382 gdbarch
->gcc_target_options
= gcc_target_options
;
5386 gdbarch_gnu_triplet_regexp (struct gdbarch
*gdbarch
)
5388 gdb_assert (gdbarch
!= NULL
);
5389 gdb_assert (gdbarch
->gnu_triplet_regexp
!= NULL
);
5390 if (gdbarch_debug
>= 2)
5391 gdb_printf (gdb_stdlog
, "gdbarch_gnu_triplet_regexp called\n");
5392 return gdbarch
->gnu_triplet_regexp (gdbarch
);
5396 set_gdbarch_gnu_triplet_regexp (struct gdbarch
*gdbarch
,
5397 gdbarch_gnu_triplet_regexp_ftype gnu_triplet_regexp
)
5399 gdbarch
->gnu_triplet_regexp
= gnu_triplet_regexp
;
5403 gdbarch_addressable_memory_unit_size (struct gdbarch
*gdbarch
)
5405 gdb_assert (gdbarch
!= NULL
);
5406 gdb_assert (gdbarch
->addressable_memory_unit_size
!= NULL
);
5407 if (gdbarch_debug
>= 2)
5408 gdb_printf (gdb_stdlog
, "gdbarch_addressable_memory_unit_size called\n");
5409 return gdbarch
->addressable_memory_unit_size (gdbarch
);
5413 set_gdbarch_addressable_memory_unit_size (struct gdbarch
*gdbarch
,
5414 gdbarch_addressable_memory_unit_size_ftype addressable_memory_unit_size
)
5416 gdbarch
->addressable_memory_unit_size
= addressable_memory_unit_size
;
5420 gdbarch_disassembler_options_implicit (struct gdbarch
*gdbarch
)
5422 gdb_assert (gdbarch
!= NULL
);
5423 /* Skip verify of disassembler_options_implicit, invalid_p == 0. */
5424 if (gdbarch_debug
>= 2)
5425 gdb_printf (gdb_stdlog
, "gdbarch_disassembler_options_implicit called\n");
5426 return gdbarch
->disassembler_options_implicit
;
5430 set_gdbarch_disassembler_options_implicit (struct gdbarch
*gdbarch
,
5431 const char * disassembler_options_implicit
)
5433 gdbarch
->disassembler_options_implicit
= disassembler_options_implicit
;
5437 gdbarch_disassembler_options (struct gdbarch
*gdbarch
)
5439 gdb_assert (gdbarch
!= NULL
);
5440 /* Skip verify of disassembler_options, invalid_p == 0. */
5441 if (gdbarch_debug
>= 2)
5442 gdb_printf (gdb_stdlog
, "gdbarch_disassembler_options called\n");
5443 return gdbarch
->disassembler_options
;
5447 set_gdbarch_disassembler_options (struct gdbarch
*gdbarch
,
5448 std::string
* disassembler_options
)
5450 gdbarch
->disassembler_options
= disassembler_options
;
5453 const disasm_options_and_args_t
*
5454 gdbarch_valid_disassembler_options (struct gdbarch
*gdbarch
)
5456 gdb_assert (gdbarch
!= NULL
);
5457 /* Skip verify of valid_disassembler_options, invalid_p == 0. */
5458 if (gdbarch_debug
>= 2)
5459 gdb_printf (gdb_stdlog
, "gdbarch_valid_disassembler_options called\n");
5460 return gdbarch
->valid_disassembler_options
;
5464 set_gdbarch_valid_disassembler_options (struct gdbarch
*gdbarch
,
5465 const disasm_options_and_args_t
* valid_disassembler_options
)
5467 gdbarch
->valid_disassembler_options
= valid_disassembler_options
;
5471 gdbarch_type_align (struct gdbarch
*gdbarch
, struct type
*type
)
5473 gdb_assert (gdbarch
!= NULL
);
5474 gdb_assert (gdbarch
->type_align
!= NULL
);
5475 if (gdbarch_debug
>= 2)
5476 gdb_printf (gdb_stdlog
, "gdbarch_type_align called\n");
5477 return gdbarch
->type_align (gdbarch
, type
);
5481 set_gdbarch_type_align (struct gdbarch
*gdbarch
,
5482 gdbarch_type_align_ftype type_align
)
5484 gdbarch
->type_align
= type_align
;
5488 gdbarch_get_pc_address_flags (struct gdbarch
*gdbarch
, const frame_info_ptr
&frame
, CORE_ADDR pc
)
5490 gdb_assert (gdbarch
!= NULL
);
5491 gdb_assert (gdbarch
->get_pc_address_flags
!= NULL
);
5492 if (gdbarch_debug
>= 2)
5493 gdb_printf (gdb_stdlog
, "gdbarch_get_pc_address_flags called\n");
5494 return gdbarch
->get_pc_address_flags (frame
, pc
);
5498 set_gdbarch_get_pc_address_flags (struct gdbarch
*gdbarch
,
5499 gdbarch_get_pc_address_flags_ftype get_pc_address_flags
)
5501 gdbarch
->get_pc_address_flags
= get_pc_address_flags
;
5505 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
)
5507 gdb_assert (gdbarch
!= NULL
);
5508 gdb_assert (gdbarch
->read_core_file_mappings
!= NULL
);
5509 if (gdbarch_debug
>= 2)
5510 gdb_printf (gdb_stdlog
, "gdbarch_read_core_file_mappings called\n");
5511 gdbarch
->read_core_file_mappings (gdbarch
, cbfd
, pre_loop_cb
, loop_cb
);
5515 set_gdbarch_read_core_file_mappings (struct gdbarch
*gdbarch
,
5516 gdbarch_read_core_file_mappings_ftype read_core_file_mappings
)
5518 gdbarch
->read_core_file_mappings
= read_core_file_mappings
;
5522 gdbarch_use_target_description_from_corefile_notes (struct gdbarch
*gdbarch
, struct bfd
*corefile_bfd
)
5524 gdb_assert (gdbarch
!= NULL
);
5525 gdb_assert (gdbarch
->use_target_description_from_corefile_notes
!= NULL
);
5526 if (gdbarch_debug
>= 2)
5527 gdb_printf (gdb_stdlog
, "gdbarch_use_target_description_from_corefile_notes called\n");
5528 return gdbarch
->use_target_description_from_corefile_notes (gdbarch
, corefile_bfd
);
5532 set_gdbarch_use_target_description_from_corefile_notes (struct gdbarch
*gdbarch
,
5533 gdbarch_use_target_description_from_corefile_notes_ftype use_target_description_from_corefile_notes
)
5535 gdbarch
->use_target_description_from_corefile_notes
= use_target_description_from_corefile_notes
;
5538 core_file_exec_context
5539 gdbarch_core_parse_exec_context (struct gdbarch
*gdbarch
, bfd
*cbfd
)
5541 gdb_assert (gdbarch
!= NULL
);
5542 gdb_assert (gdbarch
->core_parse_exec_context
!= NULL
);
5543 if (gdbarch_debug
>= 2)
5544 gdb_printf (gdb_stdlog
, "gdbarch_core_parse_exec_context called\n");
5545 return gdbarch
->core_parse_exec_context (gdbarch
, cbfd
);
5549 set_gdbarch_core_parse_exec_context (struct gdbarch
*gdbarch
,
5550 gdbarch_core_parse_exec_context_ftype core_parse_exec_context
)
5552 gdbarch
->core_parse_exec_context
= core_parse_exec_context
;