1 /* *INDENT-OFF* */ /* THIS FILE IS GENERATED */
3 /* Dynamic architecture support for GDB, the GNU debugger.
4 Copyright 1998-1999, 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 bourn 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 makeing 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 */
61 #include "floatformat.h"
63 /* Static function declarations */
65 static void verify_gdbarch (struct gdbarch
*gdbarch
);
66 static void init_gdbarch_data (struct gdbarch
*);
67 static void init_gdbarch_swap (struct gdbarch
*);
68 static void swapout_gdbarch_swap (struct gdbarch
*);
69 static void swapin_gdbarch_swap (struct gdbarch
*);
71 /* Convenience macro for allocting typesafe memory. */
74 #define XMALLOC(TYPE) (TYPE*) xmalloc (sizeof (TYPE))
78 /* Non-zero if we want to trace architecture code. */
81 #define GDBARCH_DEBUG 0
83 int gdbarch_debug
= GDBARCH_DEBUG
;
86 /* Maintain the struct gdbarch object */
90 /* basic architectural information */
91 const struct bfd_arch_info
* bfd_arch_info
;
94 /* target specific vector. */
95 struct gdbarch_tdep
*tdep
;
96 gdbarch_dump_tdep_ftype
*dump_tdep
;
98 /* per-architecture data-pointers */
102 /* per-architecture swap-regions */
103 struct gdbarch_swap
*swap
;
105 /* Multi-arch values.
107 When extending this structure you must:
111 Declare set/get functions and define the corresponding
114 gdbarch_alloc(): If zero/NULL is not a suitable default,
115 initialize the new field.
117 verify_gdbarch(): Confirm that the target updated the field
120 gdbarch_dump(): Add a fprintf_unfiltered call to so that the new
123 ``startup_gdbarch()'': Append an initial value to the static
124 variable (base values on the host's c-type system).
126 get_gdbarch(): Implement the set/get functions (probably using
127 the macro's as shortcuts).
141 gdbarch_read_pc_ftype
*read_pc
;
142 gdbarch_write_pc_ftype
*write_pc
;
143 gdbarch_read_fp_ftype
*read_fp
;
144 gdbarch_write_fp_ftype
*write_fp
;
145 gdbarch_read_sp_ftype
*read_sp
;
146 gdbarch_write_sp_ftype
*write_sp
;
155 gdbarch_register_name_ftype
*register_name
;
158 gdbarch_register_byte_ftype
*register_byte
;
159 gdbarch_register_raw_size_ftype
*register_raw_size
;
160 int max_register_raw_size
;
161 gdbarch_register_virtual_size_ftype
*register_virtual_size
;
162 int max_register_virtual_size
;
163 gdbarch_register_virtual_type_ftype
*register_virtual_type
;
164 gdbarch_do_registers_info_ftype
*do_registers_info
;
165 gdbarch_register_sim_regno_ftype
*register_sim_regno
;
166 int use_generic_dummy_frames
;
167 int call_dummy_location
;
168 gdbarch_call_dummy_address_ftype
*call_dummy_address
;
169 CORE_ADDR call_dummy_start_offset
;
170 CORE_ADDR call_dummy_breakpoint_offset
;
171 int call_dummy_breakpoint_offset_p
;
172 int call_dummy_length
;
173 gdbarch_pc_in_call_dummy_ftype
*pc_in_call_dummy
;
175 LONGEST
* call_dummy_words
;
176 int sizeof_call_dummy_words
;
177 int call_dummy_stack_adjust_p
;
178 int call_dummy_stack_adjust
;
179 gdbarch_fix_call_dummy_ftype
*fix_call_dummy
;
180 int believe_pcc_promotion
;
181 int believe_pcc_promotion_type
;
182 gdbarch_coerce_float_to_double_ftype
*coerce_float_to_double
;
183 gdbarch_get_saved_register_ftype
*get_saved_register
;
184 gdbarch_register_convertible_ftype
*register_convertible
;
185 gdbarch_register_convert_to_virtual_ftype
*register_convert_to_virtual
;
186 gdbarch_register_convert_to_raw_ftype
*register_convert_to_raw
;
187 gdbarch_fetch_pseudo_register_ftype
*fetch_pseudo_register
;
188 gdbarch_store_pseudo_register_ftype
*store_pseudo_register
;
189 gdbarch_pointer_to_address_ftype
*pointer_to_address
;
190 gdbarch_address_to_pointer_ftype
*address_to_pointer
;
191 gdbarch_return_value_on_stack_ftype
*return_value_on_stack
;
192 gdbarch_extract_return_value_ftype
*extract_return_value
;
193 gdbarch_push_arguments_ftype
*push_arguments
;
194 gdbarch_push_dummy_frame_ftype
*push_dummy_frame
;
195 gdbarch_push_return_address_ftype
*push_return_address
;
196 gdbarch_pop_frame_ftype
*pop_frame
;
197 gdbarch_d10v_make_daddr_ftype
*d10v_make_daddr
;
198 gdbarch_d10v_make_iaddr_ftype
*d10v_make_iaddr
;
199 gdbarch_d10v_daddr_p_ftype
*d10v_daddr_p
;
200 gdbarch_d10v_iaddr_p_ftype
*d10v_iaddr_p
;
201 gdbarch_d10v_convert_daddr_to_raw_ftype
*d10v_convert_daddr_to_raw
;
202 gdbarch_d10v_convert_iaddr_to_raw_ftype
*d10v_convert_iaddr_to_raw
;
203 gdbarch_store_struct_return_ftype
*store_struct_return
;
204 gdbarch_store_return_value_ftype
*store_return_value
;
205 gdbarch_extract_struct_value_address_ftype
*extract_struct_value_address
;
206 gdbarch_use_struct_convention_ftype
*use_struct_convention
;
207 gdbarch_frame_init_saved_regs_ftype
*frame_init_saved_regs
;
208 gdbarch_init_extra_frame_info_ftype
*init_extra_frame_info
;
209 gdbarch_skip_prologue_ftype
*skip_prologue
;
210 gdbarch_prologue_frameless_p_ftype
*prologue_frameless_p
;
211 gdbarch_inner_than_ftype
*inner_than
;
212 gdbarch_breakpoint_from_pc_ftype
*breakpoint_from_pc
;
213 gdbarch_memory_insert_breakpoint_ftype
*memory_insert_breakpoint
;
214 gdbarch_memory_remove_breakpoint_ftype
*memory_remove_breakpoint
;
215 CORE_ADDR decr_pc_after_break
;
216 CORE_ADDR function_start_offset
;
217 gdbarch_remote_translate_xfer_address_ftype
*remote_translate_xfer_address
;
218 CORE_ADDR frame_args_skip
;
219 gdbarch_frameless_function_invocation_ftype
*frameless_function_invocation
;
220 gdbarch_frame_chain_ftype
*frame_chain
;
221 gdbarch_frame_chain_valid_ftype
*frame_chain_valid
;
222 gdbarch_frame_saved_pc_ftype
*frame_saved_pc
;
223 gdbarch_frame_args_address_ftype
*frame_args_address
;
224 gdbarch_frame_locals_address_ftype
*frame_locals_address
;
225 gdbarch_saved_pc_after_call_ftype
*saved_pc_after_call
;
226 gdbarch_frame_num_args_ftype
*frame_num_args
;
227 gdbarch_stack_align_ftype
*stack_align
;
228 int extra_stack_alignment_needed
;
229 gdbarch_reg_struct_has_addr_ftype
*reg_struct_has_addr
;
230 gdbarch_save_dummy_frame_tos_ftype
*save_dummy_frame_tos
;
231 const struct floatformat
* float_format
;
232 const struct floatformat
* double_format
;
233 const struct floatformat
* long_double_format
;
237 /* The default architecture uses host values (for want of a better
240 extern const struct bfd_arch_info bfd_default_arch_struct
;
242 struct gdbarch startup_gdbarch
=
244 /* basic architecture information */
245 &bfd_default_arch_struct
,
247 /* target specific vector and its dump routine */
249 /*per-architecture data-pointers and swap regions */
251 /* Multi-arch values */
255 8 * sizeof (LONGEST
),
258 8 * sizeof (long double),
304 generic_get_saved_register
,
355 /* startup_gdbarch() */
358 struct gdbarch
*current_gdbarch
= &startup_gdbarch
;
361 /* Create a new ``struct gdbarch'' based on information provided by
362 ``struct gdbarch_info''. */
365 gdbarch_alloc (const struct gdbarch_info
*info
,
366 struct gdbarch_tdep
*tdep
)
368 struct gdbarch
*gdbarch
= XMALLOC (struct gdbarch
);
369 memset (gdbarch
, 0, sizeof (*gdbarch
));
371 gdbarch
->tdep
= tdep
;
373 gdbarch
->bfd_arch_info
= info
->bfd_arch_info
;
374 gdbarch
->byte_order
= info
->byte_order
;
376 /* Force the explicit initialization of these. */
377 gdbarch
->short_bit
= 2*TARGET_CHAR_BIT
;
378 gdbarch
->int_bit
= 4*TARGET_CHAR_BIT
;
379 gdbarch
->long_bit
= 4*TARGET_CHAR_BIT
;
380 gdbarch
->long_long_bit
= 2*TARGET_LONG_BIT
;
381 gdbarch
->float_bit
= 4*TARGET_CHAR_BIT
;
382 gdbarch
->double_bit
= 8*TARGET_CHAR_BIT
;
383 gdbarch
->long_double_bit
= 2*TARGET_DOUBLE_BIT
;
384 gdbarch
->ptr_bit
= TARGET_INT_BIT
;
385 gdbarch
->bfd_vma_bit
= TARGET_ARCHITECTURE
->bits_per_address
;
386 gdbarch
->num_regs
= -1;
387 gdbarch
->sp_regnum
= -1;
388 gdbarch
->fp_regnum
= -1;
389 gdbarch
->pc_regnum
= -1;
390 gdbarch
->fp0_regnum
= -1;
391 gdbarch
->npc_regnum
= -1;
392 gdbarch
->nnpc_regnum
= -1;
393 gdbarch
->register_name
= legacy_register_name
;
394 gdbarch
->register_size
= -1;
395 gdbarch
->register_bytes
= -1;
396 gdbarch
->max_register_raw_size
= -1;
397 gdbarch
->max_register_virtual_size
= -1;
398 gdbarch
->do_registers_info
= do_registers_info
;
399 gdbarch
->register_sim_regno
= default_register_sim_regno
;
400 gdbarch
->use_generic_dummy_frames
= -1;
401 gdbarch
->call_dummy_start_offset
= -1;
402 gdbarch
->call_dummy_breakpoint_offset
= -1;
403 gdbarch
->call_dummy_breakpoint_offset_p
= -1;
404 gdbarch
->call_dummy_length
= -1;
405 gdbarch
->call_dummy_p
= -1;
406 gdbarch
->call_dummy_words
= legacy_call_dummy_words
;
407 gdbarch
->sizeof_call_dummy_words
= legacy_sizeof_call_dummy_words
;
408 gdbarch
->call_dummy_stack_adjust_p
= -1;
409 gdbarch
->coerce_float_to_double
= default_coerce_float_to_double
;
410 gdbarch
->register_convertible
= generic_register_convertible_not
;
411 gdbarch
->pointer_to_address
= unsigned_pointer_to_address
;
412 gdbarch
->address_to_pointer
= unsigned_address_to_pointer
;
413 gdbarch
->return_value_on_stack
= generic_return_value_on_stack_not
;
414 gdbarch
->prologue_frameless_p
= generic_prologue_frameless_p
;
415 gdbarch
->breakpoint_from_pc
= legacy_breakpoint_from_pc
;
416 gdbarch
->memory_insert_breakpoint
= default_memory_insert_breakpoint
;
417 gdbarch
->memory_remove_breakpoint
= default_memory_remove_breakpoint
;
418 gdbarch
->decr_pc_after_break
= -1;
419 gdbarch
->function_start_offset
= -1;
420 gdbarch
->remote_translate_xfer_address
= generic_remote_translate_xfer_address
;
421 gdbarch
->frame_args_skip
= -1;
422 gdbarch
->frameless_function_invocation
= generic_frameless_function_invocation_not
;
423 gdbarch
->extra_stack_alignment_needed
= 1;
424 /* gdbarch_alloc() */
430 /* Free a gdbarch struct. This should never happen in normal
431 operation --- once you've created a gdbarch, you keep it around.
432 However, if an architecture's init function encounters an error
433 building the structure, it may need to clean up a partially
434 constructed gdbarch. */
437 gdbarch_free (struct gdbarch
*arch
)
439 /* At the moment, this is trivial. */
444 /* Ensure that all values in a GDBARCH are reasonable. */
447 verify_gdbarch (struct gdbarch
*gdbarch
)
449 /* Only perform sanity checks on a multi-arch target. */
453 if (gdbarch
->byte_order
== 0)
454 internal_error ("verify_gdbarch: byte-order unset");
455 if (gdbarch
->bfd_arch_info
== NULL
)
456 internal_error ("verify_gdbarch: bfd_arch_info unset");
457 /* Check those that need to be defined for the given multi-arch level. */
458 /* Skip verify of short_bit, invalid_p == 0 */
459 /* Skip verify of int_bit, invalid_p == 0 */
460 /* Skip verify of long_bit, invalid_p == 0 */
461 /* Skip verify of long_long_bit, invalid_p == 0 */
462 /* Skip verify of float_bit, invalid_p == 0 */
463 /* Skip verify of double_bit, invalid_p == 0 */
464 /* Skip verify of long_double_bit, invalid_p == 0 */
465 /* Skip verify of ptr_bit, invalid_p == 0 */
466 /* Skip verify of bfd_vma_bit, invalid_p == 0 */
467 /* Skip verify of ieee_float, invalid_p == 0 */
468 if ((GDB_MULTI_ARCH
>= 1)
469 && (gdbarch
->read_pc
== 0))
470 internal_error ("gdbarch: verify_gdbarch: read_pc invalid");
471 if ((GDB_MULTI_ARCH
>= 1)
472 && (gdbarch
->write_pc
== 0))
473 internal_error ("gdbarch: verify_gdbarch: write_pc invalid");
474 if ((GDB_MULTI_ARCH
>= 1)
475 && (gdbarch
->read_fp
== 0))
476 internal_error ("gdbarch: verify_gdbarch: read_fp invalid");
477 if ((GDB_MULTI_ARCH
>= 1)
478 && (gdbarch
->write_fp
== 0))
479 internal_error ("gdbarch: verify_gdbarch: write_fp invalid");
480 if ((GDB_MULTI_ARCH
>= 1)
481 && (gdbarch
->read_sp
== 0))
482 internal_error ("gdbarch: verify_gdbarch: read_sp invalid");
483 if ((GDB_MULTI_ARCH
>= 1)
484 && (gdbarch
->write_sp
== 0))
485 internal_error ("gdbarch: verify_gdbarch: write_sp invalid");
486 if ((GDB_MULTI_ARCH
>= 2)
487 && (gdbarch
->num_regs
== -1))
488 internal_error ("gdbarch: verify_gdbarch: num_regs invalid");
489 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
490 if ((GDB_MULTI_ARCH
>= 2)
491 && (gdbarch
->sp_regnum
== -1))
492 internal_error ("gdbarch: verify_gdbarch: sp_regnum invalid");
493 if ((GDB_MULTI_ARCH
>= 2)
494 && (gdbarch
->fp_regnum
== -1))
495 internal_error ("gdbarch: verify_gdbarch: fp_regnum invalid");
496 if ((GDB_MULTI_ARCH
>= 2)
497 && (gdbarch
->pc_regnum
== -1))
498 internal_error ("gdbarch: verify_gdbarch: pc_regnum invalid");
499 /* Skip verify of fp0_regnum, invalid_p == 0 */
500 /* Skip verify of npc_regnum, invalid_p == 0 */
501 /* Skip verify of nnpc_regnum, invalid_p == 0 */
502 /* Skip verify of register_name, invalid_p == 0 */
503 if ((GDB_MULTI_ARCH
>= 2)
504 && (gdbarch
->register_size
== -1))
505 internal_error ("gdbarch: verify_gdbarch: register_size invalid");
506 if ((GDB_MULTI_ARCH
>= 2)
507 && (gdbarch
->register_bytes
== -1))
508 internal_error ("gdbarch: verify_gdbarch: register_bytes invalid");
509 if ((GDB_MULTI_ARCH
>= 2)
510 && (gdbarch
->register_byte
== 0))
511 internal_error ("gdbarch: verify_gdbarch: register_byte invalid");
512 if ((GDB_MULTI_ARCH
>= 2)
513 && (gdbarch
->register_raw_size
== 0))
514 internal_error ("gdbarch: verify_gdbarch: register_raw_size invalid");
515 if ((GDB_MULTI_ARCH
>= 2)
516 && (gdbarch
->max_register_raw_size
== -1))
517 internal_error ("gdbarch: verify_gdbarch: max_register_raw_size invalid");
518 if ((GDB_MULTI_ARCH
>= 2)
519 && (gdbarch
->register_virtual_size
== 0))
520 internal_error ("gdbarch: verify_gdbarch: register_virtual_size invalid");
521 if ((GDB_MULTI_ARCH
>= 2)
522 && (gdbarch
->max_register_virtual_size
== -1))
523 internal_error ("gdbarch: verify_gdbarch: max_register_virtual_size invalid");
524 if ((GDB_MULTI_ARCH
>= 2)
525 && (gdbarch
->register_virtual_type
== 0))
526 internal_error ("gdbarch: verify_gdbarch: register_virtual_type invalid");
527 /* Skip verify of do_registers_info, invalid_p == 0 */
528 /* Skip verify of register_sim_regno, invalid_p == 0 */
529 if ((GDB_MULTI_ARCH
>= 1)
530 && (gdbarch
->use_generic_dummy_frames
== -1))
531 internal_error ("gdbarch: verify_gdbarch: use_generic_dummy_frames invalid");
532 if ((GDB_MULTI_ARCH
>= 2)
533 && (gdbarch
->call_dummy_location
== 0))
534 internal_error ("gdbarch: verify_gdbarch: call_dummy_location invalid");
535 if ((GDB_MULTI_ARCH
>= 2)
536 && (gdbarch
->call_dummy_location
== AT_ENTRY_POINT
&& gdbarch
->call_dummy_address
== 0))
537 internal_error ("gdbarch: verify_gdbarch: call_dummy_address invalid");
538 if ((GDB_MULTI_ARCH
>= 2)
539 && (gdbarch
->call_dummy_start_offset
== -1))
540 internal_error ("gdbarch: verify_gdbarch: call_dummy_start_offset invalid");
541 if ((GDB_MULTI_ARCH
>= 2)
542 && (gdbarch
->call_dummy_breakpoint_offset
== -1))
543 internal_error ("gdbarch: verify_gdbarch: call_dummy_breakpoint_offset invalid");
544 if ((GDB_MULTI_ARCH
>= 1)
545 && (gdbarch
->call_dummy_breakpoint_offset_p
== -1))
546 internal_error ("gdbarch: verify_gdbarch: call_dummy_breakpoint_offset_p invalid");
547 if ((GDB_MULTI_ARCH
>= 2)
548 && (gdbarch
->call_dummy_length
== -1))
549 internal_error ("gdbarch: verify_gdbarch: call_dummy_length invalid");
550 if ((GDB_MULTI_ARCH
>= 2)
551 && (gdbarch
->pc_in_call_dummy
== 0))
552 internal_error ("gdbarch: verify_gdbarch: pc_in_call_dummy invalid");
553 if ((GDB_MULTI_ARCH
>= 1)
554 && (gdbarch
->call_dummy_p
== -1))
555 internal_error ("gdbarch: verify_gdbarch: call_dummy_p invalid");
556 /* Skip verify of call_dummy_words, invalid_p == 0 */
557 /* Skip verify of sizeof_call_dummy_words, invalid_p == 0 */
558 if ((GDB_MULTI_ARCH
>= 1)
559 && (gdbarch
->call_dummy_stack_adjust_p
== -1))
560 internal_error ("gdbarch: verify_gdbarch: call_dummy_stack_adjust_p invalid");
561 if ((GDB_MULTI_ARCH
>= 2)
562 && (gdbarch
->call_dummy_stack_adjust_p
&& gdbarch
->call_dummy_stack_adjust
== 0))
563 internal_error ("gdbarch: verify_gdbarch: call_dummy_stack_adjust invalid");
564 if ((GDB_MULTI_ARCH
>= 2)
565 && (gdbarch
->fix_call_dummy
== 0))
566 internal_error ("gdbarch: verify_gdbarch: fix_call_dummy invalid");
567 /* Skip verify of coerce_float_to_double, invalid_p == 0 */
568 if ((GDB_MULTI_ARCH
>= 1)
569 && (gdbarch
->get_saved_register
== 0))
570 internal_error ("gdbarch: verify_gdbarch: get_saved_register invalid");
571 /* Skip verify of register_convertible, invalid_p == 0 */
572 /* Skip verify of register_convert_to_virtual, invalid_p == 0 */
573 /* Skip verify of register_convert_to_raw, invalid_p == 0 */
574 /* Skip verify of fetch_pseudo_register, invalid_p == 0 */
575 /* Skip verify of store_pseudo_register, invalid_p == 0 */
576 /* Skip verify of pointer_to_address, invalid_p == 0 */
577 /* Skip verify of address_to_pointer, invalid_p == 0 */
578 /* Skip verify of return_value_on_stack, invalid_p == 0 */
579 if ((GDB_MULTI_ARCH
>= 2)
580 && (gdbarch
->extract_return_value
== 0))
581 internal_error ("gdbarch: verify_gdbarch: extract_return_value invalid");
582 if ((GDB_MULTI_ARCH
>= 1)
583 && (gdbarch
->push_arguments
== 0))
584 internal_error ("gdbarch: verify_gdbarch: push_arguments invalid");
585 if ((GDB_MULTI_ARCH
>= 2)
586 && (gdbarch
->push_dummy_frame
== 0))
587 internal_error ("gdbarch: verify_gdbarch: push_dummy_frame invalid");
588 if ((GDB_MULTI_ARCH
>= 1)
589 && (gdbarch
->push_return_address
== 0))
590 internal_error ("gdbarch: verify_gdbarch: push_return_address invalid");
591 if ((GDB_MULTI_ARCH
>= 2)
592 && (gdbarch
->pop_frame
== 0))
593 internal_error ("gdbarch: verify_gdbarch: pop_frame invalid");
594 /* Skip verify of d10v_make_daddr, invalid_p == 0 */
595 /* Skip verify of d10v_make_iaddr, invalid_p == 0 */
596 /* Skip verify of d10v_daddr_p, invalid_p == 0 */
597 /* Skip verify of d10v_iaddr_p, invalid_p == 0 */
598 /* Skip verify of d10v_convert_daddr_to_raw, invalid_p == 0 */
599 /* Skip verify of d10v_convert_iaddr_to_raw, invalid_p == 0 */
600 if ((GDB_MULTI_ARCH
>= 2)
601 && (gdbarch
->store_struct_return
== 0))
602 internal_error ("gdbarch: verify_gdbarch: store_struct_return invalid");
603 if ((GDB_MULTI_ARCH
>= 2)
604 && (gdbarch
->store_return_value
== 0))
605 internal_error ("gdbarch: verify_gdbarch: store_return_value invalid");
606 if ((GDB_MULTI_ARCH
>= 2)
607 && (gdbarch
->extract_struct_value_address
== 0))
608 internal_error ("gdbarch: verify_gdbarch: extract_struct_value_address invalid");
609 if ((GDB_MULTI_ARCH
>= 2)
610 && (gdbarch
->use_struct_convention
== 0))
611 internal_error ("gdbarch: verify_gdbarch: use_struct_convention invalid");
612 if ((GDB_MULTI_ARCH
>= 2)
613 && (gdbarch
->frame_init_saved_regs
== 0))
614 internal_error ("gdbarch: verify_gdbarch: frame_init_saved_regs invalid");
615 if ((GDB_MULTI_ARCH
>= 2)
616 && (gdbarch
->init_extra_frame_info
== 0))
617 internal_error ("gdbarch: verify_gdbarch: init_extra_frame_info invalid");
618 if ((GDB_MULTI_ARCH
>= 2)
619 && (gdbarch
->skip_prologue
== 0))
620 internal_error ("gdbarch: verify_gdbarch: skip_prologue invalid");
621 /* Skip verify of prologue_frameless_p, invalid_p == 0 */
622 if ((GDB_MULTI_ARCH
>= 2)
623 && (gdbarch
->inner_than
== 0))
624 internal_error ("gdbarch: verify_gdbarch: inner_than invalid");
625 /* Skip verify of breakpoint_from_pc, invalid_p == 0 */
626 /* Skip verify of memory_insert_breakpoint, invalid_p == 0 */
627 /* Skip verify of memory_remove_breakpoint, invalid_p == 0 */
628 if ((GDB_MULTI_ARCH
>= 2)
629 && (gdbarch
->decr_pc_after_break
== -1))
630 internal_error ("gdbarch: verify_gdbarch: decr_pc_after_break invalid");
631 if ((GDB_MULTI_ARCH
>= 2)
632 && (gdbarch
->function_start_offset
== -1))
633 internal_error ("gdbarch: verify_gdbarch: function_start_offset invalid");
634 /* Skip verify of remote_translate_xfer_address, invalid_p == 0 */
635 if ((GDB_MULTI_ARCH
>= 2)
636 && (gdbarch
->frame_args_skip
== -1))
637 internal_error ("gdbarch: verify_gdbarch: frame_args_skip invalid");
638 /* Skip verify of frameless_function_invocation, invalid_p == 0 */
639 if ((GDB_MULTI_ARCH
>= 2)
640 && (gdbarch
->frame_chain
== 0))
641 internal_error ("gdbarch: verify_gdbarch: frame_chain invalid");
642 if ((GDB_MULTI_ARCH
>= 1)
643 && (gdbarch
->frame_chain_valid
== 0))
644 internal_error ("gdbarch: verify_gdbarch: frame_chain_valid invalid");
645 if ((GDB_MULTI_ARCH
>= 2)
646 && (gdbarch
->frame_saved_pc
== 0))
647 internal_error ("gdbarch: verify_gdbarch: frame_saved_pc invalid");
648 if ((GDB_MULTI_ARCH
>= 2)
649 && (gdbarch
->frame_args_address
== 0))
650 internal_error ("gdbarch: verify_gdbarch: frame_args_address invalid");
651 if ((GDB_MULTI_ARCH
>= 2)
652 && (gdbarch
->frame_locals_address
== 0))
653 internal_error ("gdbarch: verify_gdbarch: frame_locals_address invalid");
654 if ((GDB_MULTI_ARCH
>= 2)
655 && (gdbarch
->saved_pc_after_call
== 0))
656 internal_error ("gdbarch: verify_gdbarch: saved_pc_after_call invalid");
657 if ((GDB_MULTI_ARCH
>= 2)
658 && (gdbarch
->frame_num_args
== 0))
659 internal_error ("gdbarch: verify_gdbarch: frame_num_args invalid");
660 /* Skip verify of stack_align, has predicate */
661 /* Skip verify of extra_stack_alignment_needed, invalid_p == 0 */
662 /* Skip verify of reg_struct_has_addr, has predicate */
663 /* Skip verify of save_dummy_frame_tos, has predicate */
664 if (gdbarch
->float_format
== 0)
665 gdbarch
->float_format
= default_float_format (gdbarch
);
666 if (gdbarch
->double_format
== 0)
667 gdbarch
->double_format
= default_double_format (gdbarch
);
668 if (gdbarch
->long_double_format
== 0)
669 gdbarch
->long_double_format
= &floatformat_unknown
;
673 /* Print out the details of the current architecture. */
675 /* NOTE/WARNING: The parameter is called ``current_gdbarch'' so that it
676 just happens to match the global variable ``current_gdbarch''. That
677 way macros refering to that variable get the local and not the global
678 version - ulgh. Once everything is parameterised with gdbarch, this
682 gdbarch_dump (struct gdbarch
*gdbarch
, struct ui_file
*file
)
684 fprintf_unfiltered (file
,
685 "gdbarch_dump: GDB_MULTI_ARCH = %d\n",
687 #ifdef TARGET_ARCHITECTURE
688 fprintf_unfiltered (file
,
689 "gdbarch_dump: TARGET_ARCHITECTURE # %s\n",
690 XSTRING (TARGET_ARCHITECTURE
));
692 #ifdef TARGET_BYTE_ORDER
693 fprintf_unfiltered (file
,
694 "gdbarch_dump: TARGET_BYTE_ORDER # %s\n",
695 XSTRING (TARGET_BYTE_ORDER
));
697 #ifdef TARGET_SHORT_BIT
698 fprintf_unfiltered (file
,
699 "gdbarch_dump: TARGET_SHORT_BIT # %s\n",
700 XSTRING (TARGET_SHORT_BIT
));
702 #ifdef TARGET_INT_BIT
703 fprintf_unfiltered (file
,
704 "gdbarch_dump: TARGET_INT_BIT # %s\n",
705 XSTRING (TARGET_INT_BIT
));
707 #ifdef TARGET_LONG_BIT
708 fprintf_unfiltered (file
,
709 "gdbarch_dump: TARGET_LONG_BIT # %s\n",
710 XSTRING (TARGET_LONG_BIT
));
712 #ifdef TARGET_LONG_LONG_BIT
713 fprintf_unfiltered (file
,
714 "gdbarch_dump: TARGET_LONG_LONG_BIT # %s\n",
715 XSTRING (TARGET_LONG_LONG_BIT
));
717 #ifdef TARGET_FLOAT_BIT
718 fprintf_unfiltered (file
,
719 "gdbarch_dump: TARGET_FLOAT_BIT # %s\n",
720 XSTRING (TARGET_FLOAT_BIT
));
722 #ifdef TARGET_DOUBLE_BIT
723 fprintf_unfiltered (file
,
724 "gdbarch_dump: TARGET_DOUBLE_BIT # %s\n",
725 XSTRING (TARGET_DOUBLE_BIT
));
727 #ifdef TARGET_LONG_DOUBLE_BIT
728 fprintf_unfiltered (file
,
729 "gdbarch_dump: TARGET_LONG_DOUBLE_BIT # %s\n",
730 XSTRING (TARGET_LONG_DOUBLE_BIT
));
732 #ifdef TARGET_PTR_BIT
733 fprintf_unfiltered (file
,
734 "gdbarch_dump: TARGET_PTR_BIT # %s\n",
735 XSTRING (TARGET_PTR_BIT
));
737 #ifdef TARGET_BFD_VMA_BIT
738 fprintf_unfiltered (file
,
739 "gdbarch_dump: TARGET_BFD_VMA_BIT # %s\n",
740 XSTRING (TARGET_BFD_VMA_BIT
));
743 fprintf_unfiltered (file
,
744 "gdbarch_dump: IEEE_FLOAT # %s\n",
745 XSTRING (IEEE_FLOAT
));
747 #ifdef TARGET_READ_PC
748 fprintf_unfiltered (file
,
749 "gdbarch_dump: %s # %s\n",
750 "TARGET_READ_PC(pid)",
751 XSTRING (TARGET_READ_PC (pid
)));
753 #if defined (TARGET_WRITE_PC) && GDB_MULTI_ARCH
754 /* Macro might contain `[{}]' when not multi-arch */
755 fprintf_unfiltered (file
,
756 "gdbarch_dump: %s # %s\n",
757 "TARGET_WRITE_PC(val, pid)",
758 XSTRING (TARGET_WRITE_PC (val
, pid
)));
760 #ifdef TARGET_READ_FP
761 fprintf_unfiltered (file
,
762 "gdbarch_dump: %s # %s\n",
764 XSTRING (TARGET_READ_FP ()));
766 #if defined (TARGET_WRITE_FP) && GDB_MULTI_ARCH
767 /* Macro might contain `[{}]' when not multi-arch */
768 fprintf_unfiltered (file
,
769 "gdbarch_dump: %s # %s\n",
770 "TARGET_WRITE_FP(val)",
771 XSTRING (TARGET_WRITE_FP (val
)));
773 #ifdef TARGET_READ_SP
774 fprintf_unfiltered (file
,
775 "gdbarch_dump: %s # %s\n",
777 XSTRING (TARGET_READ_SP ()));
779 #if defined (TARGET_WRITE_SP) && GDB_MULTI_ARCH
780 /* Macro might contain `[{}]' when not multi-arch */
781 fprintf_unfiltered (file
,
782 "gdbarch_dump: %s # %s\n",
783 "TARGET_WRITE_SP(val)",
784 XSTRING (TARGET_WRITE_SP (val
)));
787 fprintf_unfiltered (file
,
788 "gdbarch_dump: NUM_REGS # %s\n",
791 #ifdef NUM_PSEUDO_REGS
792 fprintf_unfiltered (file
,
793 "gdbarch_dump: NUM_PSEUDO_REGS # %s\n",
794 XSTRING (NUM_PSEUDO_REGS
));
797 fprintf_unfiltered (file
,
798 "gdbarch_dump: SP_REGNUM # %s\n",
799 XSTRING (SP_REGNUM
));
802 fprintf_unfiltered (file
,
803 "gdbarch_dump: FP_REGNUM # %s\n",
804 XSTRING (FP_REGNUM
));
807 fprintf_unfiltered (file
,
808 "gdbarch_dump: PC_REGNUM # %s\n",
809 XSTRING (PC_REGNUM
));
812 fprintf_unfiltered (file
,
813 "gdbarch_dump: FP0_REGNUM # %s\n",
814 XSTRING (FP0_REGNUM
));
817 fprintf_unfiltered (file
,
818 "gdbarch_dump: NPC_REGNUM # %s\n",
819 XSTRING (NPC_REGNUM
));
822 fprintf_unfiltered (file
,
823 "gdbarch_dump: NNPC_REGNUM # %s\n",
824 XSTRING (NNPC_REGNUM
));
827 fprintf_unfiltered (file
,
828 "gdbarch_dump: %s # %s\n",
829 "REGISTER_NAME(regnr)",
830 XSTRING (REGISTER_NAME (regnr
)));
833 fprintf_unfiltered (file
,
834 "gdbarch_dump: REGISTER_SIZE # %s\n",
835 XSTRING (REGISTER_SIZE
));
837 #ifdef REGISTER_BYTES
838 fprintf_unfiltered (file
,
839 "gdbarch_dump: REGISTER_BYTES # %s\n",
840 XSTRING (REGISTER_BYTES
));
843 fprintf_unfiltered (file
,
844 "gdbarch_dump: %s # %s\n",
845 "REGISTER_BYTE(reg_nr)",
846 XSTRING (REGISTER_BYTE (reg_nr
)));
848 #ifdef REGISTER_RAW_SIZE
849 fprintf_unfiltered (file
,
850 "gdbarch_dump: %s # %s\n",
851 "REGISTER_RAW_SIZE(reg_nr)",
852 XSTRING (REGISTER_RAW_SIZE (reg_nr
)));
854 #ifdef MAX_REGISTER_RAW_SIZE
855 fprintf_unfiltered (file
,
856 "gdbarch_dump: MAX_REGISTER_RAW_SIZE # %s\n",
857 XSTRING (MAX_REGISTER_RAW_SIZE
));
859 #ifdef REGISTER_VIRTUAL_SIZE
860 fprintf_unfiltered (file
,
861 "gdbarch_dump: %s # %s\n",
862 "REGISTER_VIRTUAL_SIZE(reg_nr)",
863 XSTRING (REGISTER_VIRTUAL_SIZE (reg_nr
)));
865 #ifdef MAX_REGISTER_VIRTUAL_SIZE
866 fprintf_unfiltered (file
,
867 "gdbarch_dump: MAX_REGISTER_VIRTUAL_SIZE # %s\n",
868 XSTRING (MAX_REGISTER_VIRTUAL_SIZE
));
870 #ifdef REGISTER_VIRTUAL_TYPE
871 fprintf_unfiltered (file
,
872 "gdbarch_dump: %s # %s\n",
873 "REGISTER_VIRTUAL_TYPE(reg_nr)",
874 XSTRING (REGISTER_VIRTUAL_TYPE (reg_nr
)));
876 #if defined (DO_REGISTERS_INFO) && GDB_MULTI_ARCH
877 /* Macro might contain `[{}]' when not multi-arch */
878 fprintf_unfiltered (file
,
879 "gdbarch_dump: %s # %s\n",
880 "DO_REGISTERS_INFO(reg_nr, fpregs)",
881 XSTRING (DO_REGISTERS_INFO (reg_nr
, fpregs
)));
883 #ifdef REGISTER_SIM_REGNO
884 fprintf_unfiltered (file
,
885 "gdbarch_dump: %s # %s\n",
886 "REGISTER_SIM_REGNO(reg_nr)",
887 XSTRING (REGISTER_SIM_REGNO (reg_nr
)));
889 #ifdef USE_GENERIC_DUMMY_FRAMES
890 fprintf_unfiltered (file
,
891 "gdbarch_dump: USE_GENERIC_DUMMY_FRAMES # %s\n",
892 XSTRING (USE_GENERIC_DUMMY_FRAMES
));
894 #ifdef CALL_DUMMY_LOCATION
895 fprintf_unfiltered (file
,
896 "gdbarch_dump: CALL_DUMMY_LOCATION # %s\n",
897 XSTRING (CALL_DUMMY_LOCATION
));
899 #ifdef CALL_DUMMY_ADDRESS
900 fprintf_unfiltered (file
,
901 "gdbarch_dump: %s # %s\n",
902 "CALL_DUMMY_ADDRESS()",
903 XSTRING (CALL_DUMMY_ADDRESS ()));
905 #ifdef CALL_DUMMY_START_OFFSET
906 fprintf_unfiltered (file
,
907 "gdbarch_dump: CALL_DUMMY_START_OFFSET # %s\n",
908 XSTRING (CALL_DUMMY_START_OFFSET
));
910 #ifdef CALL_DUMMY_BREAKPOINT_OFFSET
911 fprintf_unfiltered (file
,
912 "gdbarch_dump: CALL_DUMMY_BREAKPOINT_OFFSET # %s\n",
913 XSTRING (CALL_DUMMY_BREAKPOINT_OFFSET
));
915 #ifdef CALL_DUMMY_BREAKPOINT_OFFSET_P
916 fprintf_unfiltered (file
,
917 "gdbarch_dump: CALL_DUMMY_BREAKPOINT_OFFSET_P # %s\n",
918 XSTRING (CALL_DUMMY_BREAKPOINT_OFFSET_P
));
920 #ifdef CALL_DUMMY_LENGTH
921 fprintf_unfiltered (file
,
922 "gdbarch_dump: CALL_DUMMY_LENGTH # %s\n",
923 XSTRING (CALL_DUMMY_LENGTH
));
925 #ifdef PC_IN_CALL_DUMMY
926 fprintf_unfiltered (file
,
927 "gdbarch_dump: %s # %s\n",
928 "PC_IN_CALL_DUMMY(pc, sp, frame_address)",
929 XSTRING (PC_IN_CALL_DUMMY (pc
, sp
, frame_address
)));
932 fprintf_unfiltered (file
,
933 "gdbarch_dump: CALL_DUMMY_P # %s\n",
934 XSTRING (CALL_DUMMY_P
));
936 #ifdef CALL_DUMMY_WORDS
937 fprintf_unfiltered (file
,
938 "gdbarch_dump: CALL_DUMMY_WORDS # %s\n",
939 XSTRING (CALL_DUMMY_WORDS
));
941 #ifdef SIZEOF_CALL_DUMMY_WORDS
942 fprintf_unfiltered (file
,
943 "gdbarch_dump: SIZEOF_CALL_DUMMY_WORDS # %s\n",
944 XSTRING (SIZEOF_CALL_DUMMY_WORDS
));
946 #ifdef CALL_DUMMY_STACK_ADJUST_P
947 fprintf_unfiltered (file
,
948 "gdbarch_dump: CALL_DUMMY_STACK_ADJUST_P # %s\n",
949 XSTRING (CALL_DUMMY_STACK_ADJUST_P
));
951 #ifdef CALL_DUMMY_STACK_ADJUST
952 fprintf_unfiltered (file
,
953 "gdbarch_dump: CALL_DUMMY_STACK_ADJUST # %s\n",
954 XSTRING (CALL_DUMMY_STACK_ADJUST
));
956 #if defined (FIX_CALL_DUMMY) && GDB_MULTI_ARCH
957 /* Macro might contain `[{}]' when not multi-arch */
958 fprintf_unfiltered (file
,
959 "gdbarch_dump: %s # %s\n",
960 "FIX_CALL_DUMMY(dummy, pc, fun, nargs, args, type, gcc_p)",
961 XSTRING (FIX_CALL_DUMMY (dummy
, pc
, fun
, nargs
, args
, type
, gcc_p
)));
963 #ifdef BELIEVE_PCC_PROMOTION
964 fprintf_unfiltered (file
,
965 "gdbarch_dump: BELIEVE_PCC_PROMOTION # %s\n",
966 XSTRING (BELIEVE_PCC_PROMOTION
));
968 #ifdef BELIEVE_PCC_PROMOTION_TYPE
969 fprintf_unfiltered (file
,
970 "gdbarch_dump: BELIEVE_PCC_PROMOTION_TYPE # %s\n",
971 XSTRING (BELIEVE_PCC_PROMOTION_TYPE
));
973 #ifdef COERCE_FLOAT_TO_DOUBLE
974 fprintf_unfiltered (file
,
975 "gdbarch_dump: %s # %s\n",
976 "COERCE_FLOAT_TO_DOUBLE(formal, actual)",
977 XSTRING (COERCE_FLOAT_TO_DOUBLE (formal
, actual
)));
979 #if defined (GET_SAVED_REGISTER) && GDB_MULTI_ARCH
980 /* Macro might contain `[{}]' when not multi-arch */
981 fprintf_unfiltered (file
,
982 "gdbarch_dump: %s # %s\n",
983 "GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval)",
984 XSTRING (GET_SAVED_REGISTER (raw_buffer
, optimized
, addrp
, frame
, regnum
, lval
)));
986 #ifdef REGISTER_CONVERTIBLE
987 fprintf_unfiltered (file
,
988 "gdbarch_dump: %s # %s\n",
989 "REGISTER_CONVERTIBLE(nr)",
990 XSTRING (REGISTER_CONVERTIBLE (nr
)));
992 #if defined (REGISTER_CONVERT_TO_VIRTUAL) && GDB_MULTI_ARCH
993 /* Macro might contain `[{}]' when not multi-arch */
994 fprintf_unfiltered (file
,
995 "gdbarch_dump: %s # %s\n",
996 "REGISTER_CONVERT_TO_VIRTUAL(regnum, type, from, to)",
997 XSTRING (REGISTER_CONVERT_TO_VIRTUAL (regnum
, type
, from
, to
)));
999 #if defined (REGISTER_CONVERT_TO_RAW) && GDB_MULTI_ARCH
1000 /* Macro might contain `[{}]' when not multi-arch */
1001 fprintf_unfiltered (file
,
1002 "gdbarch_dump: %s # %s\n",
1003 "REGISTER_CONVERT_TO_RAW(type, regnum, from, to)",
1004 XSTRING (REGISTER_CONVERT_TO_RAW (type
, regnum
, from
, to
)));
1006 #if defined (FETCH_PSEUDO_REGISTER) && GDB_MULTI_ARCH
1007 /* Macro might contain `[{}]' when not multi-arch */
1008 fprintf_unfiltered (file
,
1009 "gdbarch_dump: %s # %s\n",
1010 "FETCH_PSEUDO_REGISTER(regnum)",
1011 XSTRING (FETCH_PSEUDO_REGISTER (regnum
)));
1013 #if defined (STORE_PSEUDO_REGISTER) && GDB_MULTI_ARCH
1014 /* Macro might contain `[{}]' when not multi-arch */
1015 fprintf_unfiltered (file
,
1016 "gdbarch_dump: %s # %s\n",
1017 "STORE_PSEUDO_REGISTER(regnum)",
1018 XSTRING (STORE_PSEUDO_REGISTER (regnum
)));
1020 #ifdef POINTER_TO_ADDRESS
1021 fprintf_unfiltered (file
,
1022 "gdbarch_dump: %s # %s\n",
1023 "POINTER_TO_ADDRESS(type, buf)",
1024 XSTRING (POINTER_TO_ADDRESS (type
, buf
)));
1026 #if defined (ADDRESS_TO_POINTER) && GDB_MULTI_ARCH
1027 /* Macro might contain `[{}]' when not multi-arch */
1028 fprintf_unfiltered (file
,
1029 "gdbarch_dump: %s # %s\n",
1030 "ADDRESS_TO_POINTER(type, buf, addr)",
1031 XSTRING (ADDRESS_TO_POINTER (type
, buf
, addr
)));
1033 #ifdef RETURN_VALUE_ON_STACK
1034 fprintf_unfiltered (file
,
1035 "gdbarch_dump: %s # %s\n",
1036 "RETURN_VALUE_ON_STACK(type)",
1037 XSTRING (RETURN_VALUE_ON_STACK (type
)));
1039 #if defined (EXTRACT_RETURN_VALUE) && GDB_MULTI_ARCH
1040 /* Macro might contain `[{}]' when not multi-arch */
1041 fprintf_unfiltered (file
,
1042 "gdbarch_dump: %s # %s\n",
1043 "EXTRACT_RETURN_VALUE(type, regbuf, valbuf)",
1044 XSTRING (EXTRACT_RETURN_VALUE (type
, regbuf
, valbuf
)));
1046 #ifdef PUSH_ARGUMENTS
1047 fprintf_unfiltered (file
,
1048 "gdbarch_dump: %s # %s\n",
1049 "PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr)",
1050 XSTRING (PUSH_ARGUMENTS (nargs
, args
, sp
, struct_return
, struct_addr
)));
1052 #if defined (PUSH_DUMMY_FRAME) && GDB_MULTI_ARCH
1053 /* Macro might contain `[{}]' when not multi-arch */
1054 fprintf_unfiltered (file
,
1055 "gdbarch_dump: %s # %s\n",
1056 "PUSH_DUMMY_FRAME(-)",
1057 XSTRING (PUSH_DUMMY_FRAME (-)));
1059 #ifdef PUSH_RETURN_ADDRESS
1060 fprintf_unfiltered (file
,
1061 "gdbarch_dump: %s # %s\n",
1062 "PUSH_RETURN_ADDRESS(pc, sp)",
1063 XSTRING (PUSH_RETURN_ADDRESS (pc
, sp
)));
1065 #if defined (POP_FRAME) && GDB_MULTI_ARCH
1066 /* Macro might contain `[{}]' when not multi-arch */
1067 fprintf_unfiltered (file
,
1068 "gdbarch_dump: %s # %s\n",
1070 XSTRING (POP_FRAME (-)));
1072 #ifdef D10V_MAKE_DADDR
1073 fprintf_unfiltered (file
,
1074 "gdbarch_dump: %s # %s\n",
1075 "D10V_MAKE_DADDR(x)",
1076 XSTRING (D10V_MAKE_DADDR (x
)));
1078 #ifdef D10V_MAKE_IADDR
1079 fprintf_unfiltered (file
,
1080 "gdbarch_dump: %s # %s\n",
1081 "D10V_MAKE_IADDR(x)",
1082 XSTRING (D10V_MAKE_IADDR (x
)));
1085 fprintf_unfiltered (file
,
1086 "gdbarch_dump: %s # %s\n",
1088 XSTRING (D10V_DADDR_P (x
)));
1091 fprintf_unfiltered (file
,
1092 "gdbarch_dump: %s # %s\n",
1094 XSTRING (D10V_IADDR_P (x
)));
1096 #ifdef D10V_CONVERT_DADDR_TO_RAW
1097 fprintf_unfiltered (file
,
1098 "gdbarch_dump: %s # %s\n",
1099 "D10V_CONVERT_DADDR_TO_RAW(x)",
1100 XSTRING (D10V_CONVERT_DADDR_TO_RAW (x
)));
1102 #ifdef D10V_CONVERT_IADDR_TO_RAW
1103 fprintf_unfiltered (file
,
1104 "gdbarch_dump: %s # %s\n",
1105 "D10V_CONVERT_IADDR_TO_RAW(x)",
1106 XSTRING (D10V_CONVERT_IADDR_TO_RAW (x
)));
1108 #if defined (STORE_STRUCT_RETURN) && GDB_MULTI_ARCH
1109 /* Macro might contain `[{}]' when not multi-arch */
1110 fprintf_unfiltered (file
,
1111 "gdbarch_dump: %s # %s\n",
1112 "STORE_STRUCT_RETURN(addr, sp)",
1113 XSTRING (STORE_STRUCT_RETURN (addr
, sp
)));
1115 #if defined (STORE_RETURN_VALUE) && GDB_MULTI_ARCH
1116 /* Macro might contain `[{}]' when not multi-arch */
1117 fprintf_unfiltered (file
,
1118 "gdbarch_dump: %s # %s\n",
1119 "STORE_RETURN_VALUE(type, valbuf)",
1120 XSTRING (STORE_RETURN_VALUE (type
, valbuf
)));
1122 #ifdef EXTRACT_STRUCT_VALUE_ADDRESS
1123 fprintf_unfiltered (file
,
1124 "gdbarch_dump: %s # %s\n",
1125 "EXTRACT_STRUCT_VALUE_ADDRESS(regbuf)",
1126 XSTRING (EXTRACT_STRUCT_VALUE_ADDRESS (regbuf
)));
1128 #ifdef USE_STRUCT_CONVENTION
1129 fprintf_unfiltered (file
,
1130 "gdbarch_dump: %s # %s\n",
1131 "USE_STRUCT_CONVENTION(gcc_p, value_type)",
1132 XSTRING (USE_STRUCT_CONVENTION (gcc_p
, value_type
)));
1134 #if defined (FRAME_INIT_SAVED_REGS) && GDB_MULTI_ARCH
1135 /* Macro might contain `[{}]' when not multi-arch */
1136 fprintf_unfiltered (file
,
1137 "gdbarch_dump: %s # %s\n",
1138 "FRAME_INIT_SAVED_REGS(frame)",
1139 XSTRING (FRAME_INIT_SAVED_REGS (frame
)));
1141 #if defined (INIT_EXTRA_FRAME_INFO) && GDB_MULTI_ARCH
1142 /* Macro might contain `[{}]' when not multi-arch */
1143 fprintf_unfiltered (file
,
1144 "gdbarch_dump: %s # %s\n",
1145 "INIT_EXTRA_FRAME_INFO(fromleaf, frame)",
1146 XSTRING (INIT_EXTRA_FRAME_INFO (fromleaf
, frame
)));
1148 #ifdef SKIP_PROLOGUE
1149 fprintf_unfiltered (file
,
1150 "gdbarch_dump: %s # %s\n",
1151 "SKIP_PROLOGUE(ip)",
1152 XSTRING (SKIP_PROLOGUE (ip
)));
1154 #ifdef PROLOGUE_FRAMELESS_P
1155 fprintf_unfiltered (file
,
1156 "gdbarch_dump: %s # %s\n",
1157 "PROLOGUE_FRAMELESS_P(ip)",
1158 XSTRING (PROLOGUE_FRAMELESS_P (ip
)));
1161 fprintf_unfiltered (file
,
1162 "gdbarch_dump: %s # %s\n",
1163 "INNER_THAN(lhs, rhs)",
1164 XSTRING (INNER_THAN (lhs
, rhs
)));
1166 #ifdef BREAKPOINT_FROM_PC
1167 fprintf_unfiltered (file
,
1168 "gdbarch_dump: %s # %s\n",
1169 "BREAKPOINT_FROM_PC(pcptr, lenptr)",
1170 XSTRING (BREAKPOINT_FROM_PC (pcptr
, lenptr
)));
1172 #ifdef MEMORY_INSERT_BREAKPOINT
1173 fprintf_unfiltered (file
,
1174 "gdbarch_dump: %s # %s\n",
1175 "MEMORY_INSERT_BREAKPOINT(addr, contents_cache)",
1176 XSTRING (MEMORY_INSERT_BREAKPOINT (addr
, contents_cache
)));
1178 #ifdef MEMORY_REMOVE_BREAKPOINT
1179 fprintf_unfiltered (file
,
1180 "gdbarch_dump: %s # %s\n",
1181 "MEMORY_REMOVE_BREAKPOINT(addr, contents_cache)",
1182 XSTRING (MEMORY_REMOVE_BREAKPOINT (addr
, contents_cache
)));
1184 #ifdef DECR_PC_AFTER_BREAK
1185 fprintf_unfiltered (file
,
1186 "gdbarch_dump: DECR_PC_AFTER_BREAK # %s\n",
1187 XSTRING (DECR_PC_AFTER_BREAK
));
1189 #ifdef FUNCTION_START_OFFSET
1190 fprintf_unfiltered (file
,
1191 "gdbarch_dump: FUNCTION_START_OFFSET # %s\n",
1192 XSTRING (FUNCTION_START_OFFSET
));
1194 #if defined (REMOTE_TRANSLATE_XFER_ADDRESS) && GDB_MULTI_ARCH
1195 /* Macro might contain `[{}]' when not multi-arch */
1196 fprintf_unfiltered (file
,
1197 "gdbarch_dump: %s # %s\n",
1198 "REMOTE_TRANSLATE_XFER_ADDRESS(gdb_addr, gdb_len, rem_addr, rem_len)",
1199 XSTRING (REMOTE_TRANSLATE_XFER_ADDRESS (gdb_addr
, gdb_len
, rem_addr
, rem_len
)));
1201 #ifdef FRAME_ARGS_SKIP
1202 fprintf_unfiltered (file
,
1203 "gdbarch_dump: FRAME_ARGS_SKIP # %s\n",
1204 XSTRING (FRAME_ARGS_SKIP
));
1206 #ifdef FRAMELESS_FUNCTION_INVOCATION
1207 fprintf_unfiltered (file
,
1208 "gdbarch_dump: %s # %s\n",
1209 "FRAMELESS_FUNCTION_INVOCATION(fi)",
1210 XSTRING (FRAMELESS_FUNCTION_INVOCATION (fi
)));
1213 fprintf_unfiltered (file
,
1214 "gdbarch_dump: %s # %s\n",
1215 "FRAME_CHAIN(frame)",
1216 XSTRING (FRAME_CHAIN (frame
)));
1218 #ifdef FRAME_CHAIN_VALID
1219 fprintf_unfiltered (file
,
1220 "gdbarch_dump: %s # %s\n",
1221 "FRAME_CHAIN_VALID(chain, thisframe)",
1222 XSTRING (FRAME_CHAIN_VALID (chain
, thisframe
)));
1224 #ifdef FRAME_SAVED_PC
1225 fprintf_unfiltered (file
,
1226 "gdbarch_dump: %s # %s\n",
1227 "FRAME_SAVED_PC(fi)",
1228 XSTRING (FRAME_SAVED_PC (fi
)));
1230 #ifdef FRAME_ARGS_ADDRESS
1231 fprintf_unfiltered (file
,
1232 "gdbarch_dump: %s # %s\n",
1233 "FRAME_ARGS_ADDRESS(fi)",
1234 XSTRING (FRAME_ARGS_ADDRESS (fi
)));
1236 #ifdef FRAME_LOCALS_ADDRESS
1237 fprintf_unfiltered (file
,
1238 "gdbarch_dump: %s # %s\n",
1239 "FRAME_LOCALS_ADDRESS(fi)",
1240 XSTRING (FRAME_LOCALS_ADDRESS (fi
)));
1242 #ifdef SAVED_PC_AFTER_CALL
1243 fprintf_unfiltered (file
,
1244 "gdbarch_dump: %s # %s\n",
1245 "SAVED_PC_AFTER_CALL(frame)",
1246 XSTRING (SAVED_PC_AFTER_CALL (frame
)));
1248 #ifdef FRAME_NUM_ARGS
1249 fprintf_unfiltered (file
,
1250 "gdbarch_dump: %s # %s\n",
1251 "FRAME_NUM_ARGS(frame)",
1252 XSTRING (FRAME_NUM_ARGS (frame
)));
1255 fprintf_unfiltered (file
,
1256 "gdbarch_dump: %s # %s\n",
1258 XSTRING (STACK_ALIGN (sp
)));
1260 #ifdef EXTRA_STACK_ALIGNMENT_NEEDED
1261 fprintf_unfiltered (file
,
1262 "gdbarch_dump: EXTRA_STACK_ALIGNMENT_NEEDED # %s\n",
1263 XSTRING (EXTRA_STACK_ALIGNMENT_NEEDED
));
1265 #ifdef REG_STRUCT_HAS_ADDR
1266 fprintf_unfiltered (file
,
1267 "gdbarch_dump: %s # %s\n",
1268 "REG_STRUCT_HAS_ADDR(gcc_p, type)",
1269 XSTRING (REG_STRUCT_HAS_ADDR (gcc_p
, type
)));
1271 #if defined (SAVE_DUMMY_FRAME_TOS) && GDB_MULTI_ARCH
1272 /* Macro might contain `[{}]' when not multi-arch */
1273 fprintf_unfiltered (file
,
1274 "gdbarch_dump: %s # %s\n",
1275 "SAVE_DUMMY_FRAME_TOS(sp)",
1276 XSTRING (SAVE_DUMMY_FRAME_TOS (sp
)));
1278 #ifdef TARGET_FLOAT_FORMAT
1279 fprintf_unfiltered (file
,
1280 "gdbarch_dump: TARGET_FLOAT_FORMAT # %s\n",
1281 XSTRING (TARGET_FLOAT_FORMAT
));
1283 #ifdef TARGET_DOUBLE_FORMAT
1284 fprintf_unfiltered (file
,
1285 "gdbarch_dump: TARGET_DOUBLE_FORMAT # %s\n",
1286 XSTRING (TARGET_DOUBLE_FORMAT
));
1288 #ifdef TARGET_LONG_DOUBLE_FORMAT
1289 fprintf_unfiltered (file
,
1290 "gdbarch_dump: TARGET_LONG_DOUBLE_FORMAT # %s\n",
1291 XSTRING (TARGET_LONG_DOUBLE_FORMAT
));
1293 #ifdef TARGET_ARCHITECTURE
1294 if (TARGET_ARCHITECTURE
!= NULL
)
1295 fprintf_unfiltered (file
,
1296 "gdbarch_dump: TARGET_ARCHITECTURE = %s\n",
1297 TARGET_ARCHITECTURE
->printable_name
);
1299 #ifdef TARGET_BYTE_ORDER
1300 fprintf_unfiltered (file
,
1301 "gdbarch_dump: TARGET_BYTE_ORDER = %ld\n",
1302 (long) TARGET_BYTE_ORDER
);
1304 #ifdef TARGET_SHORT_BIT
1305 fprintf_unfiltered (file
,
1306 "gdbarch_dump: TARGET_SHORT_BIT = %ld\n",
1307 (long) TARGET_SHORT_BIT
);
1309 #ifdef TARGET_INT_BIT
1310 fprintf_unfiltered (file
,
1311 "gdbarch_dump: TARGET_INT_BIT = %ld\n",
1312 (long) TARGET_INT_BIT
);
1314 #ifdef TARGET_LONG_BIT
1315 fprintf_unfiltered (file
,
1316 "gdbarch_dump: TARGET_LONG_BIT = %ld\n",
1317 (long) TARGET_LONG_BIT
);
1319 #ifdef TARGET_LONG_LONG_BIT
1320 fprintf_unfiltered (file
,
1321 "gdbarch_dump: TARGET_LONG_LONG_BIT = %ld\n",
1322 (long) TARGET_LONG_LONG_BIT
);
1324 #ifdef TARGET_FLOAT_BIT
1325 fprintf_unfiltered (file
,
1326 "gdbarch_dump: TARGET_FLOAT_BIT = %ld\n",
1327 (long) TARGET_FLOAT_BIT
);
1329 #ifdef TARGET_DOUBLE_BIT
1330 fprintf_unfiltered (file
,
1331 "gdbarch_dump: TARGET_DOUBLE_BIT = %ld\n",
1332 (long) TARGET_DOUBLE_BIT
);
1334 #ifdef TARGET_LONG_DOUBLE_BIT
1335 fprintf_unfiltered (file
,
1336 "gdbarch_dump: TARGET_LONG_DOUBLE_BIT = %ld\n",
1337 (long) TARGET_LONG_DOUBLE_BIT
);
1339 #ifdef TARGET_PTR_BIT
1340 fprintf_unfiltered (file
,
1341 "gdbarch_dump: TARGET_PTR_BIT = %ld\n",
1342 (long) TARGET_PTR_BIT
);
1344 #ifdef TARGET_BFD_VMA_BIT
1345 fprintf_unfiltered (file
,
1346 "gdbarch_dump: TARGET_BFD_VMA_BIT = %ld\n",
1347 (long) TARGET_BFD_VMA_BIT
);
1350 fprintf_unfiltered (file
,
1351 "gdbarch_dump: IEEE_FLOAT = %ld\n",
1354 #ifdef TARGET_READ_PC
1356 fprintf_unfiltered (file
,
1357 "gdbarch_dump: TARGET_READ_PC = 0x%08lx\n",
1358 (long) current_gdbarch
->read_pc
1359 /*TARGET_READ_PC ()*/);
1361 #ifdef TARGET_WRITE_PC
1363 fprintf_unfiltered (file
,
1364 "gdbarch_dump: TARGET_WRITE_PC = 0x%08lx\n",
1365 (long) current_gdbarch
->write_pc
1366 /*TARGET_WRITE_PC ()*/);
1368 #ifdef TARGET_READ_FP
1370 fprintf_unfiltered (file
,
1371 "gdbarch_dump: TARGET_READ_FP = 0x%08lx\n",
1372 (long) current_gdbarch
->read_fp
1373 /*TARGET_READ_FP ()*/);
1375 #ifdef TARGET_WRITE_FP
1377 fprintf_unfiltered (file
,
1378 "gdbarch_dump: TARGET_WRITE_FP = 0x%08lx\n",
1379 (long) current_gdbarch
->write_fp
1380 /*TARGET_WRITE_FP ()*/);
1382 #ifdef TARGET_READ_SP
1384 fprintf_unfiltered (file
,
1385 "gdbarch_dump: TARGET_READ_SP = 0x%08lx\n",
1386 (long) current_gdbarch
->read_sp
1387 /*TARGET_READ_SP ()*/);
1389 #ifdef TARGET_WRITE_SP
1391 fprintf_unfiltered (file
,
1392 "gdbarch_dump: TARGET_WRITE_SP = 0x%08lx\n",
1393 (long) current_gdbarch
->write_sp
1394 /*TARGET_WRITE_SP ()*/);
1397 fprintf_unfiltered (file
,
1398 "gdbarch_dump: NUM_REGS = %ld\n",
1401 #ifdef NUM_PSEUDO_REGS
1402 fprintf_unfiltered (file
,
1403 "gdbarch_dump: NUM_PSEUDO_REGS = %ld\n",
1404 (long) NUM_PSEUDO_REGS
);
1407 fprintf_unfiltered (file
,
1408 "gdbarch_dump: SP_REGNUM = %ld\n",
1412 fprintf_unfiltered (file
,
1413 "gdbarch_dump: FP_REGNUM = %ld\n",
1417 fprintf_unfiltered (file
,
1418 "gdbarch_dump: PC_REGNUM = %ld\n",
1422 fprintf_unfiltered (file
,
1423 "gdbarch_dump: FP0_REGNUM = %ld\n",
1427 fprintf_unfiltered (file
,
1428 "gdbarch_dump: NPC_REGNUM = %ld\n",
1432 fprintf_unfiltered (file
,
1433 "gdbarch_dump: NNPC_REGNUM = %ld\n",
1434 (long) NNPC_REGNUM
);
1436 #ifdef REGISTER_NAME
1438 fprintf_unfiltered (file
,
1439 "gdbarch_dump: REGISTER_NAME = 0x%08lx\n",
1440 (long) current_gdbarch
->register_name
1441 /*REGISTER_NAME ()*/);
1443 #ifdef REGISTER_SIZE
1444 fprintf_unfiltered (file
,
1445 "gdbarch_dump: REGISTER_SIZE = %ld\n",
1446 (long) REGISTER_SIZE
);
1448 #ifdef REGISTER_BYTES
1449 fprintf_unfiltered (file
,
1450 "gdbarch_dump: REGISTER_BYTES = %ld\n",
1451 (long) REGISTER_BYTES
);
1453 #ifdef REGISTER_BYTE
1455 fprintf_unfiltered (file
,
1456 "gdbarch_dump: REGISTER_BYTE = 0x%08lx\n",
1457 (long) current_gdbarch
->register_byte
1458 /*REGISTER_BYTE ()*/);
1460 #ifdef REGISTER_RAW_SIZE
1462 fprintf_unfiltered (file
,
1463 "gdbarch_dump: REGISTER_RAW_SIZE = 0x%08lx\n",
1464 (long) current_gdbarch
->register_raw_size
1465 /*REGISTER_RAW_SIZE ()*/);
1467 #ifdef MAX_REGISTER_RAW_SIZE
1468 fprintf_unfiltered (file
,
1469 "gdbarch_dump: MAX_REGISTER_RAW_SIZE = %ld\n",
1470 (long) MAX_REGISTER_RAW_SIZE
);
1472 #ifdef REGISTER_VIRTUAL_SIZE
1474 fprintf_unfiltered (file
,
1475 "gdbarch_dump: REGISTER_VIRTUAL_SIZE = 0x%08lx\n",
1476 (long) current_gdbarch
->register_virtual_size
1477 /*REGISTER_VIRTUAL_SIZE ()*/);
1479 #ifdef MAX_REGISTER_VIRTUAL_SIZE
1480 fprintf_unfiltered (file
,
1481 "gdbarch_dump: MAX_REGISTER_VIRTUAL_SIZE = %ld\n",
1482 (long) MAX_REGISTER_VIRTUAL_SIZE
);
1484 #ifdef REGISTER_VIRTUAL_TYPE
1486 fprintf_unfiltered (file
,
1487 "gdbarch_dump: REGISTER_VIRTUAL_TYPE = 0x%08lx\n",
1488 (long) current_gdbarch
->register_virtual_type
1489 /*REGISTER_VIRTUAL_TYPE ()*/);
1491 #ifdef DO_REGISTERS_INFO
1493 fprintf_unfiltered (file
,
1494 "gdbarch_dump: DO_REGISTERS_INFO = 0x%08lx\n",
1495 (long) current_gdbarch
->do_registers_info
1496 /*DO_REGISTERS_INFO ()*/);
1498 #ifdef REGISTER_SIM_REGNO
1500 fprintf_unfiltered (file
,
1501 "gdbarch_dump: REGISTER_SIM_REGNO = 0x%08lx\n",
1502 (long) current_gdbarch
->register_sim_regno
1503 /*REGISTER_SIM_REGNO ()*/);
1505 #ifdef USE_GENERIC_DUMMY_FRAMES
1506 fprintf_unfiltered (file
,
1507 "gdbarch_dump: USE_GENERIC_DUMMY_FRAMES = %ld\n",
1508 (long) USE_GENERIC_DUMMY_FRAMES
);
1510 #ifdef CALL_DUMMY_LOCATION
1511 fprintf_unfiltered (file
,
1512 "gdbarch_dump: CALL_DUMMY_LOCATION = %ld\n",
1513 (long) CALL_DUMMY_LOCATION
);
1515 #ifdef CALL_DUMMY_ADDRESS
1517 fprintf_unfiltered (file
,
1518 "gdbarch_dump: CALL_DUMMY_ADDRESS = 0x%08lx\n",
1519 (long) current_gdbarch
->call_dummy_address
1520 /*CALL_DUMMY_ADDRESS ()*/);
1522 #ifdef CALL_DUMMY_START_OFFSET
1523 fprintf_unfiltered (file
,
1524 "gdbarch_dump: CALL_DUMMY_START_OFFSET = 0x%08lx\n",
1525 (long) CALL_DUMMY_START_OFFSET
);
1527 #ifdef CALL_DUMMY_BREAKPOINT_OFFSET
1528 if (CALL_DUMMY_BREAKPOINT_OFFSET_P
)
1529 fprintf_unfiltered (file
,
1530 "gdbarch_dump: CALL_DUMMY_BREAKPOINT_OFFSET = 0x%08lx\n",
1531 (long) CALL_DUMMY_BREAKPOINT_OFFSET
);
1533 #ifdef CALL_DUMMY_BREAKPOINT_OFFSET_P
1534 fprintf_unfiltered (file
,
1535 "gdbarch_dump: CALL_DUMMY_BREAKPOINT_OFFSET_P = %ld\n",
1536 (long) CALL_DUMMY_BREAKPOINT_OFFSET_P
);
1538 #ifdef CALL_DUMMY_LENGTH
1539 if (CALL_DUMMY_LOCATION
== BEFORE_TEXT_END
|| CALL_DUMMY_LOCATION
== AFTER_TEXT_END
)
1540 fprintf_unfiltered (file
,
1541 "gdbarch_dump: CALL_DUMMY_LENGTH = %ld\n",
1542 (long) CALL_DUMMY_LENGTH
);
1544 #ifdef PC_IN_CALL_DUMMY
1546 fprintf_unfiltered (file
,
1547 "gdbarch_dump: PC_IN_CALL_DUMMY = 0x%08lx\n",
1548 (long) current_gdbarch
->pc_in_call_dummy
1549 /*PC_IN_CALL_DUMMY ()*/);
1552 fprintf_unfiltered (file
,
1553 "gdbarch_dump: CALL_DUMMY_P = %ld\n",
1554 (long) CALL_DUMMY_P
);
1556 #ifdef CALL_DUMMY_WORDS
1557 fprintf_unfiltered (file
,
1558 "gdbarch_dump: CALL_DUMMY_WORDS = 0x%08lx\n",
1559 (long) CALL_DUMMY_WORDS
);
1561 #ifdef SIZEOF_CALL_DUMMY_WORDS
1562 fprintf_unfiltered (file
,
1563 "gdbarch_dump: SIZEOF_CALL_DUMMY_WORDS = 0x%08lx\n",
1564 (long) SIZEOF_CALL_DUMMY_WORDS
);
1566 #ifdef CALL_DUMMY_STACK_ADJUST_P
1567 fprintf_unfiltered (file
,
1568 "gdbarch_dump: CALL_DUMMY_STACK_ADJUST_P = 0x%08lx\n",
1569 (long) CALL_DUMMY_STACK_ADJUST_P
);
1571 #ifdef CALL_DUMMY_STACK_ADJUST
1572 if (CALL_DUMMY_STACK_ADJUST_P
)
1573 fprintf_unfiltered (file
,
1574 "gdbarch_dump: CALL_DUMMY_STACK_ADJUST = 0x%08lx\n",
1575 (long) CALL_DUMMY_STACK_ADJUST
);
1577 #ifdef FIX_CALL_DUMMY
1579 fprintf_unfiltered (file
,
1580 "gdbarch_dump: FIX_CALL_DUMMY = 0x%08lx\n",
1581 (long) current_gdbarch
->fix_call_dummy
1582 /*FIX_CALL_DUMMY ()*/);
1584 #ifdef BELIEVE_PCC_PROMOTION
1585 fprintf_unfiltered (file
,
1586 "gdbarch_dump: BELIEVE_PCC_PROMOTION = %ld\n",
1587 (long) BELIEVE_PCC_PROMOTION
);
1589 #ifdef BELIEVE_PCC_PROMOTION_TYPE
1590 fprintf_unfiltered (file
,
1591 "gdbarch_dump: BELIEVE_PCC_PROMOTION_TYPE = %ld\n",
1592 (long) BELIEVE_PCC_PROMOTION_TYPE
);
1594 #ifdef COERCE_FLOAT_TO_DOUBLE
1596 fprintf_unfiltered (file
,
1597 "gdbarch_dump: COERCE_FLOAT_TO_DOUBLE = 0x%08lx\n",
1598 (long) current_gdbarch
->coerce_float_to_double
1599 /*COERCE_FLOAT_TO_DOUBLE ()*/);
1601 #ifdef GET_SAVED_REGISTER
1603 fprintf_unfiltered (file
,
1604 "gdbarch_dump: GET_SAVED_REGISTER = 0x%08lx\n",
1605 (long) current_gdbarch
->get_saved_register
1606 /*GET_SAVED_REGISTER ()*/);
1608 #ifdef REGISTER_CONVERTIBLE
1610 fprintf_unfiltered (file
,
1611 "gdbarch_dump: REGISTER_CONVERTIBLE = 0x%08lx\n",
1612 (long) current_gdbarch
->register_convertible
1613 /*REGISTER_CONVERTIBLE ()*/);
1615 #ifdef REGISTER_CONVERT_TO_VIRTUAL
1617 fprintf_unfiltered (file
,
1618 "gdbarch_dump: REGISTER_CONVERT_TO_VIRTUAL = 0x%08lx\n",
1619 (long) current_gdbarch
->register_convert_to_virtual
1620 /*REGISTER_CONVERT_TO_VIRTUAL ()*/);
1622 #ifdef REGISTER_CONVERT_TO_RAW
1624 fprintf_unfiltered (file
,
1625 "gdbarch_dump: REGISTER_CONVERT_TO_RAW = 0x%08lx\n",
1626 (long) current_gdbarch
->register_convert_to_raw
1627 /*REGISTER_CONVERT_TO_RAW ()*/);
1629 #ifdef FETCH_PSEUDO_REGISTER
1631 fprintf_unfiltered (file
,
1632 "gdbarch_dump: FETCH_PSEUDO_REGISTER = 0x%08lx\n",
1633 (long) current_gdbarch
->fetch_pseudo_register
1634 /*FETCH_PSEUDO_REGISTER ()*/);
1636 #ifdef STORE_PSEUDO_REGISTER
1638 fprintf_unfiltered (file
,
1639 "gdbarch_dump: STORE_PSEUDO_REGISTER = 0x%08lx\n",
1640 (long) current_gdbarch
->store_pseudo_register
1641 /*STORE_PSEUDO_REGISTER ()*/);
1643 #ifdef POINTER_TO_ADDRESS
1645 fprintf_unfiltered (file
,
1646 "gdbarch_dump: POINTER_TO_ADDRESS = 0x%08lx\n",
1647 (long) current_gdbarch
->pointer_to_address
1648 /*POINTER_TO_ADDRESS ()*/);
1650 #ifdef ADDRESS_TO_POINTER
1652 fprintf_unfiltered (file
,
1653 "gdbarch_dump: ADDRESS_TO_POINTER = 0x%08lx\n",
1654 (long) current_gdbarch
->address_to_pointer
1655 /*ADDRESS_TO_POINTER ()*/);
1657 #ifdef RETURN_VALUE_ON_STACK
1659 fprintf_unfiltered (file
,
1660 "gdbarch_dump: RETURN_VALUE_ON_STACK = 0x%08lx\n",
1661 (long) current_gdbarch
->return_value_on_stack
1662 /*RETURN_VALUE_ON_STACK ()*/);
1664 #ifdef EXTRACT_RETURN_VALUE
1666 fprintf_unfiltered (file
,
1667 "gdbarch_dump: EXTRACT_RETURN_VALUE = 0x%08lx\n",
1668 (long) current_gdbarch
->extract_return_value
1669 /*EXTRACT_RETURN_VALUE ()*/);
1671 #ifdef PUSH_ARGUMENTS
1673 fprintf_unfiltered (file
,
1674 "gdbarch_dump: PUSH_ARGUMENTS = 0x%08lx\n",
1675 (long) current_gdbarch
->push_arguments
1676 /*PUSH_ARGUMENTS ()*/);
1678 #ifdef PUSH_DUMMY_FRAME
1680 fprintf_unfiltered (file
,
1681 "gdbarch_dump: PUSH_DUMMY_FRAME = 0x%08lx\n",
1682 (long) current_gdbarch
->push_dummy_frame
1683 /*PUSH_DUMMY_FRAME ()*/);
1685 #ifdef PUSH_RETURN_ADDRESS
1687 fprintf_unfiltered (file
,
1688 "gdbarch_dump: PUSH_RETURN_ADDRESS = 0x%08lx\n",
1689 (long) current_gdbarch
->push_return_address
1690 /*PUSH_RETURN_ADDRESS ()*/);
1694 fprintf_unfiltered (file
,
1695 "gdbarch_dump: POP_FRAME = 0x%08lx\n",
1696 (long) current_gdbarch
->pop_frame
1699 #ifdef D10V_MAKE_DADDR
1701 fprintf_unfiltered (file
,
1702 "gdbarch_dump: D10V_MAKE_DADDR = 0x%08lx\n",
1703 (long) current_gdbarch
->d10v_make_daddr
1704 /*D10V_MAKE_DADDR ()*/);
1706 #ifdef D10V_MAKE_IADDR
1708 fprintf_unfiltered (file
,
1709 "gdbarch_dump: D10V_MAKE_IADDR = 0x%08lx\n",
1710 (long) current_gdbarch
->d10v_make_iaddr
1711 /*D10V_MAKE_IADDR ()*/);
1715 fprintf_unfiltered (file
,
1716 "gdbarch_dump: D10V_DADDR_P = 0x%08lx\n",
1717 (long) current_gdbarch
->d10v_daddr_p
1718 /*D10V_DADDR_P ()*/);
1722 fprintf_unfiltered (file
,
1723 "gdbarch_dump: D10V_IADDR_P = 0x%08lx\n",
1724 (long) current_gdbarch
->d10v_iaddr_p
1725 /*D10V_IADDR_P ()*/);
1727 #ifdef D10V_CONVERT_DADDR_TO_RAW
1729 fprintf_unfiltered (file
,
1730 "gdbarch_dump: D10V_CONVERT_DADDR_TO_RAW = 0x%08lx\n",
1731 (long) current_gdbarch
->d10v_convert_daddr_to_raw
1732 /*D10V_CONVERT_DADDR_TO_RAW ()*/);
1734 #ifdef D10V_CONVERT_IADDR_TO_RAW
1736 fprintf_unfiltered (file
,
1737 "gdbarch_dump: D10V_CONVERT_IADDR_TO_RAW = 0x%08lx\n",
1738 (long) current_gdbarch
->d10v_convert_iaddr_to_raw
1739 /*D10V_CONVERT_IADDR_TO_RAW ()*/);
1741 #ifdef STORE_STRUCT_RETURN
1743 fprintf_unfiltered (file
,
1744 "gdbarch_dump: STORE_STRUCT_RETURN = 0x%08lx\n",
1745 (long) current_gdbarch
->store_struct_return
1746 /*STORE_STRUCT_RETURN ()*/);
1748 #ifdef STORE_RETURN_VALUE
1750 fprintf_unfiltered (file
,
1751 "gdbarch_dump: STORE_RETURN_VALUE = 0x%08lx\n",
1752 (long) current_gdbarch
->store_return_value
1753 /*STORE_RETURN_VALUE ()*/);
1755 #ifdef EXTRACT_STRUCT_VALUE_ADDRESS
1757 fprintf_unfiltered (file
,
1758 "gdbarch_dump: EXTRACT_STRUCT_VALUE_ADDRESS = 0x%08lx\n",
1759 (long) current_gdbarch
->extract_struct_value_address
1760 /*EXTRACT_STRUCT_VALUE_ADDRESS ()*/);
1762 #ifdef USE_STRUCT_CONVENTION
1764 fprintf_unfiltered (file
,
1765 "gdbarch_dump: USE_STRUCT_CONVENTION = 0x%08lx\n",
1766 (long) current_gdbarch
->use_struct_convention
1767 /*USE_STRUCT_CONVENTION ()*/);
1769 #ifdef FRAME_INIT_SAVED_REGS
1771 fprintf_unfiltered (file
,
1772 "gdbarch_dump: FRAME_INIT_SAVED_REGS = 0x%08lx\n",
1773 (long) current_gdbarch
->frame_init_saved_regs
1774 /*FRAME_INIT_SAVED_REGS ()*/);
1776 #ifdef INIT_EXTRA_FRAME_INFO
1778 fprintf_unfiltered (file
,
1779 "gdbarch_dump: INIT_EXTRA_FRAME_INFO = 0x%08lx\n",
1780 (long) current_gdbarch
->init_extra_frame_info
1781 /*INIT_EXTRA_FRAME_INFO ()*/);
1783 #ifdef SKIP_PROLOGUE
1785 fprintf_unfiltered (file
,
1786 "gdbarch_dump: SKIP_PROLOGUE = 0x%08lx\n",
1787 (long) current_gdbarch
->skip_prologue
1788 /*SKIP_PROLOGUE ()*/);
1790 #ifdef PROLOGUE_FRAMELESS_P
1792 fprintf_unfiltered (file
,
1793 "gdbarch_dump: PROLOGUE_FRAMELESS_P = 0x%08lx\n",
1794 (long) current_gdbarch
->prologue_frameless_p
1795 /*PROLOGUE_FRAMELESS_P ()*/);
1799 fprintf_unfiltered (file
,
1800 "gdbarch_dump: INNER_THAN = 0x%08lx\n",
1801 (long) current_gdbarch
->inner_than
1804 #ifdef BREAKPOINT_FROM_PC
1806 fprintf_unfiltered (file
,
1807 "gdbarch_dump: BREAKPOINT_FROM_PC = 0x%08lx\n",
1808 (long) current_gdbarch
->breakpoint_from_pc
1809 /*BREAKPOINT_FROM_PC ()*/);
1811 #ifdef MEMORY_INSERT_BREAKPOINT
1813 fprintf_unfiltered (file
,
1814 "gdbarch_dump: MEMORY_INSERT_BREAKPOINT = 0x%08lx\n",
1815 (long) current_gdbarch
->memory_insert_breakpoint
1816 /*MEMORY_INSERT_BREAKPOINT ()*/);
1818 #ifdef MEMORY_REMOVE_BREAKPOINT
1820 fprintf_unfiltered (file
,
1821 "gdbarch_dump: MEMORY_REMOVE_BREAKPOINT = 0x%08lx\n",
1822 (long) current_gdbarch
->memory_remove_breakpoint
1823 /*MEMORY_REMOVE_BREAKPOINT ()*/);
1825 #ifdef DECR_PC_AFTER_BREAK
1826 fprintf_unfiltered (file
,
1827 "gdbarch_dump: DECR_PC_AFTER_BREAK = %ld\n",
1828 (long) DECR_PC_AFTER_BREAK
);
1830 #ifdef FUNCTION_START_OFFSET
1831 fprintf_unfiltered (file
,
1832 "gdbarch_dump: FUNCTION_START_OFFSET = %ld\n",
1833 (long) FUNCTION_START_OFFSET
);
1835 #ifdef REMOTE_TRANSLATE_XFER_ADDRESS
1837 fprintf_unfiltered (file
,
1838 "gdbarch_dump: REMOTE_TRANSLATE_XFER_ADDRESS = 0x%08lx\n",
1839 (long) current_gdbarch
->remote_translate_xfer_address
1840 /*REMOTE_TRANSLATE_XFER_ADDRESS ()*/);
1842 #ifdef FRAME_ARGS_SKIP
1843 fprintf_unfiltered (file
,
1844 "gdbarch_dump: FRAME_ARGS_SKIP = %ld\n",
1845 (long) FRAME_ARGS_SKIP
);
1847 #ifdef FRAMELESS_FUNCTION_INVOCATION
1849 fprintf_unfiltered (file
,
1850 "gdbarch_dump: FRAMELESS_FUNCTION_INVOCATION = 0x%08lx\n",
1851 (long) current_gdbarch
->frameless_function_invocation
1852 /*FRAMELESS_FUNCTION_INVOCATION ()*/);
1856 fprintf_unfiltered (file
,
1857 "gdbarch_dump: FRAME_CHAIN = 0x%08lx\n",
1858 (long) current_gdbarch
->frame_chain
1859 /*FRAME_CHAIN ()*/);
1861 #ifdef FRAME_CHAIN_VALID
1863 fprintf_unfiltered (file
,
1864 "gdbarch_dump: FRAME_CHAIN_VALID = 0x%08lx\n",
1865 (long) current_gdbarch
->frame_chain_valid
1866 /*FRAME_CHAIN_VALID ()*/);
1868 #ifdef FRAME_SAVED_PC
1870 fprintf_unfiltered (file
,
1871 "gdbarch_dump: FRAME_SAVED_PC = 0x%08lx\n",
1872 (long) current_gdbarch
->frame_saved_pc
1873 /*FRAME_SAVED_PC ()*/);
1875 #ifdef FRAME_ARGS_ADDRESS
1877 fprintf_unfiltered (file
,
1878 "gdbarch_dump: FRAME_ARGS_ADDRESS = 0x%08lx\n",
1879 (long) current_gdbarch
->frame_args_address
1880 /*FRAME_ARGS_ADDRESS ()*/);
1882 #ifdef FRAME_LOCALS_ADDRESS
1884 fprintf_unfiltered (file
,
1885 "gdbarch_dump: FRAME_LOCALS_ADDRESS = 0x%08lx\n",
1886 (long) current_gdbarch
->frame_locals_address
1887 /*FRAME_LOCALS_ADDRESS ()*/);
1889 #ifdef SAVED_PC_AFTER_CALL
1891 fprintf_unfiltered (file
,
1892 "gdbarch_dump: SAVED_PC_AFTER_CALL = 0x%08lx\n",
1893 (long) current_gdbarch
->saved_pc_after_call
1894 /*SAVED_PC_AFTER_CALL ()*/);
1896 #ifdef FRAME_NUM_ARGS
1898 fprintf_unfiltered (file
,
1899 "gdbarch_dump: FRAME_NUM_ARGS = 0x%08lx\n",
1900 (long) current_gdbarch
->frame_num_args
1901 /*FRAME_NUM_ARGS ()*/);
1905 fprintf_unfiltered (file
,
1906 "gdbarch_dump: STACK_ALIGN = 0x%08lx\n",
1907 (long) current_gdbarch
->stack_align
1908 /*STACK_ALIGN ()*/);
1910 #ifdef EXTRA_STACK_ALIGNMENT_NEEDED
1911 fprintf_unfiltered (file
,
1912 "gdbarch_dump: EXTRA_STACK_ALIGNMENT_NEEDED = %ld\n",
1913 (long) EXTRA_STACK_ALIGNMENT_NEEDED
);
1915 #ifdef REG_STRUCT_HAS_ADDR
1917 fprintf_unfiltered (file
,
1918 "gdbarch_dump: REG_STRUCT_HAS_ADDR = 0x%08lx\n",
1919 (long) current_gdbarch
->reg_struct_has_addr
1920 /*REG_STRUCT_HAS_ADDR ()*/);
1922 #ifdef SAVE_DUMMY_FRAME_TOS
1924 fprintf_unfiltered (file
,
1925 "gdbarch_dump: SAVE_DUMMY_FRAME_TOS = 0x%08lx\n",
1926 (long) current_gdbarch
->save_dummy_frame_tos
1927 /*SAVE_DUMMY_FRAME_TOS ()*/);
1929 #ifdef TARGET_FLOAT_FORMAT
1930 fprintf_unfiltered (file
,
1931 "gdbarch_dump: TARGET_FLOAT_FORMAT = %ld\n",
1932 (long) TARGET_FLOAT_FORMAT
);
1934 #ifdef TARGET_DOUBLE_FORMAT
1935 fprintf_unfiltered (file
,
1936 "gdbarch_dump: TARGET_DOUBLE_FORMAT = %ld\n",
1937 (long) TARGET_DOUBLE_FORMAT
);
1939 #ifdef TARGET_LONG_DOUBLE_FORMAT
1940 fprintf_unfiltered (file
,
1941 "gdbarch_dump: TARGET_LONG_DOUBLE_FORMAT = %ld\n",
1942 (long) TARGET_LONG_DOUBLE_FORMAT
);
1944 if (current_gdbarch
->dump_tdep
!= NULL
)
1945 current_gdbarch
->dump_tdep (current_gdbarch
, file
);
1948 struct gdbarch_tdep
*
1949 gdbarch_tdep (struct gdbarch
*gdbarch
)
1951 if (gdbarch_debug
>= 2)
1952 fprintf_unfiltered (gdb_stdlog
, "gdbarch_tdep called\n");
1953 return gdbarch
->tdep
;
1957 const struct bfd_arch_info
*
1958 gdbarch_bfd_arch_info (struct gdbarch
*gdbarch
)
1960 if (gdbarch_debug
>= 2)
1961 fprintf_unfiltered (gdb_stdlog
, "gdbarch_bfd_arch_info called\n");
1962 return gdbarch
->bfd_arch_info
;
1966 gdbarch_byte_order (struct gdbarch
*gdbarch
)
1968 if (gdbarch_debug
>= 2)
1969 fprintf_unfiltered (gdb_stdlog
, "gdbarch_byte_order called\n");
1970 return gdbarch
->byte_order
;
1974 gdbarch_short_bit (struct gdbarch
*gdbarch
)
1976 /* Skip verify of short_bit, invalid_p == 0 */
1977 if (gdbarch_debug
>= 2)
1978 fprintf_unfiltered (gdb_stdlog
, "gdbarch_short_bit called\n");
1979 return gdbarch
->short_bit
;
1983 set_gdbarch_short_bit (struct gdbarch
*gdbarch
,
1986 gdbarch
->short_bit
= short_bit
;
1990 gdbarch_int_bit (struct gdbarch
*gdbarch
)
1992 /* Skip verify of int_bit, invalid_p == 0 */
1993 if (gdbarch_debug
>= 2)
1994 fprintf_unfiltered (gdb_stdlog
, "gdbarch_int_bit called\n");
1995 return gdbarch
->int_bit
;
1999 set_gdbarch_int_bit (struct gdbarch
*gdbarch
,
2002 gdbarch
->int_bit
= int_bit
;
2006 gdbarch_long_bit (struct gdbarch
*gdbarch
)
2008 /* Skip verify of long_bit, invalid_p == 0 */
2009 if (gdbarch_debug
>= 2)
2010 fprintf_unfiltered (gdb_stdlog
, "gdbarch_long_bit called\n");
2011 return gdbarch
->long_bit
;
2015 set_gdbarch_long_bit (struct gdbarch
*gdbarch
,
2018 gdbarch
->long_bit
= long_bit
;
2022 gdbarch_long_long_bit (struct gdbarch
*gdbarch
)
2024 /* Skip verify of long_long_bit, invalid_p == 0 */
2025 if (gdbarch_debug
>= 2)
2026 fprintf_unfiltered (gdb_stdlog
, "gdbarch_long_long_bit called\n");
2027 return gdbarch
->long_long_bit
;
2031 set_gdbarch_long_long_bit (struct gdbarch
*gdbarch
,
2034 gdbarch
->long_long_bit
= long_long_bit
;
2038 gdbarch_float_bit (struct gdbarch
*gdbarch
)
2040 /* Skip verify of float_bit, invalid_p == 0 */
2041 if (gdbarch_debug
>= 2)
2042 fprintf_unfiltered (gdb_stdlog
, "gdbarch_float_bit called\n");
2043 return gdbarch
->float_bit
;
2047 set_gdbarch_float_bit (struct gdbarch
*gdbarch
,
2050 gdbarch
->float_bit
= float_bit
;
2054 gdbarch_double_bit (struct gdbarch
*gdbarch
)
2056 /* Skip verify of double_bit, invalid_p == 0 */
2057 if (gdbarch_debug
>= 2)
2058 fprintf_unfiltered (gdb_stdlog
, "gdbarch_double_bit called\n");
2059 return gdbarch
->double_bit
;
2063 set_gdbarch_double_bit (struct gdbarch
*gdbarch
,
2066 gdbarch
->double_bit
= double_bit
;
2070 gdbarch_long_double_bit (struct gdbarch
*gdbarch
)
2072 /* Skip verify of long_double_bit, invalid_p == 0 */
2073 if (gdbarch_debug
>= 2)
2074 fprintf_unfiltered (gdb_stdlog
, "gdbarch_long_double_bit called\n");
2075 return gdbarch
->long_double_bit
;
2079 set_gdbarch_long_double_bit (struct gdbarch
*gdbarch
,
2080 int long_double_bit
)
2082 gdbarch
->long_double_bit
= long_double_bit
;
2086 gdbarch_ptr_bit (struct gdbarch
*gdbarch
)
2088 /* Skip verify of ptr_bit, invalid_p == 0 */
2089 if (gdbarch_debug
>= 2)
2090 fprintf_unfiltered (gdb_stdlog
, "gdbarch_ptr_bit called\n");
2091 return gdbarch
->ptr_bit
;
2095 set_gdbarch_ptr_bit (struct gdbarch
*gdbarch
,
2098 gdbarch
->ptr_bit
= ptr_bit
;
2102 gdbarch_bfd_vma_bit (struct gdbarch
*gdbarch
)
2104 /* Skip verify of bfd_vma_bit, invalid_p == 0 */
2105 if (gdbarch_debug
>= 2)
2106 fprintf_unfiltered (gdb_stdlog
, "gdbarch_bfd_vma_bit called\n");
2107 return gdbarch
->bfd_vma_bit
;
2111 set_gdbarch_bfd_vma_bit (struct gdbarch
*gdbarch
,
2114 gdbarch
->bfd_vma_bit
= bfd_vma_bit
;
2118 gdbarch_ieee_float (struct gdbarch
*gdbarch
)
2120 /* Skip verify of ieee_float, invalid_p == 0 */
2121 if (gdbarch_debug
>= 2)
2122 fprintf_unfiltered (gdb_stdlog
, "gdbarch_ieee_float called\n");
2123 return gdbarch
->ieee_float
;
2127 set_gdbarch_ieee_float (struct gdbarch
*gdbarch
,
2130 gdbarch
->ieee_float
= ieee_float
;
2134 gdbarch_read_pc (struct gdbarch
*gdbarch
, int pid
)
2136 if (gdbarch
->read_pc
== 0)
2137 internal_error ("gdbarch: gdbarch_read_pc invalid");
2138 if (gdbarch_debug
>= 2)
2139 fprintf_unfiltered (gdb_stdlog
, "gdbarch_read_pc called\n");
2140 return gdbarch
->read_pc (pid
);
2144 set_gdbarch_read_pc (struct gdbarch
*gdbarch
,
2145 gdbarch_read_pc_ftype read_pc
)
2147 gdbarch
->read_pc
= read_pc
;
2151 gdbarch_write_pc (struct gdbarch
*gdbarch
, CORE_ADDR val
, int pid
)
2153 if (gdbarch
->write_pc
== 0)
2154 internal_error ("gdbarch: gdbarch_write_pc invalid");
2155 if (gdbarch_debug
>= 2)
2156 fprintf_unfiltered (gdb_stdlog
, "gdbarch_write_pc called\n");
2157 gdbarch
->write_pc (val
, pid
);
2161 set_gdbarch_write_pc (struct gdbarch
*gdbarch
,
2162 gdbarch_write_pc_ftype write_pc
)
2164 gdbarch
->write_pc
= write_pc
;
2168 gdbarch_read_fp (struct gdbarch
*gdbarch
)
2170 if (gdbarch
->read_fp
== 0)
2171 internal_error ("gdbarch: gdbarch_read_fp invalid");
2172 if (gdbarch_debug
>= 2)
2173 fprintf_unfiltered (gdb_stdlog
, "gdbarch_read_fp called\n");
2174 return gdbarch
->read_fp ();
2178 set_gdbarch_read_fp (struct gdbarch
*gdbarch
,
2179 gdbarch_read_fp_ftype read_fp
)
2181 gdbarch
->read_fp
= read_fp
;
2185 gdbarch_write_fp (struct gdbarch
*gdbarch
, CORE_ADDR val
)
2187 if (gdbarch
->write_fp
== 0)
2188 internal_error ("gdbarch: gdbarch_write_fp invalid");
2189 if (gdbarch_debug
>= 2)
2190 fprintf_unfiltered (gdb_stdlog
, "gdbarch_write_fp called\n");
2191 gdbarch
->write_fp (val
);
2195 set_gdbarch_write_fp (struct gdbarch
*gdbarch
,
2196 gdbarch_write_fp_ftype write_fp
)
2198 gdbarch
->write_fp
= write_fp
;
2202 gdbarch_read_sp (struct gdbarch
*gdbarch
)
2204 if (gdbarch
->read_sp
== 0)
2205 internal_error ("gdbarch: gdbarch_read_sp invalid");
2206 if (gdbarch_debug
>= 2)
2207 fprintf_unfiltered (gdb_stdlog
, "gdbarch_read_sp called\n");
2208 return gdbarch
->read_sp ();
2212 set_gdbarch_read_sp (struct gdbarch
*gdbarch
,
2213 gdbarch_read_sp_ftype read_sp
)
2215 gdbarch
->read_sp
= read_sp
;
2219 gdbarch_write_sp (struct gdbarch
*gdbarch
, CORE_ADDR val
)
2221 if (gdbarch
->write_sp
== 0)
2222 internal_error ("gdbarch: gdbarch_write_sp invalid");
2223 if (gdbarch_debug
>= 2)
2224 fprintf_unfiltered (gdb_stdlog
, "gdbarch_write_sp called\n");
2225 gdbarch
->write_sp (val
);
2229 set_gdbarch_write_sp (struct gdbarch
*gdbarch
,
2230 gdbarch_write_sp_ftype write_sp
)
2232 gdbarch
->write_sp
= write_sp
;
2236 gdbarch_num_regs (struct gdbarch
*gdbarch
)
2238 if (gdbarch
->num_regs
== -1)
2239 internal_error ("gdbarch: gdbarch_num_regs invalid");
2240 if (gdbarch_debug
>= 2)
2241 fprintf_unfiltered (gdb_stdlog
, "gdbarch_num_regs called\n");
2242 return gdbarch
->num_regs
;
2246 set_gdbarch_num_regs (struct gdbarch
*gdbarch
,
2249 gdbarch
->num_regs
= num_regs
;
2253 gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
)
2255 /* Skip verify of num_pseudo_regs, invalid_p == 0 */
2256 if (gdbarch_debug
>= 2)
2257 fprintf_unfiltered (gdb_stdlog
, "gdbarch_num_pseudo_regs called\n");
2258 return gdbarch
->num_pseudo_regs
;
2262 set_gdbarch_num_pseudo_regs (struct gdbarch
*gdbarch
,
2263 int num_pseudo_regs
)
2265 gdbarch
->num_pseudo_regs
= num_pseudo_regs
;
2269 gdbarch_sp_regnum (struct gdbarch
*gdbarch
)
2271 if (gdbarch
->sp_regnum
== -1)
2272 internal_error ("gdbarch: gdbarch_sp_regnum invalid");
2273 if (gdbarch_debug
>= 2)
2274 fprintf_unfiltered (gdb_stdlog
, "gdbarch_sp_regnum called\n");
2275 return gdbarch
->sp_regnum
;
2279 set_gdbarch_sp_regnum (struct gdbarch
*gdbarch
,
2282 gdbarch
->sp_regnum
= sp_regnum
;
2286 gdbarch_fp_regnum (struct gdbarch
*gdbarch
)
2288 if (gdbarch
->fp_regnum
== -1)
2289 internal_error ("gdbarch: gdbarch_fp_regnum invalid");
2290 if (gdbarch_debug
>= 2)
2291 fprintf_unfiltered (gdb_stdlog
, "gdbarch_fp_regnum called\n");
2292 return gdbarch
->fp_regnum
;
2296 set_gdbarch_fp_regnum (struct gdbarch
*gdbarch
,
2299 gdbarch
->fp_regnum
= fp_regnum
;
2303 gdbarch_pc_regnum (struct gdbarch
*gdbarch
)
2305 if (gdbarch
->pc_regnum
== -1)
2306 internal_error ("gdbarch: gdbarch_pc_regnum invalid");
2307 if (gdbarch_debug
>= 2)
2308 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pc_regnum called\n");
2309 return gdbarch
->pc_regnum
;
2313 set_gdbarch_pc_regnum (struct gdbarch
*gdbarch
,
2316 gdbarch
->pc_regnum
= pc_regnum
;
2320 gdbarch_fp0_regnum (struct gdbarch
*gdbarch
)
2322 /* Skip verify of fp0_regnum, invalid_p == 0 */
2323 if (gdbarch_debug
>= 2)
2324 fprintf_unfiltered (gdb_stdlog
, "gdbarch_fp0_regnum called\n");
2325 return gdbarch
->fp0_regnum
;
2329 set_gdbarch_fp0_regnum (struct gdbarch
*gdbarch
,
2332 gdbarch
->fp0_regnum
= fp0_regnum
;
2336 gdbarch_npc_regnum (struct gdbarch
*gdbarch
)
2338 /* Skip verify of npc_regnum, invalid_p == 0 */
2339 if (gdbarch_debug
>= 2)
2340 fprintf_unfiltered (gdb_stdlog
, "gdbarch_npc_regnum called\n");
2341 return gdbarch
->npc_regnum
;
2345 set_gdbarch_npc_regnum (struct gdbarch
*gdbarch
,
2348 gdbarch
->npc_regnum
= npc_regnum
;
2352 gdbarch_nnpc_regnum (struct gdbarch
*gdbarch
)
2354 /* Skip verify of nnpc_regnum, invalid_p == 0 */
2355 if (gdbarch_debug
>= 2)
2356 fprintf_unfiltered (gdb_stdlog
, "gdbarch_nnpc_regnum called\n");
2357 return gdbarch
->nnpc_regnum
;
2361 set_gdbarch_nnpc_regnum (struct gdbarch
*gdbarch
,
2364 gdbarch
->nnpc_regnum
= nnpc_regnum
;
2368 gdbarch_register_name (struct gdbarch
*gdbarch
, int regnr
)
2370 if (gdbarch
->register_name
== 0)
2371 internal_error ("gdbarch: gdbarch_register_name invalid");
2372 if (gdbarch_debug
>= 2)
2373 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_name called\n");
2374 return gdbarch
->register_name (regnr
);
2378 set_gdbarch_register_name (struct gdbarch
*gdbarch
,
2379 gdbarch_register_name_ftype register_name
)
2381 gdbarch
->register_name
= register_name
;
2385 gdbarch_register_size (struct gdbarch
*gdbarch
)
2387 if (gdbarch
->register_size
== -1)
2388 internal_error ("gdbarch: gdbarch_register_size invalid");
2389 if (gdbarch_debug
>= 2)
2390 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_size called\n");
2391 return gdbarch
->register_size
;
2395 set_gdbarch_register_size (struct gdbarch
*gdbarch
,
2398 gdbarch
->register_size
= register_size
;
2402 gdbarch_register_bytes (struct gdbarch
*gdbarch
)
2404 if (gdbarch
->register_bytes
== -1)
2405 internal_error ("gdbarch: gdbarch_register_bytes invalid");
2406 if (gdbarch_debug
>= 2)
2407 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_bytes called\n");
2408 return gdbarch
->register_bytes
;
2412 set_gdbarch_register_bytes (struct gdbarch
*gdbarch
,
2415 gdbarch
->register_bytes
= register_bytes
;
2419 gdbarch_register_byte (struct gdbarch
*gdbarch
, int reg_nr
)
2421 if (gdbarch
->register_byte
== 0)
2422 internal_error ("gdbarch: gdbarch_register_byte invalid");
2423 if (gdbarch_debug
>= 2)
2424 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_byte called\n");
2425 return gdbarch
->register_byte (reg_nr
);
2429 set_gdbarch_register_byte (struct gdbarch
*gdbarch
,
2430 gdbarch_register_byte_ftype register_byte
)
2432 gdbarch
->register_byte
= register_byte
;
2436 gdbarch_register_raw_size (struct gdbarch
*gdbarch
, int reg_nr
)
2438 if (gdbarch
->register_raw_size
== 0)
2439 internal_error ("gdbarch: gdbarch_register_raw_size invalid");
2440 if (gdbarch_debug
>= 2)
2441 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_raw_size called\n");
2442 return gdbarch
->register_raw_size (reg_nr
);
2446 set_gdbarch_register_raw_size (struct gdbarch
*gdbarch
,
2447 gdbarch_register_raw_size_ftype register_raw_size
)
2449 gdbarch
->register_raw_size
= register_raw_size
;
2453 gdbarch_max_register_raw_size (struct gdbarch
*gdbarch
)
2455 if (gdbarch
->max_register_raw_size
== -1)
2456 internal_error ("gdbarch: gdbarch_max_register_raw_size invalid");
2457 if (gdbarch_debug
>= 2)
2458 fprintf_unfiltered (gdb_stdlog
, "gdbarch_max_register_raw_size called\n");
2459 return gdbarch
->max_register_raw_size
;
2463 set_gdbarch_max_register_raw_size (struct gdbarch
*gdbarch
,
2464 int max_register_raw_size
)
2466 gdbarch
->max_register_raw_size
= max_register_raw_size
;
2470 gdbarch_register_virtual_size (struct gdbarch
*gdbarch
, int reg_nr
)
2472 if (gdbarch
->register_virtual_size
== 0)
2473 internal_error ("gdbarch: gdbarch_register_virtual_size invalid");
2474 if (gdbarch_debug
>= 2)
2475 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_virtual_size called\n");
2476 return gdbarch
->register_virtual_size (reg_nr
);
2480 set_gdbarch_register_virtual_size (struct gdbarch
*gdbarch
,
2481 gdbarch_register_virtual_size_ftype register_virtual_size
)
2483 gdbarch
->register_virtual_size
= register_virtual_size
;
2487 gdbarch_max_register_virtual_size (struct gdbarch
*gdbarch
)
2489 if (gdbarch
->max_register_virtual_size
== -1)
2490 internal_error ("gdbarch: gdbarch_max_register_virtual_size invalid");
2491 if (gdbarch_debug
>= 2)
2492 fprintf_unfiltered (gdb_stdlog
, "gdbarch_max_register_virtual_size called\n");
2493 return gdbarch
->max_register_virtual_size
;
2497 set_gdbarch_max_register_virtual_size (struct gdbarch
*gdbarch
,
2498 int max_register_virtual_size
)
2500 gdbarch
->max_register_virtual_size
= max_register_virtual_size
;
2504 gdbarch_register_virtual_type (struct gdbarch
*gdbarch
, int reg_nr
)
2506 if (gdbarch
->register_virtual_type
== 0)
2507 internal_error ("gdbarch: gdbarch_register_virtual_type invalid");
2508 if (gdbarch_debug
>= 2)
2509 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_virtual_type called\n");
2510 return gdbarch
->register_virtual_type (reg_nr
);
2514 set_gdbarch_register_virtual_type (struct gdbarch
*gdbarch
,
2515 gdbarch_register_virtual_type_ftype register_virtual_type
)
2517 gdbarch
->register_virtual_type
= register_virtual_type
;
2521 gdbarch_do_registers_info (struct gdbarch
*gdbarch
, int reg_nr
, int fpregs
)
2523 if (gdbarch
->do_registers_info
== 0)
2524 internal_error ("gdbarch: gdbarch_do_registers_info invalid");
2525 if (gdbarch_debug
>= 2)
2526 fprintf_unfiltered (gdb_stdlog
, "gdbarch_do_registers_info called\n");
2527 gdbarch
->do_registers_info (reg_nr
, fpregs
);
2531 set_gdbarch_do_registers_info (struct gdbarch
*gdbarch
,
2532 gdbarch_do_registers_info_ftype do_registers_info
)
2534 gdbarch
->do_registers_info
= do_registers_info
;
2538 gdbarch_register_sim_regno (struct gdbarch
*gdbarch
, int reg_nr
)
2540 if (gdbarch
->register_sim_regno
== 0)
2541 internal_error ("gdbarch: gdbarch_register_sim_regno invalid");
2542 if (gdbarch_debug
>= 2)
2543 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_sim_regno called\n");
2544 return gdbarch
->register_sim_regno (reg_nr
);
2548 set_gdbarch_register_sim_regno (struct gdbarch
*gdbarch
,
2549 gdbarch_register_sim_regno_ftype register_sim_regno
)
2551 gdbarch
->register_sim_regno
= register_sim_regno
;
2555 gdbarch_use_generic_dummy_frames (struct gdbarch
*gdbarch
)
2557 if (gdbarch
->use_generic_dummy_frames
== -1)
2558 internal_error ("gdbarch: gdbarch_use_generic_dummy_frames invalid");
2559 if (gdbarch_debug
>= 2)
2560 fprintf_unfiltered (gdb_stdlog
, "gdbarch_use_generic_dummy_frames called\n");
2561 return gdbarch
->use_generic_dummy_frames
;
2565 set_gdbarch_use_generic_dummy_frames (struct gdbarch
*gdbarch
,
2566 int use_generic_dummy_frames
)
2568 gdbarch
->use_generic_dummy_frames
= use_generic_dummy_frames
;
2572 gdbarch_call_dummy_location (struct gdbarch
*gdbarch
)
2574 if (gdbarch
->call_dummy_location
== 0)
2575 internal_error ("gdbarch: gdbarch_call_dummy_location invalid");
2576 if (gdbarch_debug
>= 2)
2577 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_location called\n");
2578 return gdbarch
->call_dummy_location
;
2582 set_gdbarch_call_dummy_location (struct gdbarch
*gdbarch
,
2583 int call_dummy_location
)
2585 gdbarch
->call_dummy_location
= call_dummy_location
;
2589 gdbarch_call_dummy_address (struct gdbarch
*gdbarch
)
2591 if (gdbarch
->call_dummy_address
== 0)
2592 internal_error ("gdbarch: gdbarch_call_dummy_address invalid");
2593 if (gdbarch_debug
>= 2)
2594 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_address called\n");
2595 return gdbarch
->call_dummy_address ();
2599 set_gdbarch_call_dummy_address (struct gdbarch
*gdbarch
,
2600 gdbarch_call_dummy_address_ftype call_dummy_address
)
2602 gdbarch
->call_dummy_address
= call_dummy_address
;
2606 gdbarch_call_dummy_start_offset (struct gdbarch
*gdbarch
)
2608 if (gdbarch
->call_dummy_start_offset
== -1)
2609 internal_error ("gdbarch: gdbarch_call_dummy_start_offset invalid");
2610 if (gdbarch_debug
>= 2)
2611 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_start_offset called\n");
2612 return gdbarch
->call_dummy_start_offset
;
2616 set_gdbarch_call_dummy_start_offset (struct gdbarch
*gdbarch
,
2617 CORE_ADDR call_dummy_start_offset
)
2619 gdbarch
->call_dummy_start_offset
= call_dummy_start_offset
;
2623 gdbarch_call_dummy_breakpoint_offset (struct gdbarch
*gdbarch
)
2625 if (gdbarch
->call_dummy_breakpoint_offset
== -1)
2626 internal_error ("gdbarch: gdbarch_call_dummy_breakpoint_offset invalid");
2627 if (gdbarch_debug
>= 2)
2628 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_breakpoint_offset called\n");
2629 return gdbarch
->call_dummy_breakpoint_offset
;
2633 set_gdbarch_call_dummy_breakpoint_offset (struct gdbarch
*gdbarch
,
2634 CORE_ADDR call_dummy_breakpoint_offset
)
2636 gdbarch
->call_dummy_breakpoint_offset
= call_dummy_breakpoint_offset
;
2640 gdbarch_call_dummy_breakpoint_offset_p (struct gdbarch
*gdbarch
)
2642 if (gdbarch
->call_dummy_breakpoint_offset_p
== -1)
2643 internal_error ("gdbarch: gdbarch_call_dummy_breakpoint_offset_p invalid");
2644 if (gdbarch_debug
>= 2)
2645 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_breakpoint_offset_p called\n");
2646 return gdbarch
->call_dummy_breakpoint_offset_p
;
2650 set_gdbarch_call_dummy_breakpoint_offset_p (struct gdbarch
*gdbarch
,
2651 int call_dummy_breakpoint_offset_p
)
2653 gdbarch
->call_dummy_breakpoint_offset_p
= call_dummy_breakpoint_offset_p
;
2657 gdbarch_call_dummy_length (struct gdbarch
*gdbarch
)
2659 if (gdbarch
->call_dummy_length
== -1)
2660 internal_error ("gdbarch: gdbarch_call_dummy_length invalid");
2661 if (gdbarch_debug
>= 2)
2662 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_length called\n");
2663 return gdbarch
->call_dummy_length
;
2667 set_gdbarch_call_dummy_length (struct gdbarch
*gdbarch
,
2668 int call_dummy_length
)
2670 gdbarch
->call_dummy_length
= call_dummy_length
;
2674 gdbarch_pc_in_call_dummy (struct gdbarch
*gdbarch
, CORE_ADDR pc
, CORE_ADDR sp
, CORE_ADDR frame_address
)
2676 if (gdbarch
->pc_in_call_dummy
== 0)
2677 internal_error ("gdbarch: gdbarch_pc_in_call_dummy invalid");
2678 if (gdbarch_debug
>= 2)
2679 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pc_in_call_dummy called\n");
2680 return gdbarch
->pc_in_call_dummy (pc
, sp
, frame_address
);
2684 set_gdbarch_pc_in_call_dummy (struct gdbarch
*gdbarch
,
2685 gdbarch_pc_in_call_dummy_ftype pc_in_call_dummy
)
2687 gdbarch
->pc_in_call_dummy
= pc_in_call_dummy
;
2691 gdbarch_call_dummy_p (struct gdbarch
*gdbarch
)
2693 if (gdbarch
->call_dummy_p
== -1)
2694 internal_error ("gdbarch: gdbarch_call_dummy_p invalid");
2695 if (gdbarch_debug
>= 2)
2696 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_p called\n");
2697 return gdbarch
->call_dummy_p
;
2701 set_gdbarch_call_dummy_p (struct gdbarch
*gdbarch
,
2704 gdbarch
->call_dummy_p
= call_dummy_p
;
2708 gdbarch_call_dummy_words (struct gdbarch
*gdbarch
)
2710 /* Skip verify of call_dummy_words, invalid_p == 0 */
2711 if (gdbarch_debug
>= 2)
2712 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_words called\n");
2713 return gdbarch
->call_dummy_words
;
2717 set_gdbarch_call_dummy_words (struct gdbarch
*gdbarch
,
2718 LONGEST
* call_dummy_words
)
2720 gdbarch
->call_dummy_words
= call_dummy_words
;
2724 gdbarch_sizeof_call_dummy_words (struct gdbarch
*gdbarch
)
2726 /* Skip verify of sizeof_call_dummy_words, invalid_p == 0 */
2727 if (gdbarch_debug
>= 2)
2728 fprintf_unfiltered (gdb_stdlog
, "gdbarch_sizeof_call_dummy_words called\n");
2729 return gdbarch
->sizeof_call_dummy_words
;
2733 set_gdbarch_sizeof_call_dummy_words (struct gdbarch
*gdbarch
,
2734 int sizeof_call_dummy_words
)
2736 gdbarch
->sizeof_call_dummy_words
= sizeof_call_dummy_words
;
2740 gdbarch_call_dummy_stack_adjust_p (struct gdbarch
*gdbarch
)
2742 if (gdbarch
->call_dummy_stack_adjust_p
== -1)
2743 internal_error ("gdbarch: gdbarch_call_dummy_stack_adjust_p invalid");
2744 if (gdbarch_debug
>= 2)
2745 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_stack_adjust_p called\n");
2746 return gdbarch
->call_dummy_stack_adjust_p
;
2750 set_gdbarch_call_dummy_stack_adjust_p (struct gdbarch
*gdbarch
,
2751 int call_dummy_stack_adjust_p
)
2753 gdbarch
->call_dummy_stack_adjust_p
= call_dummy_stack_adjust_p
;
2757 gdbarch_call_dummy_stack_adjust (struct gdbarch
*gdbarch
)
2759 if (gdbarch
->call_dummy_stack_adjust_p
&& gdbarch
->call_dummy_stack_adjust
== 0)
2760 internal_error ("gdbarch: gdbarch_call_dummy_stack_adjust invalid");
2761 if (gdbarch_debug
>= 2)
2762 fprintf_unfiltered (gdb_stdlog
, "gdbarch_call_dummy_stack_adjust called\n");
2763 return gdbarch
->call_dummy_stack_adjust
;
2767 set_gdbarch_call_dummy_stack_adjust (struct gdbarch
*gdbarch
,
2768 int call_dummy_stack_adjust
)
2770 gdbarch
->call_dummy_stack_adjust
= call_dummy_stack_adjust
;
2774 gdbarch_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
)
2776 if (gdbarch
->fix_call_dummy
== 0)
2777 internal_error ("gdbarch: gdbarch_fix_call_dummy invalid");
2778 if (gdbarch_debug
>= 2)
2779 fprintf_unfiltered (gdb_stdlog
, "gdbarch_fix_call_dummy called\n");
2780 gdbarch
->fix_call_dummy (dummy
, pc
, fun
, nargs
, args
, type
, gcc_p
);
2784 set_gdbarch_fix_call_dummy (struct gdbarch
*gdbarch
,
2785 gdbarch_fix_call_dummy_ftype fix_call_dummy
)
2787 gdbarch
->fix_call_dummy
= fix_call_dummy
;
2791 gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
)
2793 if (gdbarch_debug
>= 2)
2794 fprintf_unfiltered (gdb_stdlog
, "gdbarch_believe_pcc_promotion called\n");
2795 return gdbarch
->believe_pcc_promotion
;
2799 set_gdbarch_believe_pcc_promotion (struct gdbarch
*gdbarch
,
2800 int believe_pcc_promotion
)
2802 gdbarch
->believe_pcc_promotion
= believe_pcc_promotion
;
2806 gdbarch_believe_pcc_promotion_type (struct gdbarch
*gdbarch
)
2808 if (gdbarch_debug
>= 2)
2809 fprintf_unfiltered (gdb_stdlog
, "gdbarch_believe_pcc_promotion_type called\n");
2810 return gdbarch
->believe_pcc_promotion_type
;
2814 set_gdbarch_believe_pcc_promotion_type (struct gdbarch
*gdbarch
,
2815 int believe_pcc_promotion_type
)
2817 gdbarch
->believe_pcc_promotion_type
= believe_pcc_promotion_type
;
2821 gdbarch_coerce_float_to_double (struct gdbarch
*gdbarch
, struct type
*formal
, struct type
*actual
)
2823 if (gdbarch
->coerce_float_to_double
== 0)
2824 internal_error ("gdbarch: gdbarch_coerce_float_to_double invalid");
2825 if (gdbarch_debug
>= 2)
2826 fprintf_unfiltered (gdb_stdlog
, "gdbarch_coerce_float_to_double called\n");
2827 return gdbarch
->coerce_float_to_double (formal
, actual
);
2831 set_gdbarch_coerce_float_to_double (struct gdbarch
*gdbarch
,
2832 gdbarch_coerce_float_to_double_ftype coerce_float_to_double
)
2834 gdbarch
->coerce_float_to_double
= coerce_float_to_double
;
2838 gdbarch_get_saved_register (struct gdbarch
*gdbarch
, char *raw_buffer
, int *optimized
, CORE_ADDR
*addrp
, struct frame_info
*frame
, int regnum
, enum lval_type
*lval
)
2840 if (gdbarch
->get_saved_register
== 0)
2841 internal_error ("gdbarch: gdbarch_get_saved_register invalid");
2842 if (gdbarch_debug
>= 2)
2843 fprintf_unfiltered (gdb_stdlog
, "gdbarch_get_saved_register called\n");
2844 gdbarch
->get_saved_register (raw_buffer
, optimized
, addrp
, frame
, regnum
, lval
);
2848 set_gdbarch_get_saved_register (struct gdbarch
*gdbarch
,
2849 gdbarch_get_saved_register_ftype get_saved_register
)
2851 gdbarch
->get_saved_register
= get_saved_register
;
2855 gdbarch_register_convertible (struct gdbarch
*gdbarch
, int nr
)
2857 if (gdbarch
->register_convertible
== 0)
2858 internal_error ("gdbarch: gdbarch_register_convertible invalid");
2859 if (gdbarch_debug
>= 2)
2860 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_convertible called\n");
2861 return gdbarch
->register_convertible (nr
);
2865 set_gdbarch_register_convertible (struct gdbarch
*gdbarch
,
2866 gdbarch_register_convertible_ftype register_convertible
)
2868 gdbarch
->register_convertible
= register_convertible
;
2872 gdbarch_register_convert_to_virtual (struct gdbarch
*gdbarch
, int regnum
, struct type
*type
, char *from
, char *to
)
2874 if (gdbarch
->register_convert_to_virtual
== 0)
2875 internal_error ("gdbarch: gdbarch_register_convert_to_virtual invalid");
2876 if (gdbarch_debug
>= 2)
2877 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_convert_to_virtual called\n");
2878 gdbarch
->register_convert_to_virtual (regnum
, type
, from
, to
);
2882 set_gdbarch_register_convert_to_virtual (struct gdbarch
*gdbarch
,
2883 gdbarch_register_convert_to_virtual_ftype register_convert_to_virtual
)
2885 gdbarch
->register_convert_to_virtual
= register_convert_to_virtual
;
2889 gdbarch_register_convert_to_raw (struct gdbarch
*gdbarch
, struct type
*type
, int regnum
, char *from
, char *to
)
2891 if (gdbarch
->register_convert_to_raw
== 0)
2892 internal_error ("gdbarch: gdbarch_register_convert_to_raw invalid");
2893 if (gdbarch_debug
>= 2)
2894 fprintf_unfiltered (gdb_stdlog
, "gdbarch_register_convert_to_raw called\n");
2895 gdbarch
->register_convert_to_raw (type
, regnum
, from
, to
);
2899 set_gdbarch_register_convert_to_raw (struct gdbarch
*gdbarch
,
2900 gdbarch_register_convert_to_raw_ftype register_convert_to_raw
)
2902 gdbarch
->register_convert_to_raw
= register_convert_to_raw
;
2906 gdbarch_fetch_pseudo_register (struct gdbarch
*gdbarch
, int regnum
)
2908 if (gdbarch
->fetch_pseudo_register
== 0)
2909 internal_error ("gdbarch: gdbarch_fetch_pseudo_register invalid");
2910 if (gdbarch_debug
>= 2)
2911 fprintf_unfiltered (gdb_stdlog
, "gdbarch_fetch_pseudo_register called\n");
2912 gdbarch
->fetch_pseudo_register (regnum
);
2916 set_gdbarch_fetch_pseudo_register (struct gdbarch
*gdbarch
,
2917 gdbarch_fetch_pseudo_register_ftype fetch_pseudo_register
)
2919 gdbarch
->fetch_pseudo_register
= fetch_pseudo_register
;
2923 gdbarch_store_pseudo_register (struct gdbarch
*gdbarch
, int regnum
)
2925 if (gdbarch
->store_pseudo_register
== 0)
2926 internal_error ("gdbarch: gdbarch_store_pseudo_register invalid");
2927 if (gdbarch_debug
>= 2)
2928 fprintf_unfiltered (gdb_stdlog
, "gdbarch_store_pseudo_register called\n");
2929 gdbarch
->store_pseudo_register (regnum
);
2933 set_gdbarch_store_pseudo_register (struct gdbarch
*gdbarch
,
2934 gdbarch_store_pseudo_register_ftype store_pseudo_register
)
2936 gdbarch
->store_pseudo_register
= store_pseudo_register
;
2940 gdbarch_pointer_to_address (struct gdbarch
*gdbarch
, struct type
*type
, void *buf
)
2942 if (gdbarch
->pointer_to_address
== 0)
2943 internal_error ("gdbarch: gdbarch_pointer_to_address invalid");
2944 if (gdbarch_debug
>= 2)
2945 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pointer_to_address called\n");
2946 return gdbarch
->pointer_to_address (type
, buf
);
2950 set_gdbarch_pointer_to_address (struct gdbarch
*gdbarch
,
2951 gdbarch_pointer_to_address_ftype pointer_to_address
)
2953 gdbarch
->pointer_to_address
= pointer_to_address
;
2957 gdbarch_address_to_pointer (struct gdbarch
*gdbarch
, struct type
*type
, void *buf
, CORE_ADDR addr
)
2959 if (gdbarch
->address_to_pointer
== 0)
2960 internal_error ("gdbarch: gdbarch_address_to_pointer invalid");
2961 if (gdbarch_debug
>= 2)
2962 fprintf_unfiltered (gdb_stdlog
, "gdbarch_address_to_pointer called\n");
2963 gdbarch
->address_to_pointer (type
, buf
, addr
);
2967 set_gdbarch_address_to_pointer (struct gdbarch
*gdbarch
,
2968 gdbarch_address_to_pointer_ftype address_to_pointer
)
2970 gdbarch
->address_to_pointer
= address_to_pointer
;
2974 gdbarch_return_value_on_stack (struct gdbarch
*gdbarch
, struct type
*type
)
2976 if (gdbarch
->return_value_on_stack
== 0)
2977 internal_error ("gdbarch: gdbarch_return_value_on_stack invalid");
2978 if (gdbarch_debug
>= 2)
2979 fprintf_unfiltered (gdb_stdlog
, "gdbarch_return_value_on_stack called\n");
2980 return gdbarch
->return_value_on_stack (type
);
2984 set_gdbarch_return_value_on_stack (struct gdbarch
*gdbarch
,
2985 gdbarch_return_value_on_stack_ftype return_value_on_stack
)
2987 gdbarch
->return_value_on_stack
= return_value_on_stack
;
2991 gdbarch_extract_return_value (struct gdbarch
*gdbarch
, struct type
*type
, char *regbuf
, char *valbuf
)
2993 if (gdbarch
->extract_return_value
== 0)
2994 internal_error ("gdbarch: gdbarch_extract_return_value invalid");
2995 if (gdbarch_debug
>= 2)
2996 fprintf_unfiltered (gdb_stdlog
, "gdbarch_extract_return_value called\n");
2997 gdbarch
->extract_return_value (type
, regbuf
, valbuf
);
3001 set_gdbarch_extract_return_value (struct gdbarch
*gdbarch
,
3002 gdbarch_extract_return_value_ftype extract_return_value
)
3004 gdbarch
->extract_return_value
= extract_return_value
;
3008 gdbarch_push_arguments (struct gdbarch
*gdbarch
, int nargs
, struct value
**args
, CORE_ADDR sp
, int struct_return
, CORE_ADDR struct_addr
)
3010 if (gdbarch
->push_arguments
== 0)
3011 internal_error ("gdbarch: gdbarch_push_arguments invalid");
3012 if (gdbarch_debug
>= 2)
3013 fprintf_unfiltered (gdb_stdlog
, "gdbarch_push_arguments called\n");
3014 return gdbarch
->push_arguments (nargs
, args
, sp
, struct_return
, struct_addr
);
3018 set_gdbarch_push_arguments (struct gdbarch
*gdbarch
,
3019 gdbarch_push_arguments_ftype push_arguments
)
3021 gdbarch
->push_arguments
= push_arguments
;
3025 gdbarch_push_dummy_frame (struct gdbarch
*gdbarch
)
3027 if (gdbarch
->push_dummy_frame
== 0)
3028 internal_error ("gdbarch: gdbarch_push_dummy_frame invalid");
3029 if (gdbarch_debug
>= 2)
3030 fprintf_unfiltered (gdb_stdlog
, "gdbarch_push_dummy_frame called\n");
3031 gdbarch
->push_dummy_frame ();
3035 set_gdbarch_push_dummy_frame (struct gdbarch
*gdbarch
,
3036 gdbarch_push_dummy_frame_ftype push_dummy_frame
)
3038 gdbarch
->push_dummy_frame
= push_dummy_frame
;
3042 gdbarch_push_return_address (struct gdbarch
*gdbarch
, CORE_ADDR pc
, CORE_ADDR sp
)
3044 if (gdbarch
->push_return_address
== 0)
3045 internal_error ("gdbarch: gdbarch_push_return_address invalid");
3046 if (gdbarch_debug
>= 2)
3047 fprintf_unfiltered (gdb_stdlog
, "gdbarch_push_return_address called\n");
3048 return gdbarch
->push_return_address (pc
, sp
);
3052 set_gdbarch_push_return_address (struct gdbarch
*gdbarch
,
3053 gdbarch_push_return_address_ftype push_return_address
)
3055 gdbarch
->push_return_address
= push_return_address
;
3059 gdbarch_pop_frame (struct gdbarch
*gdbarch
)
3061 if (gdbarch
->pop_frame
== 0)
3062 internal_error ("gdbarch: gdbarch_pop_frame invalid");
3063 if (gdbarch_debug
>= 2)
3064 fprintf_unfiltered (gdb_stdlog
, "gdbarch_pop_frame called\n");
3065 gdbarch
->pop_frame ();
3069 set_gdbarch_pop_frame (struct gdbarch
*gdbarch
,
3070 gdbarch_pop_frame_ftype pop_frame
)
3072 gdbarch
->pop_frame
= pop_frame
;
3076 gdbarch_d10v_make_daddr (struct gdbarch
*gdbarch
, CORE_ADDR x
)
3078 if (gdbarch
->d10v_make_daddr
== 0)
3079 internal_error ("gdbarch: gdbarch_d10v_make_daddr invalid");
3080 if (gdbarch_debug
>= 2)
3081 fprintf_unfiltered (gdb_stdlog
, "gdbarch_d10v_make_daddr called\n");
3082 return gdbarch
->d10v_make_daddr (x
);
3086 set_gdbarch_d10v_make_daddr (struct gdbarch
*gdbarch
,
3087 gdbarch_d10v_make_daddr_ftype d10v_make_daddr
)
3089 gdbarch
->d10v_make_daddr
= d10v_make_daddr
;
3093 gdbarch_d10v_make_iaddr (struct gdbarch
*gdbarch
, CORE_ADDR x
)
3095 if (gdbarch
->d10v_make_iaddr
== 0)
3096 internal_error ("gdbarch: gdbarch_d10v_make_iaddr invalid");
3097 if (gdbarch_debug
>= 2)
3098 fprintf_unfiltered (gdb_stdlog
, "gdbarch_d10v_make_iaddr called\n");
3099 return gdbarch
->d10v_make_iaddr (x
);
3103 set_gdbarch_d10v_make_iaddr (struct gdbarch
*gdbarch
,
3104 gdbarch_d10v_make_iaddr_ftype d10v_make_iaddr
)
3106 gdbarch
->d10v_make_iaddr
= d10v_make_iaddr
;
3110 gdbarch_d10v_daddr_p (struct gdbarch
*gdbarch
, CORE_ADDR x
)
3112 if (gdbarch
->d10v_daddr_p
== 0)
3113 internal_error ("gdbarch: gdbarch_d10v_daddr_p invalid");
3114 if (gdbarch_debug
>= 2)
3115 fprintf_unfiltered (gdb_stdlog
, "gdbarch_d10v_daddr_p called\n");
3116 return gdbarch
->d10v_daddr_p (x
);
3120 set_gdbarch_d10v_daddr_p (struct gdbarch
*gdbarch
,
3121 gdbarch_d10v_daddr_p_ftype d10v_daddr_p
)
3123 gdbarch
->d10v_daddr_p
= d10v_daddr_p
;
3127 gdbarch_d10v_iaddr_p (struct gdbarch
*gdbarch
, CORE_ADDR x
)
3129 if (gdbarch
->d10v_iaddr_p
== 0)
3130 internal_error ("gdbarch: gdbarch_d10v_iaddr_p invalid");
3131 if (gdbarch_debug
>= 2)
3132 fprintf_unfiltered (gdb_stdlog
, "gdbarch_d10v_iaddr_p called\n");
3133 return gdbarch
->d10v_iaddr_p (x
);
3137 set_gdbarch_d10v_iaddr_p (struct gdbarch
*gdbarch
,
3138 gdbarch_d10v_iaddr_p_ftype d10v_iaddr_p
)
3140 gdbarch
->d10v_iaddr_p
= d10v_iaddr_p
;
3144 gdbarch_d10v_convert_daddr_to_raw (struct gdbarch
*gdbarch
, CORE_ADDR x
)
3146 if (gdbarch
->d10v_convert_daddr_to_raw
== 0)
3147 internal_error ("gdbarch: gdbarch_d10v_convert_daddr_to_raw invalid");
3148 if (gdbarch_debug
>= 2)
3149 fprintf_unfiltered (gdb_stdlog
, "gdbarch_d10v_convert_daddr_to_raw called\n");
3150 return gdbarch
->d10v_convert_daddr_to_raw (x
);
3154 set_gdbarch_d10v_convert_daddr_to_raw (struct gdbarch
*gdbarch
,
3155 gdbarch_d10v_convert_daddr_to_raw_ftype d10v_convert_daddr_to_raw
)
3157 gdbarch
->d10v_convert_daddr_to_raw
= d10v_convert_daddr_to_raw
;
3161 gdbarch_d10v_convert_iaddr_to_raw (struct gdbarch
*gdbarch
, CORE_ADDR x
)
3163 if (gdbarch
->d10v_convert_iaddr_to_raw
== 0)
3164 internal_error ("gdbarch: gdbarch_d10v_convert_iaddr_to_raw invalid");
3165 if (gdbarch_debug
>= 2)
3166 fprintf_unfiltered (gdb_stdlog
, "gdbarch_d10v_convert_iaddr_to_raw called\n");
3167 return gdbarch
->d10v_convert_iaddr_to_raw (x
);
3171 set_gdbarch_d10v_convert_iaddr_to_raw (struct gdbarch
*gdbarch
,
3172 gdbarch_d10v_convert_iaddr_to_raw_ftype d10v_convert_iaddr_to_raw
)
3174 gdbarch
->d10v_convert_iaddr_to_raw
= d10v_convert_iaddr_to_raw
;
3178 gdbarch_store_struct_return (struct gdbarch
*gdbarch
, CORE_ADDR addr
, CORE_ADDR sp
)
3180 if (gdbarch
->store_struct_return
== 0)
3181 internal_error ("gdbarch: gdbarch_store_struct_return invalid");
3182 if (gdbarch_debug
>= 2)
3183 fprintf_unfiltered (gdb_stdlog
, "gdbarch_store_struct_return called\n");
3184 gdbarch
->store_struct_return (addr
, sp
);
3188 set_gdbarch_store_struct_return (struct gdbarch
*gdbarch
,
3189 gdbarch_store_struct_return_ftype store_struct_return
)
3191 gdbarch
->store_struct_return
= store_struct_return
;
3195 gdbarch_store_return_value (struct gdbarch
*gdbarch
, struct type
*type
, char *valbuf
)
3197 if (gdbarch
->store_return_value
== 0)
3198 internal_error ("gdbarch: gdbarch_store_return_value invalid");
3199 if (gdbarch_debug
>= 2)
3200 fprintf_unfiltered (gdb_stdlog
, "gdbarch_store_return_value called\n");
3201 gdbarch
->store_return_value (type
, valbuf
);
3205 set_gdbarch_store_return_value (struct gdbarch
*gdbarch
,
3206 gdbarch_store_return_value_ftype store_return_value
)
3208 gdbarch
->store_return_value
= store_return_value
;
3212 gdbarch_extract_struct_value_address (struct gdbarch
*gdbarch
, char *regbuf
)
3214 if (gdbarch
->extract_struct_value_address
== 0)
3215 internal_error ("gdbarch: gdbarch_extract_struct_value_address invalid");
3216 if (gdbarch_debug
>= 2)
3217 fprintf_unfiltered (gdb_stdlog
, "gdbarch_extract_struct_value_address called\n");
3218 return gdbarch
->extract_struct_value_address (regbuf
);
3222 set_gdbarch_extract_struct_value_address (struct gdbarch
*gdbarch
,
3223 gdbarch_extract_struct_value_address_ftype extract_struct_value_address
)
3225 gdbarch
->extract_struct_value_address
= extract_struct_value_address
;
3229 gdbarch_use_struct_convention (struct gdbarch
*gdbarch
, int gcc_p
, struct type
*value_type
)
3231 if (gdbarch
->use_struct_convention
== 0)
3232 internal_error ("gdbarch: gdbarch_use_struct_convention invalid");
3233 if (gdbarch_debug
>= 2)
3234 fprintf_unfiltered (gdb_stdlog
, "gdbarch_use_struct_convention called\n");
3235 return gdbarch
->use_struct_convention (gcc_p
, value_type
);
3239 set_gdbarch_use_struct_convention (struct gdbarch
*gdbarch
,
3240 gdbarch_use_struct_convention_ftype use_struct_convention
)
3242 gdbarch
->use_struct_convention
= use_struct_convention
;
3246 gdbarch_frame_init_saved_regs (struct gdbarch
*gdbarch
, struct frame_info
*frame
)
3248 if (gdbarch
->frame_init_saved_regs
== 0)
3249 internal_error ("gdbarch: gdbarch_frame_init_saved_regs invalid");
3250 if (gdbarch_debug
>= 2)
3251 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_init_saved_regs called\n");
3252 gdbarch
->frame_init_saved_regs (frame
);
3256 set_gdbarch_frame_init_saved_regs (struct gdbarch
*gdbarch
,
3257 gdbarch_frame_init_saved_regs_ftype frame_init_saved_regs
)
3259 gdbarch
->frame_init_saved_regs
= frame_init_saved_regs
;
3263 gdbarch_init_extra_frame_info (struct gdbarch
*gdbarch
, int fromleaf
, struct frame_info
*frame
)
3265 if (gdbarch
->init_extra_frame_info
== 0)
3266 internal_error ("gdbarch: gdbarch_init_extra_frame_info invalid");
3267 if (gdbarch_debug
>= 2)
3268 fprintf_unfiltered (gdb_stdlog
, "gdbarch_init_extra_frame_info called\n");
3269 gdbarch
->init_extra_frame_info (fromleaf
, frame
);
3273 set_gdbarch_init_extra_frame_info (struct gdbarch
*gdbarch
,
3274 gdbarch_init_extra_frame_info_ftype init_extra_frame_info
)
3276 gdbarch
->init_extra_frame_info
= init_extra_frame_info
;
3280 gdbarch_skip_prologue (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
3282 if (gdbarch
->skip_prologue
== 0)
3283 internal_error ("gdbarch: gdbarch_skip_prologue invalid");
3284 if (gdbarch_debug
>= 2)
3285 fprintf_unfiltered (gdb_stdlog
, "gdbarch_skip_prologue called\n");
3286 return gdbarch
->skip_prologue (ip
);
3290 set_gdbarch_skip_prologue (struct gdbarch
*gdbarch
,
3291 gdbarch_skip_prologue_ftype skip_prologue
)
3293 gdbarch
->skip_prologue
= skip_prologue
;
3297 gdbarch_prologue_frameless_p (struct gdbarch
*gdbarch
, CORE_ADDR ip
)
3299 if (gdbarch
->prologue_frameless_p
== 0)
3300 internal_error ("gdbarch: gdbarch_prologue_frameless_p invalid");
3301 if (gdbarch_debug
>= 2)
3302 fprintf_unfiltered (gdb_stdlog
, "gdbarch_prologue_frameless_p called\n");
3303 return gdbarch
->prologue_frameless_p (ip
);
3307 set_gdbarch_prologue_frameless_p (struct gdbarch
*gdbarch
,
3308 gdbarch_prologue_frameless_p_ftype prologue_frameless_p
)
3310 gdbarch
->prologue_frameless_p
= prologue_frameless_p
;
3314 gdbarch_inner_than (struct gdbarch
*gdbarch
, CORE_ADDR lhs
, CORE_ADDR rhs
)
3316 if (gdbarch
->inner_than
== 0)
3317 internal_error ("gdbarch: gdbarch_inner_than invalid");
3318 if (gdbarch_debug
>= 2)
3319 fprintf_unfiltered (gdb_stdlog
, "gdbarch_inner_than called\n");
3320 return gdbarch
->inner_than (lhs
, rhs
);
3324 set_gdbarch_inner_than (struct gdbarch
*gdbarch
,
3325 gdbarch_inner_than_ftype inner_than
)
3327 gdbarch
->inner_than
= inner_than
;
3331 gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
, CORE_ADDR
*pcptr
, int *lenptr
)
3333 if (gdbarch
->breakpoint_from_pc
== 0)
3334 internal_error ("gdbarch: gdbarch_breakpoint_from_pc invalid");
3335 if (gdbarch_debug
>= 2)
3336 fprintf_unfiltered (gdb_stdlog
, "gdbarch_breakpoint_from_pc called\n");
3337 return gdbarch
->breakpoint_from_pc (pcptr
, lenptr
);
3341 set_gdbarch_breakpoint_from_pc (struct gdbarch
*gdbarch
,
3342 gdbarch_breakpoint_from_pc_ftype breakpoint_from_pc
)
3344 gdbarch
->breakpoint_from_pc
= breakpoint_from_pc
;
3348 gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
, CORE_ADDR addr
, char *contents_cache
)
3350 if (gdbarch
->memory_insert_breakpoint
== 0)
3351 internal_error ("gdbarch: gdbarch_memory_insert_breakpoint invalid");
3352 if (gdbarch_debug
>= 2)
3353 fprintf_unfiltered (gdb_stdlog
, "gdbarch_memory_insert_breakpoint called\n");
3354 return gdbarch
->memory_insert_breakpoint (addr
, contents_cache
);
3358 set_gdbarch_memory_insert_breakpoint (struct gdbarch
*gdbarch
,
3359 gdbarch_memory_insert_breakpoint_ftype memory_insert_breakpoint
)
3361 gdbarch
->memory_insert_breakpoint
= memory_insert_breakpoint
;
3365 gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
, CORE_ADDR addr
, char *contents_cache
)
3367 if (gdbarch
->memory_remove_breakpoint
== 0)
3368 internal_error ("gdbarch: gdbarch_memory_remove_breakpoint invalid");
3369 if (gdbarch_debug
>= 2)
3370 fprintf_unfiltered (gdb_stdlog
, "gdbarch_memory_remove_breakpoint called\n");
3371 return gdbarch
->memory_remove_breakpoint (addr
, contents_cache
);
3375 set_gdbarch_memory_remove_breakpoint (struct gdbarch
*gdbarch
,
3376 gdbarch_memory_remove_breakpoint_ftype memory_remove_breakpoint
)
3378 gdbarch
->memory_remove_breakpoint
= memory_remove_breakpoint
;
3382 gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
)
3384 if (gdbarch
->decr_pc_after_break
== -1)
3385 internal_error ("gdbarch: gdbarch_decr_pc_after_break invalid");
3386 if (gdbarch_debug
>= 2)
3387 fprintf_unfiltered (gdb_stdlog
, "gdbarch_decr_pc_after_break called\n");
3388 return gdbarch
->decr_pc_after_break
;
3392 set_gdbarch_decr_pc_after_break (struct gdbarch
*gdbarch
,
3393 CORE_ADDR decr_pc_after_break
)
3395 gdbarch
->decr_pc_after_break
= decr_pc_after_break
;
3399 gdbarch_function_start_offset (struct gdbarch
*gdbarch
)
3401 if (gdbarch
->function_start_offset
== -1)
3402 internal_error ("gdbarch: gdbarch_function_start_offset invalid");
3403 if (gdbarch_debug
>= 2)
3404 fprintf_unfiltered (gdb_stdlog
, "gdbarch_function_start_offset called\n");
3405 return gdbarch
->function_start_offset
;
3409 set_gdbarch_function_start_offset (struct gdbarch
*gdbarch
,
3410 CORE_ADDR function_start_offset
)
3412 gdbarch
->function_start_offset
= function_start_offset
;
3416 gdbarch_remote_translate_xfer_address (struct gdbarch
*gdbarch
, CORE_ADDR gdb_addr
, int gdb_len
, CORE_ADDR
*rem_addr
, int *rem_len
)
3418 if (gdbarch
->remote_translate_xfer_address
== 0)
3419 internal_error ("gdbarch: gdbarch_remote_translate_xfer_address invalid");
3420 if (gdbarch_debug
>= 2)
3421 fprintf_unfiltered (gdb_stdlog
, "gdbarch_remote_translate_xfer_address called\n");
3422 gdbarch
->remote_translate_xfer_address (gdb_addr
, gdb_len
, rem_addr
, rem_len
);
3426 set_gdbarch_remote_translate_xfer_address (struct gdbarch
*gdbarch
,
3427 gdbarch_remote_translate_xfer_address_ftype remote_translate_xfer_address
)
3429 gdbarch
->remote_translate_xfer_address
= remote_translate_xfer_address
;
3433 gdbarch_frame_args_skip (struct gdbarch
*gdbarch
)
3435 if (gdbarch
->frame_args_skip
== -1)
3436 internal_error ("gdbarch: gdbarch_frame_args_skip invalid");
3437 if (gdbarch_debug
>= 2)
3438 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_args_skip called\n");
3439 return gdbarch
->frame_args_skip
;
3443 set_gdbarch_frame_args_skip (struct gdbarch
*gdbarch
,
3444 CORE_ADDR frame_args_skip
)
3446 gdbarch
->frame_args_skip
= frame_args_skip
;
3450 gdbarch_frameless_function_invocation (struct gdbarch
*gdbarch
, struct frame_info
*fi
)
3452 if (gdbarch
->frameless_function_invocation
== 0)
3453 internal_error ("gdbarch: gdbarch_frameless_function_invocation invalid");
3454 if (gdbarch_debug
>= 2)
3455 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frameless_function_invocation called\n");
3456 return gdbarch
->frameless_function_invocation (fi
);
3460 set_gdbarch_frameless_function_invocation (struct gdbarch
*gdbarch
,
3461 gdbarch_frameless_function_invocation_ftype frameless_function_invocation
)
3463 gdbarch
->frameless_function_invocation
= frameless_function_invocation
;
3467 gdbarch_frame_chain (struct gdbarch
*gdbarch
, struct frame_info
*frame
)
3469 if (gdbarch
->frame_chain
== 0)
3470 internal_error ("gdbarch: gdbarch_frame_chain invalid");
3471 if (gdbarch_debug
>= 2)
3472 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_chain called\n");
3473 return gdbarch
->frame_chain (frame
);
3477 set_gdbarch_frame_chain (struct gdbarch
*gdbarch
,
3478 gdbarch_frame_chain_ftype frame_chain
)
3480 gdbarch
->frame_chain
= frame_chain
;
3484 gdbarch_frame_chain_valid (struct gdbarch
*gdbarch
, CORE_ADDR chain
, struct frame_info
*thisframe
)
3486 if (gdbarch
->frame_chain_valid
== 0)
3487 internal_error ("gdbarch: gdbarch_frame_chain_valid invalid");
3488 if (gdbarch_debug
>= 2)
3489 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_chain_valid called\n");
3490 return gdbarch
->frame_chain_valid (chain
, thisframe
);
3494 set_gdbarch_frame_chain_valid (struct gdbarch
*gdbarch
,
3495 gdbarch_frame_chain_valid_ftype frame_chain_valid
)
3497 gdbarch
->frame_chain_valid
= frame_chain_valid
;
3501 gdbarch_frame_saved_pc (struct gdbarch
*gdbarch
, struct frame_info
*fi
)
3503 if (gdbarch
->frame_saved_pc
== 0)
3504 internal_error ("gdbarch: gdbarch_frame_saved_pc invalid");
3505 if (gdbarch_debug
>= 2)
3506 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_saved_pc called\n");
3507 return gdbarch
->frame_saved_pc (fi
);
3511 set_gdbarch_frame_saved_pc (struct gdbarch
*gdbarch
,
3512 gdbarch_frame_saved_pc_ftype frame_saved_pc
)
3514 gdbarch
->frame_saved_pc
= frame_saved_pc
;
3518 gdbarch_frame_args_address (struct gdbarch
*gdbarch
, struct frame_info
*fi
)
3520 if (gdbarch
->frame_args_address
== 0)
3521 internal_error ("gdbarch: gdbarch_frame_args_address invalid");
3522 if (gdbarch_debug
>= 2)
3523 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_args_address called\n");
3524 return gdbarch
->frame_args_address (fi
);
3528 set_gdbarch_frame_args_address (struct gdbarch
*gdbarch
,
3529 gdbarch_frame_args_address_ftype frame_args_address
)
3531 gdbarch
->frame_args_address
= frame_args_address
;
3535 gdbarch_frame_locals_address (struct gdbarch
*gdbarch
, struct frame_info
*fi
)
3537 if (gdbarch
->frame_locals_address
== 0)
3538 internal_error ("gdbarch: gdbarch_frame_locals_address invalid");
3539 if (gdbarch_debug
>= 2)
3540 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_locals_address called\n");
3541 return gdbarch
->frame_locals_address (fi
);
3545 set_gdbarch_frame_locals_address (struct gdbarch
*gdbarch
,
3546 gdbarch_frame_locals_address_ftype frame_locals_address
)
3548 gdbarch
->frame_locals_address
= frame_locals_address
;
3552 gdbarch_saved_pc_after_call (struct gdbarch
*gdbarch
, struct frame_info
*frame
)
3554 if (gdbarch
->saved_pc_after_call
== 0)
3555 internal_error ("gdbarch: gdbarch_saved_pc_after_call invalid");
3556 if (gdbarch_debug
>= 2)
3557 fprintf_unfiltered (gdb_stdlog
, "gdbarch_saved_pc_after_call called\n");
3558 return gdbarch
->saved_pc_after_call (frame
);
3562 set_gdbarch_saved_pc_after_call (struct gdbarch
*gdbarch
,
3563 gdbarch_saved_pc_after_call_ftype saved_pc_after_call
)
3565 gdbarch
->saved_pc_after_call
= saved_pc_after_call
;
3569 gdbarch_frame_num_args (struct gdbarch
*gdbarch
, struct frame_info
*frame
)
3571 if (gdbarch
->frame_num_args
== 0)
3572 internal_error ("gdbarch: gdbarch_frame_num_args invalid");
3573 if (gdbarch_debug
>= 2)
3574 fprintf_unfiltered (gdb_stdlog
, "gdbarch_frame_num_args called\n");
3575 return gdbarch
->frame_num_args (frame
);
3579 set_gdbarch_frame_num_args (struct gdbarch
*gdbarch
,
3580 gdbarch_frame_num_args_ftype frame_num_args
)
3582 gdbarch
->frame_num_args
= frame_num_args
;
3586 gdbarch_stack_align_p (struct gdbarch
*gdbarch
)
3588 return gdbarch
->stack_align
!= 0;
3592 gdbarch_stack_align (struct gdbarch
*gdbarch
, CORE_ADDR sp
)
3594 if (gdbarch
->stack_align
== 0)
3595 internal_error ("gdbarch: gdbarch_stack_align invalid");
3596 if (gdbarch_debug
>= 2)
3597 fprintf_unfiltered (gdb_stdlog
, "gdbarch_stack_align called\n");
3598 return gdbarch
->stack_align (sp
);
3602 set_gdbarch_stack_align (struct gdbarch
*gdbarch
,
3603 gdbarch_stack_align_ftype stack_align
)
3605 gdbarch
->stack_align
= stack_align
;
3609 gdbarch_extra_stack_alignment_needed (struct gdbarch
*gdbarch
)
3611 /* Skip verify of extra_stack_alignment_needed, invalid_p == 0 */
3612 if (gdbarch_debug
>= 2)
3613 fprintf_unfiltered (gdb_stdlog
, "gdbarch_extra_stack_alignment_needed called\n");
3614 return gdbarch
->extra_stack_alignment_needed
;
3618 set_gdbarch_extra_stack_alignment_needed (struct gdbarch
*gdbarch
,
3619 int extra_stack_alignment_needed
)
3621 gdbarch
->extra_stack_alignment_needed
= extra_stack_alignment_needed
;
3625 gdbarch_reg_struct_has_addr_p (struct gdbarch
*gdbarch
)
3627 return gdbarch
->reg_struct_has_addr
!= 0;
3631 gdbarch_reg_struct_has_addr (struct gdbarch
*gdbarch
, int gcc_p
, struct type
*type
)
3633 if (gdbarch
->reg_struct_has_addr
== 0)
3634 internal_error ("gdbarch: gdbarch_reg_struct_has_addr invalid");
3635 if (gdbarch_debug
>= 2)
3636 fprintf_unfiltered (gdb_stdlog
, "gdbarch_reg_struct_has_addr called\n");
3637 return gdbarch
->reg_struct_has_addr (gcc_p
, type
);
3641 set_gdbarch_reg_struct_has_addr (struct gdbarch
*gdbarch
,
3642 gdbarch_reg_struct_has_addr_ftype reg_struct_has_addr
)
3644 gdbarch
->reg_struct_has_addr
= reg_struct_has_addr
;
3648 gdbarch_save_dummy_frame_tos_p (struct gdbarch
*gdbarch
)
3650 return gdbarch
->save_dummy_frame_tos
!= 0;
3654 gdbarch_save_dummy_frame_tos (struct gdbarch
*gdbarch
, CORE_ADDR sp
)
3656 if (gdbarch
->save_dummy_frame_tos
== 0)
3657 internal_error ("gdbarch: gdbarch_save_dummy_frame_tos invalid");
3658 if (gdbarch_debug
>= 2)
3659 fprintf_unfiltered (gdb_stdlog
, "gdbarch_save_dummy_frame_tos called\n");
3660 gdbarch
->save_dummy_frame_tos (sp
);
3664 set_gdbarch_save_dummy_frame_tos (struct gdbarch
*gdbarch
,
3665 gdbarch_save_dummy_frame_tos_ftype save_dummy_frame_tos
)
3667 gdbarch
->save_dummy_frame_tos
= save_dummy_frame_tos
;
3670 const struct floatformat
*
3671 gdbarch_float_format (struct gdbarch
*gdbarch
)
3673 if (gdbarch_debug
>= 2)
3674 fprintf_unfiltered (gdb_stdlog
, "gdbarch_float_format called\n");
3675 return gdbarch
->float_format
;
3679 set_gdbarch_float_format (struct gdbarch
*gdbarch
,
3680 const struct floatformat
* float_format
)
3682 gdbarch
->float_format
= float_format
;
3685 const struct floatformat
*
3686 gdbarch_double_format (struct gdbarch
*gdbarch
)
3688 if (gdbarch_debug
>= 2)
3689 fprintf_unfiltered (gdb_stdlog
, "gdbarch_double_format called\n");
3690 return gdbarch
->double_format
;
3694 set_gdbarch_double_format (struct gdbarch
*gdbarch
,
3695 const struct floatformat
* double_format
)
3697 gdbarch
->double_format
= double_format
;
3700 const struct floatformat
*
3701 gdbarch_long_double_format (struct gdbarch
*gdbarch
)
3703 if (gdbarch_debug
>= 2)
3704 fprintf_unfiltered (gdb_stdlog
, "gdbarch_long_double_format called\n");
3705 return gdbarch
->long_double_format
;
3709 set_gdbarch_long_double_format (struct gdbarch
*gdbarch
,
3710 const struct floatformat
* long_double_format
)
3712 gdbarch
->long_double_format
= long_double_format
;
3716 /* Keep a registrary of per-architecture data-pointers required by GDB
3724 struct gdbarch_data_registration
3726 gdbarch_data_ftype
*init
;
3727 struct gdbarch_data
*data
;
3728 struct gdbarch_data_registration
*next
;
3731 struct gdbarch_data_registrary
3734 struct gdbarch_data_registration
*registrations
;
3737 struct gdbarch_data_registrary gdbarch_data_registrary
=
3742 struct gdbarch_data
*
3743 register_gdbarch_data (gdbarch_data_ftype
*init
)
3745 struct gdbarch_data_registration
**curr
;
3746 for (curr
= &gdbarch_data_registrary
.registrations
;
3748 curr
= &(*curr
)->next
);
3749 (*curr
) = XMALLOC (struct gdbarch_data_registration
);
3750 (*curr
)->next
= NULL
;
3751 (*curr
)->init
= init
;
3752 (*curr
)->data
= XMALLOC (struct gdbarch_data
);
3753 (*curr
)->data
->index
= gdbarch_data_registrary
.nr
++;
3754 return (*curr
)->data
;
3758 /* Walk through all the registered users initializing each in turn. */
3761 init_gdbarch_data (struct gdbarch
*gdbarch
)
3763 struct gdbarch_data_registration
*rego
;
3764 gdbarch
->nr_data
= gdbarch_data_registrary
.nr
+ 1;
3765 gdbarch
->data
= xmalloc (sizeof (void*) * gdbarch
->nr_data
);
3766 for (rego
= gdbarch_data_registrary
.registrations
;
3770 if (rego
->data
->index
< gdbarch
->nr_data
)
3771 gdbarch
->data
[rego
->data
->index
] = rego
->init ();
3776 /* Return the current value of the specified per-architecture
3780 gdbarch_data (struct gdbarch_data
*data
)
3782 if (data
->index
>= current_gdbarch
->nr_data
)
3783 internal_error ("gdbarch_data: request for non-existant data.");
3784 return current_gdbarch
->data
[data
->index
];
3789 /* Keep a registrary of swaped data required by GDB modules. */
3794 struct gdbarch_swap_registration
*source
;
3795 struct gdbarch_swap
*next
;
3798 struct gdbarch_swap_registration
3801 unsigned long sizeof_data
;
3802 gdbarch_swap_ftype
*init
;
3803 struct gdbarch_swap_registration
*next
;
3806 struct gdbarch_swap_registrary
3809 struct gdbarch_swap_registration
*registrations
;
3812 struct gdbarch_swap_registrary gdbarch_swap_registrary
=
3818 register_gdbarch_swap (void *data
,
3819 unsigned long sizeof_data
,
3820 gdbarch_swap_ftype
*init
)
3822 struct gdbarch_swap_registration
**rego
;
3823 for (rego
= &gdbarch_swap_registrary
.registrations
;
3825 rego
= &(*rego
)->next
);
3826 (*rego
) = XMALLOC (struct gdbarch_swap_registration
);
3827 (*rego
)->next
= NULL
;
3828 (*rego
)->init
= init
;
3829 (*rego
)->data
= data
;
3830 (*rego
)->sizeof_data
= sizeof_data
;
3835 init_gdbarch_swap (struct gdbarch
*gdbarch
)
3837 struct gdbarch_swap_registration
*rego
;
3838 struct gdbarch_swap
**curr
= &gdbarch
->swap
;
3839 for (rego
= gdbarch_swap_registrary
.registrations
;
3843 if (rego
->data
!= NULL
)
3845 (*curr
) = XMALLOC (struct gdbarch_swap
);
3846 (*curr
)->source
= rego
;
3847 (*curr
)->swap
= xmalloc (rego
->sizeof_data
);
3848 (*curr
)->next
= NULL
;
3849 memset (rego
->data
, 0, rego
->sizeof_data
);
3850 curr
= &(*curr
)->next
;
3852 if (rego
->init
!= NULL
)
3858 swapout_gdbarch_swap (struct gdbarch
*gdbarch
)
3860 struct gdbarch_swap
*curr
;
3861 for (curr
= gdbarch
->swap
;
3864 memcpy (curr
->swap
, curr
->source
->data
, curr
->source
->sizeof_data
);
3868 swapin_gdbarch_swap (struct gdbarch
*gdbarch
)
3870 struct gdbarch_swap
*curr
;
3871 for (curr
= gdbarch
->swap
;
3874 memcpy (curr
->source
->data
, curr
->swap
, curr
->source
->sizeof_data
);
3878 /* Keep a registrary of the architectures known by GDB. */
3880 struct gdbarch_registration
3882 enum bfd_architecture bfd_architecture
;
3883 gdbarch_init_ftype
*init
;
3884 gdbarch_dump_tdep_ftype
*dump_tdep
;
3885 struct gdbarch_list
*arches
;
3886 struct gdbarch_registration
*next
;
3889 static struct gdbarch_registration
*gdbarch_registrary
= NULL
;
3892 append_name (const char ***buf
, int *nr
, const char *name
)
3894 *buf
= xrealloc (*buf
, sizeof (char**) * (*nr
+ 1));
3900 gdbarch_printable_names (void)
3904 /* Accumulate a list of names based on the registed list of
3906 enum bfd_architecture a
;
3908 const char **arches
= NULL
;
3909 struct gdbarch_registration
*rego
;
3910 for (rego
= gdbarch_registrary
;
3914 const struct bfd_arch_info
*ap
;
3915 ap
= bfd_lookup_arch (rego
->bfd_architecture
, 0);
3917 internal_error ("gdbarch_architecture_names: multi-arch unknown");
3920 append_name (&arches
, &nr_arches
, ap
->printable_name
);
3925 append_name (&arches
, &nr_arches
, NULL
);
3929 /* Just return all the architectures that BFD knows. Assume that
3930 the legacy architecture framework supports them. */
3931 return bfd_arch_list ();
3936 gdbarch_register (enum bfd_architecture bfd_architecture
,
3937 gdbarch_init_ftype
*init
,
3938 gdbarch_dump_tdep_ftype
*dump_tdep
)
3940 struct gdbarch_registration
**curr
;
3941 const struct bfd_arch_info
*bfd_arch_info
;
3942 /* Check that BFD reconizes this architecture */
3943 bfd_arch_info
= bfd_lookup_arch (bfd_architecture
, 0);
3944 if (bfd_arch_info
== NULL
)
3946 internal_error ("gdbarch: Attempt to register unknown architecture (%d)", bfd_architecture
);
3948 /* Check that we haven't seen this architecture before */
3949 for (curr
= &gdbarch_registrary
;
3951 curr
= &(*curr
)->next
)
3953 if (bfd_architecture
== (*curr
)->bfd_architecture
)
3954 internal_error ("gdbarch: Duplicate registraration of architecture (%s)",
3955 bfd_arch_info
->printable_name
);
3959 fprintf_unfiltered (gdb_stdlog
, "register_gdbarch_init (%s, 0x%08lx)\n",
3960 bfd_arch_info
->printable_name
,
3963 (*curr
) = XMALLOC (struct gdbarch_registration
);
3964 (*curr
)->bfd_architecture
= bfd_architecture
;
3965 (*curr
)->init
= init
;
3966 (*curr
)->dump_tdep
= dump_tdep
;
3967 (*curr
)->arches
= NULL
;
3968 (*curr
)->next
= NULL
;
3969 /* When non- multi-arch, install what ever target dump routine we've
3970 been provided - hopefully that routine has been writen correct
3971 and works regardless of multi-arch. */
3972 if (!GDB_MULTI_ARCH
&& dump_tdep
!= NULL
3973 && startup_gdbarch
.dump_tdep
== NULL
)
3974 startup_gdbarch
.dump_tdep
= dump_tdep
;
3978 register_gdbarch_init (enum bfd_architecture bfd_architecture
,
3979 gdbarch_init_ftype
*init
)
3981 gdbarch_register (bfd_architecture
, init
, NULL
);
3985 /* Look for an architecture using gdbarch_info. Base search on only
3986 BFD_ARCH_INFO and BYTE_ORDER. */
3988 struct gdbarch_list
*
3989 gdbarch_list_lookup_by_info (struct gdbarch_list
*arches
,
3990 const struct gdbarch_info
*info
)
3992 for (; arches
!= NULL
; arches
= arches
->next
)
3994 if (info
->bfd_arch_info
!= arches
->gdbarch
->bfd_arch_info
)
3996 if (info
->byte_order
!= arches
->gdbarch
->byte_order
)
4004 /* Update the current architecture. Return ZERO if the update request
4008 gdbarch_update_p (struct gdbarch_info info
)
4010 struct gdbarch
*new_gdbarch
;
4011 struct gdbarch_list
**list
;
4012 struct gdbarch_registration
*rego
;
4014 /* Fill in any missing bits. Most important is the bfd_architecture
4015 which is used to select the target architecture. */
4016 if (info
.bfd_architecture
== bfd_arch_unknown
)
4018 if (info
.bfd_arch_info
!= NULL
)
4019 info
.bfd_architecture
= info
.bfd_arch_info
->arch
;
4020 else if (info
.abfd
!= NULL
)
4021 info
.bfd_architecture
= bfd_get_arch (info
.abfd
);
4022 /* FIXME - should query BFD for its default architecture. */
4024 info
.bfd_architecture
= current_gdbarch
->bfd_arch_info
->arch
;
4026 if (info
.bfd_arch_info
== NULL
)
4028 if (target_architecture_auto
&& info
.abfd
!= NULL
)
4029 info
.bfd_arch_info
= bfd_get_arch_info (info
.abfd
);
4031 info
.bfd_arch_info
= current_gdbarch
->bfd_arch_info
;
4033 if (info
.byte_order
== 0)
4035 if (target_byte_order_auto
&& info
.abfd
!= NULL
)
4036 info
.byte_order
= (bfd_big_endian (info
.abfd
) ? BIG_ENDIAN
4037 : bfd_little_endian (info
.abfd
) ? LITTLE_ENDIAN
4040 info
.byte_order
= current_gdbarch
->byte_order
;
4041 /* FIXME - should query BFD for its default byte-order. */
4043 /* A default for abfd? */
4045 /* Find the target that knows about this architecture. */
4046 for (rego
= gdbarch_registrary
;
4049 if (rego
->bfd_architecture
== info
.bfd_architecture
)
4054 fprintf_unfiltered (gdb_stdlog
, "gdbarch_update: No matching architecture\n");
4060 fprintf_unfiltered (gdb_stdlog
,
4061 "gdbarch_update: info.bfd_architecture %d (%s)\n",
4062 info
.bfd_architecture
,
4063 bfd_lookup_arch (info
.bfd_architecture
, 0)->printable_name
);
4064 fprintf_unfiltered (gdb_stdlog
,
4065 "gdbarch_update: info.bfd_arch_info %s\n",
4066 (info
.bfd_arch_info
!= NULL
4067 ? info
.bfd_arch_info
->printable_name
4069 fprintf_unfiltered (gdb_stdlog
,
4070 "gdbarch_update: info.byte_order %d (%s)\n",
4072 (info
.byte_order
== BIG_ENDIAN
? "big"
4073 : info
.byte_order
== LITTLE_ENDIAN
? "little"
4075 fprintf_unfiltered (gdb_stdlog
,
4076 "gdbarch_update: info.abfd 0x%lx\n",
4078 fprintf_unfiltered (gdb_stdlog
,
4079 "gdbarch_update: info.tdep_info 0x%lx\n",
4080 (long) info
.tdep_info
);
4083 /* Ask the target for a replacement architecture. */
4084 new_gdbarch
= rego
->init (info
, rego
->arches
);
4086 /* Did the target like it? No. Reject the change. */
4087 if (new_gdbarch
== NULL
)
4090 fprintf_unfiltered (gdb_stdlog
, "gdbarch_update: Target rejected architecture\n");
4094 /* Did the architecture change? No. Do nothing. */
4095 if (current_gdbarch
== new_gdbarch
)
4098 fprintf_unfiltered (gdb_stdlog
, "gdbarch_update: Architecture 0x%08lx (%s) unchanged\n",
4100 new_gdbarch
->bfd_arch_info
->printable_name
);
4104 /* Swap all data belonging to the old target out */
4105 swapout_gdbarch_swap (current_gdbarch
);
4107 /* Is this a pre-existing architecture? Yes. Swap it in. */
4108 for (list
= ®o
->arches
;
4110 list
= &(*list
)->next
)
4112 if ((*list
)->gdbarch
== new_gdbarch
)
4115 fprintf_unfiltered (gdb_stdlog
,
4116 "gdbarch_update: Previous architecture 0x%08lx (%s) selected\n",
4118 new_gdbarch
->bfd_arch_info
->printable_name
);
4119 current_gdbarch
= new_gdbarch
;
4120 swapin_gdbarch_swap (new_gdbarch
);
4125 /* Append this new architecture to this targets list. */
4126 (*list
) = XMALLOC (struct gdbarch_list
);
4127 (*list
)->next
= NULL
;
4128 (*list
)->gdbarch
= new_gdbarch
;
4130 /* Switch to this new architecture. Dump it out. */
4131 current_gdbarch
= new_gdbarch
;
4134 fprintf_unfiltered (gdb_stdlog
,
4135 "gdbarch_update: New architecture 0x%08lx (%s) selected\n",
4137 new_gdbarch
->bfd_arch_info
->printable_name
);
4140 /* Check that the newly installed architecture is valid. Plug in
4141 any post init values. */
4142 new_gdbarch
->dump_tdep
= rego
->dump_tdep
;
4143 verify_gdbarch (new_gdbarch
);
4145 /* Initialize the per-architecture memory (swap) areas.
4146 CURRENT_GDBARCH must be update before these modules are
4148 init_gdbarch_swap (new_gdbarch
);
4150 /* Initialize the per-architecture data-pointer of all parties that
4151 registered an interest in this architecture. CURRENT_GDBARCH
4152 must be updated before these modules are called. */
4153 init_gdbarch_data (new_gdbarch
);
4156 gdbarch_dump (current_gdbarch
, gdb_stdlog
);
4164 /* Pointer to the target-dependent disassembly function. */
4165 int (*tm_print_insn
) (bfd_vma
, disassemble_info
*);
4166 disassemble_info tm_print_insn_info
;
4169 extern void _initialize_gdbarch (void);
4172 _initialize_gdbarch (void)
4174 struct cmd_list_element
*c
;
4176 INIT_DISASSEMBLE_INFO_NO_ARCH (tm_print_insn_info
, gdb_stdout
, (fprintf_ftype
)fprintf_filtered
);
4177 tm_print_insn_info
.flavour
= bfd_target_unknown_flavour
;
4178 tm_print_insn_info
.read_memory_func
= dis_asm_read_memory
;
4179 tm_print_insn_info
.memory_error_func
= dis_asm_memory_error
;
4180 tm_print_insn_info
.print_address_func
= dis_asm_print_address
;
4182 add_show_from_set (add_set_cmd ("arch",
4185 (char *)&gdbarch_debug
,
4186 "Set architecture debugging.\n\
4187 When non-zero, architecture debugging is enabled.", &setdebuglist
),
4189 c
= add_set_cmd ("archdebug",
4192 (char *)&gdbarch_debug
,
4193 "Set architecture debugging.\n\
4194 When non-zero, architecture debugging is enabled.", &setlist
);
4196 deprecate_cmd (c
, "set debug arch");
4197 deprecate_cmd (add_show_from_set (c
, &showlist
), "show debug arch");