1 /* *INDENT-OFF* */ /* THIS FILE IS GENERATED */
3 /* Dynamic architecture support for GDB, the GNU debugger.
4 Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 /* This file was created with the aid of ``gdbarch.sh''.
25 The Bourne shell script ``gdbarch.sh'' creates the files
26 ``new-gdbarch.c'' and ``new-gdbarch.h and then compares them
27 against the existing ``gdbarch.[hc]''. Any differences found
30 If editing this file, please also run gdbarch.sh and merge any
31 changes into that script. Conversely, when making sweeping changes
32 to this file, modifying gdbarch.sh and using its output may prove
37 #include "arch-utils.h"
41 #include "inferior.h" /* enum CALL_DUMMY_LOCATION et.al. */
43 /* Just include everything in sight so that the every old definition
44 of macro is visible. */
45 #include "gdb_string.h"
50 #include "breakpoint.h"
55 #include "gdbthread.h"
57 #include "symfile.h" /* for overlay functions */
58 #include "value.h" /* For old tm.h/nm.h macros. */
62 #include "floatformat.h"
64 #include "gdb_assert.h"
65 #include "gdb_string.h"
66 #include "gdb-events.h"
67 #include "reggroups.h"
69 #include "symfile.h" /* For entry_point_address. */
71 /* Static function declarations */
73 static void verify_gdbarch (struct gdbarch
*gdbarch
);
74 static void alloc_gdbarch_data (struct gdbarch
*);
75 static void free_gdbarch_data (struct gdbarch
*);
76 static void init_gdbarch_swap (struct gdbarch
*);
77 static void clear_gdbarch_swap (struct gdbarch
*);
78 static void swapout_gdbarch_swap (struct gdbarch
*);
79 static void swapin_gdbarch_swap (struct gdbarch
*);
81 /* Non-zero if we want to trace architecture code. */
84 #define GDBARCH_DEBUG 0
86 int gdbarch_debug
= GDBARCH_DEBUG
;
89 /* Maintain the struct gdbarch object */
93 /* Has this architecture been fully initialized? */
95 /* basic architectural information */
96 const struct bfd_arch_info
* bfd_arch_info
;
100 /* target specific vector. */
101 struct gdbarch_tdep
*tdep
;
102 gdbarch_dump_tdep_ftype
*dump_tdep
;
104 /* per-architecture data-pointers */
108 /* per-architecture swap-regions */
109 struct gdbarch_swap
*swap
;
111 /* Multi-arch values.
113 When extending this structure you must:
117 Declare set/get functions and define the corresponding
120 gdbarch_alloc(): If zero/NULL is not a suitable default,
121 initialize the new field.
123 verify_gdbarch(): Confirm that the target updated the field
126 gdbarch_dump(): Add a fprintf_unfiltered call so that the new
129 ``startup_gdbarch()'': Append an initial value to the static
130 variable (base values on the host's c-type system).
132 get_gdbarch(): Implement the set/get functions (probably using
133 the macro's as shortcuts).
148 gdbarch_read_pc_ftype
*read_pc
;
149 gdbarch_write_pc_ftype
*write_pc
;
150 gdbarch_read_sp_ftype
*read_sp
;
151 gdbarch_virtual_frame_pointer_ftype
*virtual_frame_pointer
;
152 gdbarch_pseudo_register_read_ftype
*pseudo_register_read
;
153 gdbarch_pseudo_register_write_ftype
*pseudo_register_write
;
161 gdbarch_stab_reg_to_regnum_ftype
*stab_reg_to_regnum
;
162 gdbarch_ecoff_reg_to_regnum_ftype
*ecoff_reg_to_regnum
;
163 gdbarch_dwarf_reg_to_regnum_ftype
*dwarf_reg_to_regnum
;
164 gdbarch_sdb_reg_to_regnum_ftype
*sdb_reg_to_regnum
;
165 gdbarch_dwarf2_reg_to_regnum_ftype
*dwarf2_reg_to_regnum
;
166 gdbarch_register_name_ftype
*register_name
;
167 gdbarch_register_type_ftype
*register_type
;
168 gdbarch_deprecated_register_virtual_type_ftype
*deprecated_register_virtual_type
;
169 int deprecated_register_bytes
;
170 gdbarch_deprecated_register_byte_ftype
*deprecated_register_byte
;
171 gdbarch_deprecated_register_raw_size_ftype
*deprecated_register_raw_size
;
172 gdbarch_deprecated_register_virtual_size_ftype
*deprecated_register_virtual_size
;
173 int deprecated_max_register_raw_size
;
174 int deprecated_max_register_virtual_size
;
175 gdbarch_unwind_dummy_id_ftype
*unwind_dummy_id
;
176 gdbarch_deprecated_save_dummy_frame_tos_ftype
*deprecated_save_dummy_frame_tos
;
177 int deprecated_fp_regnum
;
178 gdbarch_deprecated_target_read_fp_ftype
*deprecated_target_read_fp
;
179 gdbarch_push_dummy_call_ftype
*push_dummy_call
;
180 gdbarch_deprecated_push_arguments_ftype
*deprecated_push_arguments
;
181 int deprecated_use_generic_dummy_frames
;
182 gdbarch_deprecated_push_return_address_ftype
*deprecated_push_return_address
;
183 gdbarch_deprecated_dummy_write_sp_ftype
*deprecated_dummy_write_sp
;
184 int deprecated_register_size
;
185 int call_dummy_location
;
186 gdbarch_call_dummy_address_ftype
*call_dummy_address
;
187 CORE_ADDR deprecated_call_dummy_start_offset
;
188 CORE_ADDR deprecated_call_dummy_breakpoint_offset
;
189 int deprecated_call_dummy_length
;
190 LONGEST
* deprecated_call_dummy_words
;
191 int deprecated_sizeof_call_dummy_words
;
192 int deprecated_call_dummy_stack_adjust
;
193 gdbarch_deprecated_fix_call_dummy_ftype
*deprecated_fix_call_dummy
;
194 gdbarch_push_dummy_code_ftype
*push_dummy_code
;
195 gdbarch_deprecated_push_dummy_frame_ftype
*deprecated_push_dummy_frame
;
196 int deprecated_extra_stack_alignment_needed
;
197 gdbarch_deprecated_do_registers_info_ftype
*deprecated_do_registers_info
;
198 gdbarch_print_registers_info_ftype
*print_registers_info
;
199 gdbarch_print_float_info_ftype
*print_float_info
;
200 gdbarch_print_vector_info_ftype
*print_vector_info
;
201 gdbarch_register_sim_regno_ftype
*register_sim_regno
;
202 gdbarch_register_bytes_ok_ftype
*register_bytes_ok
;
203 gdbarch_cannot_fetch_register_ftype
*cannot_fetch_register
;
204 gdbarch_cannot_store_register_ftype
*cannot_store_register
;
205 gdbarch_get_longjmp_target_ftype
*get_longjmp_target
;
206 gdbarch_deprecated_pc_in_call_dummy_ftype
*deprecated_pc_in_call_dummy
;
207 gdbarch_deprecated_init_frame_pc_first_ftype
*deprecated_init_frame_pc_first
;
208 gdbarch_deprecated_init_frame_pc_ftype
*deprecated_init_frame_pc
;
209 int believe_pcc_promotion
;
210 int believe_pcc_promotion_type
;
211 gdbarch_deprecated_get_saved_register_ftype
*deprecated_get_saved_register
;
212 gdbarch_deprecated_register_convertible_ftype
*deprecated_register_convertible
;
213 gdbarch_deprecated_register_convert_to_virtual_ftype
*deprecated_register_convert_to_virtual
;
214 gdbarch_deprecated_register_convert_to_raw_ftype
*deprecated_register_convert_to_raw
;
215 gdbarch_convert_register_p_ftype
*convert_register_p
;
216 gdbarch_register_to_value_ftype
*register_to_value
;
217 gdbarch_value_to_register_ftype
*value_to_register
;
218 gdbarch_pointer_to_address_ftype
*pointer_to_address
;
219 gdbarch_address_to_pointer_ftype
*address_to_pointer
;
220 gdbarch_integer_to_address_ftype
*integer_to_address
;
221 gdbarch_return_value_on_stack_ftype
*return_value_on_stack
;
222 gdbarch_deprecated_pop_frame_ftype
*deprecated_pop_frame
;
223 gdbarch_deprecated_store_struct_return_ftype
*deprecated_store_struct_return
;
224 gdbarch_extract_return_value_ftype
*extract_return_value
;
225 gdbarch_store_return_value_ftype
*store_return_value
;
226 gdbarch_deprecated_extract_return_value_ftype
*deprecated_extract_return_value
;
227 gdbarch_deprecated_store_return_value_ftype
*deprecated_store_return_value
;
228 gdbarch_extract_struct_value_address_ftype
*extract_struct_value_address
;
229 gdbarch_deprecated_extract_struct_value_address_ftype
*deprecated_extract_struct_value_address
;
230 gdbarch_use_struct_convention_ftype
*use_struct_convention
;
231 gdbarch_deprecated_frame_init_saved_regs_ftype
*deprecated_frame_init_saved_regs
;
232 gdbarch_deprecated_init_extra_frame_info_ftype
*deprecated_init_extra_frame_info
;
233 gdbarch_skip_prologue_ftype
*skip_prologue
;
234 gdbarch_prologue_frameless_p_ftype
*prologue_frameless_p
;
235 gdbarch_inner_than_ftype
*inner_than
;
236 gdbarch_breakpoint_from_pc_ftype
*breakpoint_from_pc
;
237 gdbarch_memory_insert_breakpoint_ftype
*memory_insert_breakpoint
;
238 gdbarch_memory_remove_breakpoint_ftype
*memory_remove_breakpoint
;
239 CORE_ADDR decr_pc_after_break
;
240 gdbarch_prepare_to_proceed_ftype
*prepare_to_proceed
;
241 CORE_ADDR function_start_offset
;
242 gdbarch_remote_translate_xfer_address_ftype
*remote_translate_xfer_address
;
243 CORE_ADDR frame_args_skip
;
244 gdbarch_frameless_function_invocation_ftype
*frameless_function_invocation
;
245 gdbarch_deprecated_frame_chain_ftype
*deprecated_frame_chain
;
246 gdbarch_deprecated_frame_chain_valid_ftype
*deprecated_frame_chain_valid
;
247 gdbarch_deprecated_frame_saved_pc_ftype
*deprecated_frame_saved_pc
;
248 gdbarch_unwind_pc_ftype
*unwind_pc
;
249 gdbarch_unwind_sp_ftype
*unwind_sp
;
250 gdbarch_frame_args_address_ftype
*frame_args_address
;
251 gdbarch_frame_locals_address_ftype
*frame_locals_address
;
252 gdbarch_deprecated_saved_pc_after_call_ftype
*deprecated_saved_pc_after_call
;
253 gdbarch_frame_num_args_ftype
*frame_num_args
;
254 gdbarch_stack_align_ftype
*stack_align
;
255 gdbarch_frame_align_ftype
*frame_align
;
256 gdbarch_reg_struct_has_addr_ftype
*reg_struct_has_addr
;
258 const struct floatformat
* float_format
;
259 const struct floatformat
* double_format
;
260 const struct floatformat
* long_double_format
;
261 gdbarch_convert_from_func_ptr_addr_ftype
*convert_from_func_ptr_addr
;
262 gdbarch_addr_bits_remove_ftype
*addr_bits_remove
;
263 gdbarch_smash_text_address_ftype
*smash_text_address
;
264 gdbarch_software_single_step_ftype
*software_single_step
;
265 gdbarch_print_insn_ftype
*print_insn
;
266 gdbarch_skip_trampoline_code_ftype
*skip_trampoline_code
;
267 gdbarch_in_solib_call_trampoline_ftype
*in_solib_call_trampoline
;
268 gdbarch_in_solib_return_trampoline_ftype
*in_solib_return_trampoline
;
269 gdbarch_pc_in_sigtramp_ftype
*pc_in_sigtramp
;
270 gdbarch_sigtramp_start_ftype
*sigtramp_start
;
271 gdbarch_sigtramp_end_ftype
*sigtramp_end
;
272 gdbarch_in_function_epilogue_p_ftype
*in_function_epilogue_p
;
273 gdbarch_construct_inferior_arguments_ftype
*construct_inferior_arguments
;
274 gdbarch_dwarf2_build_frame_info_ftype
*dwarf2_build_frame_info
;
275 gdbarch_elf_make_msymbol_special_ftype
*elf_make_msymbol_special
;
276 gdbarch_coff_make_msymbol_special_ftype
*coff_make_msymbol_special
;
277 const char * name_of_malloc
;
278 int cannot_step_breakpoint
;
279 int have_nonsteppable_watchpoint
;
280 gdbarch_address_class_type_flags_ftype
*address_class_type_flags
;
281 gdbarch_address_class_type_flags_to_name_ftype
*address_class_type_flags_to_name
;
282 gdbarch_address_class_name_to_type_flags_ftype
*address_class_name_to_type_flags
;
283 gdbarch_register_reggroup_p_ftype
*register_reggroup_p
;
284 gdbarch_fetch_pointer_argument_ftype
*fetch_pointer_argument
;
288 /* The default architecture uses host values (for want of a better
291 extern const struct bfd_arch_info bfd_default_arch_struct
;
293 struct gdbarch startup_gdbarch
=
295 1, /* Always initialized. */
296 /* basic architecture information */
297 &bfd_default_arch_struct
, /* bfd_arch_info */
298 BFD_ENDIAN_BIG
, /* byte_order */
299 GDB_OSABI_UNKNOWN
, /* osabi */
300 /* target specific vector and its dump routine */
302 /*per-architecture data-pointers and swap regions */
304 /* Multi-arch values */
305 8 * sizeof (short), /* short_bit */
306 8 * sizeof (int), /* int_bit */
307 8 * sizeof (long), /* long_bit */
308 8 * sizeof (LONGEST
), /* long_long_bit */
309 8 * sizeof (float), /* float_bit */
310 8 * sizeof (double), /* double_bit */
311 8 * sizeof (long double), /* long_double_bit */
312 8 * sizeof (void*), /* ptr_bit */
313 8 * sizeof (void*), /* addr_bit */
314 8 * sizeof (void*), /* bfd_vma_bit */
319 0, /* virtual_frame_pointer */
320 0, /* pseudo_register_read */
321 0, /* pseudo_register_write */
323 0, /* num_pseudo_regs */
329 0, /* stab_reg_to_regnum */
330 0, /* ecoff_reg_to_regnum */
331 0, /* dwarf_reg_to_regnum */
332 0, /* sdb_reg_to_regnum */
333 0, /* dwarf2_reg_to_regnum */
334 0, /* register_name */
335 0, /* register_type */
336 0, /* deprecated_register_virtual_type */
337 0, /* deprecated_register_bytes */
338 generic_register_byte
, /* deprecated_register_byte */
339 generic_register_size
, /* deprecated_register_raw_size */
340 generic_register_size
, /* deprecated_register_virtual_size */
341 0, /* deprecated_max_register_raw_size */
342 0, /* deprecated_max_register_virtual_size */
343 0, /* unwind_dummy_id */
344 0, /* deprecated_save_dummy_frame_tos */
345 -1, /* deprecated_fp_regnum */
346 0, /* deprecated_target_read_fp */
347 0, /* push_dummy_call */
348 0, /* deprecated_push_arguments */
349 0, /* deprecated_use_generic_dummy_frames */
350 0, /* deprecated_push_return_address */
351 0, /* deprecated_dummy_write_sp */
352 0, /* deprecated_register_size */
353 0, /* call_dummy_location */
354 0, /* call_dummy_address */
355 0, /* deprecated_call_dummy_start_offset */
356 0, /* deprecated_call_dummy_breakpoint_offset */
357 0, /* deprecated_call_dummy_length */
358 0, /* deprecated_call_dummy_words */
359 0, /* deprecated_sizeof_call_dummy_words */
360 0, /* deprecated_call_dummy_stack_adjust */
361 0, /* deprecated_fix_call_dummy */
362 0, /* push_dummy_code */
363 0, /* deprecated_push_dummy_frame */
364 0, /* deprecated_extra_stack_alignment_needed */
365 0, /* deprecated_do_registers_info */
366 default_print_registers_info
, /* print_registers_info */
367 0, /* print_float_info */
368 0, /* print_vector_info */
369 0, /* register_sim_regno */
370 0, /* register_bytes_ok */
371 0, /* cannot_fetch_register */
372 0, /* cannot_store_register */
373 0, /* get_longjmp_target */
374 generic_pc_in_call_dummy
, /* deprecated_pc_in_call_dummy */
375 0, /* deprecated_init_frame_pc_first */
376 0, /* deprecated_init_frame_pc */
377 0, /* believe_pcc_promotion */
378 0, /* believe_pcc_promotion_type */
379 0, /* deprecated_get_saved_register */
380 0, /* deprecated_register_convertible */
381 0, /* deprecated_register_convert_to_virtual */
382 0, /* deprecated_register_convert_to_raw */
383 0, /* convert_register_p */
384 0, /* register_to_value */
385 0, /* value_to_register */
386 0, /* pointer_to_address */
387 0, /* address_to_pointer */
388 0, /* integer_to_address */
389 0, /* return_value_on_stack */
390 0, /* deprecated_pop_frame */
391 0, /* deprecated_store_struct_return */
392 0, /* extract_return_value */
393 0, /* store_return_value */
394 0, /* deprecated_extract_return_value */
395 0, /* deprecated_store_return_value */
396 0, /* extract_struct_value_address */
397 0, /* deprecated_extract_struct_value_address */
398 0, /* use_struct_convention */
399 0, /* deprecated_frame_init_saved_regs */
400 0, /* deprecated_init_extra_frame_info */
401 0, /* skip_prologue */
402 0, /* prologue_frameless_p */
404 0, /* breakpoint_from_pc */
405 0, /* memory_insert_breakpoint */
406 0, /* memory_remove_breakpoint */
407 0, /* decr_pc_after_break */
408 0, /* prepare_to_proceed */
409 0, /* function_start_offset */
410 generic_remote_translate_xfer_address
, /* remote_translate_xfer_address */
411 0, /* frame_args_skip */
412 0, /* frameless_function_invocation */
413 0, /* deprecated_frame_chain */
414 0, /* deprecated_frame_chain_valid */
415 0, /* deprecated_frame_saved_pc */
418 0, /* frame_args_address */
419 0, /* frame_locals_address */
420 0, /* deprecated_saved_pc_after_call */
421 0, /* frame_num_args */
424 0, /* reg_struct_has_addr */
425 0, /* parm_boundary */
426 0, /* float_format */
427 0, /* double_format */
428 0, /* long_double_format */
429 0, /* convert_from_func_ptr_addr */
430 0, /* addr_bits_remove */
431 0, /* smash_text_address */
432 0, /* software_single_step */
434 0, /* skip_trampoline_code */
435 0, /* in_solib_call_trampoline */
436 0, /* in_solib_return_trampoline */
437 0, /* pc_in_sigtramp */
438 0, /* sigtramp_start */
439 0, /* sigtramp_end */
440 generic_in_function_epilogue_p
, /* in_function_epilogue_p */
441 construct_inferior_arguments
, /* construct_inferior_arguments */
442 0, /* dwarf2_build_frame_info */
443 0, /* elf_make_msymbol_special */
444 0, /* coff_make_msymbol_special */
445 "malloc", /* name_of_malloc */
446 0, /* cannot_step_breakpoint */
447 0, /* have_nonsteppable_watchpoint */
448 0, /* address_class_type_flags */
449 0, /* address_class_type_flags_to_name */
450 0, /* address_class_name_to_type_flags */
451 default_register_reggroup_p
, /* register_reggroup_p */
452 0, /* fetch_pointer_argument */
453 /* startup_gdbarch() */
456 struct gdbarch
*current_gdbarch
= &startup_gdbarch
;
458 /* Do any initialization needed for a non-multiarch configuration
459 after the _initialize_MODULE functions have been run. */
461 initialize_non_multiarch (void)
463 alloc_gdbarch_data (&startup_gdbarch
);
464 /* Ensure that all swap areas are zeroed so that they again think
465 they are starting from scratch. */
466 clear_gdbarch_swap (&startup_gdbarch
);
467 init_gdbarch_swap (&startup_gdbarch
);
471 /* Create a new ``struct gdbarch'' based on information provided by
472 ``struct gdbarch_info''. */
475 gdbarch_alloc (const struct gdbarch_info
*info
,
476 struct gdbarch_tdep
*tdep
)
478 /* NOTE: The new architecture variable is named ``current_gdbarch''
479 so that macros such as TARGET_DOUBLE_BIT, when expanded, refer to
480 the current local architecture and not the previous global
481 architecture. This ensures that the new architectures initial
482 values are not influenced by the previous architecture. Once
483 everything is parameterised with gdbarch, this will go away. */
484 struct gdbarch
*current_gdbarch
= XMALLOC (struct gdbarch
);
485 memset (current_gdbarch
, 0, sizeof (*current_gdbarch
));
487 alloc_gdbarch_data (current_gdbarch
);
489 current_gdbarch
->tdep
= tdep
;
491 current_gdbarch
->bfd_arch_info
= info
->bfd_arch_info
;
492 current_gdbarch
->byte_order
= info
->byte_order
;
493 current_gdbarch
->osabi
= info
->osabi
;
495 /* Force the explicit initialization of these. */
496 current_gdbarch
->short_bit
= 2*TARGET_CHAR_BIT
;
497 current_gdbarch
->int_bit
= 4*TARGET_CHAR_BIT
;
498 current_gdbarch
->long_bit
= 4*TARGET_CHAR_BIT
;
499 current_gdbarch
->long_long_bit
= 2*TARGET_LONG_BIT
;
500 current_gdbarch
->float_bit
= 4*TARGET_CHAR_BIT
;
501 current_gdbarch
->double_bit
= 8*TARGET_CHAR_BIT
;
502 current_gdbarch
->long_double_bit
= 8*TARGET_CHAR_BIT
;
503 current_gdbarch
->ptr_bit
= TARGET_INT_BIT
;
504 current_gdbarch
->bfd_vma_bit
= TARGET_ARCHITECTURE
->bits_per_address
;
505 current_gdbarch
->char_signed
= -1;
506 current_gdbarch
->write_pc
= generic_target_write_pc
;
507 current_gdbarch
->virtual_frame_pointer
= legacy_virtual_frame_pointer
;
508 current_gdbarch
->num_regs
= -1;
509 current_gdbarch
->sp_regnum
= -1;
510 current_gdbarch
->pc_regnum
= -1;
511 current_gdbarch
->ps_regnum
= -1;
512 current_gdbarch
->fp0_regnum
= -1;
513 current_gdbarch
->npc_regnum
= -1;
514 current_gdbarch
->stab_reg_to_regnum
= no_op_reg_to_regnum
;
515 current_gdbarch
->ecoff_reg_to_regnum
= no_op_reg_to_regnum
;
516 current_gdbarch
->dwarf_reg_to_regnum
= no_op_reg_to_regnum
;
517 current_gdbarch
->sdb_reg_to_regnum
= no_op_reg_to_regnum
;
518 current_gdbarch
->dwarf2_reg_to_regnum
= no_op_reg_to_regnum
;
519 current_gdbarch
->register_name
= legacy_register_name
;
520 current_gdbarch
->deprecated_register_byte
= generic_register_byte
;
521 current_gdbarch
->deprecated_register_raw_size
= generic_register_size
;
522 current_gdbarch
->deprecated_register_virtual_size
= generic_register_size
;
523 current_gdbarch
->deprecated_fp_regnum
= -1;
524 current_gdbarch
->deprecated_use_generic_dummy_frames
= 1;
525 current_gdbarch
->call_dummy_location
= AT_ENTRY_POINT
;
526 current_gdbarch
->call_dummy_address
= entry_point_address
;
527 current_gdbarch
->deprecated_call_dummy_words
= legacy_call_dummy_words
;
528 current_gdbarch
->deprecated_sizeof_call_dummy_words
= legacy_sizeof_call_dummy_words
;
529 current_gdbarch
->print_registers_info
= default_print_registers_info
;
530 current_gdbarch
->register_sim_regno
= legacy_register_sim_regno
;
531 current_gdbarch
->cannot_fetch_register
= cannot_register_not
;
532 current_gdbarch
->cannot_store_register
= cannot_register_not
;
533 current_gdbarch
->deprecated_pc_in_call_dummy
= generic_pc_in_call_dummy
;
534 current_gdbarch
->deprecated_register_convertible
= deprecated_register_convertible_not
;
535 current_gdbarch
->convert_register_p
= legacy_convert_register_p
;
536 current_gdbarch
->register_to_value
= legacy_register_to_value
;
537 current_gdbarch
->value_to_register
= legacy_value_to_register
;
538 current_gdbarch
->pointer_to_address
= unsigned_pointer_to_address
;
539 current_gdbarch
->address_to_pointer
= unsigned_address_to_pointer
;
540 current_gdbarch
->return_value_on_stack
= generic_return_value_on_stack_not
;
541 current_gdbarch
->extract_return_value
= legacy_extract_return_value
;
542 current_gdbarch
->store_return_value
= legacy_store_return_value
;
543 current_gdbarch
->use_struct_convention
= generic_use_struct_convention
;
544 current_gdbarch
->prologue_frameless_p
= generic_prologue_frameless_p
;
545 current_gdbarch
->memory_insert_breakpoint
= default_memory_insert_breakpoint
;
546 current_gdbarch
->memory_remove_breakpoint
= default_memory_remove_breakpoint
;
547 current_gdbarch
->decr_pc_after_break
= -1;
548 current_gdbarch
->prepare_to_proceed
= default_prepare_to_proceed
;
549 current_gdbarch
->function_start_offset
= -1;
550 current_gdbarch
->remote_translate_xfer_address
= generic_remote_translate_xfer_address
;
551 current_gdbarch
->frame_args_skip
= -1;
552 current_gdbarch
->frameless_function_invocation
= generic_frameless_function_invocation_not
;
553 current_gdbarch
->frame_args_address
= get_frame_base
;
554 current_gdbarch
->frame_locals_address
= get_frame_base
;
555 current_gdbarch
->convert_from_func_ptr_addr
= core_addr_identity
;
556 current_gdbarch
->addr_bits_remove
= core_addr_identity
;
557 current_gdbarch
->smash_text_address
= core_addr_identity
;
558 current_gdbarch
->print_insn
= legacy_print_insn
;
559 current_gdbarch
->skip_trampoline_code
= generic_skip_trampoline_code
;
560 current_gdbarch
->in_solib_call_trampoline
= generic_in_solib_call_trampoline
;
561 current_gdbarch
->in_solib_return_trampoline
= generic_in_solib_return_trampoline
;
562 current_gdbarch
->pc_in_sigtramp
= legacy_pc_in_sigtramp
;
563 current_gdbarch
->in_function_epilogue_p
= generic_in_function_epilogue_p
;
564 current_gdbarch
->construct_inferior_arguments
= construct_inferior_arguments
;
565 current_gdbarch
->elf_make_msymbol_special
= default_elf_make_msymbol_special
;
566 current_gdbarch
->coff_make_msymbol_special
= default_coff_make_msymbol_special
;
567 current_gdbarch
->name_of_malloc
= "malloc";
568 current_gdbarch
->register_reggroup_p
= default_register_reggroup_p
;
569 /* gdbarch_alloc() */
571 return current_gdbarch
;
575 /* Free a gdbarch struct. This should never happen in normal
576 operation --- once you've created a gdbarch, you keep it around.
577 However, if an architecture's init function encounters an error
578 building the structure, it may need to clean up a partially
579 constructed gdbarch. */
582 gdbarch_free (struct gdbarch
*arch
)
584 gdb_assert (arch
!= NULL
);
585 free_gdbarch_data (arch
);
590 /* Ensure that all values in a GDBARCH are reasonable. */
593 verify_gdbarch (struct gdbarch
*gdbarch
)
596 struct cleanup
*cleanups
;
599 /* Only perform sanity checks on a multi-arch target. */
602 log
= mem_fileopen ();
603 cleanups
= make_cleanup_ui_file_delete (log
);
605 if (gdbarch
->byte_order
== BFD_ENDIAN_UNKNOWN
)
606 fprintf_unfiltered (log
, "\n\tbyte-order");
607 if (gdbarch
->bfd_arch_info
== NULL
)
608 fprintf_unfiltered (log
, "\n\tbfd_arch_info");
609 /* Check those that need to be defined for the given multi-arch level. */
610 /* Skip verify of short_bit, invalid_p == 0 */
611 /* Skip verify of int_bit, invalid_p == 0 */
612 /* Skip verify of long_bit, invalid_p == 0 */
613 /* Skip verify of long_long_bit, invalid_p == 0 */
614 /* Skip verify of float_bit, invalid_p == 0 */
615 /* Skip verify of double_bit, invalid_p == 0 */
616 /* Skip verify of long_double_bit, invalid_p == 0 */
617 /* Skip verify of ptr_bit, invalid_p == 0 */
618 if (gdbarch
->addr_bit
== 0)
619 gdbarch
->addr_bit
= TARGET_PTR_BIT
;
620 /* Skip verify of bfd_vma_bit, invalid_p == 0 */
621 if (gdbarch
->char_signed
== -1)
622 gdbarch
->char_signed
= 1;
623 /* Skip verify of read_pc, has predicate */
624 /* Skip verify of write_pc, invalid_p == 0 */
625 /* Skip verify of read_sp, has predicate */
626 /* Skip verify of virtual_frame_pointer, invalid_p == 0 */
627 /* Skip verify of pseudo_register_read, has predicate */
628 /* Skip verify of pseudo_register_write, has predicate */
629 if ((GDB_MULTI_ARCH
> GDB_MULTI_ARCH_PARTIAL
)
630 && (gdbarch
->num_regs
== -1))
631 fprintf_unfiltered (log
, "\n\tnum_regs");
632 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
633 /* Skip verify of sp_regnum, invalid_p == 0 */
634 /* Skip verify of pc_regnum, invalid_p == 0 */
635 /* Skip verify of ps_regnum, invalid_p == 0 */
636 /* Skip verify of fp0_regnum, invalid_p == 0 */
637 /* Skip verify of npc_regnum, invalid_p == 0 */
638 /* Skip verify of stab_reg_to_regnum, invalid_p == 0 */
639 /* Skip verify of ecoff_reg_to_regnum, invalid_p == 0 */
640 /* Skip verify of dwarf_reg_to_regnum, invalid_p == 0 */
641 /* Skip verify of sdb_reg_to_regnum, invalid_p == 0 */
642 /* Skip verify of dwarf2_reg_to_regnum, invalid_p == 0 */
643 /* Skip verify of register_name, invalid_p == 0 */
644 /* Skip verify of register_type, has predicate */
645 /* Skip verify of deprecated_register_virtual_type, has predicate */
646 /* Skip verify of deprecated_register_byte, has predicate */
647 /* Skip verify of deprecated_register_raw_size, invalid_p == 0 */
648 /* Skip verify of deprecated_register_virtual_size, invalid_p == 0 */
649 /* Skip verify of deprecated_max_register_raw_size, has predicate */
650 /* Skip verify of deprecated_max_register_virtual_size, has predicate */
651 /* Skip verify of unwind_dummy_id, has predicate */
652 /* Skip verify of deprecated_save_dummy_frame_tos, has predicate */
653 /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
654 /* Skip verify of deprecated_target_read_fp, has predicate */
655 /* Skip verify of push_dummy_call, has predicate */
656 /* Skip verify of deprecated_push_arguments, has predicate */
657 /* Skip verify of deprecated_use_generic_dummy_frames, invalid_p == 0 */
658 /* Skip verify of deprecated_push_return_address, has predicate */
659 /* Skip verify of deprecated_dummy_write_sp, has predicate */
660 /* Skip verify of call_dummy_location, invalid_p == 0 */
661 /* Skip verify of call_dummy_address, invalid_p == 0 */
662 /* Skip verify of deprecated_call_dummy_words, invalid_p == 0 */
663 /* Skip verify of deprecated_sizeof_call_dummy_words, invalid_p == 0 */
664 /* Skip verify of deprecated_call_dummy_stack_adjust, has predicate */
665 /* Skip verify of deprecated_fix_call_dummy, has predicate */
666 /* Skip verify of push_dummy_code, has predicate */
667 /* Skip verify of deprecated_push_dummy_frame, has predicate */
668 /* Skip verify of deprecated_extra_stack_alignment_needed, invalid_p == 0 */
669 /* Skip verify of deprecated_do_registers_info, has predicate */
670 /* Skip verify of print_registers_info, invalid_p == 0 */
671 /* Skip verify of print_float_info, has predicate */
672 /* Skip verify of print_vector_info, has predicate */
673 /* Skip verify of register_sim_regno, invalid_p == 0 */
674 /* Skip verify of register_bytes_ok, has predicate */
675 /* Skip verify of cannot_fetch_register, invalid_p == 0 */
676 /* Skip verify of cannot_store_register, invalid_p == 0 */
677 /* Skip verify of get_longjmp_target, has predicate */
678 /* Skip verify of deprecated_pc_in_call_dummy, has predicate */
679 /* Skip verify of deprecated_init_frame_pc_first, has predicate */
680 /* Skip verify of deprecated_init_frame_pc, has predicate */
681 /* Skip verify of deprecated_get_saved_register, has predicate */
682 /* Skip verify of deprecated_register_convertible, invalid_p == 0 */
683 /* Skip verify of deprecated_register_convert_to_virtual, invalid_p == 0 */
684 /* Skip verify of deprecated_register_convert_to_raw, invalid_p == 0 */
685 /* Skip verify of convert_register_p, invalid_p == 0 */
686 /* Skip verify of register_to_value, invalid_p == 0 */
687 /* Skip verify of value_to_register, invalid_p == 0 */
688 /* Skip verify of pointer_to_address, invalid_p == 0 */
689 /* Skip verify of address_to_pointer, invalid_p == 0 */
690 /* Skip verify of integer_to_address, has predicate */
691 /* Skip verify of return_value_on_stack, invalid_p == 0 */
692 /* Skip verify of deprecated_pop_frame, has predicate */
693 /* Skip verify of deprecated_store_struct_return, has predicate */
694 /* Skip verify of extract_return_value, invalid_p == 0 */
695 /* Skip verify of store_return_value, invalid_p == 0 */
696 /* Skip verify of extract_struct_value_address, has predicate */
697 /* Skip verify of deprecated_extract_struct_value_address, has predicate */
698 /* Skip verify of use_struct_convention, invalid_p == 0 */
699 /* Skip verify of deprecated_frame_init_saved_regs, has predicate */
700 /* Skip verify of deprecated_init_extra_frame_info, has predicate */
701 if ((GDB_MULTI_ARCH
> GDB_MULTI_ARCH_PARTIAL
)
702 && (gdbarch
->skip_prologue
== 0))
703 fprintf_unfiltered (log
, "\n\tskip_prologue");
704 /* Skip verify of prologue_frameless_p, invalid_p == 0 */
705 if ((GDB_MULTI_ARCH
> GDB_MULTI_ARCH_PARTIAL
)
706 && (gdbarch
->inner_than
== 0))
707 fprintf_unfiltered (log
, "\n\tinner_than");
708 if ((GDB_MULTI_ARCH
> GDB_MULTI_ARCH_PARTIAL
)
709 && (gdbarch
->breakpoint_from_pc
== 0))
710 fprintf_unfiltered (log
, "\n\tbreakpoint_from_pc");
711 /* Skip verify of memory_insert_breakpoint, invalid_p == 0 */
712 /* Skip verify of memory_remove_breakpoint, invalid_p == 0 */
713 if ((GDB_MULTI_ARCH
> GDB_MULTI_ARCH_PARTIAL
)
714 && (gdbarch
->decr_pc_after_break
== -1))
715 fprintf_unfiltered (log
, "\n\tdecr_pc_after_break");
716 /* Skip verify of prepare_to_proceed, invalid_p == 0 */
717 if ((GDB_MULTI_ARCH
> GDB_MULTI_ARCH_PARTIAL
)
718 && (gdbarch
->function_start_offset
== -1))
719 fprintf_unfiltered (log
, "\n\tfunction_start_offset");
720 /* Skip verify of remote_translate_xfer_address, invalid_p == 0 */
721 if ((GDB_MULTI_ARCH
> GDB_MULTI_ARCH_PARTIAL
)
722 && (gdbarch
->frame_args_skip
== -1))
723 fprintf_unfiltered (log
, "\n\tframe_args_skip");
724 /* Skip verify of frameless_function_invocation, invalid_p == 0 */
725 /* Skip verify of deprecated_frame_chain, has predicate */
726 /* Skip verify of deprecated_frame_chain_valid, has predicate */
727 /* Skip verify of deprecated_frame_saved_pc, has predicate */
728 /* Skip verify of unwind_pc, has predicate */
729 /* Skip verify of unwind_sp, has predicate */
730 /* Skip verify of frame_args_address, invalid_p == 0 */
731 /* Skip verify of frame_locals_address, invalid_p == 0 */
732 /* Skip verify of deprecated_saved_pc_after_call, has predicate */
733 /* Skip verify of frame_num_args, has predicate */
734 /* Skip verify of stack_align, has predicate */
735 /* Skip verify of frame_align, has predicate */
736 /* Skip verify of reg_struct_has_addr, has predicate */
737 if (gdbarch
->float_format
== 0)
738 gdbarch
->float_format
= default_float_format (gdbarch
);
739 if (gdbarch
->double_format
== 0)
740 gdbarch
->double_format
= default_double_format (gdbarch
);
741 if (gdbarch
->long_double_format
== 0)
742 gdbarch
->long_double_format
= default_double_format (gdbarch
);
743 /* Skip verify of convert_from_func_ptr_addr, invalid_p == 0 */
744 /* Skip verify of addr_bits_remove, invalid_p == 0 */
745 /* Skip verify of smash_text_address, invalid_p == 0 */
746 /* Skip verify of software_single_step, has predicate */
747 /* Skip verify of print_insn, invalid_p == 0 */
748 /* Skip verify of skip_trampoline_code, invalid_p == 0 */
749 /* Skip verify of in_solib_call_trampoline, invalid_p == 0 */
750 /* Skip verify of in_solib_return_trampoline, invalid_p == 0 */
751 /* Skip verify of pc_in_sigtramp, invalid_p == 0 */
752 /* Skip verify of sigtramp_start, has predicate */
753 /* Skip verify of sigtramp_end, has predicate */
754 /* Skip verify of in_function_epilogue_p, invalid_p == 0 */
755 /* Skip verify of construct_inferior_arguments, invalid_p == 0 */
756 /* Skip verify of dwarf2_build_frame_info, has predicate */
757 /* Skip verify of elf_make_msymbol_special, invalid_p == 0 */
758 /* Skip verify of coff_make_msymbol_special, invalid_p == 0 */
759 /* Skip verify of name_of_malloc, invalid_p == 0 */
760 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */
761 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */
762 /* Skip verify of address_class_type_flags, has predicate */
763 /* Skip verify of address_class_type_flags_to_name, has predicate */
764 /* Skip verify of address_class_name_to_type_flags, has predicate */
765 /* Skip verify of register_reggroup_p, invalid_p == 0 */
766 /* Skip verify of fetch_pointer_argument, has predicate */
767 buf
= ui_file_xstrdup (log
, &dummy
);
768 make_cleanup (xfree
, buf
);
769 if (strlen (buf
) > 0)
770 internal_error (__FILE__
, __LINE__
,
771 "verify_gdbarch: the following are invalid ...%s",
773 do_cleanups (cleanups
);
777 /* Print out the details of the current architecture. */
779 /* NOTE/WARNING: The parameter is called ``current_gdbarch'' so that it
780 just happens to match the global variable ``current_gdbarch''. That
781 way macros refering to that variable get the local and not the global
782 version - ulgh. Once everything is parameterised with gdbarch, this
786 gdbarch_dump (struct gdbarch
*gdbarch
, struct ui_file
*file
)
788 fprintf_unfiltered (file
,
789 "gdbarch_dump: GDB_MULTI_ARCH = %d\n",
792 fprintf_unfiltered (file
,
793 "gdbarch_dump: gdbarch_frame_align_p() = %d\n",
794 gdbarch_frame_align_p (current_gdbarch
));
796 fprintf_unfiltered (file
,
797 "gdbarch_dump: frame_align = 0x%08lx\n",
798 (long) current_gdbarch
->frame_align
);
800 fprintf_unfiltered (file
,
801 "gdbarch_dump: in_function_epilogue_p = 0x%08lx\n",
802 (long) current_gdbarch
->in_function_epilogue_p
);
804 fprintf_unfiltered (file
,
805 "gdbarch_dump: register_reggroup_p = 0x%08lx\n",
806 (long) current_gdbarch
->register_reggroup_p
);
808 fprintf_unfiltered (file
,
809 "gdbarch_dump: gdbarch_pseudo_register_read_p() = %d\n",
810 gdbarch_pseudo_register_read_p (current_gdbarch
));
812 fprintf_unfiltered (file
,
813 "gdbarch_dump: pseudo_register_read = 0x%08lx\n",
814 (long) current_gdbarch
->pseudo_register_read
);
816 fprintf_unfiltered (file
,
817 "gdbarch_dump: gdbarch_pseudo_register_write_p() = %d\n",
818 gdbarch_pseudo_register_write_p (current_gdbarch
));
820 fprintf_unfiltered (file
,
821 "gdbarch_dump: pseudo_register_write = 0x%08lx\n",
822 (long) current_gdbarch
->pseudo_register_write
);
824 fprintf_unfiltered (file
,
825 "gdbarch_dump: gdbarch_address_class_name_to_type_flags_p() = %d\n",
826 gdbarch_address_class_name_to_type_flags_p (current_gdbarch
));
828 fprintf_unfiltered (file
,
829 "gdbarch_dump: address_class_name_to_type_flags = 0x%08lx\n",
830 (long) current_gdbarch
->address_class_name_to_type_flags
);
831 #ifdef ADDRESS_CLASS_TYPE_FLAGS_P
832 fprintf_unfiltered (file
,
833 "gdbarch_dump: %s # %s\n",
834 "ADDRESS_CLASS_TYPE_FLAGS_P()",
835 XSTRING (ADDRESS_CLASS_TYPE_FLAGS_P ()));
836 fprintf_unfiltered (file
,
837 "gdbarch_dump: ADDRESS_CLASS_TYPE_FLAGS_P() = %d\n",
838 ADDRESS_CLASS_TYPE_FLAGS_P ());
840 #ifdef ADDRESS_CLASS_TYPE_FLAGS
841 fprintf_unfiltered (file
,
842 "gdbarch_dump: %s # %s\n",
843 "ADDRESS_CLASS_TYPE_FLAGS(byte_size, dwarf2_addr_class)",
844 XSTRING (ADDRESS_CLASS_TYPE_FLAGS (byte_size
, dwarf2_addr_class
)));
846 fprintf_unfiltered (file
,
847 "gdbarch_dump: ADDRESS_CLASS_TYPE_FLAGS = <0x%08lx>\n",
848 (long) current_gdbarch
->address_class_type_flags
849 /*ADDRESS_CLASS_TYPE_FLAGS ()*/);
852 fprintf_unfiltered (file
,
853 "gdbarch_dump: gdbarch_address_class_type_flags_to_name_p() = %d\n",
854 gdbarch_address_class_type_flags_to_name_p (current_gdbarch
));
856 fprintf_unfiltered (file
,
857 "gdbarch_dump: address_class_type_flags_to_name = 0x%08lx\n",
858 (long) current_gdbarch
->address_class_type_flags_to_name
);
859 #ifdef ADDRESS_TO_POINTER
861 /* Macro might contain `[{}]' when not multi-arch */
862 fprintf_unfiltered (file
,
863 "gdbarch_dump: %s # %s\n",
864 "ADDRESS_TO_POINTER(type, buf, addr)",
865 XSTRING (ADDRESS_TO_POINTER (type
, buf
, addr
)));
868 fprintf_unfiltered (file
,
869 "gdbarch_dump: ADDRESS_TO_POINTER = <0x%08lx>\n",
870 (long) current_gdbarch
->address_to_pointer
871 /*ADDRESS_TO_POINTER ()*/);
873 #ifdef ADDR_BITS_REMOVE
874 fprintf_unfiltered (file
,
875 "gdbarch_dump: %s # %s\n",
876 "ADDR_BITS_REMOVE(addr)",
877 XSTRING (ADDR_BITS_REMOVE (addr
)));
879 fprintf_unfiltered (file
,
880 "gdbarch_dump: ADDR_BITS_REMOVE = <0x%08lx>\n",
881 (long) current_gdbarch
->addr_bits_remove
882 /*ADDR_BITS_REMOVE ()*/);
884 #ifdef BELIEVE_PCC_PROMOTION
885 fprintf_unfiltered (file
,
886 "gdbarch_dump: BELIEVE_PCC_PROMOTION # %s\n",
887 XSTRING (BELIEVE_PCC_PROMOTION
));
888 fprintf_unfiltered (file
,
889 "gdbarch_dump: BELIEVE_PCC_PROMOTION = %d\n",
890 BELIEVE_PCC_PROMOTION
);
892 #ifdef BELIEVE_PCC_PROMOTION_TYPE
893 fprintf_unfiltered (file
,
894 "gdbarch_dump: BELIEVE_PCC_PROMOTION_TYPE # %s\n",
895 XSTRING (BELIEVE_PCC_PROMOTION_TYPE
));
896 fprintf_unfiltered (file
,
897 "gdbarch_dump: BELIEVE_PCC_PROMOTION_TYPE = %d\n",
898 BELIEVE_PCC_PROMOTION_TYPE
);
900 #ifdef BREAKPOINT_FROM_PC
901 fprintf_unfiltered (file
,
902 "gdbarch_dump: %s # %s\n",
903 "BREAKPOINT_FROM_PC(pcptr, lenptr)",
904 XSTRING (BREAKPOINT_FROM_PC (pcptr
, lenptr
)));
906 fprintf_unfiltered (file
,
907 "gdbarch_dump: BREAKPOINT_FROM_PC = <0x%08lx>\n",
908 (long) current_gdbarch
->breakpoint_from_pc
909 /*BREAKPOINT_FROM_PC ()*/);
911 #ifdef CALL_DUMMY_ADDRESS
912 fprintf_unfiltered (file
,
913 "gdbarch_dump: %s # %s\n",
914 "CALL_DUMMY_ADDRESS()",
915 XSTRING (CALL_DUMMY_ADDRESS ()));
917 fprintf_unfiltered (file
,
918 "gdbarch_dump: CALL_DUMMY_ADDRESS = <0x%08lx>\n",
919 (long) current_gdbarch
->call_dummy_address
920 /*CALL_DUMMY_ADDRESS ()*/);
922 #ifdef CALL_DUMMY_LOCATION
923 fprintf_unfiltered (file
,
924 "gdbarch_dump: CALL_DUMMY_LOCATION # %s\n",
925 XSTRING (CALL_DUMMY_LOCATION
));
926 fprintf_unfiltered (file
,
927 "gdbarch_dump: CALL_DUMMY_LOCATION = %d\n",
928 CALL_DUMMY_LOCATION
);
930 #ifdef CANNOT_FETCH_REGISTER
931 fprintf_unfiltered (file
,
932 "gdbarch_dump: %s # %s\n",
933 "CANNOT_FETCH_REGISTER(regnum)",
934 XSTRING (CANNOT_FETCH_REGISTER (regnum
)));
936 fprintf_unfiltered (file
,
937 "gdbarch_dump: CANNOT_FETCH_REGISTER = <0x%08lx>\n",
938 (long) current_gdbarch
->cannot_fetch_register
939 /*CANNOT_FETCH_REGISTER ()*/);
941 #ifdef CANNOT_STEP_BREAKPOINT
942 fprintf_unfiltered (file
,
943 "gdbarch_dump: CANNOT_STEP_BREAKPOINT # %s\n",
944 XSTRING (CANNOT_STEP_BREAKPOINT
));
945 fprintf_unfiltered (file
,
946 "gdbarch_dump: CANNOT_STEP_BREAKPOINT = %d\n",
947 CANNOT_STEP_BREAKPOINT
);
949 #ifdef CANNOT_STORE_REGISTER
950 fprintf_unfiltered (file
,
951 "gdbarch_dump: %s # %s\n",
952 "CANNOT_STORE_REGISTER(regnum)",
953 XSTRING (CANNOT_STORE_REGISTER (regnum
)));
955 fprintf_unfiltered (file
,
956 "gdbarch_dump: CANNOT_STORE_REGISTER = <0x%08lx>\n",
957 (long) current_gdbarch
->cannot_store_register
958 /*CANNOT_STORE_REGISTER ()*/);
960 #ifdef COFF_MAKE_MSYMBOL_SPECIAL
962 /* Macro might contain `[{}]' when not multi-arch */
963 fprintf_unfiltered (file
,
964 "gdbarch_dump: %s # %s\n",
965 "COFF_MAKE_MSYMBOL_SPECIAL(val, msym)",
966 XSTRING (COFF_MAKE_MSYMBOL_SPECIAL (val
, msym
)));
969 fprintf_unfiltered (file
,
970 "gdbarch_dump: COFF_MAKE_MSYMBOL_SPECIAL = <0x%08lx>\n",
971 (long) current_gdbarch
->coff_make_msymbol_special
972 /*COFF_MAKE_MSYMBOL_SPECIAL ()*/);
975 fprintf_unfiltered (file
,
976 "gdbarch_dump: construct_inferior_arguments = 0x%08lx\n",
977 (long) current_gdbarch
->construct_inferior_arguments
);
978 #ifdef CONVERT_FROM_FUNC_PTR_ADDR
979 fprintf_unfiltered (file
,
980 "gdbarch_dump: %s # %s\n",
981 "CONVERT_FROM_FUNC_PTR_ADDR(addr)",
982 XSTRING (CONVERT_FROM_FUNC_PTR_ADDR (addr
)));
984 fprintf_unfiltered (file
,
985 "gdbarch_dump: CONVERT_FROM_FUNC_PTR_ADDR = <0x%08lx>\n",
986 (long) current_gdbarch
->convert_from_func_ptr_addr
987 /*CONVERT_FROM_FUNC_PTR_ADDR ()*/);
989 #ifdef CONVERT_REGISTER_P
990 fprintf_unfiltered (file
,
991 "gdbarch_dump: %s # %s\n",
992 "CONVERT_REGISTER_P(regnum, type)",
993 XSTRING (CONVERT_REGISTER_P (regnum
, type
)));
995 fprintf_unfiltered (file
,
996 "gdbarch_dump: CONVERT_REGISTER_P = <0x%08lx>\n",
997 (long) current_gdbarch
->convert_register_p
998 /*CONVERT_REGISTER_P ()*/);
1000 #ifdef DECR_PC_AFTER_BREAK
1001 fprintf_unfiltered (file
,
1002 "gdbarch_dump: DECR_PC_AFTER_BREAK # %s\n",
1003 XSTRING (DECR_PC_AFTER_BREAK
));
1004 fprintf_unfiltered (file
,
1005 "gdbarch_dump: DECR_PC_AFTER_BREAK = %ld\n",
1006 (long) DECR_PC_AFTER_BREAK
);
1008 #ifdef DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET
1009 fprintf_unfiltered (file
,
1010 "gdbarch_dump: DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET # %s\n",
1011 XSTRING (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET
));
1012 fprintf_unfiltered (file
,
1013 "gdbarch_dump: DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET = %ld\n",
1014 (long) DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET
);
1016 #ifdef DEPRECATED_CALL_DUMMY_LENGTH
1017 fprintf_unfiltered (file
,
1018 "gdbarch_dump: DEPRECATED_CALL_DUMMY_LENGTH # %s\n",
1019 XSTRING (DEPRECATED_CALL_DUMMY_LENGTH
));
1020 fprintf_unfiltered (file
,
1021 "gdbarch_dump: DEPRECATED_CALL_DUMMY_LENGTH = %d\n",
1022 DEPRECATED_CALL_DUMMY_LENGTH
);
1024 #ifdef DEPRECATED_CALL_DUMMY_STACK_ADJUST_P
1025 fprintf_unfiltered (file
,
1026 "gdbarch_dump: %s # %s\n",
1027 "DEPRECATED_CALL_DUMMY_STACK_ADJUST_P()",
1028 XSTRING (DEPRECATED_CALL_DUMMY_STACK_ADJUST_P ()));
1029 fprintf_unfiltered (file
,
1030 "gdbarch_dump: DEPRECATED_CALL_DUMMY_STACK_ADJUST_P() = %d\n",
1031 DEPRECATED_CALL_DUMMY_STACK_ADJUST_P ());
1033 #ifdef DEPRECATED_CALL_DUMMY_STACK_ADJUST
1034 fprintf_unfiltered (file
,
1035 "gdbarch_dump: DEPRECATED_CALL_DUMMY_STACK_ADJUST # %s\n",
1036 XSTRING (DEPRECATED_CALL_DUMMY_STACK_ADJUST
));
1037 fprintf_unfiltered (file
,
1038 "gdbarch_dump: DEPRECATED_CALL_DUMMY_STACK_ADJUST = %d\n",
1039 DEPRECATED_CALL_DUMMY_STACK_ADJUST
);
1041 #ifdef DEPRECATED_CALL_DUMMY_START_OFFSET
1042 fprintf_unfiltered (file
,
1043 "gdbarch_dump: DEPRECATED_CALL_DUMMY_START_OFFSET # %s\n",
1044 XSTRING (DEPRECATED_CALL_DUMMY_START_OFFSET
));
1045 fprintf_unfiltered (file
,
1046 "gdbarch_dump: DEPRECATED_CALL_DUMMY_START_OFFSET = %ld\n",
1047 (long) DEPRECATED_CALL_DUMMY_START_OFFSET
);
1049 #ifdef DEPRECATED_CALL_DUMMY_WORDS
1050 fprintf_unfiltered (file
,
1051 "gdbarch_dump: DEPRECATED_CALL_DUMMY_WORDS # %s\n",
1052 XSTRING (DEPRECATED_CALL_DUMMY_WORDS
));
1053 fprintf_unfiltered (file
,
1054 "gdbarch_dump: DEPRECATED_CALL_DUMMY_WORDS = 0x%08lx\n",
1055 (long) DEPRECATED_CALL_DUMMY_WORDS
);
1057 #ifdef DEPRECATED_DO_REGISTERS_INFO_P
1058 fprintf_unfiltered (file
,
1059 "gdbarch_dump: %s # %s\n",
1060 "DEPRECATED_DO_REGISTERS_INFO_P()",
1061 XSTRING (DEPRECATED_DO_REGISTERS_INFO_P ()));
1062 fprintf_unfiltered (file
,
1063 "gdbarch_dump: DEPRECATED_DO_REGISTERS_INFO_P() = %d\n",
1064 DEPRECATED_DO_REGISTERS_INFO_P ());
1066 #ifdef DEPRECATED_DO_REGISTERS_INFO
1068 /* Macro might contain `[{}]' when not multi-arch */
1069 fprintf_unfiltered (file
,
1070 "gdbarch_dump: %s # %s\n",
1071 "DEPRECATED_DO_REGISTERS_INFO(reg_nr, fpregs)",
1072 XSTRING (DEPRECATED_DO_REGISTERS_INFO (reg_nr
, fpregs
)));
1075 fprintf_unfiltered (file
,
1076 "gdbarch_dump: DEPRECATED_DO_REGISTERS_INFO = <0x%08lx>\n",
1077 (long) current_gdbarch
->deprecated_do_registers_info
1078 /*DEPRECATED_DO_REGISTERS_INFO ()*/);
1080 #ifdef DEPRECATED_DUMMY_WRITE_SP_P
1081 fprintf_unfiltered (file
,
1082 "gdbarch_dump: %s # %s\n",
1083 "DEPRECATED_DUMMY_WRITE_SP_P()",
1084 XSTRING (DEPRECATED_DUMMY_WRITE_SP_P ()));
1085 fprintf_unfiltered (file
,
1086 "gdbarch_dump: DEPRECATED_DUMMY_WRITE_SP_P() = %d\n",
1087 DEPRECATED_DUMMY_WRITE_SP_P ());
1089 #ifdef DEPRECATED_DUMMY_WRITE_SP
1091 /* Macro might contain `[{}]' when not multi-arch */
1092 fprintf_unfiltered (file
,
1093 "gdbarch_dump: %s # %s\n",
1094 "DEPRECATED_DUMMY_WRITE_SP(val)",
1095 XSTRING (DEPRECATED_DUMMY_WRITE_SP (val
)));
1098 fprintf_unfiltered (file
,
1099 "gdbarch_dump: DEPRECATED_DUMMY_WRITE_SP = <0x%08lx>\n",
1100 (long) current_gdbarch
->deprecated_dummy_write_sp
1101 /*DEPRECATED_DUMMY_WRITE_SP ()*/);
1103 #ifdef DEPRECATED_EXTRACT_RETURN_VALUE
1105 /* Macro might contain `[{}]' when not multi-arch */
1106 fprintf_unfiltered (file
,
1107 "gdbarch_dump: %s # %s\n",
1108 "DEPRECATED_EXTRACT_RETURN_VALUE(type, regbuf, valbuf)",
1109 XSTRING (DEPRECATED_EXTRACT_RETURN_VALUE (type
, regbuf
, valbuf
)));
1112 fprintf_unfiltered (file
,
1113 "gdbarch_dump: DEPRECATED_EXTRACT_RETURN_VALUE = <0x%08lx>\n",
1114 (long) current_gdbarch
->deprecated_extract_return_value
1115 /*DEPRECATED_EXTRACT_RETURN_VALUE ()*/);
1117 #ifdef DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P
1118 fprintf_unfiltered (file
,
1119 "gdbarch_dump: %s # %s\n",
1120 "DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P()",
1121 XSTRING (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P ()));
1122 fprintf_unfiltered (file
,
1123 "gdbarch_dump: DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P() = %d\n",
1124 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS_P ());
1126 #ifdef DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
1127 fprintf_unfiltered (file
,
1128 "gdbarch_dump: %s # %s\n",
1129 "DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS(regbuf)",
1130 XSTRING (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS (regbuf
)));
1132 fprintf_unfiltered (file
,
1133 "gdbarch_dump: DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS = <0x%08lx>\n",
1134 (long) current_gdbarch
->deprecated_extract_struct_value_address
1135 /*DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS ()*/);
1137 #ifdef DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED
1138 fprintf_unfiltered (file
,
1139 "gdbarch_dump: DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED # %s\n",
1140 XSTRING (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED
));
1141 fprintf_unfiltered (file
,
1142 "gdbarch_dump: DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED = %d\n",
1143 DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED
);
1145 #ifdef DEPRECATED_FIX_CALL_DUMMY_P
1146 fprintf_unfiltered (file
,
1147 "gdbarch_dump: %s # %s\n",
1148 "DEPRECATED_FIX_CALL_DUMMY_P()",
1149 XSTRING (DEPRECATED_FIX_CALL_DUMMY_P ()));
1150 fprintf_unfiltered (file
,
1151 "gdbarch_dump: DEPRECATED_FIX_CALL_DUMMY_P() = %d\n",
1152 DEPRECATED_FIX_CALL_DUMMY_P ());
1154 #ifdef DEPRECATED_FIX_CALL_DUMMY
1156 /* Macro might contain `[{}]' when not multi-arch */
1157 fprintf_unfiltered (file
,
1158 "gdbarch_dump: %s # %s\n",
1159 "DEPRECATED_FIX_CALL_DUMMY(dummy, pc, fun, nargs, args, type, gcc_p)",
1160 XSTRING (DEPRECATED_FIX_CALL_DUMMY (dummy
, pc
, fun
, nargs
, args
, type
, gcc_p
)));
1163 fprintf_unfiltered (file
,
1164 "gdbarch_dump: DEPRECATED_FIX_CALL_DUMMY = <0x%08lx>\n",
1165 (long) current_gdbarch
->deprecated_fix_call_dummy
1166 /*DEPRECATED_FIX_CALL_DUMMY ()*/);
1168 #ifdef DEPRECATED_FP_REGNUM
1169 fprintf_unfiltered (file
,
1170 "gdbarch_dump: DEPRECATED_FP_REGNUM # %s\n",
1171 XSTRING (DEPRECATED_FP_REGNUM
));
1172 fprintf_unfiltered (file
,
1173 "gdbarch_dump: DEPRECATED_FP_REGNUM = %d\n",
1174 DEPRECATED_FP_REGNUM
);
1176 #ifdef DEPRECATED_FRAME_CHAIN_P
1177 fprintf_unfiltered (file
,
1178 "gdbarch_dump: %s # %s\n",
1179 "DEPRECATED_FRAME_CHAIN_P()",
1180 XSTRING (DEPRECATED_FRAME_CHAIN_P ()));
1181 fprintf_unfiltered (file
,
1182 "gdbarch_dump: DEPRECATED_FRAME_CHAIN_P() = %d\n",
1183 DEPRECATED_FRAME_CHAIN_P ());
1185 #ifdef DEPRECATED_FRAME_CHAIN
1186 fprintf_unfiltered (file
,
1187 "gdbarch_dump: %s # %s\n",
1188 "DEPRECATED_FRAME_CHAIN(frame)",
1189 XSTRING (DEPRECATED_FRAME_CHAIN (frame
)));
1191 fprintf_unfiltered (file
,
1192 "gdbarch_dump: DEPRECATED_FRAME_CHAIN = <0x%08lx>\n",
1193 (long) current_gdbarch
->deprecated_frame_chain
1194 /*DEPRECATED_FRAME_CHAIN ()*/);
1196 #ifdef DEPRECATED_FRAME_CHAIN_VALID_P
1197 fprintf_unfiltered (file
,
1198 "gdbarch_dump: %s # %s\n",
1199 "DEPRECATED_FRAME_CHAIN_VALID_P()",
1200 XSTRING (DEPRECATED_FRAME_CHAIN_VALID_P ()));
1201 fprintf_unfiltered (file
,
1202 "gdbarch_dump: DEPRECATED_FRAME_CHAIN_VALID_P() = %d\n",
1203 DEPRECATED_FRAME_CHAIN_VALID_P ());
1205 #ifdef DEPRECATED_FRAME_CHAIN_VALID
1206 fprintf_unfiltered (file
,
1207 "gdbarch_dump: %s # %s\n",
1208 "DEPRECATED_FRAME_CHAIN_VALID(chain, thisframe)",
1209 XSTRING (DEPRECATED_FRAME_CHAIN_VALID (chain
, thisframe
)));
1211 fprintf_unfiltered (file
,
1212 "gdbarch_dump: DEPRECATED_FRAME_CHAIN_VALID = <0x%08lx>\n",
1213 (long) current_gdbarch
->deprecated_frame_chain_valid
1214 /*DEPRECATED_FRAME_CHAIN_VALID ()*/);
1216 #ifdef DEPRECATED_FRAME_INIT_SAVED_REGS_P
1217 fprintf_unfiltered (file
,
1218 "gdbarch_dump: %s # %s\n",
1219 "DEPRECATED_FRAME_INIT_SAVED_REGS_P()",
1220 XSTRING (DEPRECATED_FRAME_INIT_SAVED_REGS_P ()));
1221 fprintf_unfiltered (file
,
1222 "gdbarch_dump: DEPRECATED_FRAME_INIT_SAVED_REGS_P() = %d\n",
1223 DEPRECATED_FRAME_INIT_SAVED_REGS_P ());
1225 #ifdef DEPRECATED_FRAME_INIT_SAVED_REGS
1227 /* Macro might contain `[{}]' when not multi-arch */
1228 fprintf_unfiltered (file
,
1229 "gdbarch_dump: %s # %s\n",
1230 "DEPRECATED_FRAME_INIT_SAVED_REGS(frame)",
1231 XSTRING (DEPRECATED_FRAME_INIT_SAVED_REGS (frame
)));
1234 fprintf_unfiltered (file
,
1235 "gdbarch_dump: DEPRECATED_FRAME_INIT_SAVED_REGS = <0x%08lx>\n",
1236 (long) current_gdbarch
->deprecated_frame_init_saved_regs
1237 /*DEPRECATED_FRAME_INIT_SAVED_REGS ()*/);
1239 #ifdef DEPRECATED_FRAME_SAVED_PC_P
1240 fprintf_unfiltered (file
,
1241 "gdbarch_dump: %s # %s\n",
1242 "DEPRECATED_FRAME_SAVED_PC_P()",
1243 XSTRING (DEPRECATED_FRAME_SAVED_PC_P ()));
1244 fprintf_unfiltered (file
,
1245 "gdbarch_dump: DEPRECATED_FRAME_SAVED_PC_P() = %d\n",
1246 DEPRECATED_FRAME_SAVED_PC_P ());
1248 #ifdef DEPRECATED_FRAME_SAVED_PC
1249 fprintf_unfiltered (file
,
1250 "gdbarch_dump: %s # %s\n",
1251 "DEPRECATED_FRAME_SAVED_PC(fi)",
1252 XSTRING (DEPRECATED_FRAME_SAVED_PC (fi
)));
1254 fprintf_unfiltered (file
,
1255 "gdbarch_dump: DEPRECATED_FRAME_SAVED_PC = <0x%08lx>\n",
1256 (long) current_gdbarch
->deprecated_frame_saved_pc
1257 /*DEPRECATED_FRAME_SAVED_PC ()*/);
1259 #ifdef DEPRECATED_GET_SAVED_REGISTER_P
1260 fprintf_unfiltered (file
,
1261 "gdbarch_dump: %s # %s\n",
1262 "DEPRECATED_GET_SAVED_REGISTER_P()",
1263 XSTRING (DEPRECATED_GET_SAVED_REGISTER_P ()));
1264 fprintf_unfiltered (file
,
1265 "gdbarch_dump: DEPRECATED_GET_SAVED_REGISTER_P() = %d\n",
1266 DEPRECATED_GET_SAVED_REGISTER_P ());
1268 #ifdef DEPRECATED_GET_SAVED_REGISTER
1270 /* Macro might contain `[{}]' when not multi-arch */
1271 fprintf_unfiltered (file
,
1272 "gdbarch_dump: %s # %s\n",
1273 "DEPRECATED_GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval)",
1274 XSTRING (DEPRECATED_GET_SAVED_REGISTER (raw_buffer
, optimized
, addrp
, frame
, regnum
, lval
)));
1277 fprintf_unfiltered (file
,
1278 "gdbarch_dump: DEPRECATED_GET_SAVED_REGISTER = <0x%08lx>\n",
1279 (long) current_gdbarch
->deprecated_get_saved_register
1280 /*DEPRECATED_GET_SAVED_REGISTER ()*/);
1282 #ifdef DEPRECATED_INIT_EXTRA_FRAME_INFO_P
1283 fprintf_unfiltered (file
,
1284 "gdbarch_dump: %s # %s\n",
1285 "DEPRECATED_INIT_EXTRA_FRAME_INFO_P()",
1286 XSTRING (DEPRECATED_INIT_EXTRA_FRAME_INFO_P ()));
1287 fprintf_unfiltered (file
,
1288 "gdbarch_dump: DEPRECATED_INIT_EXTRA_FRAME_INFO_P() = %d\n",
1289 DEPRECATED_INIT_EXTRA_FRAME_INFO_P ());
1291 #ifdef DEPRECATED_INIT_EXTRA_FRAME_INFO
1293 /* Macro might contain `[{}]' when not multi-arch */
1294 fprintf_unfiltered (file
,
1295 "gdbarch_dump: %s # %s\n",
1296 "DEPRECATED_INIT_EXTRA_FRAME_INFO(fromleaf, frame)",
1297 XSTRING (DEPRECATED_INIT_EXTRA_FRAME_INFO (fromleaf
, frame
)));
1300 fprintf_unfiltered (file
,
1301 "gdbarch_dump: DEPRECATED_INIT_EXTRA_FRAME_INFO = <0x%08lx>\n",
1302 (long) current_gdbarch
->deprecated_init_extra_frame_info
1303 /*DEPRECATED_INIT_EXTRA_FRAME_INFO ()*/);
1305 #ifdef DEPRECATED_INIT_FRAME_PC_P
1306 fprintf_unfiltered (file
,
1307 "gdbarch_dump: %s # %s\n",
1308 "DEPRECATED_INIT_FRAME_PC_P()",
1309 XSTRING (DEPRECATED_INIT_FRAME_PC_P ()));
1310 fprintf_unfiltered (file
,
1311 "gdbarch_dump: DEPRECATED_INIT_FRAME_PC_P() = %d\n",
1312 DEPRECATED_INIT_FRAME_PC_P ());
1314 #ifdef DEPRECATED_INIT_FRAME_PC
1315 fprintf_unfiltered (file
,
1316 "gdbarch_dump: %s # %s\n",
1317 "DEPRECATED_INIT_FRAME_PC(fromleaf, prev)",
1318 XSTRING (DEPRECATED_INIT_FRAME_PC (fromleaf
, prev
)));
1320 fprintf_unfiltered (file
,
1321 "gdbarch_dump: DEPRECATED_INIT_FRAME_PC = <0x%08lx>\n",
1322 (long) current_gdbarch
->deprecated_init_frame_pc
1323 /*DEPRECATED_INIT_FRAME_PC ()*/);
1325 #ifdef DEPRECATED_INIT_FRAME_PC_FIRST_P
1326 fprintf_unfiltered (file
,
1327 "gdbarch_dump: %s # %s\n",
1328 "DEPRECATED_INIT_FRAME_PC_FIRST_P()",
1329 XSTRING (DEPRECATED_INIT_FRAME_PC_FIRST_P ()));
1330 fprintf_unfiltered (file
,
1331 "gdbarch_dump: DEPRECATED_INIT_FRAME_PC_FIRST_P() = %d\n",
1332 DEPRECATED_INIT_FRAME_PC_FIRST_P ());
1334 #ifdef DEPRECATED_INIT_FRAME_PC_FIRST
1335 fprintf_unfiltered (file
,
1336 "gdbarch_dump: %s # %s\n",
1337 "DEPRECATED_INIT_FRAME_PC_FIRST(fromleaf, prev)",
1338 XSTRING (DEPRECATED_INIT_FRAME_PC_FIRST (fromleaf
, prev
)));
1340 fprintf_unfiltered (file
,
1341 "gdbarch_dump: DEPRECATED_INIT_FRAME_PC_FIRST = <0x%08lx>\n",
1342 (long) current_gdbarch
->deprecated_init_frame_pc_first
1343 /*DEPRECATED_INIT_FRAME_PC_FIRST ()*/);
1345 #ifdef DEPRECATED_MAX_REGISTER_RAW_SIZE_P
1346 fprintf_unfiltered (file
,
1347 "gdbarch_dump: %s # %s\n",
1348 "DEPRECATED_MAX_REGISTER_RAW_SIZE_P()",
1349 XSTRING (DEPRECATED_MAX_REGISTER_RAW_SIZE_P ()));
1350 fprintf_unfiltered (file
,
1351 "gdbarch_dump: DEPRECATED_MAX_REGISTER_RAW_SIZE_P() = %d\n",
1352 DEPRECATED_MAX_REGISTER_RAW_SIZE_P ());
1354 #ifdef DEPRECATED_MAX_REGISTER_RAW_SIZE
1355 fprintf_unfiltered (file
,
1356 "gdbarch_dump: DEPRECATED_MAX_REGISTER_RAW_SIZE # %s\n",
1357 XSTRING (DEPRECATED_MAX_REGISTER_RAW_SIZE
));
1358 fprintf_unfiltered (file
,
1359 "gdbarch_dump: DEPRECATED_MAX_REGISTER_RAW_SIZE = %d\n",
1360 DEPRECATED_MAX_REGISTER_RAW_SIZE
);
1362 #ifdef DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE_P
1363 fprintf_unfiltered (file
,
1364 "gdbarch_dump: %s # %s\n",
1365 "DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE_P()",
1366 XSTRING (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE_P ()));
1367 fprintf_unfiltered (file
,
1368 "gdbarch_dump: DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE_P() = %d\n",
1369 DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE_P ());
1371 #ifdef DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE
1372 fprintf_unfiltered (file
,
1373 "gdbarch_dump: DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE # %s\n",
1374 XSTRING (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE
));
1375 fprintf_unfiltered (file
,
1376 "gdbarch_dump: DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE = %d\n",
1377 DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE
);
1379 #ifdef DEPRECATED_PC_IN_CALL_DUMMY_P
1380 fprintf_unfiltered (file
,
1381 "gdbarch_dump: %s # %s\n",
1382 "DEPRECATED_PC_IN_CALL_DUMMY_P()",
1383 XSTRING (DEPRECATED_PC_IN_CALL_DUMMY_P ()));
1384 fprintf_unfiltered (file
,
1385 "gdbarch_dump: DEPRECATED_PC_IN_CALL_DUMMY_P() = %d\n",
1386 DEPRECATED_PC_IN_CALL_DUMMY_P ());
1388 #ifdef DEPRECATED_PC_IN_CALL_DUMMY
1389 fprintf_unfiltered (file
,
1390 "gdbarch_dump: %s # %s\n",
1391 "DEPRECATED_PC_IN_CALL_DUMMY(pc, sp, frame_address)",
1392 XSTRING (DEPRECATED_PC_IN_CALL_DUMMY (pc
, sp
, frame_address
)));
1394 fprintf_unfiltered (file
,
1395 "gdbarch_dump: DEPRECATED_PC_IN_CALL_DUMMY = <0x%08lx>\n",
1396 (long) current_gdbarch
->deprecated_pc_in_call_dummy
1397 /*DEPRECATED_PC_IN_CALL_DUMMY ()*/);
1399 #ifdef DEPRECATED_POP_FRAME_P
1400 fprintf_unfiltered (file
,
1401 "gdbarch_dump: %s # %s\n",
1402 "DEPRECATED_POP_FRAME_P()",
1403 XSTRING (DEPRECATED_POP_FRAME_P ()));
1404 fprintf_unfiltered (file
,
1405 "gdbarch_dump: DEPRECATED_POP_FRAME_P() = %d\n",
1406 DEPRECATED_POP_FRAME_P ());
1408 #ifdef DEPRECATED_POP_FRAME
1410 /* Macro might contain `[{}]' when not multi-arch */
1411 fprintf_unfiltered (file
,
1412 "gdbarch_dump: %s # %s\n",
1413 "DEPRECATED_POP_FRAME(-)",
1414 XSTRING (DEPRECATED_POP_FRAME (-)));
1417 fprintf_unfiltered (file
,
1418 "gdbarch_dump: DEPRECATED_POP_FRAME = <0x%08lx>\n",
1419 (long) current_gdbarch
->deprecated_pop_frame
1420 /*DEPRECATED_POP_FRAME ()*/);
1422 #ifdef DEPRECATED_PUSH_ARGUMENTS_P
1423 fprintf_unfiltered (file
,
1424 "gdbarch_dump: %s # %s\n",
1425 "DEPRECATED_PUSH_ARGUMENTS_P()",
1426 XSTRING (DEPRECATED_PUSH_ARGUMENTS_P ()));
1427 fprintf_unfiltered (file
,
1428 "gdbarch_dump: DEPRECATED_PUSH_ARGUMENTS_P() = %d\n",
1429 DEPRECATED_PUSH_ARGUMENTS_P ());
1431 #ifdef DEPRECATED_PUSH_ARGUMENTS
1432 fprintf_unfiltered (file
,
1433 "gdbarch_dump: %s # %s\n",
1434 "DEPRECATED_PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr)",
1435 XSTRING (DEPRECATED_PUSH_ARGUMENTS (nargs
, args
, sp
, struct_return
, struct_addr
)));
1437 fprintf_unfiltered (file
,
1438 "gdbarch_dump: DEPRECATED_PUSH_ARGUMENTS = <0x%08lx>\n",
1439 (long) current_gdbarch
->deprecated_push_arguments
1440 /*DEPRECATED_PUSH_ARGUMENTS ()*/);
1442 #ifdef DEPRECATED_PUSH_DUMMY_FRAME_P
1443 fprintf_unfiltered (file
,
1444 "gdbarch_dump: %s # %s\n",
1445 "DEPRECATED_PUSH_DUMMY_FRAME_P()",
1446 XSTRING (DEPRECATED_PUSH_DUMMY_FRAME_P ()));
1447 fprintf_unfiltered (file
,
1448 "gdbarch_dump: DEPRECATED_PUSH_DUMMY_FRAME_P() = %d\n",
1449 DEPRECATED_PUSH_DUMMY_FRAME_P ());
1451 #ifdef DEPRECATED_PUSH_DUMMY_FRAME
1453 /* Macro might contain `[{}]' when not multi-arch */
1454 fprintf_unfiltered (file
,
1455 "gdbarch_dump: %s # %s\n",
1456 "DEPRECATED_PUSH_DUMMY_FRAME(-)",
1457 XSTRING (DEPRECATED_PUSH_DUMMY_FRAME (-)));
1460 fprintf_unfiltered (file
,
1461 "gdbarch_dump: DEPRECATED_PUSH_DUMMY_FRAME = <0x%08lx>\n",
1462 (long) current_gdbarch
->deprecated_push_dummy_frame
1463 /*DEPRECATED_PUSH_DUMMY_FRAME ()*/);
1465 #ifdef DEPRECATED_PUSH_RETURN_ADDRESS_P
1466 fprintf_unfiltered (file
,
1467 "gdbarch_dump: %s # %s\n",
1468 "DEPRECATED_PUSH_RETURN_ADDRESS_P()",
1469 XSTRING (DEPRECATED_PUSH_RETURN_ADDRESS_P ()));
1470 fprintf_unfiltered (file
,
1471 "gdbarch_dump: DEPRECATED_PUSH_RETURN_ADDRESS_P() = %d\n",
1472 DEPRECATED_PUSH_RETURN_ADDRESS_P ());
1474 #ifdef DEPRECATED_PUSH_RETURN_ADDRESS
1475 fprintf_unfiltered (file
,
1476 "gdbarch_dump: %s # %s\n",
1477 "DEPRECATED_PUSH_RETURN_ADDRESS(pc, sp)",
1478 XSTRING (DEPRECATED_PUSH_RETURN_ADDRESS (pc
, sp
)));
1480 fprintf_unfiltered (file
,
1481 "gdbarch_dump: DEPRECATED_PUSH_RETURN_ADDRESS = <0x%08lx>\n",
1482 (long) current_gdbarch
->deprecated_push_return_address
1483 /*DEPRECATED_PUSH_RETURN_ADDRESS ()*/);
1485 #ifdef DEPRECATED_REGISTER_BYTES
1486 fprintf_unfiltered (file
,
1487 "gdbarch_dump: DEPRECATED_REGISTER_BYTES # %s\n",
1488 XSTRING (DEPRECATED_REGISTER_BYTES
));
1489 fprintf_unfiltered (file
,
1490 "gdbarch_dump: DEPRECATED_REGISTER_BYTES = %d\n",
1491 DEPRECATED_REGISTER_BYTES
);
1493 #ifdef DEPRECATED_REGISTER_CONVERTIBLE
1494 fprintf_unfiltered (file
,
1495 "gdbarch_dump: %s # %s\n",
1496 "DEPRECATED_REGISTER_CONVERTIBLE(nr)",
1497 XSTRING (DEPRECATED_REGISTER_CONVERTIBLE (nr
)));
1499 fprintf_unfiltered (file
,
1500 "gdbarch_dump: DEPRECATED_REGISTER_CONVERTIBLE = <0x%08lx>\n",
1501 (long) current_gdbarch
->deprecated_register_convertible
1502 /*DEPRECATED_REGISTER_CONVERTIBLE ()*/);
1504 #ifdef DEPRECATED_REGISTER_CONVERT_TO_RAW
1506 /* Macro might contain `[{}]' when not multi-arch */
1507 fprintf_unfiltered (file
,
1508 "gdbarch_dump: %s # %s\n",
1509 "DEPRECATED_REGISTER_CONVERT_TO_RAW(type, regnum, from, to)",
1510 XSTRING (DEPRECATED_REGISTER_CONVERT_TO_RAW (type
, regnum
, from
, to
)));
1513 fprintf_unfiltered (file
,
1514 "gdbarch_dump: DEPRECATED_REGISTER_CONVERT_TO_RAW = <0x%08lx>\n",
1515 (long) current_gdbarch
->deprecated_register_convert_to_raw
1516 /*DEPRECATED_REGISTER_CONVERT_TO_RAW ()*/);
1518 #ifdef DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL
1520 /* Macro might contain `[{}]' when not multi-arch */
1521 fprintf_unfiltered (file
,
1522 "gdbarch_dump: %s # %s\n",
1523 "DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL(regnum, type, from, to)",
1524 XSTRING (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL (regnum
, type
, from
, to
)));
1527 fprintf_unfiltered (file
,
1528 "gdbarch_dump: DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL = <0x%08lx>\n",
1529 (long) current_gdbarch
->deprecated_register_convert_to_virtual
1530 /*DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL ()*/);
1532 #ifdef DEPRECATED_REGISTER_SIZE
1533 fprintf_unfiltered (file
,
1534 "gdbarch_dump: DEPRECATED_REGISTER_SIZE # %s\n",
1535 XSTRING (DEPRECATED_REGISTER_SIZE
));
1536 fprintf_unfiltered (file
,
1537 "gdbarch_dump: DEPRECATED_REGISTER_SIZE = %d\n",
1538 DEPRECATED_REGISTER_SIZE
);
1540 #ifdef DEPRECATED_SAVED_PC_AFTER_CALL_P
1541 fprintf_unfiltered (file
,
1542 "gdbarch_dump: %s # %s\n",
1543 "DEPRECATED_SAVED_PC_AFTER_CALL_P()",
1544 XSTRING (DEPRECATED_SAVED_PC_AFTER_CALL_P ()));
1545 fprintf_unfiltered (file
,
1546 "gdbarch_dump: DEPRECATED_SAVED_PC_AFTER_CALL_P() = %d\n",
1547 DEPRECATED_SAVED_PC_AFTER_CALL_P ());
1549 #ifdef DEPRECATED_SAVED_PC_AFTER_CALL
1550 fprintf_unfiltered (file
,
1551 "gdbarch_dump: %s # %s\n",
1552 "DEPRECATED_SAVED_PC_AFTER_CALL(frame)",
1553 XSTRING (DEPRECATED_SAVED_PC_AFTER_CALL (frame
)));
1555 fprintf_unfiltered (file
,
1556 "gdbarch_dump: DEPRECATED_SAVED_PC_AFTER_CALL = <0x%08lx>\n",
1557 (long) current_gdbarch
->deprecated_saved_pc_after_call
1558 /*DEPRECATED_SAVED_PC_AFTER_CALL ()*/);
1560 #ifdef DEPRECATED_SAVE_DUMMY_FRAME_TOS_P
1561 fprintf_unfiltered (file
,
1562 "gdbarch_dump: %s # %s\n",
1563 "DEPRECATED_SAVE_DUMMY_FRAME_TOS_P()",
1564 XSTRING (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ()));
1565 fprintf_unfiltered (file
,
1566 "gdbarch_dump: DEPRECATED_SAVE_DUMMY_FRAME_TOS_P() = %d\n",
1567 DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ());
1569 #ifdef DEPRECATED_SAVE_DUMMY_FRAME_TOS
1571 /* Macro might contain `[{}]' when not multi-arch */
1572 fprintf_unfiltered (file
,
1573 "gdbarch_dump: %s # %s\n",
1574 "DEPRECATED_SAVE_DUMMY_FRAME_TOS(sp)",
1575 XSTRING (DEPRECATED_SAVE_DUMMY_FRAME_TOS (sp
)));
1578 fprintf_unfiltered (file
,
1579 "gdbarch_dump: DEPRECATED_SAVE_DUMMY_FRAME_TOS = <0x%08lx>\n",
1580 (long) current_gdbarch
->deprecated_save_dummy_frame_tos
1581 /*DEPRECATED_SAVE_DUMMY_FRAME_TOS ()*/);
1583 #ifdef DEPRECATED_SIZEOF_CALL_DUMMY_WORDS
1584 fprintf_unfiltered (file
,
1585 "gdbarch_dump: DEPRECATED_SIZEOF_CALL_DUMMY_WORDS # %s\n",
1586 XSTRING (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS
));
1587 fprintf_unfiltered (file
,
1588 "gdbarch_dump: DEPRECATED_SIZEOF_CALL_DUMMY_WORDS = %d\n",
1589 DEPRECATED_SIZEOF_CALL_DUMMY_WORDS
);
1591 #ifdef DEPRECATED_STORE_RETURN_VALUE
1593 /* Macro might contain `[{}]' when not multi-arch */
1594 fprintf_unfiltered (file
,
1595 "gdbarch_dump: %s # %s\n",
1596 "DEPRECATED_STORE_RETURN_VALUE(type, valbuf)",
1597 XSTRING (DEPRECATED_STORE_RETURN_VALUE (type
, valbuf
)));
1600 fprintf_unfiltered (file
,
1601 "gdbarch_dump: DEPRECATED_STORE_RETURN_VALUE = <0x%08lx>\n",
1602 (long) current_gdbarch
->deprecated_store_return_value
1603 /*DEPRECATED_STORE_RETURN_VALUE ()*/);
1605 #ifdef DEPRECATED_STORE_STRUCT_RETURN_P
1606 fprintf_unfiltered (file
,
1607 "gdbarch_dump: %s # %s\n",
1608 "DEPRECATED_STORE_STRUCT_RETURN_P()",
1609 XSTRING (DEPRECATED_STORE_STRUCT_RETURN_P ()));
1610 fprintf_unfiltered (file
,
1611 "gdbarch_dump: DEPRECATED_STORE_STRUCT_RETURN_P() = %d\n",
1612 DEPRECATED_STORE_STRUCT_RETURN_P ());
1614 #ifdef DEPRECATED_STORE_STRUCT_RETURN
1616 /* Macro might contain `[{}]' when not multi-arch */
1617 fprintf_unfiltered (file
,
1618 "gdbarch_dump: %s # %s\n",
1619 "DEPRECATED_STORE_STRUCT_RETURN(addr, sp)",
1620 XSTRING (DEPRECATED_STORE_STRUCT_RETURN (addr
, sp
)));
1623 fprintf_unfiltered (file
,
1624 "gdbarch_dump: DEPRECATED_STORE_STRUCT_RETURN = <0x%08lx>\n",
1625 (long) current_gdbarch
->deprecated_store_struct_return
1626 /*DEPRECATED_STORE_STRUCT_RETURN ()*/);
1628 #ifdef DEPRECATED_TARGET_READ_FP_P
1629 fprintf_unfiltered (file
,
1630 "gdbarch_dump: %s # %s\n",
1631 "DEPRECATED_TARGET_READ_FP_P()",
1632 XSTRING (DEPRECATED_TARGET_READ_FP_P ()));
1633 fprintf_unfiltered (file
,
1634 "gdbarch_dump: DEPRECATED_TARGET_READ_FP_P() = %d\n",
1635 DEPRECATED_TARGET_READ_FP_P ());
1637 #ifdef DEPRECATED_TARGET_READ_FP
1638 fprintf_unfiltered (file
,
1639 "gdbarch_dump: %s # %s\n",
1640 "DEPRECATED_TARGET_READ_FP()",
1641 XSTRING (DEPRECATED_TARGET_READ_FP ()));
1643 fprintf_unfiltered (file
,
1644 "gdbarch_dump: DEPRECATED_TARGET_READ_FP = <0x%08lx>\n",
1645 (long) current_gdbarch
->deprecated_target_read_fp
1646 /*DEPRECATED_TARGET_READ_FP ()*/);
1648 #ifdef DEPRECATED_USE_GENERIC_DUMMY_FRAMES
1649 fprintf_unfiltered (file
,
1650 "gdbarch_dump: DEPRECATED_USE_GENERIC_DUMMY_FRAMES # %s\n",
1651 XSTRING (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
));
1652 fprintf_unfiltered (file
,
1653 "gdbarch_dump: DEPRECATED_USE_GENERIC_DUMMY_FRAMES = %d\n",
1654 DEPRECATED_USE_GENERIC_DUMMY_FRAMES
);
1656 #ifdef DWARF2_BUILD_FRAME_INFO_P
1657 fprintf_unfiltered (file
,
1658 "gdbarch_dump: %s # %s\n",
1659 "DWARF2_BUILD_FRAME_INFO_P()",
1660 XSTRING (DWARF2_BUILD_FRAME_INFO_P ()));
1661 fprintf_unfiltered (file
,
1662 "gdbarch_dump: DWARF2_BUILD_FRAME_INFO_P() = %d\n",
1663 DWARF2_BUILD_FRAME_INFO_P ());
1665 #ifdef DWARF2_BUILD_FRAME_INFO
1667 /* Macro might contain `[{}]' when not multi-arch */
1668 fprintf_unfiltered (file
,
1669 "gdbarch_dump: %s # %s\n",
1670 "DWARF2_BUILD_FRAME_INFO(objfile)",
1671 XSTRING (DWARF2_BUILD_FRAME_INFO (objfile
)));
1674 fprintf_unfiltered (file
,
1675 "gdbarch_dump: DWARF2_BUILD_FRAME_INFO = <0x%08lx>\n",
1676 (long) current_gdbarch
->dwarf2_build_frame_info
1677 /*DWARF2_BUILD_FRAME_INFO ()*/);
1679 #ifdef DWARF2_REG_TO_REGNUM
1680 fprintf_unfiltered (file
,
1681 "gdbarch_dump: %s # %s\n",
1682 "DWARF2_REG_TO_REGNUM(dwarf2_regnr)",
1683 XSTRING (DWARF2_REG_TO_REGNUM (dwarf2_regnr
)));
1685 fprintf_unfiltered (file
,
1686 "gdbarch_dump: DWARF2_REG_TO_REGNUM = <0x%08lx>\n",
1687 (long) current_gdbarch
->dwarf2_reg_to_regnum
1688 /*DWARF2_REG_TO_REGNUM ()*/);
1690 #ifdef DWARF_REG_TO_REGNUM
1691 fprintf_unfiltered (file
,
1692 "gdbarch_dump: %s # %s\n",
1693 "DWARF_REG_TO_REGNUM(dwarf_regnr)",
1694 XSTRING (DWARF_REG_TO_REGNUM (dwarf_regnr
)));
1696 fprintf_unfiltered (file
,
1697 "gdbarch_dump: DWARF_REG_TO_REGNUM = <0x%08lx>\n",
1698 (long) current_gdbarch
->dwarf_reg_to_regnum
1699 /*DWARF_REG_TO_REGNUM ()*/);
1701 #ifdef ECOFF_REG_TO_REGNUM
1702 fprintf_unfiltered (file
,
1703 "gdbarch_dump: %s # %s\n",
1704 "ECOFF_REG_TO_REGNUM(ecoff_regnr)",
1705 XSTRING (ECOFF_REG_TO_REGNUM (ecoff_regnr
)));
1707 fprintf_unfiltered (file
,
1708 "gdbarch_dump: ECOFF_REG_TO_REGNUM = <0x%08lx>\n",
1709 (long) current_gdbarch
->ecoff_reg_to_regnum
1710 /*ECOFF_REG_TO_REGNUM ()*/);
1712 #ifdef ELF_MAKE_MSYMBOL_SPECIAL
1714 /* Macro might contain `[{}]' when not multi-arch */
1715 fprintf_unfiltered (file
,
1716 "gdbarch_dump: %s # %s\n",
1717 "ELF_MAKE_MSYMBOL_SPECIAL(sym, msym)",
1718 XSTRING (ELF_MAKE_MSYMBOL_SPECIAL (sym
, msym
)));
1721 fprintf_unfiltered (file
,
1722 "gdbarch_dump: ELF_MAKE_MSYMBOL_SPECIAL = <0x%08lx>\n",
1723 (long) current_gdbarch
->elf_make_msymbol_special
1724 /*ELF_MAKE_MSYMBOL_SPECIAL ()*/);
1726 #ifdef EXTRACT_RETURN_VALUE
1728 /* Macro might contain `[{}]' when not multi-arch */
1729 fprintf_unfiltered (file
,
1730 "gdbarch_dump: %s # %s\n",
1731 "EXTRACT_RETURN_VALUE(type, regcache, valbuf)",
1732 XSTRING (EXTRACT_RETURN_VALUE (type
, regcache
, valbuf
)));
1735 fprintf_unfiltered (file
,
1736 "gdbarch_dump: EXTRACT_RETURN_VALUE = <0x%08lx>\n",
1737 (long) current_gdbarch
->extract_return_value
1738 /*EXTRACT_RETURN_VALUE ()*/);
1740 #ifdef EXTRACT_STRUCT_VALUE_ADDRESS_P
1741 fprintf_unfiltered (file
,
1742 "gdbarch_dump: %s # %s\n",
1743 "EXTRACT_STRUCT_VALUE_ADDRESS_P()",
1744 XSTRING (EXTRACT_STRUCT_VALUE_ADDRESS_P ()));
1745 fprintf_unfiltered (file
,
1746 "gdbarch_dump: EXTRACT_STRUCT_VALUE_ADDRESS_P() = %d\n",
1747 EXTRACT_STRUCT_VALUE_ADDRESS_P ());
1749 #ifdef EXTRACT_STRUCT_VALUE_ADDRESS
1750 fprintf_unfiltered (file
,
1751 "gdbarch_dump: %s # %s\n",
1752 "EXTRACT_STRUCT_VALUE_ADDRESS(regcache)",
1753 XSTRING (EXTRACT_STRUCT_VALUE_ADDRESS (regcache
)));
1755 fprintf_unfiltered (file
,
1756 "gdbarch_dump: EXTRACT_STRUCT_VALUE_ADDRESS = <0x%08lx>\n",
1757 (long) current_gdbarch
->extract_struct_value_address
1758 /*EXTRACT_STRUCT_VALUE_ADDRESS ()*/);
1760 #ifdef FETCH_POINTER_ARGUMENT_P
1761 fprintf_unfiltered (file
,
1762 "gdbarch_dump: %s # %s\n",
1763 "FETCH_POINTER_ARGUMENT_P()",
1764 XSTRING (FETCH_POINTER_ARGUMENT_P ()));
1765 fprintf_unfiltered (file
,
1766 "gdbarch_dump: FETCH_POINTER_ARGUMENT_P() = %d\n",
1767 FETCH_POINTER_ARGUMENT_P ());
1769 #ifdef FETCH_POINTER_ARGUMENT
1770 fprintf_unfiltered (file
,
1771 "gdbarch_dump: %s # %s\n",
1772 "FETCH_POINTER_ARGUMENT(frame, argi, type)",
1773 XSTRING (FETCH_POINTER_ARGUMENT (frame
, argi
, type
)));
1775 fprintf_unfiltered (file
,
1776 "gdbarch_dump: FETCH_POINTER_ARGUMENT = <0x%08lx>\n",
1777 (long) current_gdbarch
->fetch_pointer_argument
1778 /*FETCH_POINTER_ARGUMENT ()*/);
1781 fprintf_unfiltered (file
,
1782 "gdbarch_dump: FP0_REGNUM # %s\n",
1783 XSTRING (FP0_REGNUM
));
1784 fprintf_unfiltered (file
,
1785 "gdbarch_dump: FP0_REGNUM = %d\n",
1788 #ifdef FRAMELESS_FUNCTION_INVOCATION
1789 fprintf_unfiltered (file
,
1790 "gdbarch_dump: %s # %s\n",
1791 "FRAMELESS_FUNCTION_INVOCATION(fi)",
1792 XSTRING (FRAMELESS_FUNCTION_INVOCATION (fi
)));
1794 fprintf_unfiltered (file
,
1795 "gdbarch_dump: FRAMELESS_FUNCTION_INVOCATION = <0x%08lx>\n",
1796 (long) current_gdbarch
->frameless_function_invocation
1797 /*FRAMELESS_FUNCTION_INVOCATION ()*/);
1799 #ifdef FRAME_ARGS_ADDRESS
1800 fprintf_unfiltered (file
,
1801 "gdbarch_dump: %s # %s\n",
1802 "FRAME_ARGS_ADDRESS(fi)",
1803 XSTRING (FRAME_ARGS_ADDRESS (fi
)));
1805 fprintf_unfiltered (file
,
1806 "gdbarch_dump: FRAME_ARGS_ADDRESS = <0x%08lx>\n",
1807 (long) current_gdbarch
->frame_args_address
1808 /*FRAME_ARGS_ADDRESS ()*/);
1810 #ifdef FRAME_ARGS_SKIP
1811 fprintf_unfiltered (file
,
1812 "gdbarch_dump: FRAME_ARGS_SKIP # %s\n",
1813 XSTRING (FRAME_ARGS_SKIP
));
1814 fprintf_unfiltered (file
,
1815 "gdbarch_dump: FRAME_ARGS_SKIP = %ld\n",
1816 (long) FRAME_ARGS_SKIP
);
1818 #ifdef FRAME_LOCALS_ADDRESS
1819 fprintf_unfiltered (file
,
1820 "gdbarch_dump: %s # %s\n",
1821 "FRAME_LOCALS_ADDRESS(fi)",
1822 XSTRING (FRAME_LOCALS_ADDRESS (fi
)));
1824 fprintf_unfiltered (file
,
1825 "gdbarch_dump: FRAME_LOCALS_ADDRESS = <0x%08lx>\n",
1826 (long) current_gdbarch
->frame_locals_address
1827 /*FRAME_LOCALS_ADDRESS ()*/);
1829 #ifdef FRAME_NUM_ARGS_P
1830 fprintf_unfiltered (file
,
1831 "gdbarch_dump: %s # %s\n",
1832 "FRAME_NUM_ARGS_P()",
1833 XSTRING (FRAME_NUM_ARGS_P ()));
1834 fprintf_unfiltered (file
,
1835 "gdbarch_dump: FRAME_NUM_ARGS_P() = %d\n",
1836 FRAME_NUM_ARGS_P ());
1838 #ifdef FRAME_NUM_ARGS
1839 fprintf_unfiltered (file
,
1840 "gdbarch_dump: %s # %s\n",
1841 "FRAME_NUM_ARGS(frame)",
1842 XSTRING (FRAME_NUM_ARGS (frame
)));
1844 fprintf_unfiltered (file
,
1845 "gdbarch_dump: FRAME_NUM_ARGS = <0x%08lx>\n",
1846 (long) current_gdbarch
->frame_num_args
1847 /*FRAME_NUM_ARGS ()*/);
1849 #ifdef FUNCTION_START_OFFSET
1850 fprintf_unfiltered (file
,
1851 "gdbarch_dump: FUNCTION_START_OFFSET # %s\n",
1852 XSTRING (FUNCTION_START_OFFSET
));
1853 fprintf_unfiltered (file
,
1854 "gdbarch_dump: FUNCTION_START_OFFSET = %ld\n",
1855 (long) FUNCTION_START_OFFSET
);
1857 #ifdef GET_LONGJMP_TARGET_P
1858 fprintf_unfiltered (file
,
1859 "gdbarch_dump: %s # %s\n",
1860 "GET_LONGJMP_TARGET_P()",
1861 XSTRING (GET_LONGJMP_TARGET_P ()));
1862 fprintf_unfiltered (file
,
1863 "gdbarch_dump: GET_LONGJMP_TARGET_P() = %d\n",
1864 GET_LONGJMP_TARGET_P ());
1866 #ifdef GET_LONGJMP_TARGET
1867 fprintf_unfiltered (file
,
1868 "gdbarch_dump: %s # %s\n",
1869 "GET_LONGJMP_TARGET(pc)",
1870 XSTRING (GET_LONGJMP_TARGET (pc
)));
1872 fprintf_unfiltered (file
,
1873 "gdbarch_dump: GET_LONGJMP_TARGET = <0x%08lx>\n",
1874 (long) current_gdbarch
->get_longjmp_target
1875 /*GET_LONGJMP_TARGET ()*/);
1877 #ifdef HAVE_NONSTEPPABLE_WATCHPOINT
1878 fprintf_unfiltered (file
,
1879 "gdbarch_dump: HAVE_NONSTEPPABLE_WATCHPOINT # %s\n",
1880 XSTRING (HAVE_NONSTEPPABLE_WATCHPOINT
));
1881 fprintf_unfiltered (file
,
1882 "gdbarch_dump: HAVE_NONSTEPPABLE_WATCHPOINT = %d\n",
1883 HAVE_NONSTEPPABLE_WATCHPOINT
);
1886 fprintf_unfiltered (file
,
1887 "gdbarch_dump: %s # %s\n",
1888 "INNER_THAN(lhs, rhs)",
1889 XSTRING (INNER_THAN (lhs
, rhs
)));
1891 fprintf_unfiltered (file
,
1892 "gdbarch_dump: INNER_THAN = <0x%08lx>\n",
1893 (long) current_gdbarch
->inner_than
1896 #ifdef INTEGER_TO_ADDRESS_P
1897 fprintf_unfiltered (file
,
1898 "gdbarch_dump: %s # %s\n",
1899 "INTEGER_TO_ADDRESS_P()",
1900 XSTRING (INTEGER_TO_ADDRESS_P ()));
1901 fprintf_unfiltered (file
,
1902 "gdbarch_dump: INTEGER_TO_ADDRESS_P() = %d\n",
1903 INTEGER_TO_ADDRESS_P ());
1905 #ifdef INTEGER_TO_ADDRESS
1906 fprintf_unfiltered (file
,
1907 "gdbarch_dump: %s # %s\n",
1908 "INTEGER_TO_ADDRESS(type, buf)",
1909 XSTRING (INTEGER_TO_ADDRESS (type
, buf
)));
1911 fprintf_unfiltered (file
,
1912 "gdbarch_dump: INTEGER_TO_ADDRESS = <0x%08lx>\n",
1913 (long) current_gdbarch
->integer_to_address
1914 /*INTEGER_TO_ADDRESS ()*/);
1916 #ifdef IN_SOLIB_CALL_TRAMPOLINE
1917 fprintf_unfiltered (file
,
1918 "gdbarch_dump: %s # %s\n",
1919 "IN_SOLIB_CALL_TRAMPOLINE(pc, name)",
1920 XSTRING (IN_SOLIB_CALL_TRAMPOLINE (pc
, name
)));
1922 fprintf_unfiltered (file
,
1923 "gdbarch_dump: IN_SOLIB_CALL_TRAMPOLINE = <0x%08lx>\n",
1924 (long) current_gdbarch
->in_solib_call_trampoline
1925 /*IN_SOLIB_CALL_TRAMPOLINE ()*/);
1927 #ifdef IN_SOLIB_RETURN_TRAMPOLINE
1928 fprintf_unfiltered (file
,
1929 "gdbarch_dump: %s # %s\n",
1930 "IN_SOLIB_RETURN_TRAMPOLINE(pc, name)",
1931 XSTRING (IN_SOLIB_RETURN_TRAMPOLINE (pc
, name
)));
1933 fprintf_unfiltered (file
,
1934 "gdbarch_dump: IN_SOLIB_RETURN_TRAMPOLINE = <0x%08lx>\n",
1935 (long) current_gdbarch
->in_solib_return_trampoline
1936 /*IN_SOLIB_RETURN_TRAMPOLINE ()*/);
1938 #ifdef MEMORY_INSERT_BREAKPOINT
1939 fprintf_unfiltered (file
,
1940 "gdbarch_dump: %s # %s\n",
1941 "MEMORY_INSERT_BREAKPOINT(addr, contents_cache)",
1942 XSTRING (MEMORY_INSERT_BREAKPOINT (addr
, contents_cache
)));
1944 fprintf_unfiltered (file
,
1945 "gdbarch_dump: MEMORY_INSERT_BREAKPOINT = <0x%08lx>\n",
1946 (long) current_gdbarch
->memory_insert_breakpoint
1947 /*MEMORY_INSERT_BREAKPOINT ()*/);
1949 #ifdef MEMORY_REMOVE_BREAKPOINT
1950 fprintf_unfiltered (file
,
1951 "gdbarch_dump: %s # %s\n",
1952 "MEMORY_REMOVE_BREAKPOINT(addr, contents_cache)",
1953 XSTRING (MEMORY_REMOVE_BREAKPOINT (addr
, contents_cache
)));
1955 fprintf_unfiltered (file
,
1956 "gdbarch_dump: MEMORY_REMOVE_BREAKPOINT = <0x%08lx>\n",
1957 (long) current_gdbarch
->memory_remove_breakpoint
1958 /*MEMORY_REMOVE_BREAKPOINT ()*/);
1960 #ifdef NAME_OF_MALLOC
1961 fprintf_unfiltered (file
,
1962 "gdbarch_dump: NAME_OF_MALLOC # %s\n",
1963 XSTRING (NAME_OF_MALLOC
));
1964 fprintf_unfiltered (file
,
1965 "gdbarch_dump: NAME_OF_MALLOC = %s\n",
1969 fprintf_unfiltered (file
,
1970 "gdbarch_dump: NPC_REGNUM # %s\n",
1971 XSTRING (NPC_REGNUM
));
1972 fprintf_unfiltered (file
,
1973 "gdbarch_dump: NPC_REGNUM = %d\n",
1976 #ifdef NUM_PSEUDO_REGS
1977 fprintf_unfiltered (file
,
1978 "gdbarch_dump: NUM_PSEUDO_REGS # %s\n",
1979 XSTRING (NUM_PSEUDO_REGS
));
1980 fprintf_unfiltered (file
,
1981 "gdbarch_dump: NUM_PSEUDO_REGS = %d\n",
1985 fprintf_unfiltered (file
,
1986 "gdbarch_dump: NUM_REGS # %s\n",
1987 XSTRING (NUM_REGS
));
1988 fprintf_unfiltered (file
,
1989 "gdbarch_dump: NUM_REGS = %d\n",
1992 #ifdef PARM_BOUNDARY
1993 fprintf_unfiltered (file
,
1994 "gdbarch_dump: PARM_BOUNDARY # %s\n",
1995 XSTRING (PARM_BOUNDARY
));
1996 fprintf_unfiltered (file
,
1997 "gdbarch_dump: PARM_BOUNDARY = %d\n",
2000 #ifdef PC_IN_SIGTRAMP
2001 fprintf_unfiltered (file
,
2002 "gdbarch_dump: %s # %s\n",
2003 "PC_IN_SIGTRAMP(pc, name)",
2004 XSTRING (PC_IN_SIGTRAMP (pc
, name
)));
2006 fprintf_unfiltered (file
,
2007 "gdbarch_dump: PC_IN_SIGTRAMP = <0x%08lx>\n",
2008 (long) current_gdbarch
->pc_in_sigtramp
2009 /*PC_IN_SIGTRAMP ()*/);
2012 fprintf_unfiltered (file
,
2013 "gdbarch_dump: PC_REGNUM # %s\n",
2014 XSTRING (PC_REGNUM
));
2015 fprintf_unfiltered (file
,
2016 "gdbarch_dump: PC_REGNUM = %d\n",
2019 #ifdef POINTER_TO_ADDRESS
2020 fprintf_unfiltered (file
,
2021 "gdbarch_dump: %s # %s\n",
2022 "POINTER_TO_ADDRESS(type, buf)",
2023 XSTRING (POINTER_TO_ADDRESS (type
, buf
)));
2025 fprintf_unfiltered (file
,
2026 "gdbarch_dump: POINTER_TO_ADDRESS = <0x%08lx>\n",
2027 (long) current_gdbarch
->pointer_to_address
2028 /*POINTER_TO_ADDRESS ()*/);
2030 #ifdef PREPARE_TO_PROCEED
2031 fprintf_unfiltered (file
,
2032 "gdbarch_dump: %s # %s\n",
2033 "PREPARE_TO_PROCEED(select_it)",
2034 XSTRING (PREPARE_TO_PROCEED (select_it
)));
2036 fprintf_unfiltered (file
,
2037 "gdbarch_dump: PREPARE_TO_PROCEED = <0x%08lx>\n",
2038 (long) current_gdbarch
->prepare_to_proceed
2039 /*PREPARE_TO_PROCEED ()*/);
2042 fprintf_unfiltered (file
,
2043 "gdbarch_dump: gdbarch_print_float_info_p() = %d\n",
2044 gdbarch_print_float_info_p (current_gdbarch
));
2046 fprintf_unfiltered (file
,
2047 "gdbarch_dump: print_float_info = 0x%08lx\n",
2048 (long) current_gdbarch
->print_float_info
);
2050 fprintf_unfiltered (file
,
2051 "gdbarch_dump: print_registers_info = 0x%08lx\n",
2052 (long) current_gdbarch
->print_registers_info
);
2054 fprintf_unfiltered (file
,
2055 "gdbarch_dump: gdbarch_print_vector_info_p() = %d\n",
2056 gdbarch_print_vector_info_p (current_gdbarch
));
2058 fprintf_unfiltered (file
,
2059 "gdbarch_dump: print_vector_info = 0x%08lx\n",
2060 (long) current_gdbarch
->print_vector_info
);
2061 #ifdef PROLOGUE_FRAMELESS_P
2062 fprintf_unfiltered (file
,
2063 "gdbarch_dump: %s # %s\n",
2064 "PROLOGUE_FRAMELESS_P(ip)",
2065 XSTRING (PROLOGUE_FRAMELESS_P (ip
)));
2067 fprintf_unfiltered (file
,
2068 "gdbarch_dump: PROLOGUE_FRAMELESS_P = <0x%08lx>\n",
2069 (long) current_gdbarch
->prologue_frameless_p
2070 /*PROLOGUE_FRAMELESS_P ()*/);
2073 fprintf_unfiltered (file
,
2074 "gdbarch_dump: PS_REGNUM # %s\n",
2075 XSTRING (PS_REGNUM
));
2076 fprintf_unfiltered (file
,
2077 "gdbarch_dump: PS_REGNUM = %d\n",
2081 fprintf_unfiltered (file
,
2082 "gdbarch_dump: gdbarch_push_dummy_call_p() = %d\n",
2083 gdbarch_push_dummy_call_p (current_gdbarch
));
2085 fprintf_unfiltered (file
,
2086 "gdbarch_dump: push_dummy_call = 0x%08lx\n",
2087 (long) current_gdbarch
->push_dummy_call
);
2089 fprintf_unfiltered (file
,
2090 "gdbarch_dump: gdbarch_push_dummy_code_p() = %d\n",
2091 gdbarch_push_dummy_code_p (current_gdbarch
));
2093 fprintf_unfiltered (file
,
2094 "gdbarch_dump: push_dummy_code = 0x%08lx\n",
2095 (long) current_gdbarch
->push_dummy_code
);
2096 #ifdef REGISTER_BYTE_P
2097 fprintf_unfiltered (file
,
2098 "gdbarch_dump: %s # %s\n",
2099 "REGISTER_BYTE_P()",
2100 XSTRING (REGISTER_BYTE_P ()));
2101 fprintf_unfiltered (file
,
2102 "gdbarch_dump: REGISTER_BYTE_P() = %d\n",
2103 REGISTER_BYTE_P ());
2105 #ifdef REGISTER_BYTE
2106 fprintf_unfiltered (file
,
2107 "gdbarch_dump: %s # %s\n",
2108 "REGISTER_BYTE(reg_nr)",
2109 XSTRING (REGISTER_BYTE (reg_nr
)));
2111 fprintf_unfiltered (file
,
2112 "gdbarch_dump: REGISTER_BYTE = <0x%08lx>\n",
2113 (long) current_gdbarch
->deprecated_register_byte
2114 /*REGISTER_BYTE ()*/);
2116 #ifdef REGISTER_BYTES_OK_P
2117 fprintf_unfiltered (file
,
2118 "gdbarch_dump: %s # %s\n",
2119 "REGISTER_BYTES_OK_P()",
2120 XSTRING (REGISTER_BYTES_OK_P ()));
2121 fprintf_unfiltered (file
,
2122 "gdbarch_dump: REGISTER_BYTES_OK_P() = %d\n",
2123 REGISTER_BYTES_OK_P ());
2125 #ifdef REGISTER_BYTES_OK
2126 fprintf_unfiltered (file
,
2127 "gdbarch_dump: %s # %s\n",
2128 "REGISTER_BYTES_OK(nr_bytes)",
2129 XSTRING (REGISTER_BYTES_OK (nr_bytes
)));
2131 fprintf_unfiltered (file
,
2132 "gdbarch_dump: REGISTER_BYTES_OK = <0x%08lx>\n",
2133 (long) current_gdbarch
->register_bytes_ok
2134 /*REGISTER_BYTES_OK ()*/);
2136 #ifdef REGISTER_NAME
2137 fprintf_unfiltered (file
,
2138 "gdbarch_dump: %s # %s\n",
2139 "REGISTER_NAME(regnr)",
2140 XSTRING (REGISTER_NAME (regnr
)));
2142 fprintf_unfiltered (file
,
2143 "gdbarch_dump: REGISTER_NAME = <0x%08lx>\n",
2144 (long) current_gdbarch
->register_name
2145 /*REGISTER_NAME ()*/);
2147 #ifdef REGISTER_RAW_SIZE
2148 fprintf_unfiltered (file
,
2149 "gdbarch_dump: %s # %s\n",
2150 "REGISTER_RAW_SIZE(reg_nr)",
2151 XSTRING (REGISTER_RAW_SIZE (reg_nr
)));
2153 fprintf_unfiltered (file
,
2154 "gdbarch_dump: REGISTER_RAW_SIZE = <0x%08lx>\n",
2155 (long) current_gdbarch
->deprecated_register_raw_size
2156 /*REGISTER_RAW_SIZE ()*/);
2158 #ifdef REGISTER_SIM_REGNO
2159 fprintf_unfiltered (file
,
2160 "gdbarch_dump: %s # %s\n",
2161 "REGISTER_SIM_REGNO(reg_nr)",
2162 XSTRING (REGISTER_SIM_REGNO (reg_nr
)));
2164 fprintf_unfiltered (file
,
2165 "gdbarch_dump: REGISTER_SIM_REGNO = <0x%08lx>\n",
2166 (long) current_gdbarch
->register_sim_regno
2167 /*REGISTER_SIM_REGNO ()*/);
2169 #ifdef REGISTER_TO_VALUE
2171 /* Macro might contain `[{}]' when not multi-arch */
2172 fprintf_unfiltered (file
,
2173 "gdbarch_dump: %s # %s\n",
2174 "REGISTER_TO_VALUE(frame, regnum, type, buf)",
2175 XSTRING (REGISTER_TO_VALUE (frame
, regnum
, type
, buf
)));
2178 fprintf_unfiltered (file
,
2179 "gdbarch_dump: REGISTER_TO_VALUE = <0x%08lx>\n",
2180 (long) current_gdbarch
->register_to_value
2181 /*REGISTER_TO_VALUE ()*/);
2184 fprintf_unfiltered (file
,
2185 "gdbarch_dump: gdbarch_register_type_p() = %d\n",
2186 gdbarch_register_type_p (current_gdbarch
));
2188 fprintf_unfiltered (file
,
2189 "gdbarch_dump: register_type = 0x%08lx\n",
2190 (long) current_gdbarch
->register_type
);
2191 #ifdef REGISTER_VIRTUAL_SIZE
2192 fprintf_unfiltered (file
,
2193 "gdbarch_dump: %s # %s\n",
2194 "REGISTER_VIRTUAL_SIZE(reg_nr)",
2195 XSTRING (REGISTER_VIRTUAL_SIZE (reg_nr
)));
2197 fprintf_unfiltered (file
,
2198 "gdbarch_dump: REGISTER_VIRTUAL_SIZE = <0x%08lx>\n",
2199 (long) current_gdbarch
->deprecated_register_virtual_size
2200 /*REGISTER_VIRTUAL_SIZE ()*/);
2202 #ifdef REGISTER_VIRTUAL_TYPE_P
2203 fprintf_unfiltered (file
,
2204 "gdbarch_dump: %s # %s\n",
2205 "REGISTER_VIRTUAL_TYPE_P()",
2206 XSTRING (REGISTER_VIRTUAL_TYPE_P ()));
2207 fprintf_unfiltered (file
,
2208 "gdbarch_dump: REGISTER_VIRTUAL_TYPE_P() = %d\n",
2209 REGISTER_VIRTUAL_TYPE_P ());
2211 #ifdef REGISTER_VIRTUAL_TYPE
2212 fprintf_unfiltered (file
,
2213 "gdbarch_dump: %s # %s\n",
2214 "REGISTER_VIRTUAL_TYPE(reg_nr)",
2215 XSTRING (REGISTER_VIRTUAL_TYPE (reg_nr
)));
2217 fprintf_unfiltered (file
,
2218 "gdbarch_dump: REGISTER_VIRTUAL_TYPE = <0x%08lx>\n",
2219 (long) current_gdbarch
->deprecated_register_virtual_type
2220 /*REGISTER_VIRTUAL_TYPE ()*/);
2222 #ifdef REG_STRUCT_HAS_ADDR_P
2223 fprintf_unfiltered (file
,
2224 "gdbarch_dump: %s # %s\n",
2225 "REG_STRUCT_HAS_ADDR_P()",
2226 XSTRING (REG_STRUCT_HAS_ADDR_P ()));
2227 fprintf_unfiltered (file
,
2228 "gdbarch_dump: REG_STRUCT_HAS_ADDR_P() = %d\n",
2229 REG_STRUCT_HAS_ADDR_P ());
2231 #ifdef REG_STRUCT_HAS_ADDR
2232 fprintf_unfiltered (file
,
2233 "gdbarch_dump: %s # %s\n",
2234 "REG_STRUCT_HAS_ADDR(gcc_p, type)",
2235 XSTRING (REG_STRUCT_HAS_ADDR (gcc_p
, type
)));
2237 fprintf_unfiltered (file
,
2238 "gdbarch_dump: REG_STRUCT_HAS_ADDR = <0x%08lx>\n",
2239 (long) current_gdbarch
->reg_struct_has_addr
2240 /*REG_STRUCT_HAS_ADDR ()*/);
2243 fprintf_unfiltered (file
,
2244 "gdbarch_dump: remote_translate_xfer_address = 0x%08lx\n",
2245 (long) current_gdbarch
->remote_translate_xfer_address
);
2246 #ifdef RETURN_VALUE_ON_STACK
2247 fprintf_unfiltered (file
,
2248 "gdbarch_dump: %s # %s\n",
2249 "RETURN_VALUE_ON_STACK(type)",
2250 XSTRING (RETURN_VALUE_ON_STACK (type
)));
2252 fprintf_unfiltered (file
,
2253 "gdbarch_dump: RETURN_VALUE_ON_STACK = <0x%08lx>\n",
2254 (long) current_gdbarch
->return_value_on_stack
2255 /*RETURN_VALUE_ON_STACK ()*/);
2257 #ifdef SDB_REG_TO_REGNUM
2258 fprintf_unfiltered (file
,
2259 "gdbarch_dump: %s # %s\n",
2260 "SDB_REG_TO_REGNUM(sdb_regnr)",
2261 XSTRING (SDB_REG_TO_REGNUM (sdb_regnr
)));
2263 fprintf_unfiltered (file
,
2264 "gdbarch_dump: SDB_REG_TO_REGNUM = <0x%08lx>\n",
2265 (long) current_gdbarch
->sdb_reg_to_regnum
2266 /*SDB_REG_TO_REGNUM ()*/);
2268 #ifdef SIGTRAMP_END_P
2269 fprintf_unfiltered (file
,
2270 "gdbarch_dump: %s # %s\n",
2272 XSTRING (SIGTRAMP_END_P ()));
2273 fprintf_unfiltered (file
,
2274 "gdbarch_dump: SIGTRAMP_END_P() = %d\n",
2278 fprintf_unfiltered (file
,
2279 "gdbarch_dump: %s # %s\n",
2281 XSTRING (SIGTRAMP_END (pc
)));
2283 fprintf_unfiltered (file
,
2284 "gdbarch_dump: SIGTRAMP_END = <0x%08lx>\n",
2285 (long) current_gdbarch
->sigtramp_end
2286 /*SIGTRAMP_END ()*/);
2288 #ifdef SIGTRAMP_START_P
2289 fprintf_unfiltered (file
,
2290 "gdbarch_dump: %s # %s\n",
2291 "SIGTRAMP_START_P()",
2292 XSTRING (SIGTRAMP_START_P ()));
2293 fprintf_unfiltered (file
,
2294 "gdbarch_dump: SIGTRAMP_START_P() = %d\n",
2295 SIGTRAMP_START_P ());
2297 #ifdef SIGTRAMP_START
2298 fprintf_unfiltered (file
,
2299 "gdbarch_dump: %s # %s\n",
2300 "SIGTRAMP_START(pc)",
2301 XSTRING (SIGTRAMP_START (pc
)));
2303 fprintf_unfiltered (file
,
2304 "gdbarch_dump: SIGTRAMP_START = <0x%08lx>\n",
2305 (long) current_gdbarch
->sigtramp_start
2306 /*SIGTRAMP_START ()*/);
2308 #ifdef SKIP_PROLOGUE
2309 fprintf_unfiltered (file
,
2310 "gdbarch_dump: %s # %s\n",
2311 "SKIP_PROLOGUE(ip)",
2312 XSTRING (SKIP_PROLOGUE (ip
)));
2314 fprintf_unfiltered (file
,
2315 "gdbarch_dump: SKIP_PROLOGUE = <0x%08lx>\n",
2316 (long) current_gdbarch
->skip_prologue
2317 /*SKIP_PROLOGUE ()*/);
2319 #ifdef SKIP_TRAMPOLINE_CODE
2320 fprintf_unfiltered (file
,
2321 "gdbarch_dump: %s # %s\n",
2322 "SKIP_TRAMPOLINE_CODE(pc)",
2323 XSTRING (SKIP_TRAMPOLINE_CODE (pc
)));
2325 fprintf_unfiltered (file
,
2326 "gdbarch_dump: SKIP_TRAMPOLINE_CODE = <0x%08lx>\n",
2327 (long) current_gdbarch
->skip_trampoline_code
2328 /*SKIP_TRAMPOLINE_CODE ()*/);
2330 #ifdef SMASH_TEXT_ADDRESS
2331 fprintf_unfiltered (file
,
2332 "gdbarch_dump: %s # %s\n",
2333 "SMASH_TEXT_ADDRESS(addr)",
2334 XSTRING (SMASH_TEXT_ADDRESS (addr
)));
2336 fprintf_unfiltered (file
,
2337 "gdbarch_dump: SMASH_TEXT_ADDRESS = <0x%08lx>\n",
2338 (long) current_gdbarch
->smash_text_address
2339 /*SMASH_TEXT_ADDRESS ()*/);
2341 #ifdef SOFTWARE_SINGLE_STEP_P
2342 fprintf_unfiltered (file
,
2343 "gdbarch_dump: %s # %s\n",
2344 "SOFTWARE_SINGLE_STEP_P()",
2345 XSTRING (SOFTWARE_SINGLE_STEP_P ()));
2346 fprintf_unfiltered (file
,
2347 "gdbarch_dump: SOFTWARE_SINGLE_STEP_P() = %d\n",
2348 SOFTWARE_SINGLE_STEP_P ());
2350 #ifdef SOFTWARE_SINGLE_STEP
2352 /* Macro might contain `[{}]' when not multi-arch */
2353 fprintf_unfiltered (file
,
2354 "gdbarch_dump: %s # %s\n",
2355 "SOFTWARE_SINGLE_STEP(sig, insert_breakpoints_p)",
2356 XSTRING (SOFTWARE_SINGLE_STEP (sig
, insert_breakpoints_p
)));
2359 fprintf_unfiltered (file
,
2360 "gdbarch_dump: SOFTWARE_SINGLE_STEP = <0x%08lx>\n",
2361 (long) current_gdbarch
->software_single_step
2362 /*SOFTWARE_SINGLE_STEP ()*/);
2365 fprintf_unfiltered (file
,
2366 "gdbarch_dump: SP_REGNUM # %s\n",
2367 XSTRING (SP_REGNUM
));
2368 fprintf_unfiltered (file
,
2369 "gdbarch_dump: SP_REGNUM = %d\n",
2372 #ifdef STAB_REG_TO_REGNUM
2373 fprintf_unfiltered (file
,
2374 "gdbarch_dump: %s # %s\n",
2375 "STAB_REG_TO_REGNUM(stab_regnr)",
2376 XSTRING (STAB_REG_TO_REGNUM (stab_regnr
)));
2378 fprintf_unfiltered (file
,
2379 "gdbarch_dump: STAB_REG_TO_REGNUM = <0x%08lx>\n",
2380 (long) current_gdbarch
->stab_reg_to_regnum
2381 /*STAB_REG_TO_REGNUM ()*/);
2383 #ifdef STACK_ALIGN_P
2384 fprintf_unfiltered (file
,
2385 "gdbarch_dump: %s # %s\n",
2387 XSTRING (STACK_ALIGN_P ()));
2388 fprintf_unfiltered (file
,
2389 "gdbarch_dump: STACK_ALIGN_P() = %d\n",
2393 fprintf_unfiltered (file
,
2394 "gdbarch_dump: %s # %s\n",
2396 XSTRING (STACK_ALIGN (sp
)));
2398 fprintf_unfiltered (file
,
2399 "gdbarch_dump: STACK_ALIGN = <0x%08lx>\n",
2400 (long) current_gdbarch
->stack_align
2401 /*STACK_ALIGN ()*/);
2403 #ifdef STORE_RETURN_VALUE
2405 /* Macro might contain `[{}]' when not multi-arch */
2406 fprintf_unfiltered (file
,
2407 "gdbarch_dump: %s # %s\n",
2408 "STORE_RETURN_VALUE(type, regcache, valbuf)",
2409 XSTRING (STORE_RETURN_VALUE (type
, regcache
, valbuf
)));
2412 fprintf_unfiltered (file
,
2413 "gdbarch_dump: STORE_RETURN_VALUE = <0x%08lx>\n",
2414 (long) current_gdbarch
->store_return_value
2415 /*STORE_RETURN_VALUE ()*/);
2417 #ifdef TARGET_ADDR_BIT
2418 fprintf_unfiltered (file
,
2419 "gdbarch_dump: TARGET_ADDR_BIT # %s\n",
2420 XSTRING (TARGET_ADDR_BIT
));
2421 fprintf_unfiltered (file
,
2422 "gdbarch_dump: TARGET_ADDR_BIT = %d\n",
2425 #ifdef TARGET_ARCHITECTURE
2426 fprintf_unfiltered (file
,
2427 "gdbarch_dump: TARGET_ARCHITECTURE # %s\n",
2428 XSTRING (TARGET_ARCHITECTURE
));
2429 if (TARGET_ARCHITECTURE
!= NULL
)
2430 fprintf_unfiltered (file
,
2431 "gdbarch_dump: TARGET_ARCHITECTURE = %s\n",
2432 TARGET_ARCHITECTURE
->printable_name
);
2434 #ifdef TARGET_BFD_VMA_BIT
2435 fprintf_unfiltered (file
,
2436 "gdbarch_dump: TARGET_BFD_VMA_BIT # %s\n",
2437 XSTRING (TARGET_BFD_VMA_BIT
));
2438 fprintf_unfiltered (file
,
2439 "gdbarch_dump: TARGET_BFD_VMA_BIT = %d\n",
2440 TARGET_BFD_VMA_BIT
);
2442 #ifdef TARGET_BYTE_ORDER
2443 fprintf_unfiltered (file
,
2444 "gdbarch_dump: TARGET_BYTE_ORDER # %s\n",
2445 XSTRING (TARGET_BYTE_ORDER
));
2446 fprintf_unfiltered (file
,
2447 "gdbarch_dump: TARGET_BYTE_ORDER = %ld\n",
2448 (long) TARGET_BYTE_ORDER
);
2450 #ifdef TARGET_CHAR_SIGNED
2451 fprintf_unfiltered (file
,
2452 "gdbarch_dump: TARGET_CHAR_SIGNED # %s\n",
2453 XSTRING (TARGET_CHAR_SIGNED
));
2454 fprintf_unfiltered (file
,
2455 "gdbarch_dump: TARGET_CHAR_SIGNED = %d\n",
2456 TARGET_CHAR_SIGNED
);
2458 #ifdef TARGET_DOUBLE_BIT
2459 fprintf_unfiltered (file
,
2460 "gdbarch_dump: TARGET_DOUBLE_BIT # %s\n",
2461 XSTRING (TARGET_DOUBLE_BIT
));
2462 fprintf_unfiltered (file
,
2463 "gdbarch_dump: TARGET_DOUBLE_BIT = %d\n",
2466 #ifdef TARGET_DOUBLE_FORMAT
2467 fprintf_unfiltered (file
,
2468 "gdbarch_dump: TARGET_DOUBLE_FORMAT # %s\n",
2469 XSTRING (TARGET_DOUBLE_FORMAT
));
2470 fprintf_unfiltered (file
,
2471 "gdbarch_dump: TARGET_DOUBLE_FORMAT = %s\n",
2472 (TARGET_DOUBLE_FORMAT
)->name
);
2474 #ifdef TARGET_FLOAT_BIT
2475 fprintf_unfiltered (file
,
2476 "gdbarch_dump: TARGET_FLOAT_BIT # %s\n",
2477 XSTRING (TARGET_FLOAT_BIT
));
2478 fprintf_unfiltered (file
,
2479 "gdbarch_dump: TARGET_FLOAT_BIT = %d\n",
2482 #ifdef TARGET_FLOAT_FORMAT
2483 fprintf_unfiltered (file
,
2484 "gdbarch_dump: TARGET_FLOAT_FORMAT # %s\n",
2485 XSTRING (TARGET_FLOAT_FORMAT
));
2486 fprintf_unfiltered (file
,
2487 "gdbarch_dump: TARGET_FLOAT_FORMAT = %s\n",
2488 (TARGET_FLOAT_FORMAT
)->name
);
2490 #ifdef TARGET_INT_BIT
2491 fprintf_unfiltered (file
,
2492 "gdbarch_dump: TARGET_INT_BIT # %s\n",
2493 XSTRING (TARGET_INT_BIT
));
2494 fprintf_unfiltered (file
,
2495 "gdbarch_dump: TARGET_INT_BIT = %d\n",
2498 #ifdef TARGET_LONG_BIT
2499 fprintf_unfiltered (file
,
2500 "gdbarch_dump: TARGET_LONG_BIT # %s\n",
2501 XSTRING (TARGET_LONG_BIT
));
2502 fprintf_unfiltered (file
,
2503 "gdbarch_dump: TARGET_LONG_BIT = %d\n",
2506 #ifdef TARGET_LONG_DOUBLE_BIT
2507 fprintf_unfiltered (file
,
2508 "gdbarch_dump: TARGET_LONG_DOUBLE_BIT # %s\n",
2509 XSTRING (TARGET_LONG_DOUBLE_BIT
));
2510 fprintf_unfiltered (file
,
2511 "gdbarch_dump: TARGET_LONG_DOUBLE_BIT = %d\n",
2512 TARGET_LONG_DOUBLE_BIT
);
2514 #ifdef TARGET_LONG_DOUBLE_FORMAT
2515 fprintf_unfiltered (file
,
2516 "gdbarch_dump: TARGET_LONG_DOUBLE_FORMAT # %s\n",
2517 XSTRING (TARGET_LONG_DOUBLE_FORMAT
));
2518 fprintf_unfiltered (file
,
2519 "gdbarch_dump: TARGET_LONG_DOUBLE_FORMAT = %s\n",
2520 (TARGET_LONG_DOUBLE_FORMAT
)->name
);
2522 #ifdef TARGET_LONG_LONG_BIT
2523 fprintf_unfiltered (file
,
2524 "gdbarch_dump: TARGET_LONG_LONG_BIT # %s\n",
2525 XSTRING (TARGET_LONG_LONG_BIT
));
2526 fprintf_unfiltered (file
,
2527 "gdbarch_dump: TARGET_LONG_LONG_BIT = %d\n",
2528 TARGET_LONG_LONG_BIT
);
2531 fprintf_unfiltered (file
,
2532 "gdbarch_dump: TARGET_OSABI # %s\n",
2533 XSTRING (TARGET_OSABI
));
2534 fprintf_unfiltered (file
,
2535 "gdbarch_dump: TARGET_OSABI = %ld\n",
2536 (long) TARGET_OSABI
);
2538 #ifdef TARGET_PRINT_INSN
2539 fprintf_unfiltered (file
,
2540 "gdbarch_dump: %s # %s\n",
2541 "TARGET_PRINT_INSN(vma, info)",
2542 XSTRING (TARGET_PRINT_INSN (vma
, info
)));
2544 fprintf_unfiltered (file
,
2545 "gdbarch_dump: TARGET_PRINT_INSN = <0x%08lx>\n",
2546 (long) current_gdbarch
->print_insn
2547 /*TARGET_PRINT_INSN ()*/);
2549 #ifdef TARGET_PTR_BIT
2550 fprintf_unfiltered (file
,
2551 "gdbarch_dump: TARGET_PTR_BIT # %s\n",
2552 XSTRING (TARGET_PTR_BIT
));
2553 fprintf_unfiltered (file
,
2554 "gdbarch_dump: TARGET_PTR_BIT = %d\n",
2557 #ifdef TARGET_READ_PC_P
2558 fprintf_unfiltered (file
,
2559 "gdbarch_dump: %s # %s\n",
2560 "TARGET_READ_PC_P()",
2561 XSTRING (TARGET_READ_PC_P ()));
2562 fprintf_unfiltered (file
,
2563 "gdbarch_dump: TARGET_READ_PC_P() = %d\n",
2564 TARGET_READ_PC_P ());
2566 #ifdef TARGET_READ_PC
2567 fprintf_unfiltered (file
,
2568 "gdbarch_dump: %s # %s\n",
2569 "TARGET_READ_PC(ptid)",
2570 XSTRING (TARGET_READ_PC (ptid
)));
2572 fprintf_unfiltered (file
,
2573 "gdbarch_dump: TARGET_READ_PC = <0x%08lx>\n",
2574 (long) current_gdbarch
->read_pc
2575 /*TARGET_READ_PC ()*/);
2577 #ifdef TARGET_READ_SP_P
2578 fprintf_unfiltered (file
,
2579 "gdbarch_dump: %s # %s\n",
2580 "TARGET_READ_SP_P()",
2581 XSTRING (TARGET_READ_SP_P ()));
2582 fprintf_unfiltered (file
,
2583 "gdbarch_dump: TARGET_READ_SP_P() = %d\n",
2584 TARGET_READ_SP_P ());
2586 #ifdef TARGET_READ_SP
2587 fprintf_unfiltered (file
,
2588 "gdbarch_dump: %s # %s\n",
2590 XSTRING (TARGET_READ_SP ()));
2592 fprintf_unfiltered (file
,
2593 "gdbarch_dump: TARGET_READ_SP = <0x%08lx>\n",
2594 (long) current_gdbarch
->read_sp
2595 /*TARGET_READ_SP ()*/);
2597 #ifdef TARGET_SHORT_BIT
2598 fprintf_unfiltered (file
,
2599 "gdbarch_dump: TARGET_SHORT_BIT # %s\n",
2600 XSTRING (TARGET_SHORT_BIT
));
2601 fprintf_unfiltered (file
,
2602 "gdbarch_dump: TARGET_SHORT_BIT = %d\n",
2605 #ifdef TARGET_VIRTUAL_FRAME_POINTER
2607 /* Macro might contain `[{}]' when not multi-arch */
2608 fprintf_unfiltered (file
,
2609 "gdbarch_dump: %s # %s\n",
2610 "TARGET_VIRTUAL_FRAME_POINTER(pc, frame_regnum, frame_offset)",
2611 XSTRING (TARGET_VIRTUAL_FRAME_POINTER (pc
, frame_regnum
, frame_offset
)));
2614 fprintf_unfiltered (file
,
2615 "gdbarch_dump: TARGET_VIRTUAL_FRAME_POINTER = <0x%08lx>\n",
2616 (long) current_gdbarch
->virtual_frame_pointer
2617 /*TARGET_VIRTUAL_FRAME_POINTER ()*/);
2619 #ifdef TARGET_WRITE_PC
2621 /* Macro might contain `[{}]' when not multi-arch */
2622 fprintf_unfiltered (file
,
2623 "gdbarch_dump: %s # %s\n",
2624 "TARGET_WRITE_PC(val, ptid)",
2625 XSTRING (TARGET_WRITE_PC (val
, ptid
)));
2628 fprintf_unfiltered (file
,
2629 "gdbarch_dump: TARGET_WRITE_PC = <0x%08lx>\n",
2630 (long) current_gdbarch
->write_pc
2631 /*TARGET_WRITE_PC ()*/);
2634 fprintf_unfiltered (file
,
2635 "gdbarch_dump: gdbarch_unwind_dummy_id_p() = %d\n",
2636 gdbarch_unwind_dummy_id_p (current_gdbarch
));
2638 fprintf_unfiltered (file
,
2639 "gdbarch_dump: unwind_dummy_id = 0x%08lx\n",
2640 (long) current_gdbarch
->unwind_dummy_id
);
2642 fprintf_unfiltered (file
,
2643 "gdbarch_dump: gdbarch_unwind_pc_p() = %d\n",
2644 gdbarch_unwind_pc_p (current_gdbarch
));
2646 fprintf_unfiltered (file
,
2647 "gdbarch_dump: unwind_pc = 0x%08lx\n",
2648 (long) current_gdbarch
->unwind_pc
);
2650 fprintf_unfiltered (file
,
2651 "gdbarch_dump: gdbarch_unwind_sp_p() = %d\n",
2652 gdbarch_unwind_sp_p (current_gdbarch
));
2654 fprintf_unfiltered (file
,
2655 "gdbarch_dump: unwind_sp = 0x%08lx\n",
2656 (long) current_gdbarch
->unwind_sp
);
2657 #ifdef USE_STRUCT_CONVENTION
2658 fprintf_unfiltered (file
,
2659 "gdbarch_dump: %s # %s\n",
2660 "USE_STRUCT_CONVENTION(gcc_p, value_type)",
2661 XSTRING (USE_STRUCT_CONVENTION (gcc_p
, value_type
)));
2663 fprintf_unfiltered (file
,
2664 "gdbarch_dump: USE_STRUCT_CONVENTION = <0x%08lx>\n",
2665 (long) current_gdbarch
->use_struct_convention
2666 /*USE_STRUCT_CONVENTION ()*/);
2668 #ifdef VALUE_TO_REGISTER
2670 /* Macro might contain `[{}]' when not multi-arch */
2671 fprintf_unfiltered (file
,
2672 "gdbarch_dump: %s # %s\n",
2673 "VALUE_TO_REGISTER(frame, regnum, type, buf)",
2674 XSTRING (VALUE_TO_REGISTER (frame
, regnum
, type
, buf
)));
2677 fprintf_unfiltered (file
,
2678 "gdbarch_dump: VALUE_TO_REGISTER = <0x%08lx>\n",
2679 (long) current_gdbarch
->value_to_register
2680 /*VALUE_TO_REGISTER ()*/);
2682 if (current_gdbarch
->dump_tdep
!= NULL
)
2683 current_gdbarch
->dump_tdep (current_gdbarch
, file
);
2686 struct gdbarch_tdep
*
2687 gdbarch_tdep (struct gdbarch
*gdbarch
)
2689 if (gdbarch_debug
>= 2)
2690 fprintf_unfiltered (gdb_stdlog
, "gdbarch_tdep called\n");
2691 return gdbarch
->tdep
;
2695 const struct bfd_arch_info
*
2696 gdbarch_bfd_arch_info (struct gdbarch
*gdbarch
)
2698 gdb_assert (gdbarch
!= NULL
);
2699 if (gdbarch_debug
>= 2)
2700 fprintf_unfiltered (gdb_stdlog
, "gdbarch_bfd_arch_info called\n");
2701 return gdbarch
->bfd_arch_info
;
2705 gdbarch_byte_order (struct gdbarch
*gdbarch
)
2707 gdb_assert (gdbarch
!= NULL
);
2708 if (gdbarch_debug
>= 2)
2709 fprintf_unfiltered (gdb_stdlog
, "gdbarch_byte_order called\n");
2710 return gdbarch
->byte_order
;
2714 gdbarch_osabi (struct gdbarch
*gdbarch
)
2716 gdb_assert (gdbarch
!= NULL
);
2717 if (gdbarch_debug
>= 2)
2718 fprintf_unfiltered (gdb_stdlog
, "gdbarch_osabi called\n");
2719 return gdbarch
->osabi
;
2723 gdbarch_short_bit (struct gdbarch
*gdbarch
)
2725 gdb_assert (gdbarch
!= NULL
);
2726 /* Skip verify of short_bit, invalid_p == 0 */
2727 if (gdbarch_debug
>= 2)
2728 fprintf_unfiltered (gdb_stdlog
, "gdbarch_short_bit called\n");
2729 return gdbarch
->short_bit
;
2733 set_gdbarch_short_bit (struct gdbarch
*gdbarch
,
2736 gdbarch
->short_bit
= short_bit
;
2740 gdbarch_int_bit (struct gdbarch
*gdbarch
)
2742 gdb_assert (gdbarch
!= NULL
);
2743 /* Skip verify of int_bit, invalid_p == 0 */
2744 if (gdbarch_debug
>= 2)
2745 fprintf_unfiltered (gdb_stdlog
, "gdbarch_int_bit called\n");
2746 return gdbarch
->int_bit
;
2750 set_gdbarch_int_bit (struct gdbarch
*gdbarch
,
2753 gdbarch
->int_bit
= int_bit
;
2757 gdbarch_long_bit (struct gdbarch
*gdbarch
)
2759 gdb_assert (gdbarch
!= NULL
);
2760 /* Skip verify of long_bit, invalid_p == 0 */
2761 if (gdbarch_debug
>= 2)
2762 fprintf_unfiltered (gdb_stdlog
, "gdbarch_long_bit called\n");
2763 return gdbarch
->long_bit
;
2767 set_gdbarch_long_bit (struct gdbarch
*gdbarch
,
2770 gdbarch
->long_bit
= long_bit
;
2774 gdbarch_long_long_bit (struct gdbarch
*gdbarch
)
2776 gdb_assert (gdbarch
!= NULL
);
2777 /* Skip verify of long_long_bit, invalid_p == 0 */
2778 if (gdbarch_debug
>= 2)
2779 fprintf_unfiltered (gdb_stdlog
, "gdbarch_long_long_bit called\n");
2780 return gdbarch
->long_long_bit
;
2784 set_gdbarch_long_long_bit (struct gdbarch
*gdbarch
,
2787 gdbarch
->long_long_bit
= long_long_bit
;
2791 gdbarch_float_bit (struct gdbarch
*gdbarch
)
2793 gdb_assert (gdbarch
!= NULL
);
2794 /* Skip verify of float_bit, invalid_p == 0 */
2795 if (gdbarch_debug
>= 2)
2796 fprintf_unfiltered (gdb_stdlog
, "gdbarch_float_bit called\n");
2797 return gdbarch
->float_bit
;
2801 set_gdbarch_float_bit (struct gdbarch
*gdbarch
,
2804 gdbarch
->float_bit
= float_bit
;
2808 gdbarch_double_bit (struct gdbarch
*gdbarch
)
2810 gdb_assert (gdbarch
!= NULL
);
2811 /* Skip verify of double_bit, invalid_p == 0 */
2812 if (gdbarch_debug
>= 2)
2813 fprintf_unfiltered (gdb_stdlog
, "gdbarch_double_bit called\n");
2814 return gdbarch
->double_bit
;
2818 set_gdbarch_double_bit (struct gdbarch
*gdbarch
,
2821 gdbarch
->double_bit
= double_bit
;
2825 gdbarch_long_double_bit (struct gdbarch
*gdbarch
)
2827 gdb_assert (gdbarch
!= NULL
);
2828 /* Skip verify of long_double_bit, invalid_p == 0 */
2829 if (gdbarch_debug
>= 2)
2830 fprintf_unfiltered (gdb_stdlog
, "gdbarch_long_double_bit called\n");
2831 return gdbarch
->long_double_bit
;
2835 set_gdbarch_long_double_bit (struct gdbarch
*gdbarch
,
2836 int long_double_bit
)
2838 gdbarch
->long_double_bit
= long_double_bit
;
2842 gdbarch_ptr_bit (struct gdbarch
*gdbarch
)
2844 gdb_assert (gdbarch
!= NULL
);
2845 /* Skip verify of ptr_bit, invalid_p == 0 */
2846 if (gdbarch_debug
>= 2)
2847 fprintf_unfiltered (gdb_stdlog
, "gdbarch_ptr_bit called\n");
2848 return gdbarch
->ptr_bit
;
2852 set_gdbarch_ptr_bit (struct gdbarch
*gdbarch
,
2855 gdbarch
->ptr_bit
= ptr_bit
;
2859 gdbarch_addr_bit (struct gdbarch
*gdbarch
)
2861 gdb_assert (gdbarch
!= NULL
);
2862 if (gdbarch
->addr_bit
== 0)
2863 internal_error (__FILE__
, __LINE__
,
2864 "gdbarch: gdbarch_addr_bit invalid");
2865 if (gdbarch_debug
>= 2)
2866 fprintf_unfiltered (gdb_stdlog
, "gdbarch_addr_bit called\n");
2867 return gdbarch
->addr_bit
;
2871 set_gdbarch_addr_bit (struct gdbarch
*gdbarch
,
2874 gdbarch
->addr_bit
= addr_bit
;
2878 gdbarch_bfd_vma_bit (struct gdbarch
*gdbarch
)
2880 gdb_assert (gdbarch
!= NULL
);
2881 /* Skip verify of bfd_vma_bit, invalid_p == 0 */
2882 if (gdbarch_debug
>= 2)
2883 fprintf_unfiltered (gdb_stdlog
, "gdbarch_bfd_vma_bit called\n");
2884 return gdbarch
->bfd_vma_bit
;
2888 set_gdbarch_bfd_vma_bit (struct gdbarch
*gdbarch
,
2891 gdbarch
->bfd_vma_bit
= bfd_vma_bit
;
2895 gdbarch_char_signed (struct gdbarch
*gdbarch
)
2897 gdb_assert (gdbarch
!= NULL
);
2898 if (gdbarch
->char_signed
== -1)
2899 internal_error (__FILE__
, __LINE__
,
2900 "gdbarch: gdbarch_char_signed invalid");
2901 if (gdbarch_debug
>= 2)
2902 fprintf_unfiltered (gdb_stdlog
, "gdbarch_char_signed called\n");
2903 return gdbarch
->char_signed
;
2907 set_gdbarch_char_signed (struct gdbarch
*gdbarch
,
2910 gdbarch
->char_signed
= char_signed
;
2914 gdbarch_read_pc_p (struct gdbarch
*gdbarch
)
2916 gdb_assert (gdbarch
!= NULL
);
2917 return gdbarch
->read_pc
!= 0;
2921 gdbarch_read_pc (struct gdbarch
*gdbarch
, ptid_t ptid
)
2923 gdb_assert (gdbarch
!= NULL
);
2924 if (gdbarch
->read_pc
== 0)
2925 internal_error (__FILE__
, __LINE__
,
2926 "gdbarch: gdbarch_read_pc invalid");
2927 if (gdbarch_debug
>= 2)
2928 fprintf_unfiltered (gdb_stdlog
, "gdbarch_read_pc called\n");
2929 return gdbarch
->read_pc (ptid
);
2933 set_gdbarch_read_pc (struct gdbarch
*gdbarch
,
2934 gdbarch_read_pc_ftype read_pc
)
2936 gdbarch
->read_pc
= read_pc
;
2940 gdbarch_write_pc (struct gdbarch
*gdbarch
, CORE_ADDR val
, ptid_t ptid
)
2942 gdb_assert (gdbarch
!= NULL
);
2943 if (gdbarch
->write_pc
== 0)
2944 internal_error (__FILE__
, __LINE__
,
2945 "gdbarch: gdbarch_write_pc invalid");
2946 if (gdbarch_debug
>= 2)
2947 fprintf_unfiltered (gdb_stdlog
, "gdbarch_write_pc called\n");
2948 gdbarch
->write_pc (val
, ptid
);
2952 set_gdbarch_write_pc (struct gdbarch
*gdbarch
,
2953 gdbarch_write_pc_ftype write_pc
)
2955 gdbarch
->write_pc
= write_pc
;
2959 gdbarch_read_sp_p (struct gdbarch
*gdbarch
)
2961 gdb_assert (gdbarch
!= NULL
);
2962 return gdbarch
->read_sp
!= 0;
2966 gdbarch_read_sp (struct gdbarch
*gdbarch
)
2968 gdb_assert (gdbarch
!= NULL
);
2969 if (gdbarch
->read_sp
== 0)
2970 internal_error (__FILE__
, __LINE__
,
2971 "gdbarch: gdbarch_read_sp invalid");
2972 if (gdbarch_debug
>= 2)
2973 fprintf_unfiltered (gdb_stdlog
, "gdbarch_read_sp called\n");
2974 return gdbarch
->read_sp ();
2978 set_gdbarch_read_sp (struct gdbarch
*gdbarch
,
2979 gdbarch_read_sp_ftype read_sp
)
2981 gdbarch
->read_sp
= read_sp
;
2985 gdbarch_virtual_frame_pointer (struct gdbarch
*gdbarch
, CORE_ADDR pc
, int *frame_regnum
, LONGEST
*frame_offset
)
2987 gdb_assert (gdbarch
!= NULL
);
2988 if (gdbarch
->virtual_frame_pointer
== 0)
2989 internal_error (__FILE__
, __LINE__
,
2990 "gdbarch: gdbarch_virtual_frame_pointer invalid");
2991 if (gdbarch_debug
>= 2)
2992 fprintf_unfiltered (gdb_stdlog
, "gdbarch_virtual_frame_pointer called\n");
2993 gdbarch
->virtual_frame_pointer (pc
, frame_regnum
, frame_offset
);
2997 set_gdbarch_virtual_frame_pointer (struct gdbarch
*gdbarch
,
2998 gdbarch_virtual_frame_pointer_ftype virtual_frame_pointer
)
3000 gdbarch
->virtual_frame_pointer
= virtual_frame_pointer
;
3004 gdbarch_pseudo_register_read_p (struct gdbarch
*gdbarch
)
3006 gdb_assert (gdbarch
!= NULL
);
3007 return gdbarch
->pseudo_register_read
!= 0;
3011 gdbarch_pseudo_register_read (struct gdbarch
*gdbarch
, struct regcache
*regcache
, int cookednum
, void *buf
)
3013 gdb_assert (gdbarch
!= NULL
);
3014 if (gdbarch
->pseudo_register_read
== 0)
3015 internal_error (__FILE__
, __LINE__
,
3016 "gdbarch: gdbarch_pseudo_register_read invalid");
3017 if (gdbarch_debug
>= 2)
3018 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pseudo_register_read called\n");
3019 gdbarch
->pseudo_register_read (gdbarch
, regcache
, cookednum
, buf
);
3023 set_gdbarch_pseudo_register_read (struct gdbarch
*gdbarch
,
3024 gdbarch_pseudo_register_read_ftype pseudo_register_read
)
3026 gdbarch
->pseudo_register_read
= pseudo_register_read
;
3030 gdbarch_pseudo_register_write_p (struct gdbarch
*gdbarch
)
3032 gdb_assert (gdbarch
!= NULL
);
3033 return gdbarch
->pseudo_register_write
!= 0;
3037 gdbarch_pseudo_register_write (struct gdbarch
*gdbarch
, struct regcache
*regcache
, int cookednum
, const void *buf
)
3039 gdb_assert (gdbarch
!= NULL
);
3040 if (gdbarch
->pseudo_register_write
== 0)
3041 internal_error (__FILE__
, __LINE__
,
3042 "gdbarch: gdbarch_pseudo_register_write invalid");
3043 if (gdbarch_debug
>= 2)
3044 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pseudo_register_write called\n");
3045 gdbarch
->pseudo_register_write (gdbarch
, regcache
, cookednum
, buf
);
3049 set_gdbarch_pseudo_register_write (struct gdbarch
*gdbarch
,
3050 gdbarch_pseudo_register_write_ftype pseudo_register_write
)
3052 gdbarch
->pseudo_register_write
= pseudo_register_write
;
3056 gdbarch_num_regs (struct gdbarch
*gdbarch
)
3058 gdb_assert (gdbarch
!= NULL
);
3059 if (gdbarch
->num_regs
== -1)
3060 internal_error (__FILE__
, __LINE__
,
3061 "gdbarch: gdbarch_num_regs invalid");
3062 if (gdbarch_debug
>= 2)
3063 fprintf_unfiltered (gdb_stdlog
, "gdbarch_num_regs called\n");
3064 return gdbarch
->num_regs
;
3068 set_gdbarch_num_regs (struct gdbarch
*gdbarch
,
3071 gdbarch
->num_regs
= num_regs
;
3075 gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
)
3077 gdb_assert (gdbarch
!= NULL
);
3078 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
3079 if (gdbarch_debug
>= 2)
3080 fprintf_unfiltered (gdb_stdlog
, "gdbarch_num_pseudo_regs called\n");
3081 return gdbarch
->num_pseudo_regs
;
3085 set_gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
,
3086 int num_pseudo_regs
)
3088 gdbarch
->num_pseudo_regs
= num_pseudo_regs
;
3092 gdbarch_sp_regnum (struct gdbarch
*gdbarch
)
3094 gdb_assert (gdbarch
!= NULL
);
3095 /* Skip verify of sp_regnum, invalid_p == 0 */
3096 if (gdbarch_debug
>= 2)
3097 fprintf_unfiltered (gdb_stdlog
, "gdbarch_sp_regnum called\n");
3098 return gdbarch
->sp_regnum
;
3102 set_gdbarch_sp_regnum (struct gdbarch
*gdbarch
,
3105 gdbarch
->sp_regnum
= sp_regnum
;
3109 gdbarch_pc_regnum (struct gdbarch
*gdbarch
)
3111 gdb_assert (gdbarch
!= NULL
);
3112 /* Skip verify of pc_regnum, invalid_p == 0 */
3113 if (gdbarch_debug
>= 2)
3114 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pc_regnum called\n");
3115 return gdbarch
->pc_regnum
;
3119 set_gdbarch_pc_regnum (struct gdbarch
*gdbarch
,
3122 gdbarch
->pc_regnum
= pc_regnum
;
3126 gdbarch_ps_regnum (struct gdbarch
*gdbarch
)
3128 gdb_assert (gdbarch
!= NULL
);
3129 /* Skip verify of ps_regnum, invalid_p == 0 */
3130 if (gdbarch_debug
>= 2)
3131 fprintf_unfiltered (gdb_stdlog
, "gdbarch_ps_regnum called\n");
3132 return gdbarch
->ps_regnum
;
3136 set_gdbarch_ps_regnum (struct gdbarch
*gdbarch
,
3139 gdbarch
->ps_regnum
= ps_regnum
;
3143 gdbarch_fp0_regnum (struct gdbarch
*gdbarch
)
3145 gdb_assert (gdbarch
!= NULL
);
3146 /* Skip verify of fp0_regnum, invalid_p == 0 */
3147 if (gdbarch_debug
>= 2)
3148 fprintf_unfiltered (gdb_stdlog
, "gdbarch_fp0_regnum called\n");
3149 return gdbarch
->fp0_regnum
;
3153 set_gdbarch_fp0_regnum (struct gdbarch
*gdbarch
,
3156 gdbarch
->fp0_regnum
= fp0_regnum
;
3160 gdbarch_npc_regnum (struct gdbarch
*gdbarch
)
3162 gdb_assert (gdbarch
!= NULL
);
3163 /* Skip verify of npc_regnum, invalid_p == 0 */
3164 if (gdbarch_debug
>= 2)
3165 fprintf_unfiltered (gdb_stdlog
, "gdbarch_npc_regnum called\n");
3166 return gdbarch
->npc_regnum
;
3170 set_gdbarch_npc_regnum (struct gdbarch
*gdbarch
,
3173 gdbarch
->npc_regnum
= npc_regnum
;
3177 gdbarch_stab_reg_to_regnum (struct gdbarch
*gdbarch
, int stab_regnr
)
3179 gdb_assert (gdbarch
!= NULL
);
3180 if (gdbarch
->stab_reg_to_regnum
== 0)
3181 internal_error (__FILE__
, __LINE__
,
3182 "gdbarch: gdbarch_stab_reg_to_regnum invalid");
3183 if (gdbarch_debug
>= 2)
3184 fprintf_unfiltered (gdb_stdlog
, "gdbarch_stab_reg_to_regnum called\n");
3185 return gdbarch
->stab_reg_to_regnum (stab_regnr
);
3189 set_gdbarch_stab_reg_to_regnum (struct gdbarch
*gdbarch
,
3190 gdbarch_stab_reg_to_regnum_ftype stab_reg_to_regnum
)
3192 gdbarch
->stab_reg_to_regnum
= stab_reg_to_regnum
;
3196 gdbarch_ecoff_reg_to_regnum (struct gdbarch
*gdbarch
, int ecoff_regnr
)
3198 gdb_assert (gdbarch
!= NULL
);
3199 if (gdbarch
->ecoff_reg_to_regnum
== 0)
3200 internal_error (__FILE__
, __LINE__
,
3201 "gdbarch: gdbarch_ecoff_reg_to_regnum invalid");
3202 if (gdbarch_debug
>= 2)
3203 fprintf_unfiltered (gdb_stdlog
, "gdbarch_ecoff_reg_to_regnum called\n");
3204 return gdbarch
->ecoff_reg_to_regnum (ecoff_regnr
);
3208 set_gdbarch_ecoff_reg_to_regnum (struct gdbarch
*gdbarch
,
3209 gdbarch_ecoff_reg_to_regnum_ftype ecoff_reg_to_regnum
)
3211 gdbarch
->ecoff_reg_to_regnum
= ecoff_reg_to_regnum
;
3215 gdbarch_dwarf_reg_to_regnum (struct gdbarch
*gdbarch
, int dwarf_regnr
)
3217 gdb_assert (gdbarch
!= NULL
);
3218 if (gdbarch
->dwarf_reg_to_regnum
== 0)
3219 internal_error (__FILE__
, __LINE__
,
3220 "gdbarch: gdbarch_dwarf_reg_to_regnum invalid");
3221 if (gdbarch_debug
>= 2)
3222 fprintf_unfiltered (gdb_stdlog
, "gdbarch_dwarf_reg_to_regnum called\n");
3223 return gdbarch
->dwarf_reg_to_regnum (dwarf_regnr
);
3227 set_gdbarch_dwarf_reg_to_regnum (struct gdbarch
*gdbarch
,
3228 gdbarch_dwarf_reg_to_regnum_ftype dwarf_reg_to_regnum
)
3230 gdbarch
->dwarf_reg_to_regnum
= dwarf_reg_to_regnum
;
3234 gdbarch_sdb_reg_to_regnum (struct gdbarch
*gdbarch
, int sdb_regnr
)
3236 gdb_assert (gdbarch
!= NULL
);
3237 if (gdbarch
->sdb_reg_to_regnum
== 0)
3238 internal_error (__FILE__
, __LINE__
,
3239 "gdbarch: gdbarch_sdb_reg_to_regnum invalid");
3240 if (gdbarch_debug
>= 2)
3241 fprintf_unfiltered (gdb_stdlog
, "gdbarch_sdb_reg_to_regnum called\n");
3242 return gdbarch
->sdb_reg_to_regnum (sdb_regnr
);
3246 set_gdbarch_sdb_reg_to_regnum (struct gdbarch
*gdbarch
,
3247 gdbarch_sdb_reg_to_regnum_ftype sdb_reg_to_regnum
)
3249 gdbarch
->sdb_reg_to_regnum
= sdb_reg_to_regnum
;
3253 gdbarch_dwarf2_reg_to_regnum (struct gdbarch
*gdbarch
, int dwarf2_regnr
)
3255 gdb_assert (gdbarch
!= NULL
);
3256 if (gdbarch
->dwarf2_reg_to_regnum
== 0)
3257 internal_error (__FILE__
, __LINE__
,
3258 "gdbarch: gdbarch_dwarf2_reg_to_regnum invalid");
3259 if (gdbarch_debug
>= 2)
3260 fprintf_unfiltered (gdb_stdlog
, "gdbarch_dwarf2_reg_to_regnum called\n");
3261 return gdbarch
->dwarf2_reg_to_regnum (dwarf2_regnr
);
3265 set_gdbarch_dwarf2_reg_to_regnum (struct gdbarch
*gdbarch
,
3266 gdbarch_dwarf2_reg_to_regnum_ftype dwarf2_reg_to_regnum
)
3268 gdbarch
->dwarf2_reg_to_regnum
= dwarf2_reg_to_regnum
;
3272 gdbarch_register_name (struct gdbarch
*gdbarch
, int regnr
)
3274 gdb_assert (gdbarch
!= NULL
);
3275 if (gdbarch
->register_name
== 0)
3276 internal_error (__FILE__
, __LINE__
,
3277 "gdbarch: gdbarch_register_name invalid");
3278 if (gdbarch_debug
>= 2)
3279 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_name called\n");
3280 return gdbarch
->register_name (regnr
);
3284 set_gdbarch_register_name (struct gdbarch
*gdbarch
,
3285 gdbarch_register_name_ftype register_name
)
3287 gdbarch
->register_name
= register_name
;
3291 gdbarch_register_type_p (struct gdbarch
*gdbarch
)
3293 gdb_assert (gdbarch
!= NULL
);
3294 return gdbarch
->register_type
!= 0;
3298 gdbarch_register_type (struct gdbarch
*gdbarch
, int reg_nr
)
3300 gdb_assert (gdbarch
!= NULL
);
3301 if (gdbarch
->register_type
== 0)
3302 internal_error (__FILE__
, __LINE__
,
3303 "gdbarch: gdbarch_register_type invalid");
3304 if (gdbarch_debug
>= 2)
3305 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_type called\n");
3306 return gdbarch
->register_type (gdbarch
, reg_nr
);
3310 set_gdbarch_register_type (struct gdbarch
*gdbarch
,
3311 gdbarch_register_type_ftype register_type
)
3313 gdbarch
->register_type
= register_type
;
3317 gdbarch_deprecated_register_virtual_type_p (struct gdbarch
*gdbarch
)
3319 gdb_assert (gdbarch
!= NULL
);
3320 return gdbarch
->deprecated_register_virtual_type
!= 0;
3324 gdbarch_deprecated_register_virtual_type (struct gdbarch
*gdbarch
, int reg_nr
)
3326 gdb_assert (gdbarch
!= NULL
);
3327 if (gdbarch
->deprecated_register_virtual_type
== 0)
3328 internal_error (__FILE__
, __LINE__
,
3329 "gdbarch: gdbarch_deprecated_register_virtual_type invalid");
3330 if (gdbarch_debug
>= 2)
3331 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_virtual_type called\n");
3332 return gdbarch
->deprecated_register_virtual_type (reg_nr
);
3336 set_gdbarch_deprecated_register_virtual_type (struct gdbarch
*gdbarch
,
3337 gdbarch_deprecated_register_virtual_type_ftype deprecated_register_virtual_type
)
3339 gdbarch
->deprecated_register_virtual_type
= deprecated_register_virtual_type
;
3343 gdbarch_deprecated_register_bytes (struct gdbarch
*gdbarch
)
3345 gdb_assert (gdbarch
!= NULL
);
3346 if (gdbarch_debug
>= 2)
3347 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_bytes called\n");
3348 return gdbarch
->deprecated_register_bytes
;
3352 set_gdbarch_deprecated_register_bytes (struct gdbarch
*gdbarch
,
3353 int deprecated_register_bytes
)
3355 gdbarch
->deprecated_register_bytes
= deprecated_register_bytes
;
3359 gdbarch_deprecated_register_byte_p (struct gdbarch
*gdbarch
)
3361 gdb_assert (gdbarch
!= NULL
);
3362 return gdbarch
->deprecated_register_byte
!= generic_register_byte
;
3366 gdbarch_deprecated_register_byte (struct gdbarch
*gdbarch
, int reg_nr
)
3368 gdb_assert (gdbarch
!= NULL
);
3369 if (gdbarch
->deprecated_register_byte
== 0)
3370 internal_error (__FILE__
, __LINE__
,
3371 "gdbarch: gdbarch_deprecated_register_byte invalid");
3372 /* Ignore predicate (gdbarch->deprecated_register_byte != generic_register_byte). */
3373 if (gdbarch_debug
>= 2)
3374 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_byte called\n");
3375 return gdbarch
->deprecated_register_byte (reg_nr
);
3379 set_gdbarch_deprecated_register_byte (struct gdbarch
*gdbarch
,
3380 gdbarch_deprecated_register_byte_ftype deprecated_register_byte
)
3382 gdbarch
->deprecated_register_byte
= deprecated_register_byte
;
3386 gdbarch_deprecated_register_raw_size (struct gdbarch
*gdbarch
, int reg_nr
)
3388 gdb_assert (gdbarch
!= NULL
);
3389 if (gdbarch
->deprecated_register_raw_size
== 0)
3390 internal_error (__FILE__
, __LINE__
,
3391 "gdbarch: gdbarch_deprecated_register_raw_size invalid");
3392 if (gdbarch_debug
>= 2)
3393 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_raw_size called\n");
3394 return gdbarch
->deprecated_register_raw_size (reg_nr
);
3398 set_gdbarch_deprecated_register_raw_size (struct gdbarch
*gdbarch
,
3399 gdbarch_deprecated_register_raw_size_ftype deprecated_register_raw_size
)
3401 gdbarch
->deprecated_register_raw_size
= deprecated_register_raw_size
;
3405 gdbarch_deprecated_register_virtual_size (struct gdbarch
*gdbarch
, int reg_nr
)
3407 gdb_assert (gdbarch
!= NULL
);
3408 if (gdbarch
->deprecated_register_virtual_size
== 0)
3409 internal_error (__FILE__
, __LINE__
,
3410 "gdbarch: gdbarch_deprecated_register_virtual_size invalid");
3411 if (gdbarch_debug
>= 2)
3412 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_virtual_size called\n");
3413 return gdbarch
->deprecated_register_virtual_size (reg_nr
);
3417 set_gdbarch_deprecated_register_virtual_size (struct gdbarch
*gdbarch
,
3418 gdbarch_deprecated_register_virtual_size_ftype deprecated_register_virtual_size
)
3420 gdbarch
->deprecated_register_virtual_size
= deprecated_register_virtual_size
;
3424 gdbarch_deprecated_max_register_raw_size_p (struct gdbarch
*gdbarch
)
3426 gdb_assert (gdbarch
!= NULL
);
3427 return gdbarch
->deprecated_max_register_raw_size
!= 0;
3431 gdbarch_deprecated_max_register_raw_size (struct gdbarch
*gdbarch
)
3433 gdb_assert (gdbarch
!= NULL
);
3434 if (gdbarch_debug
>= 2)
3435 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_max_register_raw_size called\n");
3436 return gdbarch
->deprecated_max_register_raw_size
;
3440 set_gdbarch_deprecated_max_register_raw_size (struct gdbarch
*gdbarch
,
3441 int deprecated_max_register_raw_size
)
3443 gdbarch
->deprecated_max_register_raw_size
= deprecated_max_register_raw_size
;
3447 gdbarch_deprecated_max_register_virtual_size_p (struct gdbarch
*gdbarch
)
3449 gdb_assert (gdbarch
!= NULL
);
3450 return gdbarch
->deprecated_max_register_virtual_size
!= 0;
3454 gdbarch_deprecated_max_register_virtual_size (struct gdbarch
*gdbarch
)
3456 gdb_assert (gdbarch
!= NULL
);
3457 if (gdbarch_debug
>= 2)
3458 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_max_register_virtual_size called\n");
3459 return gdbarch
->deprecated_max_register_virtual_size
;
3463 set_gdbarch_deprecated_max_register_virtual_size (struct gdbarch
*gdbarch
,
3464 int deprecated_max_register_virtual_size
)
3466 gdbarch
->deprecated_max_register_virtual_size
= deprecated_max_register_virtual_size
;
3470 gdbarch_unwind_dummy_id_p (struct gdbarch
*gdbarch
)
3472 gdb_assert (gdbarch
!= NULL
);
3473 return gdbarch
->unwind_dummy_id
!= 0;
3477 gdbarch_unwind_dummy_id (struct gdbarch
*gdbarch
, struct frame_info
*info
)
3479 gdb_assert (gdbarch
!= NULL
);
3480 if (gdbarch
->unwind_dummy_id
== 0)
3481 internal_error (__FILE__
, __LINE__
,
3482 "gdbarch: gdbarch_unwind_dummy_id invalid");
3483 if (gdbarch_debug
>= 2)
3484 fprintf_unfiltered (gdb_stdlog
, "gdbarch_unwind_dummy_id called\n");
3485 return gdbarch
->unwind_dummy_id (gdbarch
, info
);
3489 set_gdbarch_unwind_dummy_id (struct gdbarch
*gdbarch
,
3490 gdbarch_unwind_dummy_id_ftype unwind_dummy_id
)
3492 gdbarch
->unwind_dummy_id
= unwind_dummy_id
;
3496 gdbarch_deprecated_save_dummy_frame_tos_p (struct gdbarch
*gdbarch
)
3498 gdb_assert (gdbarch
!= NULL
);
3499 return gdbarch
->deprecated_save_dummy_frame_tos
!= 0;
3503 gdbarch_deprecated_save_dummy_frame_tos (struct gdbarch
*gdbarch
, CORE_ADDR sp
)
3505 gdb_assert (gdbarch
!= NULL
);
3506 if (gdbarch
->deprecated_save_dummy_frame_tos
== 0)
3507 internal_error (__FILE__
, __LINE__
,
3508 "gdbarch: gdbarch_deprecated_save_dummy_frame_tos invalid");
3509 if (gdbarch_debug
>= 2)
3510 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_save_dummy_frame_tos called\n");
3511 gdbarch
->deprecated_save_dummy_frame_tos (sp
);
3515 set_gdbarch_deprecated_save_dummy_frame_tos (struct gdbarch
*gdbarch
,
3516 gdbarch_deprecated_save_dummy_frame_tos_ftype deprecated_save_dummy_frame_tos
)
3518 gdbarch
->deprecated_save_dummy_frame_tos
= deprecated_save_dummy_frame_tos
;
3522 gdbarch_deprecated_fp_regnum (struct gdbarch
*gdbarch
)
3524 gdb_assert (gdbarch
!= NULL
);
3525 /* Skip verify of deprecated_fp_regnum, invalid_p == 0 */
3526 if (gdbarch_debug
>= 2)
3527 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_fp_regnum called\n");
3528 return gdbarch
->deprecated_fp_regnum
;
3532 set_gdbarch_deprecated_fp_regnum (struct gdbarch
*gdbarch
,
3533 int deprecated_fp_regnum
)
3535 gdbarch
->deprecated_fp_regnum
= deprecated_fp_regnum
;
3539 gdbarch_deprecated_target_read_fp_p (struct gdbarch
*gdbarch
)
3541 gdb_assert (gdbarch
!= NULL
);
3542 return gdbarch
->deprecated_target_read_fp
!= 0;
3546 gdbarch_deprecated_target_read_fp (struct gdbarch
*gdbarch
)
3548 gdb_assert (gdbarch
!= NULL
);
3549 if (gdbarch
->deprecated_target_read_fp
== 0)
3550 internal_error (__FILE__
, __LINE__
,
3551 "gdbarch: gdbarch_deprecated_target_read_fp invalid");
3552 if (gdbarch_debug
>= 2)
3553 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_target_read_fp called\n");
3554 return gdbarch
->deprecated_target_read_fp ();
3558 set_gdbarch_deprecated_target_read_fp (struct gdbarch
*gdbarch
,
3559 gdbarch_deprecated_target_read_fp_ftype deprecated_target_read_fp
)
3561 gdbarch
->deprecated_target_read_fp
= deprecated_target_read_fp
;
3565 gdbarch_push_dummy_call_p (struct gdbarch
*gdbarch
)
3567 gdb_assert (gdbarch
!= NULL
);
3568 return gdbarch
->push_dummy_call
!= 0;
3572 gdbarch_push_dummy_call (struct gdbarch
*gdbarch
, CORE_ADDR func_addr
, struct regcache
*regcache
, CORE_ADDR bp_addr
, int nargs
, struct value
**args
, CORE_ADDR sp
, int struct_return
, CORE_ADDR struct_addr
)
3574 gdb_assert (gdbarch
!= NULL
);
3575 if (gdbarch
->push_dummy_call
== 0)
3576 internal_error (__FILE__
, __LINE__
,
3577 "gdbarch: gdbarch_push_dummy_call invalid");
3578 if (gdbarch_debug
>= 2)
3579 fprintf_unfiltered (gdb_stdlog
, "gdbarch_push_dummy_call called\n");
3580 return gdbarch
->push_dummy_call (gdbarch
, func_addr
, regcache
, bp_addr
, nargs
, args
, sp
, struct_return
, struct_addr
);
3584 set_gdbarch_push_dummy_call (struct gdbarch
*gdbarch
,
3585 gdbarch_push_dummy_call_ftype push_dummy_call
)
3587 gdbarch
->push_dummy_call
= push_dummy_call
;
3591 gdbarch_deprecated_push_arguments_p (struct gdbarch
*gdbarch
)
3593 gdb_assert (gdbarch
!= NULL
);
3594 return gdbarch
->deprecated_push_arguments
!= 0;
3598 gdbarch_deprecated_push_arguments (struct gdbarch
*gdbarch
, int nargs
, struct value
**args
, CORE_ADDR sp
, int struct_return
, CORE_ADDR struct_addr
)
3600 gdb_assert (gdbarch
!= NULL
);
3601 if (gdbarch
->deprecated_push_arguments
== 0)
3602 internal_error (__FILE__
, __LINE__
,
3603 "gdbarch: gdbarch_deprecated_push_arguments invalid");
3604 if (gdbarch_debug
>= 2)
3605 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_push_arguments called\n");
3606 return gdbarch
->deprecated_push_arguments (nargs
, args
, sp
, struct_return
, struct_addr
);
3610 set_gdbarch_deprecated_push_arguments (struct gdbarch
*gdbarch
,
3611 gdbarch_deprecated_push_arguments_ftype deprecated_push_arguments
)
3613 gdbarch
->deprecated_push_arguments
= deprecated_push_arguments
;
3617 gdbarch_deprecated_use_generic_dummy_frames (struct gdbarch
*gdbarch
)
3619 gdb_assert (gdbarch
!= NULL
);
3620 /* Skip verify of deprecated_use_generic_dummy_frames, invalid_p == 0 */
3621 if (gdbarch_debug
>= 2)
3622 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_use_generic_dummy_frames called\n");
3623 return gdbarch
->deprecated_use_generic_dummy_frames
;
3627 set_gdbarch_deprecated_use_generic_dummy_frames (struct gdbarch
*gdbarch
,
3628 int deprecated_use_generic_dummy_frames
)
3630 gdbarch
->deprecated_use_generic_dummy_frames
= deprecated_use_generic_dummy_frames
;
3634 gdbarch_deprecated_push_return_address_p (struct gdbarch
*gdbarch
)
3636 gdb_assert (gdbarch
!= NULL
);
3637 return gdbarch
->deprecated_push_return_address
!= 0;
3641 gdbarch_deprecated_push_return_address (struct gdbarch
*gdbarch
, CORE_ADDR pc
, CORE_ADDR sp
)
3643 gdb_assert (gdbarch
!= NULL
);
3644 if (gdbarch
->deprecated_push_return_address
== 0)
3645 internal_error (__FILE__
, __LINE__
,
3646 "gdbarch: gdbarch_deprecated_push_return_address invalid");
3647 if (gdbarch_debug
>= 2)
3648 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_push_return_address called\n");
3649 return gdbarch
->deprecated_push_return_address (pc
, sp
);
3653 set_gdbarch_deprecated_push_return_address (struct gdbarch
*gdbarch
,
3654 gdbarch_deprecated_push_return_address_ftype deprecated_push_return_address
)
3656 gdbarch
->deprecated_push_return_address
= deprecated_push_return_address
;
3660 gdbarch_deprecated_dummy_write_sp_p (struct gdbarch
*gdbarch
)
3662 gdb_assert (gdbarch
!= NULL
);
3663 return gdbarch
->deprecated_dummy_write_sp
!= 0;
3667 gdbarch_deprecated_dummy_write_sp (struct gdbarch
*gdbarch
, CORE_ADDR val
)
3669 gdb_assert (gdbarch
!= NULL
);
3670 if (gdbarch
->deprecated_dummy_write_sp
== 0)
3671 internal_error (__FILE__
, __LINE__
,
3672 "gdbarch: gdbarch_deprecated_dummy_write_sp invalid");
3673 if (gdbarch_debug
>= 2)
3674 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_dummy_write_sp called\n");
3675 gdbarch
->deprecated_dummy_write_sp (val
);
3679 set_gdbarch_deprecated_dummy_write_sp (struct gdbarch
*gdbarch
,
3680 gdbarch_deprecated_dummy_write_sp_ftype deprecated_dummy_write_sp
)
3682 gdbarch
->deprecated_dummy_write_sp
= deprecated_dummy_write_sp
;
3686 gdbarch_deprecated_register_size (struct gdbarch
*gdbarch
)
3688 gdb_assert (gdbarch
!= NULL
);
3689 if (gdbarch_debug
>= 2)
3690 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_size called\n");
3691 return gdbarch
->deprecated_register_size
;
3695 set_gdbarch_deprecated_register_size (struct gdbarch
*gdbarch
,
3696 int deprecated_register_size
)
3698 gdbarch
->deprecated_register_size
= deprecated_register_size
;
3702 gdbarch_call_dummy_location (struct gdbarch
*gdbarch
)
3704 gdb_assert (gdbarch
!= NULL
);
3705 /* Skip verify of call_dummy_location, invalid_p == 0 */
3706 if (gdbarch_debug
>= 2)
3707 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_location called\n");
3708 return gdbarch
->call_dummy_location
;
3712 set_gdbarch_call_dummy_location (struct gdbarch
*gdbarch
,
3713 int call_dummy_location
)
3715 gdbarch
->call_dummy_location
= call_dummy_location
;
3719 gdbarch_call_dummy_address (struct gdbarch
*gdbarch
)
3721 gdb_assert (gdbarch
!= NULL
);
3722 if (gdbarch
->call_dummy_address
== 0)
3723 internal_error (__FILE__
, __LINE__
,
3724 "gdbarch: gdbarch_call_dummy_address invalid");
3725 if (gdbarch_debug
>= 2)
3726 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_address called\n");
3727 return gdbarch
->call_dummy_address ();
3731 set_gdbarch_call_dummy_address (struct gdbarch
*gdbarch
,
3732 gdbarch_call_dummy_address_ftype call_dummy_address
)
3734 gdbarch
->call_dummy_address
= call_dummy_address
;
3738 gdbarch_deprecated_call_dummy_start_offset (struct gdbarch
*gdbarch
)
3740 gdb_assert (gdbarch
!= NULL
);
3741 if (gdbarch_debug
>= 2)
3742 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_call_dummy_start_offset called\n");
3743 return gdbarch
->deprecated_call_dummy_start_offset
;
3747 set_gdbarch_deprecated_call_dummy_start_offset (struct gdbarch
*gdbarch
,
3748 CORE_ADDR deprecated_call_dummy_start_offset
)
3750 gdbarch
->deprecated_call_dummy_start_offset
= deprecated_call_dummy_start_offset
;
3754 gdbarch_deprecated_call_dummy_breakpoint_offset (struct gdbarch
*gdbarch
)
3756 gdb_assert (gdbarch
!= NULL
);
3757 if (gdbarch_debug
>= 2)
3758 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_call_dummy_breakpoint_offset called\n");
3759 return gdbarch
->deprecated_call_dummy_breakpoint_offset
;
3763 set_gdbarch_deprecated_call_dummy_breakpoint_offset (struct gdbarch
*gdbarch
,
3764 CORE_ADDR deprecated_call_dummy_breakpoint_offset
)
3766 gdbarch
->deprecated_call_dummy_breakpoint_offset
= deprecated_call_dummy_breakpoint_offset
;
3770 gdbarch_deprecated_call_dummy_length (struct gdbarch
*gdbarch
)
3772 gdb_assert (gdbarch
!= NULL
);
3773 if (gdbarch_debug
>= 2)
3774 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_call_dummy_length called\n");
3775 return gdbarch
->deprecated_call_dummy_length
;
3779 set_gdbarch_deprecated_call_dummy_length (struct gdbarch
*gdbarch
,
3780 int deprecated_call_dummy_length
)
3782 gdbarch
->deprecated_call_dummy_length
= deprecated_call_dummy_length
;
3786 gdbarch_deprecated_call_dummy_words (struct gdbarch
*gdbarch
)
3788 gdb_assert (gdbarch
!= NULL
);
3789 /* Skip verify of deprecated_call_dummy_words, invalid_p == 0 */
3790 if (gdbarch_debug
>= 2)
3791 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_call_dummy_words called\n");
3792 return gdbarch
->deprecated_call_dummy_words
;
3796 set_gdbarch_deprecated_call_dummy_words (struct gdbarch
*gdbarch
,
3797 LONGEST
* deprecated_call_dummy_words
)
3799 gdbarch
->deprecated_call_dummy_words
= deprecated_call_dummy_words
;
3803 gdbarch_deprecated_sizeof_call_dummy_words (struct gdbarch
*gdbarch
)
3805 gdb_assert (gdbarch
!= NULL
);
3806 /* Skip verify of deprecated_sizeof_call_dummy_words, invalid_p == 0 */
3807 if (gdbarch_debug
>= 2)
3808 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_sizeof_call_dummy_words called\n");
3809 return gdbarch
->deprecated_sizeof_call_dummy_words
;
3813 set_gdbarch_deprecated_sizeof_call_dummy_words (struct gdbarch
*gdbarch
,
3814 int deprecated_sizeof_call_dummy_words
)
3816 gdbarch
->deprecated_sizeof_call_dummy_words
= deprecated_sizeof_call_dummy_words
;
3820 gdbarch_deprecated_call_dummy_stack_adjust_p (struct gdbarch
*gdbarch
)
3822 gdb_assert (gdbarch
!= NULL
);
3823 return gdbarch
->deprecated_call_dummy_stack_adjust
!= 0;
3827 gdbarch_deprecated_call_dummy_stack_adjust (struct gdbarch
*gdbarch
)
3829 gdb_assert (gdbarch
!= NULL
);
3830 if (gdbarch_debug
>= 2)
3831 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_call_dummy_stack_adjust called\n");
3832 return gdbarch
->deprecated_call_dummy_stack_adjust
;
3836 set_gdbarch_deprecated_call_dummy_stack_adjust (struct gdbarch
*gdbarch
,
3837 int deprecated_call_dummy_stack_adjust
)
3839 gdbarch
->deprecated_call_dummy_stack_adjust
= deprecated_call_dummy_stack_adjust
;
3843 gdbarch_deprecated_fix_call_dummy_p (struct gdbarch
*gdbarch
)
3845 gdb_assert (gdbarch
!= NULL
);
3846 return gdbarch
->deprecated_fix_call_dummy
!= 0;
3850 gdbarch_deprecated_fix_call_dummy (struct gdbarch
*gdbarch
, char *dummy
, CORE_ADDR pc
, CORE_ADDR fun
, int nargs
, struct value
**args
, struct type
*type
, int gcc_p
)
3852 gdb_assert (gdbarch
!= NULL
);
3853 if (gdbarch
->deprecated_fix_call_dummy
== 0)
3854 internal_error (__FILE__
, __LINE__
,
3855 "gdbarch: gdbarch_deprecated_fix_call_dummy invalid");
3856 if (gdbarch_debug
>= 2)
3857 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_fix_call_dummy called\n");
3858 gdbarch
->deprecated_fix_call_dummy (dummy
, pc
, fun
, nargs
, args
, type
, gcc_p
);
3862 set_gdbarch_deprecated_fix_call_dummy (struct gdbarch
*gdbarch
,
3863 gdbarch_deprecated_fix_call_dummy_ftype deprecated_fix_call_dummy
)
3865 gdbarch
->deprecated_fix_call_dummy
= deprecated_fix_call_dummy
;
3869 gdbarch_push_dummy_code_p (struct gdbarch
*gdbarch
)
3871 gdb_assert (gdbarch
!= NULL
);
3872 return gdbarch
->push_dummy_code
!= 0;
3876 gdbarch_push_dummy_code (struct gdbarch
*gdbarch
, CORE_ADDR sp
, CORE_ADDR funaddr
, int using_gcc
, struct value
**args
, int nargs
, struct type
*value_type
, CORE_ADDR
*real_pc
, CORE_ADDR
*bp_addr
)
3878 gdb_assert (gdbarch
!= NULL
);
3879 if (gdbarch
->push_dummy_code
== 0)
3880 internal_error (__FILE__
, __LINE__
,
3881 "gdbarch: gdbarch_push_dummy_code invalid");
3882 if (gdbarch_debug
>= 2)
3883 fprintf_unfiltered (gdb_stdlog
, "gdbarch_push_dummy_code called\n");
3884 return gdbarch
->push_dummy_code (gdbarch
, sp
, funaddr
, using_gcc
, args
, nargs
, value_type
, real_pc
, bp_addr
);
3888 set_gdbarch_push_dummy_code (struct gdbarch
*gdbarch
,
3889 gdbarch_push_dummy_code_ftype push_dummy_code
)
3891 gdbarch
->push_dummy_code
= push_dummy_code
;
3895 gdbarch_deprecated_push_dummy_frame_p (struct gdbarch
*gdbarch
)
3897 gdb_assert (gdbarch
!= NULL
);
3898 return gdbarch
->deprecated_push_dummy_frame
!= 0;
3902 gdbarch_deprecated_push_dummy_frame (struct gdbarch
*gdbarch
)
3904 gdb_assert (gdbarch
!= NULL
);
3905 if (gdbarch
->deprecated_push_dummy_frame
== 0)
3906 internal_error (__FILE__
, __LINE__
,
3907 "gdbarch: gdbarch_deprecated_push_dummy_frame invalid");
3908 if (gdbarch_debug
>= 2)
3909 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_push_dummy_frame called\n");
3910 gdbarch
->deprecated_push_dummy_frame ();
3914 set_gdbarch_deprecated_push_dummy_frame (struct gdbarch
*gdbarch
,
3915 gdbarch_deprecated_push_dummy_frame_ftype deprecated_push_dummy_frame
)
3917 gdbarch
->deprecated_push_dummy_frame
= deprecated_push_dummy_frame
;
3921 gdbarch_deprecated_extra_stack_alignment_needed (struct gdbarch
*gdbarch
)
3923 gdb_assert (gdbarch
!= NULL
);
3924 /* Skip verify of deprecated_extra_stack_alignment_needed, invalid_p == 0 */
3925 if (gdbarch_debug
>= 2)
3926 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_extra_stack_alignment_needed called\n");
3927 return gdbarch
->deprecated_extra_stack_alignment_needed
;
3931 set_gdbarch_deprecated_extra_stack_alignment_needed (struct gdbarch
*gdbarch
,
3932 int deprecated_extra_stack_alignment_needed
)
3934 gdbarch
->deprecated_extra_stack_alignment_needed
= deprecated_extra_stack_alignment_needed
;
3938 gdbarch_deprecated_do_registers_info_p (struct gdbarch
*gdbarch
)
3940 gdb_assert (gdbarch
!= NULL
);
3941 return gdbarch
->deprecated_do_registers_info
!= 0;
3945 gdbarch_deprecated_do_registers_info (struct gdbarch
*gdbarch
, int reg_nr
, int fpregs
)
3947 gdb_assert (gdbarch
!= NULL
);
3948 if (gdbarch
->deprecated_do_registers_info
== 0)
3949 internal_error (__FILE__
, __LINE__
,
3950 "gdbarch: gdbarch_deprecated_do_registers_info invalid");
3951 if (gdbarch_debug
>= 2)
3952 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_do_registers_info called\n");
3953 gdbarch
->deprecated_do_registers_info (reg_nr
, fpregs
);
3957 set_gdbarch_deprecated_do_registers_info (struct gdbarch
*gdbarch
,
3958 gdbarch_deprecated_do_registers_info_ftype deprecated_do_registers_info
)
3960 gdbarch
->deprecated_do_registers_info
= deprecated_do_registers_info
;
3964 gdbarch_print_registers_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, struct frame_info
*frame
, int regnum
, int all
)
3966 gdb_assert (gdbarch
!= NULL
);
3967 if (gdbarch
->print_registers_info
== 0)
3968 internal_error (__FILE__
, __LINE__
,
3969 "gdbarch: gdbarch_print_registers_info invalid");
3970 if (gdbarch_debug
>= 2)
3971 fprintf_unfiltered (gdb_stdlog
, "gdbarch_print_registers_info called\n");
3972 gdbarch
->print_registers_info (gdbarch
, file
, frame
, regnum
, all
);
3976 set_gdbarch_print_registers_info (struct gdbarch
*gdbarch
,
3977 gdbarch_print_registers_info_ftype print_registers_info
)
3979 gdbarch
->print_registers_info
= print_registers_info
;
3983 gdbarch_print_float_info_p (struct gdbarch
*gdbarch
)
3985 gdb_assert (gdbarch
!= NULL
);
3986 return gdbarch
->print_float_info
!= 0;
3990 gdbarch_print_float_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, struct frame_info
*frame
, const char *args
)
3992 gdb_assert (gdbarch
!= NULL
);
3993 if (gdbarch
->print_float_info
== 0)
3994 internal_error (__FILE__
, __LINE__
,
3995 "gdbarch: gdbarch_print_float_info invalid");
3996 if (gdbarch_debug
>= 2)
3997 fprintf_unfiltered (gdb_stdlog
, "gdbarch_print_float_info called\n");
3998 gdbarch
->print_float_info (gdbarch
, file
, frame
, args
);
4002 set_gdbarch_print_float_info (struct gdbarch
*gdbarch
,
4003 gdbarch_print_float_info_ftype print_float_info
)
4005 gdbarch
->print_float_info
= print_float_info
;
4009 gdbarch_print_vector_info_p (struct gdbarch
*gdbarch
)
4011 gdb_assert (gdbarch
!= NULL
);
4012 return gdbarch
->print_vector_info
!= 0;
4016 gdbarch_print_vector_info (struct gdbarch
*gdbarch
, struct ui_file
*file
, struct frame_info
*frame
, const char *args
)
4018 gdb_assert (gdbarch
!= NULL
);
4019 if (gdbarch
->print_vector_info
== 0)
4020 internal_error (__FILE__
, __LINE__
,
4021 "gdbarch: gdbarch_print_vector_info invalid");
4022 if (gdbarch_debug
>= 2)
4023 fprintf_unfiltered (gdb_stdlog
, "gdbarch_print_vector_info called\n");
4024 gdbarch
->print_vector_info (gdbarch
, file
, frame
, args
);
4028 set_gdbarch_print_vector_info (struct gdbarch
*gdbarch
,
4029 gdbarch_print_vector_info_ftype print_vector_info
)
4031 gdbarch
->print_vector_info
= print_vector_info
;
4035 gdbarch_register_sim_regno (struct gdbarch
*gdbarch
, int reg_nr
)
4037 gdb_assert (gdbarch
!= NULL
);
4038 if (gdbarch
->register_sim_regno
== 0)
4039 internal_error (__FILE__
, __LINE__
,
4040 "gdbarch: gdbarch_register_sim_regno invalid");
4041 if (gdbarch_debug
>= 2)
4042 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_sim_regno called\n");
4043 return gdbarch
->register_sim_regno (reg_nr
);
4047 set_gdbarch_register_sim_regno (struct gdbarch
*gdbarch
,
4048 gdbarch_register_sim_regno_ftype register_sim_regno
)
4050 gdbarch
->register_sim_regno
= register_sim_regno
;
4054 gdbarch_register_bytes_ok_p (struct gdbarch
*gdbarch
)
4056 gdb_assert (gdbarch
!= NULL
);
4057 return gdbarch
->register_bytes_ok
!= 0;
4061 gdbarch_register_bytes_ok (struct gdbarch
*gdbarch
, long nr_bytes
)
4063 gdb_assert (gdbarch
!= NULL
);
4064 if (gdbarch
->register_bytes_ok
== 0)
4065 internal_error (__FILE__
, __LINE__
,
4066 "gdbarch: gdbarch_register_bytes_ok invalid");
4067 if (gdbarch_debug
>= 2)
4068 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_bytes_ok called\n");
4069 return gdbarch
->register_bytes_ok (nr_bytes
);
4073 set_gdbarch_register_bytes_ok (struct gdbarch
*gdbarch
,
4074 gdbarch_register_bytes_ok_ftype register_bytes_ok
)
4076 gdbarch
->register_bytes_ok
= register_bytes_ok
;
4080 gdbarch_cannot_fetch_register (struct gdbarch
*gdbarch
, int regnum
)
4082 gdb_assert (gdbarch
!= NULL
);
4083 if (gdbarch
->cannot_fetch_register
== 0)
4084 internal_error (__FILE__
, __LINE__
,
4085 "gdbarch: gdbarch_cannot_fetch_register invalid");
4086 if (gdbarch_debug
>= 2)
4087 fprintf_unfiltered (gdb_stdlog
, "gdbarch_cannot_fetch_register called\n");
4088 return gdbarch
->cannot_fetch_register (regnum
);
4092 set_gdbarch_cannot_fetch_register (struct gdbarch
*gdbarch
,
4093 gdbarch_cannot_fetch_register_ftype cannot_fetch_register
)
4095 gdbarch
->cannot_fetch_register
= cannot_fetch_register
;
4099 gdbarch_cannot_store_register (struct gdbarch
*gdbarch
, int regnum
)
4101 gdb_assert (gdbarch
!= NULL
);
4102 if (gdbarch
->cannot_store_register
== 0)
4103 internal_error (__FILE__
, __LINE__
,
4104 "gdbarch: gdbarch_cannot_store_register invalid");
4105 if (gdbarch_debug
>= 2)
4106 fprintf_unfiltered (gdb_stdlog
, "gdbarch_cannot_store_register called\n");
4107 return gdbarch
->cannot_store_register (regnum
);
4111 set_gdbarch_cannot_store_register (struct gdbarch
*gdbarch
,
4112 gdbarch_cannot_store_register_ftype cannot_store_register
)
4114 gdbarch
->cannot_store_register
= cannot_store_register
;
4118 gdbarch_get_longjmp_target_p (struct gdbarch
*gdbarch
)
4120 gdb_assert (gdbarch
!= NULL
);
4121 return gdbarch
->get_longjmp_target
!= 0;
4125 gdbarch_get_longjmp_target (struct gdbarch
*gdbarch
, CORE_ADDR
*pc
)
4127 gdb_assert (gdbarch
!= NULL
);
4128 if (gdbarch
->get_longjmp_target
== 0)
4129 internal_error (__FILE__
, __LINE__
,
4130 "gdbarch: gdbarch_get_longjmp_target invalid");
4131 if (gdbarch_debug
>= 2)
4132 fprintf_unfiltered (gdb_stdlog
, "gdbarch_get_longjmp_target called\n");
4133 return gdbarch
->get_longjmp_target (pc
);
4137 set_gdbarch_get_longjmp_target (struct gdbarch
*gdbarch
,
4138 gdbarch_get_longjmp_target_ftype get_longjmp_target
)
4140 gdbarch
->get_longjmp_target
= get_longjmp_target
;
4144 gdbarch_deprecated_pc_in_call_dummy_p (struct gdbarch
*gdbarch
)
4146 gdb_assert (gdbarch
!= NULL
);
4147 return gdbarch
->deprecated_pc_in_call_dummy
!= generic_pc_in_call_dummy
;
4151 gdbarch_deprecated_pc_in_call_dummy (struct gdbarch
*gdbarch
, CORE_ADDR pc
, CORE_ADDR sp
, CORE_ADDR frame_address
)
4153 gdb_assert (gdbarch
!= NULL
);
4154 if (gdbarch
->deprecated_pc_in_call_dummy
== 0)
4155 internal_error (__FILE__
, __LINE__
,
4156 "gdbarch: gdbarch_deprecated_pc_in_call_dummy invalid");
4157 /* Ignore predicate (gdbarch->deprecated_pc_in_call_dummy != generic_pc_in_call_dummy). */
4158 if (gdbarch_debug
>= 2)
4159 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_pc_in_call_dummy called\n");
4160 return gdbarch
->deprecated_pc_in_call_dummy (pc
, sp
, frame_address
);
4164 set_gdbarch_deprecated_pc_in_call_dummy (struct gdbarch
*gdbarch
,
4165 gdbarch_deprecated_pc_in_call_dummy_ftype deprecated_pc_in_call_dummy
)
4167 gdbarch
->deprecated_pc_in_call_dummy
= deprecated_pc_in_call_dummy
;
4171 gdbarch_deprecated_init_frame_pc_first_p (struct gdbarch
*gdbarch
)
4173 gdb_assert (gdbarch
!= NULL
);
4174 return gdbarch
->deprecated_init_frame_pc_first
!= 0;
4178 gdbarch_deprecated_init_frame_pc_first (struct gdbarch
*gdbarch
, int fromleaf
, struct frame_info
*prev
)
4180 gdb_assert (gdbarch
!= NULL
);
4181 if (gdbarch
->deprecated_init_frame_pc_first
== 0)
4182 internal_error (__FILE__
, __LINE__
,
4183 "gdbarch: gdbarch_deprecated_init_frame_pc_first invalid");
4184 if (gdbarch_debug
>= 2)
4185 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_init_frame_pc_first called\n");
4186 return gdbarch
->deprecated_init_frame_pc_first (fromleaf
, prev
);
4190 set_gdbarch_deprecated_init_frame_pc_first (struct gdbarch
*gdbarch
,
4191 gdbarch_deprecated_init_frame_pc_first_ftype deprecated_init_frame_pc_first
)
4193 gdbarch
->deprecated_init_frame_pc_first
= deprecated_init_frame_pc_first
;
4197 gdbarch_deprecated_init_frame_pc_p (struct gdbarch
*gdbarch
)
4199 gdb_assert (gdbarch
!= NULL
);
4200 return gdbarch
->deprecated_init_frame_pc
!= 0;
4204 gdbarch_deprecated_init_frame_pc (struct gdbarch
*gdbarch
, int fromleaf
, struct frame_info
*prev
)
4206 gdb_assert (gdbarch
!= NULL
);
4207 if (gdbarch
->deprecated_init_frame_pc
== 0)
4208 internal_error (__FILE__
, __LINE__
,
4209 "gdbarch: gdbarch_deprecated_init_frame_pc invalid");
4210 if (gdbarch_debug
>= 2)
4211 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_init_frame_pc called\n");
4212 return gdbarch
->deprecated_init_frame_pc (fromleaf
, prev
);
4216 set_gdbarch_deprecated_init_frame_pc (struct gdbarch
*gdbarch
,
4217 gdbarch_deprecated_init_frame_pc_ftype deprecated_init_frame_pc
)
4219 gdbarch
->deprecated_init_frame_pc
= deprecated_init_frame_pc
;
4223 gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
)
4225 gdb_assert (gdbarch
!= NULL
);
4226 if (gdbarch_debug
>= 2)
4227 fprintf_unfiltered (gdb_stdlog
, "gdbarch_believe_pcc_promotion called\n");
4228 return gdbarch
->believe_pcc_promotion
;
4232 set_gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
,
4233 int believe_pcc_promotion
)
4235 gdbarch
->believe_pcc_promotion
= believe_pcc_promotion
;
4239 gdbarch_believe_pcc_promotion_type (struct gdbarch
*gdbarch
)
4241 gdb_assert (gdbarch
!= NULL
);
4242 if (gdbarch_debug
>= 2)
4243 fprintf_unfiltered (gdb_stdlog
, "gdbarch_believe_pcc_promotion_type called\n");
4244 return gdbarch
->believe_pcc_promotion_type
;
4248 set_gdbarch_believe_pcc_promotion_type (struct gdbarch
*gdbarch
,
4249 int believe_pcc_promotion_type
)
4251 gdbarch
->believe_pcc_promotion_type
= believe_pcc_promotion_type
;
4255 gdbarch_deprecated_get_saved_register_p (struct gdbarch
*gdbarch
)
4257 gdb_assert (gdbarch
!= NULL
);
4258 return gdbarch
->deprecated_get_saved_register
!= 0;
4262 gdbarch_deprecated_get_saved_register (struct gdbarch
*gdbarch
, char *raw_buffer
, int *optimized
, CORE_ADDR
*addrp
, struct frame_info
*frame
, int regnum
, enum lval_type
*lval
)
4264 gdb_assert (gdbarch
!= NULL
);
4265 if (gdbarch
->deprecated_get_saved_register
== 0)
4266 internal_error (__FILE__
, __LINE__
,
4267 "gdbarch: gdbarch_deprecated_get_saved_register invalid");
4268 if (gdbarch_debug
>= 2)
4269 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_get_saved_register called\n");
4270 gdbarch
->deprecated_get_saved_register (raw_buffer
, optimized
, addrp
, frame
, regnum
, lval
);
4274 set_gdbarch_deprecated_get_saved_register (struct gdbarch
*gdbarch
,
4275 gdbarch_deprecated_get_saved_register_ftype deprecated_get_saved_register
)
4277 gdbarch
->deprecated_get_saved_register
= deprecated_get_saved_register
;
4281 gdbarch_deprecated_register_convertible (struct gdbarch
*gdbarch
, int nr
)
4283 gdb_assert (gdbarch
!= NULL
);
4284 if (gdbarch
->deprecated_register_convertible
== 0)
4285 internal_error (__FILE__
, __LINE__
,
4286 "gdbarch: gdbarch_deprecated_register_convertible invalid");
4287 if (gdbarch_debug
>= 2)
4288 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_convertible called\n");
4289 return gdbarch
->deprecated_register_convertible (nr
);
4293 set_gdbarch_deprecated_register_convertible (struct gdbarch
*gdbarch
,
4294 gdbarch_deprecated_register_convertible_ftype deprecated_register_convertible
)
4296 gdbarch
->deprecated_register_convertible
= deprecated_register_convertible
;
4300 gdbarch_deprecated_register_convert_to_virtual (struct gdbarch
*gdbarch
, int regnum
, struct type
*type
, char *from
, char *to
)
4302 gdb_assert (gdbarch
!= NULL
);
4303 if (gdbarch
->deprecated_register_convert_to_virtual
== 0)
4304 internal_error (__FILE__
, __LINE__
,
4305 "gdbarch: gdbarch_deprecated_register_convert_to_virtual invalid");
4306 if (gdbarch_debug
>= 2)
4307 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_convert_to_virtual called\n");
4308 gdbarch
->deprecated_register_convert_to_virtual (regnum
, type
, from
, to
);
4312 set_gdbarch_deprecated_register_convert_to_virtual (struct gdbarch
*gdbarch
,
4313 gdbarch_deprecated_register_convert_to_virtual_ftype deprecated_register_convert_to_virtual
)
4315 gdbarch
->deprecated_register_convert_to_virtual
= deprecated_register_convert_to_virtual
;
4319 gdbarch_deprecated_register_convert_to_raw (struct gdbarch
*gdbarch
, struct type
*type
, int regnum
, const char *from
, char *to
)
4321 gdb_assert (gdbarch
!= NULL
);
4322 if (gdbarch
->deprecated_register_convert_to_raw
== 0)
4323 internal_error (__FILE__
, __LINE__
,
4324 "gdbarch: gdbarch_deprecated_register_convert_to_raw invalid");
4325 if (gdbarch_debug
>= 2)
4326 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_register_convert_to_raw called\n");
4327 gdbarch
->deprecated_register_convert_to_raw (type
, regnum
, from
, to
);
4331 set_gdbarch_deprecated_register_convert_to_raw (struct gdbarch
*gdbarch
,
4332 gdbarch_deprecated_register_convert_to_raw_ftype deprecated_register_convert_to_raw
)
4334 gdbarch
->deprecated_register_convert_to_raw
= deprecated_register_convert_to_raw
;
4338 gdbarch_convert_register_p (struct gdbarch
*gdbarch
, int regnum
, struct type
*type
)
4340 gdb_assert (gdbarch
!= NULL
);
4341 if (gdbarch
->convert_register_p
== 0)
4342 internal_error (__FILE__
, __LINE__
,
4343 "gdbarch: gdbarch_convert_register_p invalid");
4344 if (gdbarch_debug
>= 2)
4345 fprintf_unfiltered (gdb_stdlog
, "gdbarch_convert_register_p called\n");
4346 return gdbarch
->convert_register_p (regnum
, type
);
4350 set_gdbarch_convert_register_p (struct gdbarch
*gdbarch
,
4351 gdbarch_convert_register_p_ftype convert_register_p
)
4353 gdbarch
->convert_register_p
= convert_register_p
;
4357 gdbarch_register_to_value (struct gdbarch
*gdbarch
, struct frame_info
*frame
, int regnum
, struct type
*type
, void *buf
)
4359 gdb_assert (gdbarch
!= NULL
);
4360 if (gdbarch
->register_to_value
== 0)
4361 internal_error (__FILE__
, __LINE__
,
4362 "gdbarch: gdbarch_register_to_value invalid");
4363 if (gdbarch_debug
>= 2)
4364 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_to_value called\n");
4365 gdbarch
->register_to_value (frame
, regnum
, type
, buf
);
4369 set_gdbarch_register_to_value (struct gdbarch
*gdbarch
,
4370 gdbarch_register_to_value_ftype register_to_value
)
4372 gdbarch
->register_to_value
= register_to_value
;
4376 gdbarch_value_to_register (struct gdbarch
*gdbarch
, struct frame_info
*frame
, int regnum
, struct type
*type
, const void *buf
)
4378 gdb_assert (gdbarch
!= NULL
);
4379 if (gdbarch
->value_to_register
== 0)
4380 internal_error (__FILE__
, __LINE__
,
4381 "gdbarch: gdbarch_value_to_register invalid");
4382 if (gdbarch_debug
>= 2)
4383 fprintf_unfiltered (gdb_stdlog
, "gdbarch_value_to_register called\n");
4384 gdbarch
->value_to_register (frame
, regnum
, type
, buf
);
4388 set_gdbarch_value_to_register (struct gdbarch
*gdbarch
,
4389 gdbarch_value_to_register_ftype value_to_register
)
4391 gdbarch
->value_to_register
= value_to_register
;
4395 gdbarch_pointer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, const void *buf
)
4397 gdb_assert (gdbarch
!= NULL
);
4398 if (gdbarch
->pointer_to_address
== 0)
4399 internal_error (__FILE__
, __LINE__
,
4400 "gdbarch: gdbarch_pointer_to_address invalid");
4401 if (gdbarch_debug
>= 2)
4402 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pointer_to_address called\n");
4403 return gdbarch
->pointer_to_address (type
, buf
);
4407 set_gdbarch_pointer_to_address (struct gdbarch
*gdbarch
,
4408 gdbarch_pointer_to_address_ftype pointer_to_address
)
4410 gdbarch
->pointer_to_address
= pointer_to_address
;
4414 gdbarch_address_to_pointer (struct gdbarch
*gdbarch
, struct type
*type
, void *buf
, CORE_ADDR addr
)
4416 gdb_assert (gdbarch
!= NULL
);
4417 if (gdbarch
->address_to_pointer
== 0)
4418 internal_error (__FILE__
, __LINE__
,
4419 "gdbarch: gdbarch_address_to_pointer invalid");
4420 if (gdbarch_debug
>= 2)
4421 fprintf_unfiltered (gdb_stdlog
, "gdbarch_address_to_pointer called\n");
4422 gdbarch
->address_to_pointer (type
, buf
, addr
);
4426 set_gdbarch_address_to_pointer (struct gdbarch
*gdbarch
,
4427 gdbarch_address_to_pointer_ftype address_to_pointer
)
4429 gdbarch
->address_to_pointer
= address_to_pointer
;
4433 gdbarch_integer_to_address_p (struct gdbarch
*gdbarch
)
4435 gdb_assert (gdbarch
!= NULL
);
4436 return gdbarch
->integer_to_address
!= 0;
4440 gdbarch_integer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, void *buf
)
4442 gdb_assert (gdbarch
!= NULL
);
4443 if (gdbarch
->integer_to_address
== 0)
4444 internal_error (__FILE__
, __LINE__
,
4445 "gdbarch: gdbarch_integer_to_address invalid");
4446 if (gdbarch_debug
>= 2)
4447 fprintf_unfiltered (gdb_stdlog
, "gdbarch_integer_to_address called\n");
4448 return gdbarch
->integer_to_address (type
, buf
);
4452 set_gdbarch_integer_to_address (struct gdbarch
*gdbarch
,
4453 gdbarch_integer_to_address_ftype integer_to_address
)
4455 gdbarch
->integer_to_address
= integer_to_address
;
4459 gdbarch_return_value_on_stack (struct gdbarch
*gdbarch
, struct type
*type
)
4461 gdb_assert (gdbarch
!= NULL
);
4462 if (gdbarch
->return_value_on_stack
== 0)
4463 internal_error (__FILE__
, __LINE__
,
4464 "gdbarch: gdbarch_return_value_on_stack invalid");
4465 if (gdbarch_debug
>= 2)
4466 fprintf_unfiltered (gdb_stdlog
, "gdbarch_return_value_on_stack called\n");
4467 return gdbarch
->return_value_on_stack (type
);
4471 set_gdbarch_return_value_on_stack (struct gdbarch
*gdbarch
,
4472 gdbarch_return_value_on_stack_ftype return_value_on_stack
)
4474 gdbarch
->return_value_on_stack
= return_value_on_stack
;
4478 gdbarch_deprecated_pop_frame_p (struct gdbarch
*gdbarch
)
4480 gdb_assert (gdbarch
!= NULL
);
4481 return gdbarch
->deprecated_pop_frame
!= 0;
4485 gdbarch_deprecated_pop_frame (struct gdbarch
*gdbarch
)
4487 gdb_assert (gdbarch
!= NULL
);
4488 if (gdbarch
->deprecated_pop_frame
== 0)
4489 internal_error (__FILE__
, __LINE__
,
4490 "gdbarch: gdbarch_deprecated_pop_frame invalid");
4491 if (gdbarch_debug
>= 2)
4492 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_pop_frame called\n");
4493 gdbarch
->deprecated_pop_frame ();
4497 set_gdbarch_deprecated_pop_frame (struct gdbarch
*gdbarch
,
4498 gdbarch_deprecated_pop_frame_ftype deprecated_pop_frame
)
4500 gdbarch
->deprecated_pop_frame
= deprecated_pop_frame
;
4504 gdbarch_deprecated_store_struct_return_p (struct gdbarch
*gdbarch
)
4506 gdb_assert (gdbarch
!= NULL
);
4507 return gdbarch
->deprecated_store_struct_return
!= 0;
4511 gdbarch_deprecated_store_struct_return (struct gdbarch
*gdbarch
, CORE_ADDR addr
, CORE_ADDR sp
)
4513 gdb_assert (gdbarch
!= NULL
);
4514 if (gdbarch
->deprecated_store_struct_return
== 0)
4515 internal_error (__FILE__
, __LINE__
,
4516 "gdbarch: gdbarch_deprecated_store_struct_return invalid");
4517 if (gdbarch_debug
>= 2)
4518 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_store_struct_return called\n");
4519 gdbarch
->deprecated_store_struct_return (addr
, sp
);
4523 set_gdbarch_deprecated_store_struct_return (struct gdbarch
*gdbarch
,
4524 gdbarch_deprecated_store_struct_return_ftype deprecated_store_struct_return
)
4526 gdbarch
->deprecated_store_struct_return
= deprecated_store_struct_return
;
4530 gdbarch_extract_return_value (struct gdbarch
*gdbarch
, struct type
*type
, struct regcache
*regcache
, void *valbuf
)
4532 gdb_assert (gdbarch
!= NULL
);
4533 if (gdbarch
->extract_return_value
== 0)
4534 internal_error (__FILE__
, __LINE__
,
4535 "gdbarch: gdbarch_extract_return_value invalid");
4536 if (gdbarch_debug
>= 2)
4537 fprintf_unfiltered (gdb_stdlog
, "gdbarch_extract_return_value called\n");
4538 gdbarch
->extract_return_value (type
, regcache
, valbuf
);
4542 set_gdbarch_extract_return_value (struct gdbarch
*gdbarch
,
4543 gdbarch_extract_return_value_ftype extract_return_value
)
4545 gdbarch
->extract_return_value
= extract_return_value
;
4549 gdbarch_store_return_value (struct gdbarch
*gdbarch
, struct type
*type
, struct regcache
*regcache
, const void *valbuf
)
4551 gdb_assert (gdbarch
!= NULL
);
4552 if (gdbarch
->store_return_value
== 0)
4553 internal_error (__FILE__
, __LINE__
,
4554 "gdbarch: gdbarch_store_return_value invalid");
4555 if (gdbarch_debug
>= 2)
4556 fprintf_unfiltered (gdb_stdlog
, "gdbarch_store_return_value called\n");
4557 gdbarch
->store_return_value (type
, regcache
, valbuf
);
4561 set_gdbarch_store_return_value (struct gdbarch
*gdbarch
,
4562 gdbarch_store_return_value_ftype store_return_value
)
4564 gdbarch
->store_return_value
= store_return_value
;
4568 gdbarch_deprecated_extract_return_value (struct gdbarch
*gdbarch
, struct type
*type
, char *regbuf
, char *valbuf
)
4570 gdb_assert (gdbarch
!= NULL
);
4571 if (gdbarch
->deprecated_extract_return_value
== 0)
4572 internal_error (__FILE__
, __LINE__
,
4573 "gdbarch: gdbarch_deprecated_extract_return_value invalid");
4574 if (gdbarch_debug
>= 2)
4575 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_extract_return_value called\n");
4576 gdbarch
->deprecated_extract_return_value (type
, regbuf
, valbuf
);
4580 set_gdbarch_deprecated_extract_return_value (struct gdbarch
*gdbarch
,
4581 gdbarch_deprecated_extract_return_value_ftype deprecated_extract_return_value
)
4583 gdbarch
->deprecated_extract_return_value
= deprecated_extract_return_value
;
4587 gdbarch_deprecated_store_return_value (struct gdbarch
*gdbarch
, struct type
*type
, char *valbuf
)
4589 gdb_assert (gdbarch
!= NULL
);
4590 if (gdbarch
->deprecated_store_return_value
== 0)
4591 internal_error (__FILE__
, __LINE__
,
4592 "gdbarch: gdbarch_deprecated_store_return_value invalid");
4593 if (gdbarch_debug
>= 2)
4594 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_store_return_value called\n");
4595 gdbarch
->deprecated_store_return_value (type
, valbuf
);
4599 set_gdbarch_deprecated_store_return_value (struct gdbarch
*gdbarch
,
4600 gdbarch_deprecated_store_return_value_ftype deprecated_store_return_value
)
4602 gdbarch
->deprecated_store_return_value
= deprecated_store_return_value
;
4606 gdbarch_extract_struct_value_address_p (struct gdbarch
*gdbarch
)
4608 gdb_assert (gdbarch
!= NULL
);
4609 return gdbarch
->extract_struct_value_address
!= 0;
4613 gdbarch_extract_struct_value_address (struct gdbarch
*gdbarch
, struct regcache
*regcache
)
4615 gdb_assert (gdbarch
!= NULL
);
4616 if (gdbarch
->extract_struct_value_address
== 0)
4617 internal_error (__FILE__
, __LINE__
,
4618 "gdbarch: gdbarch_extract_struct_value_address invalid");
4619 if (gdbarch_debug
>= 2)
4620 fprintf_unfiltered (gdb_stdlog
, "gdbarch_extract_struct_value_address called\n");
4621 return gdbarch
->extract_struct_value_address (regcache
);
4625 set_gdbarch_extract_struct_value_address (struct gdbarch
*gdbarch
,
4626 gdbarch_extract_struct_value_address_ftype extract_struct_value_address
)
4628 gdbarch
->extract_struct_value_address
= extract_struct_value_address
;
4632 gdbarch_deprecated_extract_struct_value_address_p (struct gdbarch
*gdbarch
)
4634 gdb_assert (gdbarch
!= NULL
);
4635 return gdbarch
->deprecated_extract_struct_value_address
!= 0;
4639 gdbarch_deprecated_extract_struct_value_address (struct gdbarch
*gdbarch
, char *regbuf
)
4641 gdb_assert (gdbarch
!= NULL
);
4642 if (gdbarch
->deprecated_extract_struct_value_address
== 0)
4643 internal_error (__FILE__
, __LINE__
,
4644 "gdbarch: gdbarch_deprecated_extract_struct_value_address invalid");
4645 if (gdbarch_debug
>= 2)
4646 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_extract_struct_value_address called\n");
4647 return gdbarch
->deprecated_extract_struct_value_address (regbuf
);
4651 set_gdbarch_deprecated_extract_struct_value_address (struct gdbarch
*gdbarch
,
4652 gdbarch_deprecated_extract_struct_value_address_ftype deprecated_extract_struct_value_address
)
4654 gdbarch
->deprecated_extract_struct_value_address
= deprecated_extract_struct_value_address
;
4658 gdbarch_use_struct_convention (struct gdbarch
*gdbarch
, int gcc_p
, struct type
*value_type
)
4660 gdb_assert (gdbarch
!= NULL
);
4661 if (gdbarch
->use_struct_convention
== 0)
4662 internal_error (__FILE__
, __LINE__
,
4663 "gdbarch: gdbarch_use_struct_convention invalid");
4664 if (gdbarch_debug
>= 2)
4665 fprintf_unfiltered (gdb_stdlog
, "gdbarch_use_struct_convention called\n");
4666 return gdbarch
->use_struct_convention (gcc_p
, value_type
);
4670 set_gdbarch_use_struct_convention (struct gdbarch
*gdbarch
,
4671 gdbarch_use_struct_convention_ftype use_struct_convention
)
4673 gdbarch
->use_struct_convention
= use_struct_convention
;
4677 gdbarch_deprecated_frame_init_saved_regs_p (struct gdbarch
*gdbarch
)
4679 gdb_assert (gdbarch
!= NULL
);
4680 return gdbarch
->deprecated_frame_init_saved_regs
!= 0;
4684 gdbarch_deprecated_frame_init_saved_regs (struct gdbarch
*gdbarch
, struct frame_info
*frame
)
4686 gdb_assert (gdbarch
!= NULL
);
4687 if (gdbarch
->deprecated_frame_init_saved_regs
== 0)
4688 internal_error (__FILE__
, __LINE__
,
4689 "gdbarch: gdbarch_deprecated_frame_init_saved_regs invalid");
4690 if (gdbarch_debug
>= 2)
4691 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_frame_init_saved_regs called\n");
4692 gdbarch
->deprecated_frame_init_saved_regs (frame
);
4696 set_gdbarch_deprecated_frame_init_saved_regs (struct gdbarch
*gdbarch
,
4697 gdbarch_deprecated_frame_init_saved_regs_ftype deprecated_frame_init_saved_regs
)
4699 gdbarch
->deprecated_frame_init_saved_regs
= deprecated_frame_init_saved_regs
;
4703 gdbarch_deprecated_init_extra_frame_info_p (struct gdbarch
*gdbarch
)
4705 gdb_assert (gdbarch
!= NULL
);
4706 return gdbarch
->deprecated_init_extra_frame_info
!= 0;
4710 gdbarch_deprecated_init_extra_frame_info (struct gdbarch
*gdbarch
, int fromleaf
, struct frame_info
*frame
)
4712 gdb_assert (gdbarch
!= NULL
);
4713 if (gdbarch
->deprecated_init_extra_frame_info
== 0)
4714 internal_error (__FILE__
, __LINE__
,
4715 "gdbarch: gdbarch_deprecated_init_extra_frame_info invalid");
4716 if (gdbarch_debug
>= 2)
4717 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_init_extra_frame_info called\n");
4718 gdbarch
->deprecated_init_extra_frame_info (fromleaf
, frame
);
4722 set_gdbarch_deprecated_init_extra_frame_info (struct gdbarch
*gdbarch
,
4723 gdbarch_deprecated_init_extra_frame_info_ftype deprecated_init_extra_frame_info
)
4725 gdbarch
->deprecated_init_extra_frame_info
= deprecated_init_extra_frame_info
;
4729 gdbarch_skip_prologue (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
4731 gdb_assert (gdbarch
!= NULL
);
4732 if (gdbarch
->skip_prologue
== 0)
4733 internal_error (__FILE__
, __LINE__
,
4734 "gdbarch: gdbarch_skip_prologue invalid");
4735 if (gdbarch_debug
>= 2)
4736 fprintf_unfiltered (gdb_stdlog
, "gdbarch_skip_prologue called\n");
4737 return gdbarch
->skip_prologue (ip
);
4741 set_gdbarch_skip_prologue (struct gdbarch
*gdbarch
,
4742 gdbarch_skip_prologue_ftype skip_prologue
)
4744 gdbarch
->skip_prologue
= skip_prologue
;
4748 gdbarch_prologue_frameless_p (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
4750 gdb_assert (gdbarch
!= NULL
);
4751 if (gdbarch
->prologue_frameless_p
== 0)
4752 internal_error (__FILE__
, __LINE__
,
4753 "gdbarch: gdbarch_prologue_frameless_p invalid");
4754 if (gdbarch_debug
>= 2)
4755 fprintf_unfiltered (gdb_stdlog
, "gdbarch_prologue_frameless_p called\n");
4756 return gdbarch
->prologue_frameless_p (ip
);
4760 set_gdbarch_prologue_frameless_p (struct gdbarch
*gdbarch
,
4761 gdbarch_prologue_frameless_p_ftype prologue_frameless_p
)
4763 gdbarch
->prologue_frameless_p
= prologue_frameless_p
;
4767 gdbarch_inner_than (struct gdbarch
*gdbarch
, CORE_ADDR lhs
, CORE_ADDR rhs
)
4769 gdb_assert (gdbarch
!= NULL
);
4770 if (gdbarch
->inner_than
== 0)
4771 internal_error (__FILE__
, __LINE__
,
4772 "gdbarch: gdbarch_inner_than invalid");
4773 if (gdbarch_debug
>= 2)
4774 fprintf_unfiltered (gdb_stdlog
, "gdbarch_inner_than called\n");
4775 return gdbarch
->inner_than (lhs
, rhs
);
4779 set_gdbarch_inner_than (struct gdbarch
*gdbarch
,
4780 gdbarch_inner_than_ftype inner_than
)
4782 gdbarch
->inner_than
= inner_than
;
4785 const unsigned char *
4786 gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
, CORE_ADDR
*pcptr
, int *lenptr
)
4788 gdb_assert (gdbarch
!= NULL
);
4789 if (gdbarch
->breakpoint_from_pc
== 0)
4790 internal_error (__FILE__
, __LINE__
,
4791 "gdbarch: gdbarch_breakpoint_from_pc invalid");
4792 if (gdbarch_debug
>= 2)
4793 fprintf_unfiltered (gdb_stdlog
, "gdbarch_breakpoint_from_pc called\n");
4794 return gdbarch
->breakpoint_from_pc (pcptr
, lenptr
);
4798 set_gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
,
4799 gdbarch_breakpoint_from_pc_ftype breakpoint_from_pc
)
4801 gdbarch
->breakpoint_from_pc
= breakpoint_from_pc
;
4805 gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
, CORE_ADDR addr
, char *contents_cache
)
4807 gdb_assert (gdbarch
!= NULL
);
4808 if (gdbarch
->memory_insert_breakpoint
== 0)
4809 internal_error (__FILE__
, __LINE__
,
4810 "gdbarch: gdbarch_memory_insert_breakpoint invalid");
4811 if (gdbarch_debug
>= 2)
4812 fprintf_unfiltered (gdb_stdlog
, "gdbarch_memory_insert_breakpoint called\n");
4813 return gdbarch
->memory_insert_breakpoint (addr
, contents_cache
);
4817 set_gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
,
4818 gdbarch_memory_insert_breakpoint_ftype memory_insert_breakpoint
)
4820 gdbarch
->memory_insert_breakpoint
= memory_insert_breakpoint
;
4824 gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
, CORE_ADDR addr
, char *contents_cache
)
4826 gdb_assert (gdbarch
!= NULL
);
4827 if (gdbarch
->memory_remove_breakpoint
== 0)
4828 internal_error (__FILE__
, __LINE__
,
4829 "gdbarch: gdbarch_memory_remove_breakpoint invalid");
4830 if (gdbarch_debug
>= 2)
4831 fprintf_unfiltered (gdb_stdlog
, "gdbarch_memory_remove_breakpoint called\n");
4832 return gdbarch
->memory_remove_breakpoint (addr
, contents_cache
);
4836 set_gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
,
4837 gdbarch_memory_remove_breakpoint_ftype memory_remove_breakpoint
)
4839 gdbarch
->memory_remove_breakpoint
= memory_remove_breakpoint
;
4843 gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
)
4845 gdb_assert (gdbarch
!= NULL
);
4846 if (gdbarch
->decr_pc_after_break
== -1)
4847 internal_error (__FILE__
, __LINE__
,
4848 "gdbarch: gdbarch_decr_pc_after_break invalid");
4849 if (gdbarch_debug
>= 2)
4850 fprintf_unfiltered (gdb_stdlog
, "gdbarch_decr_pc_after_break called\n");
4851 return gdbarch
->decr_pc_after_break
;
4855 set_gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
,
4856 CORE_ADDR decr_pc_after_break
)
4858 gdbarch
->decr_pc_after_break
= decr_pc_after_break
;
4862 gdbarch_prepare_to_proceed (struct gdbarch
*gdbarch
, int select_it
)
4864 gdb_assert (gdbarch
!= NULL
);
4865 if (gdbarch
->prepare_to_proceed
== 0)
4866 internal_error (__FILE__
, __LINE__
,
4867 "gdbarch: gdbarch_prepare_to_proceed invalid");
4868 if (gdbarch_debug
>= 2)
4869 fprintf_unfiltered (gdb_stdlog
, "gdbarch_prepare_to_proceed called\n");
4870 return gdbarch
->prepare_to_proceed (select_it
);
4874 set_gdbarch_prepare_to_proceed (struct gdbarch
*gdbarch
,
4875 gdbarch_prepare_to_proceed_ftype prepare_to_proceed
)
4877 gdbarch
->prepare_to_proceed
= prepare_to_proceed
;
4881 gdbarch_function_start_offset (struct gdbarch
*gdbarch
)
4883 gdb_assert (gdbarch
!= NULL
);
4884 if (gdbarch
->function_start_offset
== -1)
4885 internal_error (__FILE__
, __LINE__
,
4886 "gdbarch: gdbarch_function_start_offset invalid");
4887 if (gdbarch_debug
>= 2)
4888 fprintf_unfiltered (gdb_stdlog
, "gdbarch_function_start_offset called\n");
4889 return gdbarch
->function_start_offset
;
4893 set_gdbarch_function_start_offset (struct gdbarch
*gdbarch
,
4894 CORE_ADDR function_start_offset
)
4896 gdbarch
->function_start_offset
= function_start_offset
;
4900 gdbarch_remote_translate_xfer_address (struct gdbarch
*gdbarch
, struct regcache
*regcache
, CORE_ADDR gdb_addr
, int gdb_len
, CORE_ADDR
*rem_addr
, int *rem_len
)
4902 gdb_assert (gdbarch
!= NULL
);
4903 if (gdbarch
->remote_translate_xfer_address
== 0)
4904 internal_error (__FILE__
, __LINE__
,
4905 "gdbarch: gdbarch_remote_translate_xfer_address invalid");
4906 if (gdbarch_debug
>= 2)
4907 fprintf_unfiltered (gdb_stdlog
, "gdbarch_remote_translate_xfer_address called\n");
4908 gdbarch
->remote_translate_xfer_address (gdbarch
, regcache
, gdb_addr
, gdb_len
, rem_addr
, rem_len
);
4912 set_gdbarch_remote_translate_xfer_address (struct gdbarch
*gdbarch
,
4913 gdbarch_remote_translate_xfer_address_ftype remote_translate_xfer_address
)
4915 gdbarch
->remote_translate_xfer_address
= remote_translate_xfer_address
;
4919 gdbarch_frame_args_skip (struct gdbarch
*gdbarch
)
4921 gdb_assert (gdbarch
!= NULL
);
4922 if (gdbarch
->frame_args_skip
== -1)
4923 internal_error (__FILE__
, __LINE__
,
4924 "gdbarch: gdbarch_frame_args_skip invalid");
4925 if (gdbarch_debug
>= 2)
4926 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_args_skip called\n");
4927 return gdbarch
->frame_args_skip
;
4931 set_gdbarch_frame_args_skip (struct gdbarch
*gdbarch
,
4932 CORE_ADDR frame_args_skip
)
4934 gdbarch
->frame_args_skip
= frame_args_skip
;
4938 gdbarch_frameless_function_invocation (struct gdbarch
*gdbarch
, struct frame_info
*fi
)
4940 gdb_assert (gdbarch
!= NULL
);
4941 if (gdbarch
->frameless_function_invocation
== 0)
4942 internal_error (__FILE__
, __LINE__
,
4943 "gdbarch: gdbarch_frameless_function_invocation invalid");
4944 if (gdbarch_debug
>= 2)
4945 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frameless_function_invocation called\n");
4946 return gdbarch
->frameless_function_invocation (fi
);
4950 set_gdbarch_frameless_function_invocation (struct gdbarch
*gdbarch
,
4951 gdbarch_frameless_function_invocation_ftype frameless_function_invocation
)
4953 gdbarch
->frameless_function_invocation
= frameless_function_invocation
;
4957 gdbarch_deprecated_frame_chain_p (struct gdbarch
*gdbarch
)
4959 gdb_assert (gdbarch
!= NULL
);
4960 return gdbarch
->deprecated_frame_chain
!= 0;
4964 gdbarch_deprecated_frame_chain (struct gdbarch
*gdbarch
, struct frame_info
*frame
)
4966 gdb_assert (gdbarch
!= NULL
);
4967 if (gdbarch
->deprecated_frame_chain
== 0)
4968 internal_error (__FILE__
, __LINE__
,
4969 "gdbarch: gdbarch_deprecated_frame_chain invalid");
4970 if (gdbarch_debug
>= 2)
4971 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_frame_chain called\n");
4972 return gdbarch
->deprecated_frame_chain (frame
);
4976 set_gdbarch_deprecated_frame_chain (struct gdbarch
*gdbarch
,
4977 gdbarch_deprecated_frame_chain_ftype deprecated_frame_chain
)
4979 gdbarch
->deprecated_frame_chain
= deprecated_frame_chain
;
4983 gdbarch_deprecated_frame_chain_valid_p (struct gdbarch
*gdbarch
)
4985 gdb_assert (gdbarch
!= NULL
);
4986 return gdbarch
->deprecated_frame_chain_valid
!= 0;
4990 gdbarch_deprecated_frame_chain_valid (struct gdbarch
*gdbarch
, CORE_ADDR chain
, struct frame_info
*thisframe
)
4992 gdb_assert (gdbarch
!= NULL
);
4993 if (gdbarch
->deprecated_frame_chain_valid
== 0)
4994 internal_error (__FILE__
, __LINE__
,
4995 "gdbarch: gdbarch_deprecated_frame_chain_valid invalid");
4996 if (gdbarch_debug
>= 2)
4997 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_frame_chain_valid called\n");
4998 return gdbarch
->deprecated_frame_chain_valid (chain
, thisframe
);
5002 set_gdbarch_deprecated_frame_chain_valid (struct gdbarch
*gdbarch
,
5003 gdbarch_deprecated_frame_chain_valid_ftype deprecated_frame_chain_valid
)
5005 gdbarch
->deprecated_frame_chain_valid
= deprecated_frame_chain_valid
;
5009 gdbarch_deprecated_frame_saved_pc_p (struct gdbarch
*gdbarch
)
5011 gdb_assert (gdbarch
!= NULL
);
5012 return gdbarch
->deprecated_frame_saved_pc
!= 0;
5016 gdbarch_deprecated_frame_saved_pc (struct gdbarch
*gdbarch
, struct frame_info
*fi
)
5018 gdb_assert (gdbarch
!= NULL
);
5019 if (gdbarch
->deprecated_frame_saved_pc
== 0)
5020 internal_error (__FILE__
, __LINE__
,
5021 "gdbarch: gdbarch_deprecated_frame_saved_pc invalid");
5022 if (gdbarch_debug
>= 2)
5023 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_frame_saved_pc called\n");
5024 return gdbarch
->deprecated_frame_saved_pc (fi
);
5028 set_gdbarch_deprecated_frame_saved_pc (struct gdbarch
*gdbarch
,
5029 gdbarch_deprecated_frame_saved_pc_ftype deprecated_frame_saved_pc
)
5031 gdbarch
->deprecated_frame_saved_pc
= deprecated_frame_saved_pc
;
5035 gdbarch_unwind_pc_p (struct gdbarch
*gdbarch
)
5037 gdb_assert (gdbarch
!= NULL
);
5038 return gdbarch
->unwind_pc
!= 0;
5042 gdbarch_unwind_pc (struct gdbarch
*gdbarch
, struct frame_info
*next_frame
)
5044 gdb_assert (gdbarch
!= NULL
);
5045 if (gdbarch
->unwind_pc
== 0)
5046 internal_error (__FILE__
, __LINE__
,
5047 "gdbarch: gdbarch_unwind_pc invalid");
5048 if (gdbarch_debug
>= 2)
5049 fprintf_unfiltered (gdb_stdlog
, "gdbarch_unwind_pc called\n");
5050 return gdbarch
->unwind_pc (gdbarch
, next_frame
);
5054 set_gdbarch_unwind_pc (struct gdbarch
*gdbarch
,
5055 gdbarch_unwind_pc_ftype unwind_pc
)
5057 gdbarch
->unwind_pc
= unwind_pc
;
5061 gdbarch_unwind_sp_p (struct gdbarch
*gdbarch
)
5063 gdb_assert (gdbarch
!= NULL
);
5064 return gdbarch
->unwind_sp
!= 0;
5068 gdbarch_unwind_sp (struct gdbarch
*gdbarch
, struct frame_info
*next_frame
)
5070 gdb_assert (gdbarch
!= NULL
);
5071 if (gdbarch
->unwind_sp
== 0)
5072 internal_error (__FILE__
, __LINE__
,
5073 "gdbarch: gdbarch_unwind_sp invalid");
5074 if (gdbarch_debug
>= 2)
5075 fprintf_unfiltered (gdb_stdlog
, "gdbarch_unwind_sp called\n");
5076 return gdbarch
->unwind_sp (gdbarch
, next_frame
);
5080 set_gdbarch_unwind_sp (struct gdbarch
*gdbarch
,
5081 gdbarch_unwind_sp_ftype unwind_sp
)
5083 gdbarch
->unwind_sp
= unwind_sp
;
5087 gdbarch_frame_args_address (struct gdbarch
*gdbarch
, struct frame_info
*fi
)
5089 gdb_assert (gdbarch
!= NULL
);
5090 if (gdbarch
->frame_args_address
== 0)
5091 internal_error (__FILE__
, __LINE__
,
5092 "gdbarch: gdbarch_frame_args_address invalid");
5093 if (gdbarch_debug
>= 2)
5094 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_args_address called\n");
5095 return gdbarch
->frame_args_address (fi
);
5099 set_gdbarch_frame_args_address (struct gdbarch
*gdbarch
,
5100 gdbarch_frame_args_address_ftype frame_args_address
)
5102 gdbarch
->frame_args_address
= frame_args_address
;
5106 gdbarch_frame_locals_address (struct gdbarch
*gdbarch
, struct frame_info
*fi
)
5108 gdb_assert (gdbarch
!= NULL
);
5109 if (gdbarch
->frame_locals_address
== 0)
5110 internal_error (__FILE__
, __LINE__
,
5111 "gdbarch: gdbarch_frame_locals_address invalid");
5112 if (gdbarch_debug
>= 2)
5113 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_locals_address called\n");
5114 return gdbarch
->frame_locals_address (fi
);
5118 set_gdbarch_frame_locals_address (struct gdbarch
*gdbarch
,
5119 gdbarch_frame_locals_address_ftype frame_locals_address
)
5121 gdbarch
->frame_locals_address
= frame_locals_address
;
5125 gdbarch_deprecated_saved_pc_after_call_p (struct gdbarch
*gdbarch
)
5127 gdb_assert (gdbarch
!= NULL
);
5128 return gdbarch
->deprecated_saved_pc_after_call
!= 0;
5132 gdbarch_deprecated_saved_pc_after_call (struct gdbarch
*gdbarch
, struct frame_info
*frame
)
5134 gdb_assert (gdbarch
!= NULL
);
5135 if (gdbarch
->deprecated_saved_pc_after_call
== 0)
5136 internal_error (__FILE__
, __LINE__
,
5137 "gdbarch: gdbarch_deprecated_saved_pc_after_call invalid");
5138 if (gdbarch_debug
>= 2)
5139 fprintf_unfiltered (gdb_stdlog
, "gdbarch_deprecated_saved_pc_after_call called\n");
5140 return gdbarch
->deprecated_saved_pc_after_call (frame
);
5144 set_gdbarch_deprecated_saved_pc_after_call (struct gdbarch
*gdbarch
,
5145 gdbarch_deprecated_saved_pc_after_call_ftype deprecated_saved_pc_after_call
)
5147 gdbarch
->deprecated_saved_pc_after_call
= deprecated_saved_pc_after_call
;
5151 gdbarch_frame_num_args_p (struct gdbarch
*gdbarch
)
5153 gdb_assert (gdbarch
!= NULL
);
5154 return gdbarch
->frame_num_args
!= 0;
5158 gdbarch_frame_num_args (struct gdbarch
*gdbarch
, struct frame_info
*frame
)
5160 gdb_assert (gdbarch
!= NULL
);
5161 if (gdbarch
->frame_num_args
== 0)
5162 internal_error (__FILE__
, __LINE__
,
5163 "gdbarch: gdbarch_frame_num_args invalid");
5164 if (gdbarch_debug
>= 2)
5165 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_num_args called\n");
5166 return gdbarch
->frame_num_args (frame
);
5170 set_gdbarch_frame_num_args (struct gdbarch
*gdbarch
,
5171 gdbarch_frame_num_args_ftype frame_num_args
)
5173 gdbarch
->frame_num_args
= frame_num_args
;
5177 gdbarch_stack_align_p (struct gdbarch
*gdbarch
)
5179 gdb_assert (gdbarch
!= NULL
);
5180 return gdbarch
->stack_align
!= 0;
5184 gdbarch_stack_align (struct gdbarch
*gdbarch
, CORE_ADDR sp
)
5186 gdb_assert (gdbarch
!= NULL
);
5187 if (gdbarch
->stack_align
== 0)
5188 internal_error (__FILE__
, __LINE__
,
5189 "gdbarch: gdbarch_stack_align invalid");
5190 if (gdbarch_debug
>= 2)
5191 fprintf_unfiltered (gdb_stdlog
, "gdbarch_stack_align called\n");
5192 return gdbarch
->stack_align (sp
);
5196 set_gdbarch_stack_align (struct gdbarch
*gdbarch
,
5197 gdbarch_stack_align_ftype stack_align
)
5199 gdbarch
->stack_align
= stack_align
;
5203 gdbarch_frame_align_p (struct gdbarch
*gdbarch
)
5205 gdb_assert (gdbarch
!= NULL
);
5206 return gdbarch
->frame_align
!= 0;
5210 gdbarch_frame_align (struct gdbarch
*gdbarch
, CORE_ADDR address
)
5212 gdb_assert (gdbarch
!= NULL
);
5213 if (gdbarch
->frame_align
== 0)
5214 internal_error (__FILE__
, __LINE__
,
5215 "gdbarch: gdbarch_frame_align invalid");
5216 if (gdbarch_debug
>= 2)
5217 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_align called\n");
5218 return gdbarch
->frame_align (gdbarch
, address
);
5222 set_gdbarch_frame_align (struct gdbarch
*gdbarch
,
5223 gdbarch_frame_align_ftype frame_align
)
5225 gdbarch
->frame_align
= frame_align
;
5229 gdbarch_reg_struct_has_addr_p (struct gdbarch
*gdbarch
)
5231 gdb_assert (gdbarch
!= NULL
);
5232 return gdbarch
->reg_struct_has_addr
!= 0;
5236 gdbarch_reg_struct_has_addr (struct gdbarch
*gdbarch
, int gcc_p
, struct type
*type
)
5238 gdb_assert (gdbarch
!= NULL
);
5239 if (gdbarch
->reg_struct_has_addr
== 0)
5240 internal_error (__FILE__
, __LINE__
,
5241 "gdbarch: gdbarch_reg_struct_has_addr invalid");
5242 if (gdbarch_debug
>= 2)
5243 fprintf_unfiltered (gdb_stdlog
, "gdbarch_reg_struct_has_addr called\n");
5244 return gdbarch
->reg_struct_has_addr (gcc_p
, type
);
5248 set_gdbarch_reg_struct_has_addr (struct gdbarch
*gdbarch
,
5249 gdbarch_reg_struct_has_addr_ftype reg_struct_has_addr
)
5251 gdbarch
->reg_struct_has_addr
= reg_struct_has_addr
;
5255 gdbarch_parm_boundary (struct gdbarch
*gdbarch
)
5257 gdb_assert (gdbarch
!= NULL
);
5258 if (gdbarch_debug
>= 2)
5259 fprintf_unfiltered (gdb_stdlog
, "gdbarch_parm_boundary called\n");
5260 return gdbarch
->parm_boundary
;
5264 set_gdbarch_parm_boundary (struct gdbarch
*gdbarch
,
5267 gdbarch
->parm_boundary
= parm_boundary
;
5270 const struct floatformat
*
5271 gdbarch_float_format (struct gdbarch
*gdbarch
)
5273 gdb_assert (gdbarch
!= NULL
);
5274 if (gdbarch_debug
>= 2)
5275 fprintf_unfiltered (gdb_stdlog
, "gdbarch_float_format called\n");
5276 return gdbarch
->float_format
;
5280 set_gdbarch_float_format (struct gdbarch
*gdbarch
,
5281 const struct floatformat
* float_format
)
5283 gdbarch
->float_format
= float_format
;
5286 const struct floatformat
*
5287 gdbarch_double_format (struct gdbarch
*gdbarch
)
5289 gdb_assert (gdbarch
!= NULL
);
5290 if (gdbarch_debug
>= 2)
5291 fprintf_unfiltered (gdb_stdlog
, "gdbarch_double_format called\n");
5292 return gdbarch
->double_format
;
5296 set_gdbarch_double_format (struct gdbarch
*gdbarch
,
5297 const struct floatformat
* double_format
)
5299 gdbarch
->double_format
= double_format
;
5302 const struct floatformat
*
5303 gdbarch_long_double_format (struct gdbarch
*gdbarch
)
5305 gdb_assert (gdbarch
!= NULL
);
5306 if (gdbarch_debug
>= 2)
5307 fprintf_unfiltered (gdb_stdlog
, "gdbarch_long_double_format called\n");
5308 return gdbarch
->long_double_format
;
5312 set_gdbarch_long_double_format (struct gdbarch
*gdbarch
,
5313 const struct floatformat
* long_double_format
)
5315 gdbarch
->long_double_format
= long_double_format
;
5319 gdbarch_convert_from_func_ptr_addr (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5321 gdb_assert (gdbarch
!= NULL
);
5322 if (gdbarch
->convert_from_func_ptr_addr
== 0)
5323 internal_error (__FILE__
, __LINE__
,
5324 "gdbarch: gdbarch_convert_from_func_ptr_addr invalid");
5325 if (gdbarch_debug
>= 2)
5326 fprintf_unfiltered (gdb_stdlog
, "gdbarch_convert_from_func_ptr_addr called\n");
5327 return gdbarch
->convert_from_func_ptr_addr (addr
);
5331 set_gdbarch_convert_from_func_ptr_addr (struct gdbarch
*gdbarch
,
5332 gdbarch_convert_from_func_ptr_addr_ftype convert_from_func_ptr_addr
)
5334 gdbarch
->convert_from_func_ptr_addr
= convert_from_func_ptr_addr
;
5338 gdbarch_addr_bits_remove (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5340 gdb_assert (gdbarch
!= NULL
);
5341 if (gdbarch
->addr_bits_remove
== 0)
5342 internal_error (__FILE__
, __LINE__
,
5343 "gdbarch: gdbarch_addr_bits_remove invalid");
5344 if (gdbarch_debug
>= 2)
5345 fprintf_unfiltered (gdb_stdlog
, "gdbarch_addr_bits_remove called\n");
5346 return gdbarch
->addr_bits_remove (addr
);
5350 set_gdbarch_addr_bits_remove (struct gdbarch
*gdbarch
,
5351 gdbarch_addr_bits_remove_ftype addr_bits_remove
)
5353 gdbarch
->addr_bits_remove
= addr_bits_remove
;
5357 gdbarch_smash_text_address (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5359 gdb_assert (gdbarch
!= NULL
);
5360 if (gdbarch
->smash_text_address
== 0)
5361 internal_error (__FILE__
, __LINE__
,
5362 "gdbarch: gdbarch_smash_text_address invalid");
5363 if (gdbarch_debug
>= 2)
5364 fprintf_unfiltered (gdb_stdlog
, "gdbarch_smash_text_address called\n");
5365 return gdbarch
->smash_text_address (addr
);
5369 set_gdbarch_smash_text_address (struct gdbarch
*gdbarch
,
5370 gdbarch_smash_text_address_ftype smash_text_address
)
5372 gdbarch
->smash_text_address
= smash_text_address
;
5376 gdbarch_software_single_step_p (struct gdbarch
*gdbarch
)
5378 gdb_assert (gdbarch
!= NULL
);
5379 return gdbarch
->software_single_step
!= 0;
5383 gdbarch_software_single_step (struct gdbarch
*gdbarch
, enum target_signal sig
, int insert_breakpoints_p
)
5385 gdb_assert (gdbarch
!= NULL
);
5386 if (gdbarch
->software_single_step
== 0)
5387 internal_error (__FILE__
, __LINE__
,
5388 "gdbarch: gdbarch_software_single_step invalid");
5389 if (gdbarch_debug
>= 2)
5390 fprintf_unfiltered (gdb_stdlog
, "gdbarch_software_single_step called\n");
5391 gdbarch
->software_single_step (sig
, insert_breakpoints_p
);
5395 set_gdbarch_software_single_step (struct gdbarch
*gdbarch
,
5396 gdbarch_software_single_step_ftype software_single_step
)
5398 gdbarch
->software_single_step
= software_single_step
;
5402 gdbarch_print_insn (struct gdbarch
*gdbarch
, bfd_vma vma
, disassemble_info
*info
)
5404 gdb_assert (gdbarch
!= NULL
);
5405 if (gdbarch
->print_insn
== 0)
5406 internal_error (__FILE__
, __LINE__
,
5407 "gdbarch: gdbarch_print_insn invalid");
5408 if (gdbarch_debug
>= 2)
5409 fprintf_unfiltered (gdb_stdlog
, "gdbarch_print_insn called\n");
5410 return gdbarch
->print_insn (vma
, info
);
5414 set_gdbarch_print_insn (struct gdbarch
*gdbarch
,
5415 gdbarch_print_insn_ftype print_insn
)
5417 gdbarch
->print_insn
= print_insn
;
5421 gdbarch_skip_trampoline_code (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
5423 gdb_assert (gdbarch
!= NULL
);
5424 if (gdbarch
->skip_trampoline_code
== 0)
5425 internal_error (__FILE__
, __LINE__
,
5426 "gdbarch: gdbarch_skip_trampoline_code invalid");
5427 if (gdbarch_debug
>= 2)
5428 fprintf_unfiltered (gdb_stdlog
, "gdbarch_skip_trampoline_code called\n");
5429 return gdbarch
->skip_trampoline_code (pc
);
5433 set_gdbarch_skip_trampoline_code (struct gdbarch
*gdbarch
,
5434 gdbarch_skip_trampoline_code_ftype skip_trampoline_code
)
5436 gdbarch
->skip_trampoline_code
= skip_trampoline_code
;
5440 gdbarch_in_solib_call_trampoline (struct gdbarch
*gdbarch
, CORE_ADDR pc
, char *name
)
5442 gdb_assert (gdbarch
!= NULL
);
5443 if (gdbarch
->in_solib_call_trampoline
== 0)
5444 internal_error (__FILE__
, __LINE__
,
5445 "gdbarch: gdbarch_in_solib_call_trampoline invalid");
5446 if (gdbarch_debug
>= 2)
5447 fprintf_unfiltered (gdb_stdlog
, "gdbarch_in_solib_call_trampoline called\n");
5448 return gdbarch
->in_solib_call_trampoline (pc
, name
);
5452 set_gdbarch_in_solib_call_trampoline (struct gdbarch
*gdbarch
,
5453 gdbarch_in_solib_call_trampoline_ftype in_solib_call_trampoline
)
5455 gdbarch
->in_solib_call_trampoline
= in_solib_call_trampoline
;
5459 gdbarch_in_solib_return_trampoline (struct gdbarch
*gdbarch
, CORE_ADDR pc
, char *name
)
5461 gdb_assert (gdbarch
!= NULL
);
5462 if (gdbarch
->in_solib_return_trampoline
== 0)
5463 internal_error (__FILE__
, __LINE__
,
5464 "gdbarch: gdbarch_in_solib_return_trampoline invalid");
5465 if (gdbarch_debug
>= 2)
5466 fprintf_unfiltered (gdb_stdlog
, "gdbarch_in_solib_return_trampoline called\n");
5467 return gdbarch
->in_solib_return_trampoline (pc
, name
);
5471 set_gdbarch_in_solib_return_trampoline (struct gdbarch
*gdbarch
,
5472 gdbarch_in_solib_return_trampoline_ftype in_solib_return_trampoline
)
5474 gdbarch
->in_solib_return_trampoline
= in_solib_return_trampoline
;
5478 gdbarch_pc_in_sigtramp (struct gdbarch
*gdbarch
, CORE_ADDR pc
, char *name
)
5480 gdb_assert (gdbarch
!= NULL
);
5481 if (gdbarch
->pc_in_sigtramp
== 0)
5482 internal_error (__FILE__
, __LINE__
,
5483 "gdbarch: gdbarch_pc_in_sigtramp invalid");
5484 if (gdbarch_debug
>= 2)
5485 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pc_in_sigtramp called\n");
5486 return gdbarch
->pc_in_sigtramp (pc
, name
);
5490 set_gdbarch_pc_in_sigtramp (struct gdbarch
*gdbarch
,
5491 gdbarch_pc_in_sigtramp_ftype pc_in_sigtramp
)
5493 gdbarch
->pc_in_sigtramp
= pc_in_sigtramp
;
5497 gdbarch_sigtramp_start_p (struct gdbarch
*gdbarch
)
5499 gdb_assert (gdbarch
!= NULL
);
5500 return gdbarch
->sigtramp_start
!= 0;
5504 gdbarch_sigtramp_start (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
5506 gdb_assert (gdbarch
!= NULL
);
5507 if (gdbarch
->sigtramp_start
== 0)
5508 internal_error (__FILE__
, __LINE__
,
5509 "gdbarch: gdbarch_sigtramp_start invalid");
5510 if (gdbarch_debug
>= 2)
5511 fprintf_unfiltered (gdb_stdlog
, "gdbarch_sigtramp_start called\n");
5512 return gdbarch
->sigtramp_start (pc
);
5516 set_gdbarch_sigtramp_start (struct gdbarch
*gdbarch
,
5517 gdbarch_sigtramp_start_ftype sigtramp_start
)
5519 gdbarch
->sigtramp_start
= sigtramp_start
;
5523 gdbarch_sigtramp_end_p (struct gdbarch
*gdbarch
)
5525 gdb_assert (gdbarch
!= NULL
);
5526 return gdbarch
->sigtramp_end
!= 0;
5530 gdbarch_sigtramp_end (struct gdbarch
*gdbarch
, CORE_ADDR pc
)
5532 gdb_assert (gdbarch
!= NULL
);
5533 if (gdbarch
->sigtramp_end
== 0)
5534 internal_error (__FILE__
, __LINE__
,
5535 "gdbarch: gdbarch_sigtramp_end invalid");
5536 if (gdbarch_debug
>= 2)
5537 fprintf_unfiltered (gdb_stdlog
, "gdbarch_sigtramp_end called\n");
5538 return gdbarch
->sigtramp_end (pc
);
5542 set_gdbarch_sigtramp_end (struct gdbarch
*gdbarch
,
5543 gdbarch_sigtramp_end_ftype sigtramp_end
)
5545 gdbarch
->sigtramp_end
= sigtramp_end
;
5549 gdbarch_in_function_epilogue_p (struct gdbarch
*gdbarch
, CORE_ADDR addr
)
5551 gdb_assert (gdbarch
!= NULL
);
5552 if (gdbarch
->in_function_epilogue_p
== 0)
5553 internal_error (__FILE__
, __LINE__
,
5554 "gdbarch: gdbarch_in_function_epilogue_p invalid");
5555 if (gdbarch_debug
>= 2)
5556 fprintf_unfiltered (gdb_stdlog
, "gdbarch_in_function_epilogue_p called\n");
5557 return gdbarch
->in_function_epilogue_p (gdbarch
, addr
);
5561 set_gdbarch_in_function_epilogue_p (struct gdbarch
*gdbarch
,
5562 gdbarch_in_function_epilogue_p_ftype in_function_epilogue_p
)
5564 gdbarch
->in_function_epilogue_p
= in_function_epilogue_p
;
5568 gdbarch_construct_inferior_arguments (struct gdbarch
*gdbarch
, int argc
, char **argv
)
5570 gdb_assert (gdbarch
!= NULL
);
5571 if (gdbarch
->construct_inferior_arguments
== 0)
5572 internal_error (__FILE__
, __LINE__
,
5573 "gdbarch: gdbarch_construct_inferior_arguments invalid");
5574 if (gdbarch_debug
>= 2)
5575 fprintf_unfiltered (gdb_stdlog
, "gdbarch_construct_inferior_arguments called\n");
5576 return gdbarch
->construct_inferior_arguments (gdbarch
, argc
, argv
);
5580 set_gdbarch_construct_inferior_arguments (struct gdbarch
*gdbarch
,
5581 gdbarch_construct_inferior_arguments_ftype construct_inferior_arguments
)
5583 gdbarch
->construct_inferior_arguments
= construct_inferior_arguments
;
5587 gdbarch_dwarf2_build_frame_info_p (struct gdbarch
*gdbarch
)
5589 gdb_assert (gdbarch
!= NULL
);
5590 return gdbarch
->dwarf2_build_frame_info
!= 0;
5594 gdbarch_dwarf2_build_frame_info (struct gdbarch
*gdbarch
, struct objfile
*objfile
)
5596 gdb_assert (gdbarch
!= NULL
);
5597 if (gdbarch
->dwarf2_build_frame_info
== 0)
5598 internal_error (__FILE__
, __LINE__
,
5599 "gdbarch: gdbarch_dwarf2_build_frame_info invalid");
5600 if (gdbarch_debug
>= 2)
5601 fprintf_unfiltered (gdb_stdlog
, "gdbarch_dwarf2_build_frame_info called\n");
5602 gdbarch
->dwarf2_build_frame_info (objfile
);
5606 set_gdbarch_dwarf2_build_frame_info (struct gdbarch
*gdbarch
,
5607 gdbarch_dwarf2_build_frame_info_ftype dwarf2_build_frame_info
)
5609 gdbarch
->dwarf2_build_frame_info
= dwarf2_build_frame_info
;
5613 gdbarch_elf_make_msymbol_special (struct gdbarch
*gdbarch
, asymbol
*sym
, struct minimal_symbol
*msym
)
5615 gdb_assert (gdbarch
!= NULL
);
5616 if (gdbarch
->elf_make_msymbol_special
== 0)
5617 internal_error (__FILE__
, __LINE__
,
5618 "gdbarch: gdbarch_elf_make_msymbol_special invalid");
5619 if (gdbarch_debug
>= 2)
5620 fprintf_unfiltered (gdb_stdlog
, "gdbarch_elf_make_msymbol_special called\n");
5621 gdbarch
->elf_make_msymbol_special (sym
, msym
);
5625 set_gdbarch_elf_make_msymbol_special (struct gdbarch
*gdbarch
,
5626 gdbarch_elf_make_msymbol_special_ftype elf_make_msymbol_special
)
5628 gdbarch
->elf_make_msymbol_special
= elf_make_msymbol_special
;
5632 gdbarch_coff_make_msymbol_special (struct gdbarch
*gdbarch
, int val
, struct minimal_symbol
*msym
)
5634 gdb_assert (gdbarch
!= NULL
);
5635 if (gdbarch
->coff_make_msymbol_special
== 0)
5636 internal_error (__FILE__
, __LINE__
,
5637 "gdbarch: gdbarch_coff_make_msymbol_special invalid");
5638 if (gdbarch_debug
>= 2)
5639 fprintf_unfiltered (gdb_stdlog
, "gdbarch_coff_make_msymbol_special called\n");
5640 gdbarch
->coff_make_msymbol_special (val
, msym
);
5644 set_gdbarch_coff_make_msymbol_special (struct gdbarch
*gdbarch
,
5645 gdbarch_coff_make_msymbol_special_ftype coff_make_msymbol_special
)
5647 gdbarch
->coff_make_msymbol_special
= coff_make_msymbol_special
;
5651 gdbarch_name_of_malloc (struct gdbarch
*gdbarch
)
5653 gdb_assert (gdbarch
!= NULL
);
5654 /* Skip verify of name_of_malloc, invalid_p == 0 */
5655 if (gdbarch_debug
>= 2)
5656 fprintf_unfiltered (gdb_stdlog
, "gdbarch_name_of_malloc called\n");
5657 return gdbarch
->name_of_malloc
;
5661 set_gdbarch_name_of_malloc (struct gdbarch
*gdbarch
,
5662 const char * name_of_malloc
)
5664 gdbarch
->name_of_malloc
= name_of_malloc
;
5668 gdbarch_cannot_step_breakpoint (struct gdbarch
*gdbarch
)
5670 gdb_assert (gdbarch
!= NULL
);
5671 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */
5672 if (gdbarch_debug
>= 2)
5673 fprintf_unfiltered (gdb_stdlog
, "gdbarch_cannot_step_breakpoint called\n");
5674 return gdbarch
->cannot_step_breakpoint
;
5678 set_gdbarch_cannot_step_breakpoint (struct gdbarch
*gdbarch
,
5679 int cannot_step_breakpoint
)
5681 gdbarch
->cannot_step_breakpoint
= cannot_step_breakpoint
;
5685 gdbarch_have_nonsteppable_watchpoint (struct gdbarch
*gdbarch
)
5687 gdb_assert (gdbarch
!= NULL
);
5688 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */
5689 if (gdbarch_debug
>= 2)
5690 fprintf_unfiltered (gdb_stdlog
, "gdbarch_have_nonsteppable_watchpoint called\n");
5691 return gdbarch
->have_nonsteppable_watchpoint
;
5695 set_gdbarch_have_nonsteppable_watchpoint (struct gdbarch
*gdbarch
,
5696 int have_nonsteppable_watchpoint
)
5698 gdbarch
->have_nonsteppable_watchpoint
= have_nonsteppable_watchpoint
;
5702 gdbarch_address_class_type_flags_p (struct gdbarch
*gdbarch
)
5704 gdb_assert (gdbarch
!= NULL
);
5705 return gdbarch
->address_class_type_flags
!= 0;
5709 gdbarch_address_class_type_flags (struct gdbarch
*gdbarch
, int byte_size
, int dwarf2_addr_class
)
5711 gdb_assert (gdbarch
!= NULL
);
5712 if (gdbarch
->address_class_type_flags
== 0)
5713 internal_error (__FILE__
, __LINE__
,
5714 "gdbarch: gdbarch_address_class_type_flags invalid");
5715 if (gdbarch_debug
>= 2)
5716 fprintf_unfiltered (gdb_stdlog
, "gdbarch_address_class_type_flags called\n");
5717 return gdbarch
->address_class_type_flags (byte_size
, dwarf2_addr_class
);
5721 set_gdbarch_address_class_type_flags (struct gdbarch
*gdbarch
,
5722 gdbarch_address_class_type_flags_ftype address_class_type_flags
)
5724 gdbarch
->address_class_type_flags
= address_class_type_flags
;
5728 gdbarch_address_class_type_flags_to_name_p (struct gdbarch
*gdbarch
)
5730 gdb_assert (gdbarch
!= NULL
);
5731 return gdbarch
->address_class_type_flags_to_name
!= 0;
5735 gdbarch_address_class_type_flags_to_name (struct gdbarch
*gdbarch
, int type_flags
)
5737 gdb_assert (gdbarch
!= NULL
);
5738 if (gdbarch
->address_class_type_flags_to_name
== 0)
5739 internal_error (__FILE__
, __LINE__
,
5740 "gdbarch: gdbarch_address_class_type_flags_to_name invalid");
5741 if (gdbarch_debug
>= 2)
5742 fprintf_unfiltered (gdb_stdlog
, "gdbarch_address_class_type_flags_to_name called\n");
5743 return gdbarch
->address_class_type_flags_to_name (gdbarch
, type_flags
);
5747 set_gdbarch_address_class_type_flags_to_name (struct gdbarch
*gdbarch
,
5748 gdbarch_address_class_type_flags_to_name_ftype address_class_type_flags_to_name
)
5750 gdbarch
->address_class_type_flags_to_name
= address_class_type_flags_to_name
;
5754 gdbarch_address_class_name_to_type_flags_p (struct gdbarch
*gdbarch
)
5756 gdb_assert (gdbarch
!= NULL
);
5757 return gdbarch
->address_class_name_to_type_flags
!= 0;
5761 gdbarch_address_class_name_to_type_flags (struct gdbarch
*gdbarch
, const char *name
, int *type_flags_ptr
)
5763 gdb_assert (gdbarch
!= NULL
);
5764 if (gdbarch
->address_class_name_to_type_flags
== 0)
5765 internal_error (__FILE__
, __LINE__
,
5766 "gdbarch: gdbarch_address_class_name_to_type_flags invalid");
5767 if (gdbarch_debug
>= 2)
5768 fprintf_unfiltered (gdb_stdlog
, "gdbarch_address_class_name_to_type_flags called\n");
5769 return gdbarch
->address_class_name_to_type_flags (gdbarch
, name
, type_flags_ptr
);
5773 set_gdbarch_address_class_name_to_type_flags (struct gdbarch
*gdbarch
,
5774 gdbarch_address_class_name_to_type_flags_ftype address_class_name_to_type_flags
)
5776 gdbarch
->address_class_name_to_type_flags
= address_class_name_to_type_flags
;
5780 gdbarch_register_reggroup_p (struct gdbarch
*gdbarch
, int regnum
, struct reggroup
*reggroup
)
5782 gdb_assert (gdbarch
!= NULL
);
5783 if (gdbarch
->register_reggroup_p
== 0)
5784 internal_error (__FILE__
, __LINE__
,
5785 "gdbarch: gdbarch_register_reggroup_p invalid");
5786 if (gdbarch_debug
>= 2)
5787 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_reggroup_p called\n");
5788 return gdbarch
->register_reggroup_p (gdbarch
, regnum
, reggroup
);
5792 set_gdbarch_register_reggroup_p (struct gdbarch
*gdbarch
,
5793 gdbarch_register_reggroup_p_ftype register_reggroup_p
)
5795 gdbarch
->register_reggroup_p
= register_reggroup_p
;
5799 gdbarch_fetch_pointer_argument_p (struct gdbarch
*gdbarch
)
5801 gdb_assert (gdbarch
!= NULL
);
5802 return gdbarch
->fetch_pointer_argument
!= 0;
5806 gdbarch_fetch_pointer_argument (struct gdbarch
*gdbarch
, struct frame_info
*frame
, int argi
, struct type
*type
)
5808 gdb_assert (gdbarch
!= NULL
);
5809 if (gdbarch
->fetch_pointer_argument
== 0)
5810 internal_error (__FILE__
, __LINE__
,
5811 "gdbarch: gdbarch_fetch_pointer_argument invalid");
5812 if (gdbarch_debug
>= 2)
5813 fprintf_unfiltered (gdb_stdlog
, "gdbarch_fetch_pointer_argument called\n");
5814 return gdbarch
->fetch_pointer_argument (frame
, argi
, type
);
5818 set_gdbarch_fetch_pointer_argument (struct gdbarch
*gdbarch
,
5819 gdbarch_fetch_pointer_argument_ftype fetch_pointer_argument
)
5821 gdbarch
->fetch_pointer_argument
= fetch_pointer_argument
;
5825 /* Keep a registry of per-architecture data-pointers required by GDB
5832 gdbarch_data_init_ftype
*init
;
5833 gdbarch_data_free_ftype
*free
;
5836 struct gdbarch_data_registration
5838 struct gdbarch_data
*data
;
5839 struct gdbarch_data_registration
*next
;
5842 struct gdbarch_data_registry
5845 struct gdbarch_data_registration
*registrations
;
5848 struct gdbarch_data_registry gdbarch_data_registry
=
5853 struct gdbarch_data
*
5854 register_gdbarch_data (gdbarch_data_init_ftype
*init
,
5855 gdbarch_data_free_ftype
*free
)
5857 struct gdbarch_data_registration
**curr
;
5858 /* Append the new registraration. */
5859 for (curr
= &gdbarch_data_registry
.registrations
;
5861 curr
= &(*curr
)->next
);
5862 (*curr
) = XMALLOC (struct gdbarch_data_registration
);
5863 (*curr
)->next
= NULL
;
5864 (*curr
)->data
= XMALLOC (struct gdbarch_data
);
5865 (*curr
)->data
->index
= gdbarch_data_registry
.nr
++;
5866 (*curr
)->data
->init
= init
;
5867 (*curr
)->data
->init_p
= 1;
5868 (*curr
)->data
->free
= free
;
5869 return (*curr
)->data
;
5873 /* Create/delete the gdbarch data vector. */
5876 alloc_gdbarch_data (struct gdbarch
*gdbarch
)
5878 gdb_assert (gdbarch
->data
== NULL
);
5879 gdbarch
->nr_data
= gdbarch_data_registry
.nr
;
5880 gdbarch
->data
= xcalloc (gdbarch
->nr_data
, sizeof (void*));
5884 free_gdbarch_data (struct gdbarch
*gdbarch
)
5886 struct gdbarch_data_registration
*rego
;
5887 gdb_assert (gdbarch
->data
!= NULL
);
5888 for (rego
= gdbarch_data_registry
.registrations
;
5892 struct gdbarch_data
*data
= rego
->data
;
5893 gdb_assert (data
->index
< gdbarch
->nr_data
);
5894 if (data
->free
!= NULL
&& gdbarch
->data
[data
->index
] != NULL
)
5896 data
->free (gdbarch
, gdbarch
->data
[data
->index
]);
5897 gdbarch
->data
[data
->index
] = NULL
;
5900 xfree (gdbarch
->data
);
5901 gdbarch
->data
= NULL
;
5905 /* Initialize the current value of the specified per-architecture
5909 set_gdbarch_data (struct gdbarch
*gdbarch
,
5910 struct gdbarch_data
*data
,
5913 gdb_assert (data
->index
< gdbarch
->nr_data
);
5914 if (gdbarch
->data
[data
->index
] != NULL
)
5916 gdb_assert (data
->free
!= NULL
);
5917 data
->free (gdbarch
, gdbarch
->data
[data
->index
]);
5919 gdbarch
->data
[data
->index
] = pointer
;
5922 /* Return the current value of the specified per-architecture
5926 gdbarch_data (struct gdbarch
*gdbarch
, struct gdbarch_data
*data
)
5928 gdb_assert (data
->index
< gdbarch
->nr_data
);
5929 /* The data-pointer isn't initialized, call init() to get a value but
5930 only if the architecture initializaiton has completed. Otherwise
5931 punt - hope that the caller knows what they are doing. */
5932 if (gdbarch
->data
[data
->index
] == NULL
5933 && gdbarch
->initialized_p
)
5935 /* Be careful to detect an initialization cycle. */
5936 gdb_assert (data
->init_p
);
5938 gdb_assert (data
->init
!= NULL
);
5939 gdbarch
->data
[data
->index
] = data
->init (gdbarch
);
5941 gdb_assert (gdbarch
->data
[data
->index
] != NULL
);
5943 return gdbarch
->data
[data
->index
];
5948 /* Keep a registry of swapped data required by GDB modules. */
5953 struct gdbarch_swap_registration
*source
;
5954 struct gdbarch_swap
*next
;
5957 struct gdbarch_swap_registration
5960 unsigned long sizeof_data
;
5961 gdbarch_swap_ftype
*init
;
5962 struct gdbarch_swap_registration
*next
;
5965 struct gdbarch_swap_registry
5968 struct gdbarch_swap_registration
*registrations
;
5971 struct gdbarch_swap_registry gdbarch_swap_registry
=
5977 register_gdbarch_swap (void *data
,
5978 unsigned long sizeof_data
,
5979 gdbarch_swap_ftype
*init
)
5981 struct gdbarch_swap_registration
**rego
;
5982 for (rego
= &gdbarch_swap_registry
.registrations
;
5984 rego
= &(*rego
)->next
);
5985 (*rego
) = XMALLOC (struct gdbarch_swap_registration
);
5986 (*rego
)->next
= NULL
;
5987 (*rego
)->init
= init
;
5988 (*rego
)->data
= data
;
5989 (*rego
)->sizeof_data
= sizeof_data
;
5993 clear_gdbarch_swap (struct gdbarch
*gdbarch
)
5995 struct gdbarch_swap
*curr
;
5996 for (curr
= gdbarch
->swap
;
6000 memset (curr
->source
->data
, 0, curr
->source
->sizeof_data
);
6005 init_gdbarch_swap (struct gdbarch
*gdbarch
)
6007 struct gdbarch_swap_registration
*rego
;
6008 struct gdbarch_swap
**curr
= &gdbarch
->swap
;
6009 for (rego
= gdbarch_swap_registry
.registrations
;
6013 if (rego
->data
!= NULL
)
6015 (*curr
) = XMALLOC (struct gdbarch_swap
);
6016 (*curr
)->source
= rego
;
6017 (*curr
)->swap
= xmalloc (rego
->sizeof_data
);
6018 (*curr
)->next
= NULL
;
6019 curr
= &(*curr
)->next
;
6021 if (rego
->init
!= NULL
)
6027 swapout_gdbarch_swap (struct gdbarch
*gdbarch
)
6029 struct gdbarch_swap
*curr
;
6030 for (curr
= gdbarch
->swap
;
6033 memcpy (curr
->swap
, curr
->source
->data
, curr
->source
->sizeof_data
);
6037 swapin_gdbarch_swap (struct gdbarch
*gdbarch
)
6039 struct gdbarch_swap
*curr
;
6040 for (curr
= gdbarch
->swap
;
6043 memcpy (curr
->source
->data
, curr
->swap
, curr
->source
->sizeof_data
);
6047 /* Keep a registry of the architectures known by GDB. */
6049 struct gdbarch_registration
6051 enum bfd_architecture bfd_architecture
;
6052 gdbarch_init_ftype
*init
;
6053 gdbarch_dump_tdep_ftype
*dump_tdep
;
6054 struct gdbarch_list
*arches
;
6055 struct gdbarch_registration
*next
;
6058 static struct gdbarch_registration
*gdbarch_registry
= NULL
;
6061 append_name (const char ***buf
, int *nr
, const char *name
)
6063 *buf
= xrealloc (*buf
, sizeof (char**) * (*nr
+ 1));
6069 gdbarch_printable_names (void)
6073 /* Accumulate a list of names based on the registed list of
6075 enum bfd_architecture a
;
6077 const char **arches
= NULL
;
6078 struct gdbarch_registration
*rego
;
6079 for (rego
= gdbarch_registry
;
6083 const struct bfd_arch_info
*ap
;
6084 ap
= bfd_lookup_arch (rego
->bfd_architecture
, 0);
6086 internal_error (__FILE__
, __LINE__
,
6087 "gdbarch_architecture_names: multi-arch unknown");
6090 append_name (&arches
, &nr_arches
, ap
->printable_name
);
6095 append_name (&arches
, &nr_arches
, NULL
);
6099 /* Just return all the architectures that BFD knows. Assume that
6100 the legacy architecture framework supports them. */
6101 return bfd_arch_list ();
6106 gdbarch_register (enum bfd_architecture bfd_architecture
,
6107 gdbarch_init_ftype
*init
,
6108 gdbarch_dump_tdep_ftype
*dump_tdep
)
6110 struct gdbarch_registration
**curr
;
6111 const struct bfd_arch_info
*bfd_arch_info
;
6112 /* Check that BFD recognizes this architecture */
6113 bfd_arch_info
= bfd_lookup_arch (bfd_architecture
, 0);
6114 if (bfd_arch_info
== NULL
)
6116 internal_error (__FILE__
, __LINE__
,
6117 "gdbarch: Attempt to register unknown architecture (%d)",
6120 /* Check that we haven't seen this architecture before */
6121 for (curr
= &gdbarch_registry
;
6123 curr
= &(*curr
)->next
)
6125 if (bfd_architecture
== (*curr
)->bfd_architecture
)
6126 internal_error (__FILE__
, __LINE__
,
6127 "gdbarch: Duplicate registraration of architecture (%s)",
6128 bfd_arch_info
->printable_name
);
6132 fprintf_unfiltered (gdb_stdlog
, "register_gdbarch_init (%s, 0x%08lx)\n",
6133 bfd_arch_info
->printable_name
,
6136 (*curr
) = XMALLOC (struct gdbarch_registration
);
6137 (*curr
)->bfd_architecture
= bfd_architecture
;
6138 (*curr
)->init
= init
;
6139 (*curr
)->dump_tdep
= dump_tdep
;
6140 (*curr
)->arches
= NULL
;
6141 (*curr
)->next
= NULL
;
6142 /* When non- multi-arch, install whatever target dump routine we've
6143 been provided - hopefully that routine has been written correctly
6144 and works regardless of multi-arch. */
6145 if (!GDB_MULTI_ARCH
&& dump_tdep
!= NULL
6146 && startup_gdbarch
.dump_tdep
== NULL
)
6147 startup_gdbarch
.dump_tdep
= dump_tdep
;
6151 register_gdbarch_init (enum bfd_architecture bfd_architecture
,
6152 gdbarch_init_ftype
*init
)
6154 gdbarch_register (bfd_architecture
, init
, NULL
);
6158 /* Look for an architecture using gdbarch_info. Base search on only
6159 BFD_ARCH_INFO and BYTE_ORDER. */
6161 struct gdbarch_list
*
6162 gdbarch_list_lookup_by_info (struct gdbarch_list
*arches
,
6163 const struct gdbarch_info
*info
)
6165 for (; arches
!= NULL
; arches
= arches
->next
)
6167 if (info
->bfd_arch_info
!= arches
->gdbarch
->bfd_arch_info
)
6169 if (info
->byte_order
!= arches
->gdbarch
->byte_order
)
6171 if (info
->osabi
!= arches
->gdbarch
->osabi
)
6179 /* Update the current architecture. Return ZERO if the update request
6183 gdbarch_update_p (struct gdbarch_info info
)
6185 struct gdbarch
*new_gdbarch
;
6186 struct gdbarch
*old_gdbarch
;
6187 struct gdbarch_registration
*rego
;
6189 /* Fill in missing parts of the INFO struct using a number of
6190 sources: ``set ...''; INFOabfd supplied; existing target. */
6192 /* ``(gdb) set architecture ...'' */
6193 if (info
.bfd_arch_info
== NULL
6194 && !TARGET_ARCHITECTURE_AUTO
)
6195 info
.bfd_arch_info
= TARGET_ARCHITECTURE
;
6196 if (info
.bfd_arch_info
== NULL
6197 && info
.abfd
!= NULL
6198 && bfd_get_arch (info
.abfd
) != bfd_arch_unknown
6199 && bfd_get_arch (info
.abfd
) != bfd_arch_obscure
)
6200 info
.bfd_arch_info
= bfd_get_arch_info (info
.abfd
);
6201 if (info
.bfd_arch_info
== NULL
)
6202 info
.bfd_arch_info
= TARGET_ARCHITECTURE
;
6204 /* ``(gdb) set byte-order ...'' */
6205 if (info
.byte_order
== BFD_ENDIAN_UNKNOWN
6206 && !TARGET_BYTE_ORDER_AUTO
)
6207 info
.byte_order
= TARGET_BYTE_ORDER
;
6208 /* From the INFO struct. */
6209 if (info
.byte_order
== BFD_ENDIAN_UNKNOWN
6210 && info
.abfd
!= NULL
)
6211 info
.byte_order
= (bfd_big_endian (info
.abfd
) ? BFD_ENDIAN_BIG
6212 : bfd_little_endian (info
.abfd
) ? BFD_ENDIAN_LITTLE
6213 : BFD_ENDIAN_UNKNOWN
);
6214 /* From the current target. */
6215 if (info
.byte_order
== BFD_ENDIAN_UNKNOWN
)
6216 info
.byte_order
= TARGET_BYTE_ORDER
;
6218 /* ``(gdb) set osabi ...'' is handled by gdbarch_lookup_osabi. */
6219 if (info
.osabi
== GDB_OSABI_UNINITIALIZED
)
6220 info
.osabi
= gdbarch_lookup_osabi (info
.abfd
);
6221 if (info
.osabi
== GDB_OSABI_UNINITIALIZED
)
6222 info
.osabi
= current_gdbarch
->osabi
;
6224 /* Must have found some sort of architecture. */
6225 gdb_assert (info
.bfd_arch_info
!= NULL
);
6229 fprintf_unfiltered (gdb_stdlog
,
6230 "gdbarch_update: info.bfd_arch_info %s\n",
6231 (info
.bfd_arch_info
!= NULL
6232 ? info
.bfd_arch_info
->printable_name
6234 fprintf_unfiltered (gdb_stdlog
,
6235 "gdbarch_update: info.byte_order %d (%s)\n",
6237 (info
.byte_order
== BFD_ENDIAN_BIG
? "big"
6238 : info
.byte_order
== BFD_ENDIAN_LITTLE
? "little"
6240 fprintf_unfiltered (gdb_stdlog
,
6241 "gdbarch_update: info.osabi %d (%s)\n",
6242 info
.osabi
, gdbarch_osabi_name (info
.osabi
));
6243 fprintf_unfiltered (gdb_stdlog
,
6244 "gdbarch_update: info.abfd 0x%lx\n",
6246 fprintf_unfiltered (gdb_stdlog
,
6247 "gdbarch_update: info.tdep_info 0x%lx\n",
6248 (long) info
.tdep_info
);
6251 /* Find the target that knows about this architecture. */
6252 for (rego
= gdbarch_registry
;
6255 if (rego
->bfd_architecture
== info
.bfd_arch_info
->arch
)
6260 fprintf_unfiltered (gdb_stdlog
, "gdbarch_update: No matching architecture\n");
6264 /* Swap the data belonging to the old target out setting the
6265 installed data to zero. This stops the ->init() function trying
6266 to refer to the previous architecture's global data structures. */
6267 swapout_gdbarch_swap (current_gdbarch
);
6268 clear_gdbarch_swap (current_gdbarch
);
6270 /* Save the previously selected architecture, setting the global to
6271 NULL. This stops ->init() trying to use the previous
6272 architecture's configuration. The previous architecture may not
6273 even be of the same architecture family. The most recent
6274 architecture of the same family is found at the head of the
6275 rego->arches list. */
6276 old_gdbarch
= current_gdbarch
;
6277 current_gdbarch
= NULL
;
6279 /* Ask the target for a replacement architecture. */
6280 new_gdbarch
= rego
->init (info
, rego
->arches
);
6282 /* Did the target like it? No. Reject the change and revert to the
6283 old architecture. */
6284 if (new_gdbarch
== NULL
)
6287 fprintf_unfiltered (gdb_stdlog
, "gdbarch_update: Target rejected architecture\n");
6288 swapin_gdbarch_swap (old_gdbarch
);
6289 current_gdbarch
= old_gdbarch
;
6293 /* Did the architecture change? No. Oops, put the old architecture
6295 if (old_gdbarch
== new_gdbarch
)
6298 fprintf_unfiltered (gdb_stdlog
, "gdbarch_update: Architecture 0x%08lx (%s) unchanged\n",
6300 new_gdbarch
->bfd_arch_info
->printable_name
);
6301 swapin_gdbarch_swap (old_gdbarch
);
6302 current_gdbarch
= old_gdbarch
;
6306 /* Is this a pre-existing architecture? Yes. Move it to the front
6307 of the list of architectures (keeping the list sorted Most
6308 Recently Used) and then copy it in. */
6310 struct gdbarch_list
**list
;
6311 for (list
= ®o
->arches
;
6313 list
= &(*list
)->next
)
6315 if ((*list
)->gdbarch
== new_gdbarch
)
6317 struct gdbarch_list
*this;
6319 fprintf_unfiltered (gdb_stdlog
,
6320 "gdbarch_update: Previous architecture 0x%08lx (%s) selected\n",
6322 new_gdbarch
->bfd_arch_info
->printable_name
);
6325 (*list
) = this->next
;
6326 /* Insert in the front. */
6327 this->next
= rego
->arches
;
6328 rego
->arches
= this;
6329 /* Copy the new architecture in. */
6330 current_gdbarch
= new_gdbarch
;
6331 swapin_gdbarch_swap (new_gdbarch
);
6332 architecture_changed_event ();
6338 /* Prepend this new architecture to the architecture list (keep the
6339 list sorted Most Recently Used). */
6341 struct gdbarch_list
*this = XMALLOC (struct gdbarch_list
);
6342 this->next
= rego
->arches
;
6343 this->gdbarch
= new_gdbarch
;
6344 rego
->arches
= this;
6347 /* Switch to this new architecture marking it initialized. */
6348 current_gdbarch
= new_gdbarch
;
6349 current_gdbarch
->initialized_p
= 1;
6352 fprintf_unfiltered (gdb_stdlog
,
6353 "gdbarch_update: New architecture 0x%08lx (%s) selected\n",
6355 new_gdbarch
->bfd_arch_info
->printable_name
);
6358 /* Check that the newly installed architecture is valid. Plug in
6359 any post init values. */
6360 new_gdbarch
->dump_tdep
= rego
->dump_tdep
;
6361 verify_gdbarch (new_gdbarch
);
6363 /* Initialize the per-architecture memory (swap) areas.
6364 CURRENT_GDBARCH must be update before these modules are
6366 init_gdbarch_swap (new_gdbarch
);
6368 /* Initialize the per-architecture data. CURRENT_GDBARCH
6369 must be updated before these modules are called. */
6370 architecture_changed_event ();
6373 gdbarch_dump (current_gdbarch
, gdb_stdlog
);
6381 /* Pointer to the target-dependent disassembly function. */
6382 int (*deprecated_tm_print_insn
) (bfd_vma
, disassemble_info
*);
6384 extern void _initialize_gdbarch (void);
6387 _initialize_gdbarch (void)
6389 struct cmd_list_element
*c
;
6391 add_show_from_set (add_set_cmd ("arch",
6394 (char *)&gdbarch_debug
,
6395 "Set architecture debugging.\n\
6396 When non-zero, architecture debugging is enabled.", &setdebuglist
),
6398 c
= add_set_cmd ("archdebug",
6401 (char *)&gdbarch_debug
,
6402 "Set architecture debugging.\n\
6403 When non-zero, architecture debugging is enabled.", &setlist
);
6405 deprecate_cmd (c
, "set debug arch");
6406 deprecate_cmd (add_show_from_set (c
, &showlist
), "show debug arch");