| OLD | NEW |
| 1 /* *INDENT-OFF* */ /* THIS FILE IS GENERATED */ | 1 /* *INDENT-OFF* */ /* THIS FILE IS GENERATED */ |
| 2 | 2 |
| 3 /* Dynamic architecture support for GDB, the GNU debugger. | 3 /* Dynamic architecture support for GDB, the GNU debugger. |
| 4 | 4 |
| 5 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 5 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
| 6 2007, 2008, 2009 Free Software Foundation, Inc. | 6 2007, 2008, 2009 Free Software Foundation, Inc. |
| 7 | 7 |
| 8 This file is part of GDB. | 8 This file is part of GDB. |
| 9 | 9 |
| 10 This program is free software; you can redistribute it and/or modify | 10 This program is free software; you can redistribute it and/or modify |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 #include "floatformat.h" | 43 #include "floatformat.h" |
| 44 | 44 |
| 45 #include "gdb_assert.h" | 45 #include "gdb_assert.h" |
| 46 #include "gdb_string.h" | 46 #include "gdb_string.h" |
| 47 #include "reggroups.h" | 47 #include "reggroups.h" |
| 48 #include "osabi.h" | 48 #include "osabi.h" |
| 49 #include "gdb_obstack.h" | 49 #include "gdb_obstack.h" |
| 50 #include "observer.h" | 50 #include "observer.h" |
| 51 #include "regcache.h" | 51 #include "regcache.h" |
| 52 #include "objfiles.h" |
| 52 | 53 |
| 53 /* Static function declarations */ | 54 /* Static function declarations */ |
| 54 | 55 |
| 55 static void alloc_gdbarch_data (struct gdbarch *); | 56 static void alloc_gdbarch_data (struct gdbarch *); |
| 56 | 57 |
| 57 /* Non-zero if we want to trace architecture code. */ | 58 /* Non-zero if we want to trace architecture code. */ |
| 58 | 59 |
| 59 #ifndef GDBARCH_DEBUG | 60 #ifndef GDBARCH_DEBUG |
| 60 #define GDBARCH_DEBUG 0 | 61 #define GDBARCH_DEBUG 0 |
| 61 #endif | 62 #endif |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 gdbarch_get_longjmp_target_ftype *get_longjmp_target; | 193 gdbarch_get_longjmp_target_ftype *get_longjmp_target; |
| 193 int believe_pcc_promotion; | 194 int believe_pcc_promotion; |
| 194 gdbarch_convert_register_p_ftype *convert_register_p; | 195 gdbarch_convert_register_p_ftype *convert_register_p; |
| 195 gdbarch_register_to_value_ftype *register_to_value; | 196 gdbarch_register_to_value_ftype *register_to_value; |
| 196 gdbarch_value_to_register_ftype *value_to_register; | 197 gdbarch_value_to_register_ftype *value_to_register; |
| 197 gdbarch_value_from_register_ftype *value_from_register; | 198 gdbarch_value_from_register_ftype *value_from_register; |
| 198 gdbarch_pointer_to_address_ftype *pointer_to_address; | 199 gdbarch_pointer_to_address_ftype *pointer_to_address; |
| 199 gdbarch_address_to_pointer_ftype *address_to_pointer; | 200 gdbarch_address_to_pointer_ftype *address_to_pointer; |
| 200 gdbarch_integer_to_address_ftype *integer_to_address; | 201 gdbarch_integer_to_address_ftype *integer_to_address; |
| 201 gdbarch_return_value_ftype *return_value; | 202 gdbarch_return_value_ftype *return_value; |
| 203 gdbarch_return_in_first_hidden_param_p_ftype *return_in_first_hidden_param_p; |
| 202 gdbarch_skip_prologue_ftype *skip_prologue; | 204 gdbarch_skip_prologue_ftype *skip_prologue; |
| 203 gdbarch_skip_main_prologue_ftype *skip_main_prologue; | 205 gdbarch_skip_main_prologue_ftype *skip_main_prologue; |
| 204 gdbarch_inner_than_ftype *inner_than; | 206 gdbarch_inner_than_ftype *inner_than; |
| 205 gdbarch_breakpoint_from_pc_ftype *breakpoint_from_pc; | 207 gdbarch_breakpoint_from_pc_ftype *breakpoint_from_pc; |
| 206 gdbarch_remote_breakpoint_from_pc_ftype *remote_breakpoint_from_pc; | 208 gdbarch_remote_breakpoint_from_pc_ftype *remote_breakpoint_from_pc; |
| 207 gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address; | 209 gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address; |
| 208 gdbarch_memory_insert_breakpoint_ftype *memory_insert_breakpoint; | 210 gdbarch_memory_insert_breakpoint_ftype *memory_insert_breakpoint; |
| 209 gdbarch_memory_remove_breakpoint_ftype *memory_remove_breakpoint; | 211 gdbarch_memory_remove_breakpoint_ftype *memory_remove_breakpoint; |
| 210 CORE_ADDR decr_pc_after_break; | 212 CORE_ADDR decr_pc_after_break; |
| 211 CORE_ADDR deprecated_function_start_offset; | 213 CORE_ADDR deprecated_function_start_offset; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 232 gdbarch_coff_make_msymbol_special_ftype *coff_make_msymbol_special; | 234 gdbarch_coff_make_msymbol_special_ftype *coff_make_msymbol_special; |
| 233 int cannot_step_breakpoint; | 235 int cannot_step_breakpoint; |
| 234 int have_nonsteppable_watchpoint; | 236 int have_nonsteppable_watchpoint; |
| 235 gdbarch_address_class_type_flags_ftype *address_class_type_flags; | 237 gdbarch_address_class_type_flags_ftype *address_class_type_flags; |
| 236 gdbarch_address_class_type_flags_to_name_ftype *address_class_type_flags_to_na
me; | 238 gdbarch_address_class_type_flags_to_name_ftype *address_class_type_flags_to_na
me; |
| 237 gdbarch_address_class_name_to_type_flags_ftype *address_class_name_to_type_fla
gs; | 239 gdbarch_address_class_name_to_type_flags_ftype *address_class_name_to_type_fla
gs; |
| 238 gdbarch_register_reggroup_p_ftype *register_reggroup_p; | 240 gdbarch_register_reggroup_p_ftype *register_reggroup_p; |
| 239 gdbarch_fetch_pointer_argument_ftype *fetch_pointer_argument; | 241 gdbarch_fetch_pointer_argument_ftype *fetch_pointer_argument; |
| 240 gdbarch_regset_from_core_section_ftype *regset_from_core_section; | 242 gdbarch_regset_from_core_section_ftype *regset_from_core_section; |
| 241 struct core_regset_section * core_regset_sections; | 243 struct core_regset_section * core_regset_sections; |
| 244 gdbarch_make_corefile_notes_ftype *make_corefile_notes; |
| 245 gdbarch_find_memory_regions_ftype *find_memory_regions; |
| 242 gdbarch_core_xfer_shared_libraries_ftype *core_xfer_shared_libraries; | 246 gdbarch_core_xfer_shared_libraries_ftype *core_xfer_shared_libraries; |
| 243 gdbarch_core_pid_to_str_ftype *core_pid_to_str; | 247 gdbarch_core_pid_to_str_ftype *core_pid_to_str; |
| 244 const char * gcore_bfd_target; | 248 const char * gcore_bfd_target; |
| 245 int vtable_function_descriptors; | 249 int vtable_function_descriptors; |
| 246 int vbit_in_delta; | 250 int vbit_in_delta; |
| 247 gdbarch_skip_permanent_breakpoint_ftype *skip_permanent_breakpoint; | 251 gdbarch_skip_permanent_breakpoint_ftype *skip_permanent_breakpoint; |
| 248 ULONGEST max_insn_length; | 252 ULONGEST max_insn_length; |
| 249 gdbarch_displaced_step_copy_insn_ftype *displaced_step_copy_insn; | 253 gdbarch_displaced_step_copy_insn_ftype *displaced_step_copy_insn; |
| 250 gdbarch_displaced_step_hw_singlestep_ftype *displaced_step_hw_singlestep; | 254 gdbarch_displaced_step_hw_singlestep_ftype *displaced_step_hw_singlestep; |
| 251 gdbarch_displaced_step_fixup_ftype *displaced_step_fixup; | 255 gdbarch_displaced_step_fixup_ftype *displaced_step_fixup; |
| 252 gdbarch_displaced_step_free_closure_ftype *displaced_step_free_closure; | 256 gdbarch_displaced_step_free_closure_ftype *displaced_step_free_closure; |
| 253 gdbarch_displaced_step_location_ftype *displaced_step_location; | 257 gdbarch_displaced_step_location_ftype *displaced_step_location; |
| 254 gdbarch_relocate_instruction_ftype *relocate_instruction; | 258 gdbarch_relocate_instruction_ftype *relocate_instruction; |
| 255 gdbarch_overlay_update_ftype *overlay_update; | 259 gdbarch_overlay_update_ftype *overlay_update; |
| 256 gdbarch_core_read_description_ftype *core_read_description; | 260 gdbarch_core_read_description_ftype *core_read_description; |
| 257 gdbarch_static_transform_name_ftype *static_transform_name; | 261 gdbarch_static_transform_name_ftype *static_transform_name; |
| 258 int sofun_address_maybe_missing; | 262 int sofun_address_maybe_missing; |
| 259 gdbarch_process_record_ftype *process_record; | 263 gdbarch_process_record_ftype *process_record; |
| 260 gdbarch_process_record_signal_ftype *process_record_signal; | 264 gdbarch_process_record_signal_ftype *process_record_signal; |
| 261 gdbarch_target_signal_from_host_ftype *target_signal_from_host; | 265 gdbarch_gdb_signal_from_target_ftype *gdb_signal_from_target; |
| 262 gdbarch_target_signal_to_host_ftype *target_signal_to_host; | |
| 263 gdbarch_get_siginfo_type_ftype *get_siginfo_type; | 266 gdbarch_get_siginfo_type_ftype *get_siginfo_type; |
| 264 gdbarch_record_special_symbol_ftype *record_special_symbol; | 267 gdbarch_record_special_symbol_ftype *record_special_symbol; |
| 265 gdbarch_get_syscall_number_ftype *get_syscall_number; | 268 gdbarch_get_syscall_number_ftype *get_syscall_number; |
| 269 const char * stap_integer_prefix; |
| 270 const char * stap_integer_suffix; |
| 271 const char * stap_register_prefix; |
| 272 const char * stap_register_suffix; |
| 273 const char * stap_register_indirection_prefix; |
| 274 const char * stap_register_indirection_suffix; |
| 275 const char * stap_gdb_register_prefix; |
| 276 const char * stap_gdb_register_suffix; |
| 277 gdbarch_stap_is_single_operand_ftype *stap_is_single_operand; |
| 278 gdbarch_stap_parse_special_token_ftype *stap_parse_special_token; |
| 266 int has_global_solist; | 279 int has_global_solist; |
| 267 int has_global_breakpoints; | 280 int has_global_breakpoints; |
| 268 gdbarch_has_shared_address_space_ftype *has_shared_address_space; | 281 gdbarch_has_shared_address_space_ftype *has_shared_address_space; |
| 269 gdbarch_fast_tracepoint_valid_at_ftype *fast_tracepoint_valid_at; | 282 gdbarch_fast_tracepoint_valid_at_ftype *fast_tracepoint_valid_at; |
| 270 gdbarch_auto_charset_ftype *auto_charset; | 283 gdbarch_auto_charset_ftype *auto_charset; |
| 271 gdbarch_auto_wide_charset_ftype *auto_wide_charset; | 284 gdbarch_auto_wide_charset_ftype *auto_wide_charset; |
| 272 const char * solib_symbols_extension; | 285 const char * solib_symbols_extension; |
| 273 int has_dos_based_file_system; | 286 int has_dos_based_file_system; |
| 274 gdbarch_gen_return_address_ftype *gen_return_address; | 287 gdbarch_gen_return_address_ftype *gen_return_address; |
| 288 gdbarch_info_proc_ftype *info_proc; |
| 289 gdbarch_iterate_over_objfiles_in_search_order_ftype *iterate_over_objfiles_in_
search_order; |
| 275 }; | 290 }; |
| 276 | 291 |
| 277 | 292 |
| 278 /* The default architecture uses host values (for want of a better | 293 /* The default architecture uses host values (for want of a better |
| 279 choice). */ | 294 choice). */ |
| 280 | 295 |
| 281 extern const struct bfd_arch_info bfd_default_arch_struct; | 296 extern const struct bfd_arch_info bfd_default_arch_struct; |
| 282 | 297 |
| 283 struct gdbarch startup_gdbarch = | 298 struct gdbarch startup_gdbarch = |
| 284 { | 299 { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 0, /* get_longjmp_target */ | 362 0, /* get_longjmp_target */ |
| 348 0, /* believe_pcc_promotion */ | 363 0, /* believe_pcc_promotion */ |
| 349 generic_convert_register_p, /* convert_register_p */ | 364 generic_convert_register_p, /* convert_register_p */ |
| 350 0, /* register_to_value */ | 365 0, /* register_to_value */ |
| 351 0, /* value_to_register */ | 366 0, /* value_to_register */ |
| 352 0, /* value_from_register */ | 367 0, /* value_from_register */ |
| 353 unsigned_pointer_to_address, /* pointer_to_address */ | 368 unsigned_pointer_to_address, /* pointer_to_address */ |
| 354 unsigned_address_to_pointer, /* address_to_pointer */ | 369 unsigned_address_to_pointer, /* address_to_pointer */ |
| 355 0, /* integer_to_address */ | 370 0, /* integer_to_address */ |
| 356 0, /* return_value */ | 371 0, /* return_value */ |
| 372 default_return_in_first_hidden_param_p, /* return_in_first_hidden_param_p */ |
| 357 0, /* skip_prologue */ | 373 0, /* skip_prologue */ |
| 358 0, /* skip_main_prologue */ | 374 0, /* skip_main_prologue */ |
| 359 0, /* inner_than */ | 375 0, /* inner_than */ |
| 360 0, /* breakpoint_from_pc */ | 376 0, /* breakpoint_from_pc */ |
| 361 default_remote_breakpoint_from_pc, /* remote_breakpoint_from_pc */ | 377 default_remote_breakpoint_from_pc, /* remote_breakpoint_from_pc */ |
| 362 0, /* adjust_breakpoint_address */ | 378 0, /* adjust_breakpoint_address */ |
| 363 default_memory_insert_breakpoint, /* memory_insert_breakpoint */ | 379 default_memory_insert_breakpoint, /* memory_insert_breakpoint */ |
| 364 default_memory_remove_breakpoint, /* memory_remove_breakpoint */ | 380 default_memory_remove_breakpoint, /* memory_remove_breakpoint */ |
| 365 0, /* decr_pc_after_break */ | 381 0, /* decr_pc_after_break */ |
| 366 0, /* deprecated_function_start_offset */ | 382 0, /* deprecated_function_start_offset */ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 387 0, /* coff_make_msymbol_special */ | 403 0, /* coff_make_msymbol_special */ |
| 388 0, /* cannot_step_breakpoint */ | 404 0, /* cannot_step_breakpoint */ |
| 389 0, /* have_nonsteppable_watchpoint */ | 405 0, /* have_nonsteppable_watchpoint */ |
| 390 0, /* address_class_type_flags */ | 406 0, /* address_class_type_flags */ |
| 391 0, /* address_class_type_flags_to_name */ | 407 0, /* address_class_type_flags_to_name */ |
| 392 0, /* address_class_name_to_type_flags */ | 408 0, /* address_class_name_to_type_flags */ |
| 393 default_register_reggroup_p, /* register_reggroup_p */ | 409 default_register_reggroup_p, /* register_reggroup_p */ |
| 394 0, /* fetch_pointer_argument */ | 410 0, /* fetch_pointer_argument */ |
| 395 0, /* regset_from_core_section */ | 411 0, /* regset_from_core_section */ |
| 396 0, /* core_regset_sections */ | 412 0, /* core_regset_sections */ |
| 413 0, /* make_corefile_notes */ |
| 414 0, /* find_memory_regions */ |
| 397 0, /* core_xfer_shared_libraries */ | 415 0, /* core_xfer_shared_libraries */ |
| 398 0, /* core_pid_to_str */ | 416 0, /* core_pid_to_str */ |
| 399 0, /* gcore_bfd_target */ | 417 0, /* gcore_bfd_target */ |
| 400 0, /* vtable_function_descriptors */ | 418 0, /* vtable_function_descriptors */ |
| 401 0, /* vbit_in_delta */ | 419 0, /* vbit_in_delta */ |
| 402 0, /* skip_permanent_breakpoint */ | 420 0, /* skip_permanent_breakpoint */ |
| 403 0, /* max_insn_length */ | 421 0, /* max_insn_length */ |
| 404 0, /* displaced_step_copy_insn */ | 422 0, /* displaced_step_copy_insn */ |
| 405 default_displaced_step_hw_singlestep, /* displaced_step_hw_singlestep */ | 423 default_displaced_step_hw_singlestep, /* displaced_step_hw_singlestep */ |
| 406 0, /* displaced_step_fixup */ | 424 0, /* displaced_step_fixup */ |
| 407 NULL, /* displaced_step_free_closure */ | 425 NULL, /* displaced_step_free_closure */ |
| 408 NULL, /* displaced_step_location */ | 426 NULL, /* displaced_step_location */ |
| 409 0, /* relocate_instruction */ | 427 0, /* relocate_instruction */ |
| 410 0, /* overlay_update */ | 428 0, /* overlay_update */ |
| 411 0, /* core_read_description */ | 429 0, /* core_read_description */ |
| 412 0, /* static_transform_name */ | 430 0, /* static_transform_name */ |
| 413 0, /* sofun_address_maybe_missing */ | 431 0, /* sofun_address_maybe_missing */ |
| 414 0, /* process_record */ | 432 0, /* process_record */ |
| 415 0, /* process_record_signal */ | 433 0, /* process_record_signal */ |
| 416 default_target_signal_from_host, /* target_signal_from_host */ | 434 0, /* gdb_signal_from_target */ |
| 417 default_target_signal_to_host, /* target_signal_to_host */ | |
| 418 0, /* get_siginfo_type */ | 435 0, /* get_siginfo_type */ |
| 419 0, /* record_special_symbol */ | 436 0, /* record_special_symbol */ |
| 420 0, /* get_syscall_number */ | 437 0, /* get_syscall_number */ |
| 438 0, /* stap_integer_prefix */ |
| 439 0, /* stap_integer_suffix */ |
| 440 0, /* stap_register_prefix */ |
| 441 0, /* stap_register_suffix */ |
| 442 0, /* stap_register_indirection_prefix */ |
| 443 0, /* stap_register_indirection_suffix */ |
| 444 0, /* stap_gdb_register_prefix */ |
| 445 0, /* stap_gdb_register_suffix */ |
| 446 0, /* stap_is_single_operand */ |
| 447 0, /* stap_parse_special_token */ |
| 421 0, /* has_global_solist */ | 448 0, /* has_global_solist */ |
| 422 0, /* has_global_breakpoints */ | 449 0, /* has_global_breakpoints */ |
| 423 default_has_shared_address_space, /* has_shared_address_space */ | 450 default_has_shared_address_space, /* has_shared_address_space */ |
| 424 default_fast_tracepoint_valid_at, /* fast_tracepoint_valid_at */ | 451 default_fast_tracepoint_valid_at, /* fast_tracepoint_valid_at */ |
| 425 default_auto_charset, /* auto_charset */ | 452 default_auto_charset, /* auto_charset */ |
| 426 default_auto_wide_charset, /* auto_wide_charset */ | 453 default_auto_wide_charset, /* auto_wide_charset */ |
| 427 0, /* solib_symbols_extension */ | 454 0, /* solib_symbols_extension */ |
| 428 0, /* has_dos_based_file_system */ | 455 0, /* has_dos_based_file_system */ |
| 429 default_gen_return_address, /* gen_return_address */ | 456 default_gen_return_address, /* gen_return_address */ |
| 457 0, /* info_proc */ |
| 458 default_iterate_over_objfiles_in_search_order, /* iterate_over_objfiles_in_se
arch_order */ |
| 430 /* startup_gdbarch() */ | 459 /* startup_gdbarch() */ |
| 431 }; | 460 }; |
| 432 | 461 |
| 433 struct gdbarch *target_gdbarch = &startup_gdbarch; | 462 struct gdbarch *target_gdbarch = &startup_gdbarch; |
| 434 | 463 |
| 435 /* Create a new ``struct gdbarch'' based on information provided by | 464 /* Create a new ``struct gdbarch'' based on information provided by |
| 436 ``struct gdbarch_info''. */ | 465 ``struct gdbarch_info''. */ |
| 437 | 466 |
| 438 struct gdbarch * | 467 struct gdbarch * |
| 439 gdbarch_alloc (const struct gdbarch_info *info, | 468 gdbarch_alloc (const struct gdbarch_info *info, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 gdbarch->deprecated_fp_regnum = -1; | 514 gdbarch->deprecated_fp_regnum = -1; |
| 486 gdbarch->call_dummy_location = AT_ENTRY_POINT; | 515 gdbarch->call_dummy_location = AT_ENTRY_POINT; |
| 487 gdbarch->print_registers_info = default_print_registers_info; | 516 gdbarch->print_registers_info = default_print_registers_info; |
| 488 gdbarch->register_sim_regno = legacy_register_sim_regno; | 517 gdbarch->register_sim_regno = legacy_register_sim_regno; |
| 489 gdbarch->cannot_fetch_register = cannot_register_not; | 518 gdbarch->cannot_fetch_register = cannot_register_not; |
| 490 gdbarch->cannot_store_register = cannot_register_not; | 519 gdbarch->cannot_store_register = cannot_register_not; |
| 491 gdbarch->convert_register_p = generic_convert_register_p; | 520 gdbarch->convert_register_p = generic_convert_register_p; |
| 492 gdbarch->value_from_register = default_value_from_register; | 521 gdbarch->value_from_register = default_value_from_register; |
| 493 gdbarch->pointer_to_address = unsigned_pointer_to_address; | 522 gdbarch->pointer_to_address = unsigned_pointer_to_address; |
| 494 gdbarch->address_to_pointer = unsigned_address_to_pointer; | 523 gdbarch->address_to_pointer = unsigned_address_to_pointer; |
| 524 gdbarch->return_in_first_hidden_param_p = default_return_in_first_hidden_param
_p; |
| 495 gdbarch->remote_breakpoint_from_pc = default_remote_breakpoint_from_pc; | 525 gdbarch->remote_breakpoint_from_pc = default_remote_breakpoint_from_pc; |
| 496 gdbarch->memory_insert_breakpoint = default_memory_insert_breakpoint; | 526 gdbarch->memory_insert_breakpoint = default_memory_insert_breakpoint; |
| 497 gdbarch->memory_remove_breakpoint = default_memory_remove_breakpoint; | 527 gdbarch->memory_remove_breakpoint = default_memory_remove_breakpoint; |
| 498 gdbarch->remote_register_number = default_remote_register_number; | 528 gdbarch->remote_register_number = default_remote_register_number; |
| 499 gdbarch->stabs_argument_has_addr = default_stabs_argument_has_addr; | 529 gdbarch->stabs_argument_has_addr = default_stabs_argument_has_addr; |
| 500 gdbarch->convert_from_func_ptr_addr = convert_from_func_ptr_addr_identity; | 530 gdbarch->convert_from_func_ptr_addr = convert_from_func_ptr_addr_identity; |
| 501 gdbarch->addr_bits_remove = core_addr_identity; | 531 gdbarch->addr_bits_remove = core_addr_identity; |
| 502 gdbarch->smash_text_address = core_addr_identity; | 532 gdbarch->smash_text_address = core_addr_identity; |
| 503 gdbarch->skip_trampoline_code = generic_skip_trampoline_code; | 533 gdbarch->skip_trampoline_code = generic_skip_trampoline_code; |
| 504 gdbarch->skip_solib_resolver = generic_skip_solib_resolver; | 534 gdbarch->skip_solib_resolver = generic_skip_solib_resolver; |
| 505 gdbarch->in_solib_return_trampoline = generic_in_solib_return_trampoline; | 535 gdbarch->in_solib_return_trampoline = generic_in_solib_return_trampoline; |
| 506 gdbarch->in_function_epilogue_p = generic_in_function_epilogue_p; | 536 gdbarch->in_function_epilogue_p = generic_in_function_epilogue_p; |
| 507 gdbarch->elf_make_msymbol_special = default_elf_make_msymbol_special; | 537 gdbarch->elf_make_msymbol_special = default_elf_make_msymbol_special; |
| 508 gdbarch->coff_make_msymbol_special = default_coff_make_msymbol_special; | 538 gdbarch->coff_make_msymbol_special = default_coff_make_msymbol_special; |
| 509 gdbarch->register_reggroup_p = default_register_reggroup_p; | 539 gdbarch->register_reggroup_p = default_register_reggroup_p; |
| 510 gdbarch->displaced_step_hw_singlestep = default_displaced_step_hw_singlestep; | 540 gdbarch->displaced_step_hw_singlestep = default_displaced_step_hw_singlestep; |
| 511 gdbarch->displaced_step_fixup = NULL; | 541 gdbarch->displaced_step_fixup = NULL; |
| 512 gdbarch->displaced_step_free_closure = NULL; | 542 gdbarch->displaced_step_free_closure = NULL; |
| 513 gdbarch->displaced_step_location = NULL; | 543 gdbarch->displaced_step_location = NULL; |
| 514 gdbarch->relocate_instruction = NULL; | 544 gdbarch->relocate_instruction = NULL; |
| 515 gdbarch->target_signal_from_host = default_target_signal_from_host; | |
| 516 gdbarch->target_signal_to_host = default_target_signal_to_host; | |
| 517 gdbarch->has_shared_address_space = default_has_shared_address_space; | 545 gdbarch->has_shared_address_space = default_has_shared_address_space; |
| 518 gdbarch->fast_tracepoint_valid_at = default_fast_tracepoint_valid_at; | 546 gdbarch->fast_tracepoint_valid_at = default_fast_tracepoint_valid_at; |
| 519 gdbarch->auto_charset = default_auto_charset; | 547 gdbarch->auto_charset = default_auto_charset; |
| 520 gdbarch->auto_wide_charset = default_auto_wide_charset; | 548 gdbarch->auto_wide_charset = default_auto_wide_charset; |
| 521 gdbarch->gen_return_address = default_gen_return_address; | 549 gdbarch->gen_return_address = default_gen_return_address; |
| 550 gdbarch->iterate_over_objfiles_in_search_order = default_iterate_over_objfiles
_in_search_order; |
| 522 /* gdbarch_alloc() */ | 551 /* gdbarch_alloc() */ |
| 523 | 552 |
| 524 return gdbarch; | 553 return gdbarch; |
| 525 } | 554 } |
| 526 | 555 |
| 527 | 556 |
| 528 /* Allocate extra space using the per-architecture obstack. */ | 557 /* Allocate extra space using the per-architecture obstack. */ |
| 529 | 558 |
| 530 void * | 559 void * |
| 531 gdbarch_obstack_zalloc (struct gdbarch *arch, long size) | 560 gdbarch_obstack_zalloc (struct gdbarch *arch, long size) |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 /* Skip verify of register_sim_regno, invalid_p == 0 */ | 661 /* Skip verify of register_sim_regno, invalid_p == 0 */ |
| 633 /* Skip verify of cannot_fetch_register, invalid_p == 0 */ | 662 /* Skip verify of cannot_fetch_register, invalid_p == 0 */ |
| 634 /* Skip verify of cannot_store_register, invalid_p == 0 */ | 663 /* Skip verify of cannot_store_register, invalid_p == 0 */ |
| 635 /* Skip verify of get_longjmp_target, has predicate. */ | 664 /* Skip verify of get_longjmp_target, has predicate. */ |
| 636 /* Skip verify of convert_register_p, invalid_p == 0 */ | 665 /* Skip verify of convert_register_p, invalid_p == 0 */ |
| 637 /* Skip verify of value_from_register, invalid_p == 0 */ | 666 /* Skip verify of value_from_register, invalid_p == 0 */ |
| 638 /* Skip verify of pointer_to_address, invalid_p == 0 */ | 667 /* Skip verify of pointer_to_address, invalid_p == 0 */ |
| 639 /* Skip verify of address_to_pointer, invalid_p == 0 */ | 668 /* Skip verify of address_to_pointer, invalid_p == 0 */ |
| 640 /* Skip verify of integer_to_address, has predicate. */ | 669 /* Skip verify of integer_to_address, has predicate. */ |
| 641 /* Skip verify of return_value, has predicate. */ | 670 /* Skip verify of return_value, has predicate. */ |
| 671 /* Skip verify of return_in_first_hidden_param_p, invalid_p == 0 */ |
| 642 if (gdbarch->skip_prologue == 0) | 672 if (gdbarch->skip_prologue == 0) |
| 643 fprintf_unfiltered (log, "\n\tskip_prologue"); | 673 fprintf_unfiltered (log, "\n\tskip_prologue"); |
| 644 /* Skip verify of skip_main_prologue, has predicate. */ | 674 /* Skip verify of skip_main_prologue, has predicate. */ |
| 645 if (gdbarch->inner_than == 0) | 675 if (gdbarch->inner_than == 0) |
| 646 fprintf_unfiltered (log, "\n\tinner_than"); | 676 fprintf_unfiltered (log, "\n\tinner_than"); |
| 647 if (gdbarch->breakpoint_from_pc == 0) | 677 if (gdbarch->breakpoint_from_pc == 0) |
| 648 fprintf_unfiltered (log, "\n\tbreakpoint_from_pc"); | 678 fprintf_unfiltered (log, "\n\tbreakpoint_from_pc"); |
| 649 /* Skip verify of remote_breakpoint_from_pc, invalid_p == 0 */ | 679 /* Skip verify of remote_breakpoint_from_pc, invalid_p == 0 */ |
| 650 /* Skip verify of adjust_breakpoint_address, has predicate. */ | 680 /* Skip verify of adjust_breakpoint_address, has predicate. */ |
| 651 /* Skip verify of memory_insert_breakpoint, invalid_p == 0 */ | 681 /* Skip verify of memory_insert_breakpoint, invalid_p == 0 */ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 674 /* Skip verify of elf_make_msymbol_special, invalid_p == 0 */ | 704 /* Skip verify of elf_make_msymbol_special, invalid_p == 0 */ |
| 675 /* Skip verify of coff_make_msymbol_special, invalid_p == 0 */ | 705 /* Skip verify of coff_make_msymbol_special, invalid_p == 0 */ |
| 676 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */ | 706 /* Skip verify of cannot_step_breakpoint, invalid_p == 0 */ |
| 677 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */ | 707 /* Skip verify of have_nonsteppable_watchpoint, invalid_p == 0 */ |
| 678 /* Skip verify of address_class_type_flags, has predicate. */ | 708 /* Skip verify of address_class_type_flags, has predicate. */ |
| 679 /* Skip verify of address_class_type_flags_to_name, has predicate. */ | 709 /* Skip verify of address_class_type_flags_to_name, has predicate. */ |
| 680 /* Skip verify of address_class_name_to_type_flags, has predicate. */ | 710 /* Skip verify of address_class_name_to_type_flags, has predicate. */ |
| 681 /* Skip verify of register_reggroup_p, invalid_p == 0 */ | 711 /* Skip verify of register_reggroup_p, invalid_p == 0 */ |
| 682 /* Skip verify of fetch_pointer_argument, has predicate. */ | 712 /* Skip verify of fetch_pointer_argument, has predicate. */ |
| 683 /* Skip verify of regset_from_core_section, has predicate. */ | 713 /* Skip verify of regset_from_core_section, has predicate. */ |
| 714 /* Skip verify of make_corefile_notes, has predicate. */ |
| 715 /* Skip verify of find_memory_regions, has predicate. */ |
| 684 /* Skip verify of core_xfer_shared_libraries, has predicate. */ | 716 /* Skip verify of core_xfer_shared_libraries, has predicate. */ |
| 685 /* Skip verify of core_pid_to_str, has predicate. */ | 717 /* Skip verify of core_pid_to_str, has predicate. */ |
| 686 /* Skip verify of gcore_bfd_target, has predicate. */ | 718 /* Skip verify of gcore_bfd_target, has predicate. */ |
| 687 /* Skip verify of vtable_function_descriptors, invalid_p == 0 */ | 719 /* Skip verify of vtable_function_descriptors, invalid_p == 0 */ |
| 688 /* Skip verify of vbit_in_delta, invalid_p == 0 */ | 720 /* Skip verify of vbit_in_delta, invalid_p == 0 */ |
| 689 /* Skip verify of skip_permanent_breakpoint, has predicate. */ | 721 /* Skip verify of skip_permanent_breakpoint, has predicate. */ |
| 690 /* Skip verify of max_insn_length, has predicate. */ | 722 /* Skip verify of max_insn_length, has predicate. */ |
| 691 /* Skip verify of displaced_step_copy_insn, has predicate. */ | 723 /* Skip verify of displaced_step_copy_insn, has predicate. */ |
| 692 /* Skip verify of displaced_step_hw_singlestep, invalid_p == 0 */ | 724 /* Skip verify of displaced_step_hw_singlestep, invalid_p == 0 */ |
| 693 /* Skip verify of displaced_step_fixup, has predicate. */ | 725 /* Skip verify of displaced_step_fixup, has predicate. */ |
| 694 if ((! gdbarch->displaced_step_free_closure) != (! gdbarch->displaced_step_cop
y_insn)) | 726 if ((! gdbarch->displaced_step_free_closure) != (! gdbarch->displaced_step_cop
y_insn)) |
| 695 fprintf_unfiltered (log, "\n\tdisplaced_step_free_closure"); | 727 fprintf_unfiltered (log, "\n\tdisplaced_step_free_closure"); |
| 696 if ((! gdbarch->displaced_step_location) != (! gdbarch->displaced_step_copy_in
sn)) | 728 if ((! gdbarch->displaced_step_location) != (! gdbarch->displaced_step_copy_in
sn)) |
| 697 fprintf_unfiltered (log, "\n\tdisplaced_step_location"); | 729 fprintf_unfiltered (log, "\n\tdisplaced_step_location"); |
| 698 /* Skip verify of relocate_instruction, has predicate. */ | 730 /* Skip verify of relocate_instruction, has predicate. */ |
| 699 /* Skip verify of overlay_update, has predicate. */ | 731 /* Skip verify of overlay_update, has predicate. */ |
| 700 /* Skip verify of core_read_description, has predicate. */ | 732 /* Skip verify of core_read_description, has predicate. */ |
| 701 /* Skip verify of static_transform_name, has predicate. */ | 733 /* Skip verify of static_transform_name, has predicate. */ |
| 702 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */ | 734 /* Skip verify of sofun_address_maybe_missing, invalid_p == 0 */ |
| 703 /* Skip verify of process_record, has predicate. */ | 735 /* Skip verify of process_record, has predicate. */ |
| 704 /* Skip verify of process_record_signal, has predicate. */ | 736 /* Skip verify of process_record_signal, has predicate. */ |
| 705 /* Skip verify of target_signal_from_host, invalid_p == 0 */ | 737 /* Skip verify of gdb_signal_from_target, has predicate. */ |
| 706 /* Skip verify of target_signal_to_host, invalid_p == 0 */ | |
| 707 /* Skip verify of get_siginfo_type, has predicate. */ | 738 /* Skip verify of get_siginfo_type, has predicate. */ |
| 708 /* Skip verify of record_special_symbol, has predicate. */ | 739 /* Skip verify of record_special_symbol, has predicate. */ |
| 709 /* Skip verify of get_syscall_number, has predicate. */ | 740 /* Skip verify of get_syscall_number, has predicate. */ |
| 741 /* Skip verify of stap_integer_prefix, invalid_p == 0 */ |
| 742 /* Skip verify of stap_integer_suffix, invalid_p == 0 */ |
| 743 /* Skip verify of stap_register_prefix, invalid_p == 0 */ |
| 744 /* Skip verify of stap_register_suffix, invalid_p == 0 */ |
| 745 /* Skip verify of stap_register_indirection_prefix, invalid_p == 0 */ |
| 746 /* Skip verify of stap_register_indirection_suffix, invalid_p == 0 */ |
| 747 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0 */ |
| 748 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0 */ |
| 749 /* Skip verify of stap_is_single_operand, has predicate. */ |
| 750 /* Skip verify of stap_parse_special_token, has predicate. */ |
| 710 /* Skip verify of has_global_solist, invalid_p == 0 */ | 751 /* Skip verify of has_global_solist, invalid_p == 0 */ |
| 711 /* Skip verify of has_global_breakpoints, invalid_p == 0 */ | 752 /* Skip verify of has_global_breakpoints, invalid_p == 0 */ |
| 712 /* Skip verify of has_shared_address_space, invalid_p == 0 */ | 753 /* Skip verify of has_shared_address_space, invalid_p == 0 */ |
| 713 /* Skip verify of fast_tracepoint_valid_at, invalid_p == 0 */ | 754 /* Skip verify of fast_tracepoint_valid_at, invalid_p == 0 */ |
| 714 /* Skip verify of auto_charset, invalid_p == 0 */ | 755 /* Skip verify of auto_charset, invalid_p == 0 */ |
| 715 /* Skip verify of auto_wide_charset, invalid_p == 0 */ | 756 /* Skip verify of auto_wide_charset, invalid_p == 0 */ |
| 716 /* Skip verify of has_dos_based_file_system, invalid_p == 0 */ | 757 /* Skip verify of has_dos_based_file_system, invalid_p == 0 */ |
| 717 /* Skip verify of gen_return_address, invalid_p == 0 */ | 758 /* Skip verify of gen_return_address, invalid_p == 0 */ |
| 759 /* Skip verify of info_proc, has predicate. */ |
| 760 /* Skip verify of iterate_over_objfiles_in_search_order, invalid_p == 0 */ |
| 718 buf = ui_file_xstrdup (log, &length); | 761 buf = ui_file_xstrdup (log, &length); |
| 719 make_cleanup (xfree, buf); | 762 make_cleanup (xfree, buf); |
| 720 if (length > 0) | 763 if (length > 0) |
| 721 internal_error (__FILE__, __LINE__, | 764 internal_error (__FILE__, __LINE__, |
| 722 _("verify_gdbarch: the following are invalid ...%s"), | 765 _("verify_gdbarch: the following are invalid ...%s"), |
| 723 buf); | 766 buf); |
| 724 do_cleanups (cleanups); | 767 do_cleanups (cleanups); |
| 725 } | 768 } |
| 726 | 769 |
| 727 | 770 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 fprintf_unfiltered (file, | 958 fprintf_unfiltered (file, |
| 916 "gdbarch_dump: fetch_pointer_argument = <%s>\n", | 959 "gdbarch_dump: fetch_pointer_argument = <%s>\n", |
| 917 host_address_to_string (gdbarch->fetch_pointer_argument)); | 960 host_address_to_string (gdbarch->fetch_pointer_argument)); |
| 918 fprintf_unfiltered (file, | 961 fprintf_unfiltered (file, |
| 919 "gdbarch_dump: gdbarch_fetch_tls_load_module_address_p() =
%d\n", | 962 "gdbarch_dump: gdbarch_fetch_tls_load_module_address_p() =
%d\n", |
| 920 gdbarch_fetch_tls_load_module_address_p (gdbarch)); | 963 gdbarch_fetch_tls_load_module_address_p (gdbarch)); |
| 921 fprintf_unfiltered (file, | 964 fprintf_unfiltered (file, |
| 922 "gdbarch_dump: fetch_tls_load_module_address = <%s>\n", | 965 "gdbarch_dump: fetch_tls_load_module_address = <%s>\n", |
| 923 host_address_to_string (gdbarch->fetch_tls_load_module_add
ress)); | 966 host_address_to_string (gdbarch->fetch_tls_load_module_add
ress)); |
| 924 fprintf_unfiltered (file, | 967 fprintf_unfiltered (file, |
| 968 "gdbarch_dump: gdbarch_find_memory_regions_p() = %d\n", |
| 969 gdbarch_find_memory_regions_p (gdbarch)); |
| 970 fprintf_unfiltered (file, |
| 971 "gdbarch_dump: find_memory_regions = <%s>\n", |
| 972 host_address_to_string (gdbarch->find_memory_regions)); |
| 973 fprintf_unfiltered (file, |
| 925 "gdbarch_dump: float_bit = %s\n", | 974 "gdbarch_dump: float_bit = %s\n", |
| 926 plongest (gdbarch->float_bit)); | 975 plongest (gdbarch->float_bit)); |
| 927 fprintf_unfiltered (file, | 976 fprintf_unfiltered (file, |
| 928 "gdbarch_dump: float_format = %s\n", | 977 "gdbarch_dump: float_format = %s\n", |
| 929 pformat (gdbarch->float_format)); | 978 pformat (gdbarch->float_format)); |
| 930 fprintf_unfiltered (file, | 979 fprintf_unfiltered (file, |
| 931 "gdbarch_dump: fp0_regnum = %s\n", | 980 "gdbarch_dump: fp0_regnum = %s\n", |
| 932 plongest (gdbarch->fp0_regnum)); | 981 plongest (gdbarch->fp0_regnum)); |
| 933 fprintf_unfiltered (file, | 982 fprintf_unfiltered (file, |
| 934 "gdbarch_dump: gdbarch_frame_align_p() = %d\n", | 983 "gdbarch_dump: gdbarch_frame_align_p() = %d\n", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 948 fprintf_unfiltered (file, | 997 fprintf_unfiltered (file, |
| 949 "gdbarch_dump: frame_red_zone_size = %s\n", | 998 "gdbarch_dump: frame_red_zone_size = %s\n", |
| 950 plongest (gdbarch->frame_red_zone_size)); | 999 plongest (gdbarch->frame_red_zone_size)); |
| 951 fprintf_unfiltered (file, | 1000 fprintf_unfiltered (file, |
| 952 "gdbarch_dump: gdbarch_gcore_bfd_target_p() = %d\n", | 1001 "gdbarch_dump: gdbarch_gcore_bfd_target_p() = %d\n", |
| 953 gdbarch_gcore_bfd_target_p (gdbarch)); | 1002 gdbarch_gcore_bfd_target_p (gdbarch)); |
| 954 fprintf_unfiltered (file, | 1003 fprintf_unfiltered (file, |
| 955 "gdbarch_dump: gcore_bfd_target = %s\n", | 1004 "gdbarch_dump: gcore_bfd_target = %s\n", |
| 956 pstring (gdbarch->gcore_bfd_target)); | 1005 pstring (gdbarch->gcore_bfd_target)); |
| 957 fprintf_unfiltered (file, | 1006 fprintf_unfiltered (file, |
| 1007 "gdbarch_dump: gdbarch_gdb_signal_from_target_p() = %d\n", |
| 1008 gdbarch_gdb_signal_from_target_p (gdbarch)); |
| 1009 fprintf_unfiltered (file, |
| 1010 "gdbarch_dump: gdb_signal_from_target = <%s>\n", |
| 1011 host_address_to_string (gdbarch->gdb_signal_from_target)); |
| 1012 fprintf_unfiltered (file, |
| 958 "gdbarch_dump: gen_return_address = <%s>\n", | 1013 "gdbarch_dump: gen_return_address = <%s>\n", |
| 959 host_address_to_string (gdbarch->gen_return_address)); | 1014 host_address_to_string (gdbarch->gen_return_address)); |
| 960 fprintf_unfiltered (file, | 1015 fprintf_unfiltered (file, |
| 961 "gdbarch_dump: gdbarch_get_longjmp_target_p() = %d\n", | 1016 "gdbarch_dump: gdbarch_get_longjmp_target_p() = %d\n", |
| 962 gdbarch_get_longjmp_target_p (gdbarch)); | 1017 gdbarch_get_longjmp_target_p (gdbarch)); |
| 963 fprintf_unfiltered (file, | 1018 fprintf_unfiltered (file, |
| 964 "gdbarch_dump: get_longjmp_target = <%s>\n", | 1019 "gdbarch_dump: get_longjmp_target = <%s>\n", |
| 965 host_address_to_string (gdbarch->get_longjmp_target)); | 1020 host_address_to_string (gdbarch->get_longjmp_target)); |
| 966 fprintf_unfiltered (file, | 1021 fprintf_unfiltered (file, |
| 967 "gdbarch_dump: gdbarch_get_siginfo_type_p() = %d\n", | 1022 "gdbarch_dump: gdbarch_get_siginfo_type_p() = %d\n", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 996 fprintf_unfiltered (file, | 1051 fprintf_unfiltered (file, |
| 997 "gdbarch_dump: have_nonsteppable_watchpoint = %s\n", | 1052 "gdbarch_dump: have_nonsteppable_watchpoint = %s\n", |
| 998 plongest (gdbarch->have_nonsteppable_watchpoint)); | 1053 plongest (gdbarch->have_nonsteppable_watchpoint)); |
| 999 fprintf_unfiltered (file, | 1054 fprintf_unfiltered (file, |
| 1000 "gdbarch_dump: in_function_epilogue_p = <%s>\n", | 1055 "gdbarch_dump: in_function_epilogue_p = <%s>\n", |
| 1001 host_address_to_string (gdbarch->in_function_epilogue_p)); | 1056 host_address_to_string (gdbarch->in_function_epilogue_p)); |
| 1002 fprintf_unfiltered (file, | 1057 fprintf_unfiltered (file, |
| 1003 "gdbarch_dump: in_solib_return_trampoline = <%s>\n", | 1058 "gdbarch_dump: in_solib_return_trampoline = <%s>\n", |
| 1004 host_address_to_string (gdbarch->in_solib_return_trampolin
e)); | 1059 host_address_to_string (gdbarch->in_solib_return_trampolin
e)); |
| 1005 fprintf_unfiltered (file, | 1060 fprintf_unfiltered (file, |
| 1061 "gdbarch_dump: gdbarch_info_proc_p() = %d\n", |
| 1062 gdbarch_info_proc_p (gdbarch)); |
| 1063 fprintf_unfiltered (file, |
| 1064 "gdbarch_dump: info_proc = <%s>\n", |
| 1065 host_address_to_string (gdbarch->info_proc)); |
| 1066 fprintf_unfiltered (file, |
| 1006 "gdbarch_dump: inner_than = <%s>\n", | 1067 "gdbarch_dump: inner_than = <%s>\n", |
| 1007 host_address_to_string (gdbarch->inner_than)); | 1068 host_address_to_string (gdbarch->inner_than)); |
| 1008 fprintf_unfiltered (file, | 1069 fprintf_unfiltered (file, |
| 1009 "gdbarch_dump: int_bit = %s\n", | 1070 "gdbarch_dump: int_bit = %s\n", |
| 1010 plongest (gdbarch->int_bit)); | 1071 plongest (gdbarch->int_bit)); |
| 1011 fprintf_unfiltered (file, | 1072 fprintf_unfiltered (file, |
| 1012 "gdbarch_dump: gdbarch_integer_to_address_p() = %d\n", | 1073 "gdbarch_dump: gdbarch_integer_to_address_p() = %d\n", |
| 1013 gdbarch_integer_to_address_p (gdbarch)); | 1074 gdbarch_integer_to_address_p (gdbarch)); |
| 1014 fprintf_unfiltered (file, | 1075 fprintf_unfiltered (file, |
| 1015 "gdbarch_dump: integer_to_address = <%s>\n", | 1076 "gdbarch_dump: integer_to_address = <%s>\n", |
| 1016 host_address_to_string (gdbarch->integer_to_address)); | 1077 host_address_to_string (gdbarch->integer_to_address)); |
| 1017 fprintf_unfiltered (file, | 1078 fprintf_unfiltered (file, |
| 1079 "gdbarch_dump: iterate_over_objfiles_in_search_order = <%s
>\n", |
| 1080 host_address_to_string (gdbarch->iterate_over_objfiles_in_
search_order)); |
| 1081 fprintf_unfiltered (file, |
| 1018 "gdbarch_dump: long_bit = %s\n", | 1082 "gdbarch_dump: long_bit = %s\n", |
| 1019 plongest (gdbarch->long_bit)); | 1083 plongest (gdbarch->long_bit)); |
| 1020 fprintf_unfiltered (file, | 1084 fprintf_unfiltered (file, |
| 1021 "gdbarch_dump: long_double_bit = %s\n", | 1085 "gdbarch_dump: long_double_bit = %s\n", |
| 1022 plongest (gdbarch->long_double_bit)); | 1086 plongest (gdbarch->long_double_bit)); |
| 1023 fprintf_unfiltered (file, | 1087 fprintf_unfiltered (file, |
| 1024 "gdbarch_dump: long_double_format = %s\n", | 1088 "gdbarch_dump: long_double_format = %s\n", |
| 1025 pformat (gdbarch->long_double_format)); | 1089 pformat (gdbarch->long_double_format)); |
| 1026 fprintf_unfiltered (file, | 1090 fprintf_unfiltered (file, |
| 1027 "gdbarch_dump: long_long_align_bit = %s\n", | 1091 "gdbarch_dump: long_long_align_bit = %s\n", |
| 1028 plongest (gdbarch->long_long_align_bit)); | 1092 plongest (gdbarch->long_long_align_bit)); |
| 1029 fprintf_unfiltered (file, | 1093 fprintf_unfiltered (file, |
| 1030 "gdbarch_dump: long_long_bit = %s\n", | 1094 "gdbarch_dump: long_long_bit = %s\n", |
| 1031 plongest (gdbarch->long_long_bit)); | 1095 plongest (gdbarch->long_long_bit)); |
| 1032 fprintf_unfiltered (file, | 1096 fprintf_unfiltered (file, |
| 1097 "gdbarch_dump: gdbarch_make_corefile_notes_p() = %d\n", |
| 1098 gdbarch_make_corefile_notes_p (gdbarch)); |
| 1099 fprintf_unfiltered (file, |
| 1100 "gdbarch_dump: make_corefile_notes = <%s>\n", |
| 1101 host_address_to_string (gdbarch->make_corefile_notes)); |
| 1102 fprintf_unfiltered (file, |
| 1033 "gdbarch_dump: gdbarch_max_insn_length_p() = %d\n", | 1103 "gdbarch_dump: gdbarch_max_insn_length_p() = %d\n", |
| 1034 gdbarch_max_insn_length_p (gdbarch)); | 1104 gdbarch_max_insn_length_p (gdbarch)); |
| 1035 fprintf_unfiltered (file, | 1105 fprintf_unfiltered (file, |
| 1036 "gdbarch_dump: max_insn_length = %s\n", | 1106 "gdbarch_dump: max_insn_length = %s\n", |
| 1037 plongest (gdbarch->max_insn_length)); | 1107 plongest (gdbarch->max_insn_length)); |
| 1038 fprintf_unfiltered (file, | 1108 fprintf_unfiltered (file, |
| 1039 "gdbarch_dump: memory_insert_breakpoint = <%s>\n", | 1109 "gdbarch_dump: memory_insert_breakpoint = <%s>\n", |
| 1040 host_address_to_string (gdbarch->memory_insert_breakpoint)
); | 1110 host_address_to_string (gdbarch->memory_insert_breakpoint)
); |
| 1041 fprintf_unfiltered (file, | 1111 fprintf_unfiltered (file, |
| 1042 "gdbarch_dump: memory_remove_breakpoint = <%s>\n", | 1112 "gdbarch_dump: memory_remove_breakpoint = <%s>\n", |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 fprintf_unfiltered (file, | 1240 fprintf_unfiltered (file, |
| 1171 "gdbarch_dump: relocate_instruction = <%s>\n", | 1241 "gdbarch_dump: relocate_instruction = <%s>\n", |
| 1172 host_address_to_string (gdbarch->relocate_instruction)); | 1242 host_address_to_string (gdbarch->relocate_instruction)); |
| 1173 fprintf_unfiltered (file, | 1243 fprintf_unfiltered (file, |
| 1174 "gdbarch_dump: remote_breakpoint_from_pc = <%s>\n", | 1244 "gdbarch_dump: remote_breakpoint_from_pc = <%s>\n", |
| 1175 host_address_to_string (gdbarch->remote_breakpoint_from_pc
)); | 1245 host_address_to_string (gdbarch->remote_breakpoint_from_pc
)); |
| 1176 fprintf_unfiltered (file, | 1246 fprintf_unfiltered (file, |
| 1177 "gdbarch_dump: remote_register_number = <%s>\n", | 1247 "gdbarch_dump: remote_register_number = <%s>\n", |
| 1178 host_address_to_string (gdbarch->remote_register_number)); | 1248 host_address_to_string (gdbarch->remote_register_number)); |
| 1179 fprintf_unfiltered (file, | 1249 fprintf_unfiltered (file, |
| 1250 "gdbarch_dump: return_in_first_hidden_param_p = <%s>\n", |
| 1251 host_address_to_string (gdbarch->return_in_first_hidden_pa
ram_p)); |
| 1252 fprintf_unfiltered (file, |
| 1180 "gdbarch_dump: gdbarch_return_value_p() = %d\n", | 1253 "gdbarch_dump: gdbarch_return_value_p() = %d\n", |
| 1181 gdbarch_return_value_p (gdbarch)); | 1254 gdbarch_return_value_p (gdbarch)); |
| 1182 fprintf_unfiltered (file, | 1255 fprintf_unfiltered (file, |
| 1183 "gdbarch_dump: return_value = <%s>\n", | 1256 "gdbarch_dump: return_value = <%s>\n", |
| 1184 host_address_to_string (gdbarch->return_value)); | 1257 host_address_to_string (gdbarch->return_value)); |
| 1185 fprintf_unfiltered (file, | 1258 fprintf_unfiltered (file, |
| 1186 "gdbarch_dump: sdb_reg_to_regnum = <%s>\n", | 1259 "gdbarch_dump: sdb_reg_to_regnum = <%s>\n", |
| 1187 host_address_to_string (gdbarch->sdb_reg_to_regnum)); | 1260 host_address_to_string (gdbarch->sdb_reg_to_regnum)); |
| 1188 fprintf_unfiltered (file, | 1261 fprintf_unfiltered (file, |
| 1189 "gdbarch_dump: short_bit = %s\n", | 1262 "gdbarch_dump: short_bit = %s\n", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 fprintf_unfiltered (file, | 1306 fprintf_unfiltered (file, |
| 1234 "gdbarch_dump: sp_regnum = %s\n", | 1307 "gdbarch_dump: sp_regnum = %s\n", |
| 1235 plongest (gdbarch->sp_regnum)); | 1308 plongest (gdbarch->sp_regnum)); |
| 1236 fprintf_unfiltered (file, | 1309 fprintf_unfiltered (file, |
| 1237 "gdbarch_dump: stab_reg_to_regnum = <%s>\n", | 1310 "gdbarch_dump: stab_reg_to_regnum = <%s>\n", |
| 1238 host_address_to_string (gdbarch->stab_reg_to_regnum)); | 1311 host_address_to_string (gdbarch->stab_reg_to_regnum)); |
| 1239 fprintf_unfiltered (file, | 1312 fprintf_unfiltered (file, |
| 1240 "gdbarch_dump: stabs_argument_has_addr = <%s>\n", | 1313 "gdbarch_dump: stabs_argument_has_addr = <%s>\n", |
| 1241 host_address_to_string (gdbarch->stabs_argument_has_addr))
; | 1314 host_address_to_string (gdbarch->stabs_argument_has_addr))
; |
| 1242 fprintf_unfiltered (file, | 1315 fprintf_unfiltered (file, |
| 1316 "gdbarch_dump: stap_gdb_register_prefix = %s\n", |
| 1317 gdbarch->stap_gdb_register_prefix); |
| 1318 fprintf_unfiltered (file, |
| 1319 "gdbarch_dump: stap_gdb_register_suffix = %s\n", |
| 1320 gdbarch->stap_gdb_register_suffix); |
| 1321 fprintf_unfiltered (file, |
| 1322 "gdbarch_dump: stap_integer_prefix = %s\n", |
| 1323 gdbarch->stap_integer_prefix); |
| 1324 fprintf_unfiltered (file, |
| 1325 "gdbarch_dump: stap_integer_suffix = %s\n", |
| 1326 gdbarch->stap_integer_suffix); |
| 1327 fprintf_unfiltered (file, |
| 1328 "gdbarch_dump: gdbarch_stap_is_single_operand_p() = %d\n", |
| 1329 gdbarch_stap_is_single_operand_p (gdbarch)); |
| 1330 fprintf_unfiltered (file, |
| 1331 "gdbarch_dump: stap_is_single_operand = <%s>\n", |
| 1332 host_address_to_string (gdbarch->stap_is_single_operand)); |
| 1333 fprintf_unfiltered (file, |
| 1334 "gdbarch_dump: gdbarch_stap_parse_special_token_p() = %d\n
", |
| 1335 gdbarch_stap_parse_special_token_p (gdbarch)); |
| 1336 fprintf_unfiltered (file, |
| 1337 "gdbarch_dump: stap_parse_special_token = <%s>\n", |
| 1338 host_address_to_string (gdbarch->stap_parse_special_token)
); |
| 1339 fprintf_unfiltered (file, |
| 1340 "gdbarch_dump: stap_register_indirection_prefix = %s\n", |
| 1341 gdbarch->stap_register_indirection_prefix); |
| 1342 fprintf_unfiltered (file, |
| 1343 "gdbarch_dump: stap_register_indirection_suffix = %s\n", |
| 1344 gdbarch->stap_register_indirection_suffix); |
| 1345 fprintf_unfiltered (file, |
| 1346 "gdbarch_dump: stap_register_prefix = %s\n", |
| 1347 gdbarch->stap_register_prefix); |
| 1348 fprintf_unfiltered (file, |
| 1349 "gdbarch_dump: stap_register_suffix = %s\n", |
| 1350 gdbarch->stap_register_suffix); |
| 1351 fprintf_unfiltered (file, |
| 1243 "gdbarch_dump: gdbarch_static_transform_name_p() = %d\n", | 1352 "gdbarch_dump: gdbarch_static_transform_name_p() = %d\n", |
| 1244 gdbarch_static_transform_name_p (gdbarch)); | 1353 gdbarch_static_transform_name_p (gdbarch)); |
| 1245 fprintf_unfiltered (file, | 1354 fprintf_unfiltered (file, |
| 1246 "gdbarch_dump: static_transform_name = <%s>\n", | 1355 "gdbarch_dump: static_transform_name = <%s>\n", |
| 1247 host_address_to_string (gdbarch->static_transform_name)); | 1356 host_address_to_string (gdbarch->static_transform_name)); |
| 1248 fprintf_unfiltered (file, | 1357 fprintf_unfiltered (file, |
| 1249 "gdbarch_dump: target_desc = %s\n", | 1358 "gdbarch_dump: target_desc = %s\n", |
| 1250 host_address_to_string (gdbarch->target_desc)); | 1359 host_address_to_string (gdbarch->target_desc)); |
| 1251 fprintf_unfiltered (file, | 1360 fprintf_unfiltered (file, |
| 1252 "gdbarch_dump: target_signal_from_host = <%s>\n", | |
| 1253 host_address_to_string (gdbarch->target_signal_from_host))
; | |
| 1254 fprintf_unfiltered (file, | |
| 1255 "gdbarch_dump: target_signal_to_host = <%s>\n", | |
| 1256 host_address_to_string (gdbarch->target_signal_to_host)); | |
| 1257 fprintf_unfiltered (file, | |
| 1258 "gdbarch_dump: gdbarch_unwind_pc_p() = %d\n", | 1361 "gdbarch_dump: gdbarch_unwind_pc_p() = %d\n", |
| 1259 gdbarch_unwind_pc_p (gdbarch)); | 1362 gdbarch_unwind_pc_p (gdbarch)); |
| 1260 fprintf_unfiltered (file, | 1363 fprintf_unfiltered (file, |
| 1261 "gdbarch_dump: unwind_pc = <%s>\n", | 1364 "gdbarch_dump: unwind_pc = <%s>\n", |
| 1262 host_address_to_string (gdbarch->unwind_pc)); | 1365 host_address_to_string (gdbarch->unwind_pc)); |
| 1263 fprintf_unfiltered (file, | 1366 fprintf_unfiltered (file, |
| 1264 "gdbarch_dump: gdbarch_unwind_sp_p() = %d\n", | 1367 "gdbarch_dump: gdbarch_unwind_sp_p() = %d\n", |
| 1265 gdbarch_unwind_sp_p (gdbarch)); | 1368 gdbarch_unwind_sp_p (gdbarch)); |
| 1266 fprintf_unfiltered (file, | 1369 fprintf_unfiltered (file, |
| 1267 "gdbarch_dump: unwind_sp = <%s>\n", | 1370 "gdbarch_dump: unwind_sp = <%s>\n", |
| (...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2436 } | 2539 } |
| 2437 | 2540 |
| 2438 int | 2541 int |
| 2439 gdbarch_return_value_p (struct gdbarch *gdbarch) | 2542 gdbarch_return_value_p (struct gdbarch *gdbarch) |
| 2440 { | 2543 { |
| 2441 gdb_assert (gdbarch != NULL); | 2544 gdb_assert (gdbarch != NULL); |
| 2442 return gdbarch->return_value != NULL; | 2545 return gdbarch->return_value != NULL; |
| 2443 } | 2546 } |
| 2444 | 2547 |
| 2445 enum return_value_convention | 2548 enum return_value_convention |
| 2446 gdbarch_return_value (struct gdbarch *gdbarch, struct type *functype, struct typ
e *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writeb
uf) | 2549 gdbarch_return_value (struct gdbarch *gdbarch, struct value *function, struct ty
pe *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *write
buf) |
| 2447 { | 2550 { |
| 2448 gdb_assert (gdbarch != NULL); | 2551 gdb_assert (gdbarch != NULL); |
| 2449 gdb_assert (gdbarch->return_value != NULL); | 2552 gdb_assert (gdbarch->return_value != NULL); |
| 2450 if (gdbarch_debug >= 2) | 2553 if (gdbarch_debug >= 2) |
| 2451 fprintf_unfiltered (gdb_stdlog, "gdbarch_return_value called\n"); | 2554 fprintf_unfiltered (gdb_stdlog, "gdbarch_return_value called\n"); |
| 2452 return gdbarch->return_value (gdbarch, functype, valtype, regcache, readbuf, w
ritebuf); | 2555 return gdbarch->return_value (gdbarch, function, valtype, regcache, readbuf, w
ritebuf); |
| 2453 } | 2556 } |
| 2454 | 2557 |
| 2455 void | 2558 void |
| 2456 set_gdbarch_return_value (struct gdbarch *gdbarch, | 2559 set_gdbarch_return_value (struct gdbarch *gdbarch, |
| 2457 gdbarch_return_value_ftype return_value) | 2560 gdbarch_return_value_ftype return_value) |
| 2458 { | 2561 { |
| 2459 gdbarch->return_value = return_value; | 2562 gdbarch->return_value = return_value; |
| 2460 } | 2563 } |
| 2461 | 2564 |
| 2565 int |
| 2566 gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch, struct type *ty
pe) |
| 2567 { |
| 2568 gdb_assert (gdbarch != NULL); |
| 2569 gdb_assert (gdbarch->return_in_first_hidden_param_p != NULL); |
| 2570 if (gdbarch_debug >= 2) |
| 2571 fprintf_unfiltered (gdb_stdlog, "gdbarch_return_in_first_hidden_param_p call
ed\n"); |
| 2572 return gdbarch->return_in_first_hidden_param_p (gdbarch, type); |
| 2573 } |
| 2574 |
| 2575 void |
| 2576 set_gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch, |
| 2577 gdbarch_return_in_first_hidden_param
_p_ftype return_in_first_hidden_param_p) |
| 2578 { |
| 2579 gdbarch->return_in_first_hidden_param_p = return_in_first_hidden_param_p; |
| 2580 } |
| 2581 |
| 2462 CORE_ADDR | 2582 CORE_ADDR |
| 2463 gdbarch_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR ip) | 2583 gdbarch_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR ip) |
| 2464 { | 2584 { |
| 2465 gdb_assert (gdbarch != NULL); | 2585 gdb_assert (gdbarch != NULL); |
| 2466 gdb_assert (gdbarch->skip_prologue != NULL); | 2586 gdb_assert (gdbarch->skip_prologue != NULL); |
| 2467 if (gdbarch_debug >= 2) | 2587 if (gdbarch_debug >= 2) |
| 2468 fprintf_unfiltered (gdb_stdlog, "gdbarch_skip_prologue called\n"); | 2588 fprintf_unfiltered (gdb_stdlog, "gdbarch_skip_prologue called\n"); |
| 2469 return gdbarch->skip_prologue (gdbarch, ip); | 2589 return gdbarch->skip_prologue (gdbarch, ip); |
| 2470 } | 2590 } |
| 2471 | 2591 |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2974 } | 3094 } |
| 2975 | 3095 |
| 2976 void | 3096 void |
| 2977 set_gdbarch_skip_solib_resolver (struct gdbarch *gdbarch, | 3097 set_gdbarch_skip_solib_resolver (struct gdbarch *gdbarch, |
| 2978 gdbarch_skip_solib_resolver_ftype skip_solib_re
solver) | 3098 gdbarch_skip_solib_resolver_ftype skip_solib_re
solver) |
| 2979 { | 3099 { |
| 2980 gdbarch->skip_solib_resolver = skip_solib_resolver; | 3100 gdbarch->skip_solib_resolver = skip_solib_resolver; |
| 2981 } | 3101 } |
| 2982 | 3102 |
| 2983 int | 3103 int |
| 2984 gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, char
*name) | 3104 gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, CORE_ADDR pc, const
char *name) |
| 2985 { | 3105 { |
| 2986 gdb_assert (gdbarch != NULL); | 3106 gdb_assert (gdbarch != NULL); |
| 2987 gdb_assert (gdbarch->in_solib_return_trampoline != NULL); | 3107 gdb_assert (gdbarch->in_solib_return_trampoline != NULL); |
| 2988 if (gdbarch_debug >= 2) | 3108 if (gdbarch_debug >= 2) |
| 2989 fprintf_unfiltered (gdb_stdlog, "gdbarch_in_solib_return_trampoline called\n
"); | 3109 fprintf_unfiltered (gdb_stdlog, "gdbarch_in_solib_return_trampoline called\n
"); |
| 2990 return gdbarch->in_solib_return_trampoline (gdbarch, pc, name); | 3110 return gdbarch->in_solib_return_trampoline (gdbarch, pc, name); |
| 2991 } | 3111 } |
| 2992 | 3112 |
| 2993 void | 3113 void |
| 2994 set_gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, | 3114 set_gdbarch_in_solib_return_trampoline (struct gdbarch *gdbarch, |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3229 } | 3349 } |
| 3230 | 3350 |
| 3231 void | 3351 void |
| 3232 set_gdbarch_core_regset_sections (struct gdbarch *gdbarch, | 3352 set_gdbarch_core_regset_sections (struct gdbarch *gdbarch, |
| 3233 struct core_regset_section * core_regset_secti
ons) | 3353 struct core_regset_section * core_regset_secti
ons) |
| 3234 { | 3354 { |
| 3235 gdbarch->core_regset_sections = core_regset_sections; | 3355 gdbarch->core_regset_sections = core_regset_sections; |
| 3236 } | 3356 } |
| 3237 | 3357 |
| 3238 int | 3358 int |
| 3359 gdbarch_make_corefile_notes_p (struct gdbarch *gdbarch) |
| 3360 { |
| 3361 gdb_assert (gdbarch != NULL); |
| 3362 return gdbarch->make_corefile_notes != NULL; |
| 3363 } |
| 3364 |
| 3365 char * |
| 3366 gdbarch_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size) |
| 3367 { |
| 3368 gdb_assert (gdbarch != NULL); |
| 3369 gdb_assert (gdbarch->make_corefile_notes != NULL); |
| 3370 if (gdbarch_debug >= 2) |
| 3371 fprintf_unfiltered (gdb_stdlog, "gdbarch_make_corefile_notes called\n"); |
| 3372 return gdbarch->make_corefile_notes (gdbarch, obfd, note_size); |
| 3373 } |
| 3374 |
| 3375 void |
| 3376 set_gdbarch_make_corefile_notes (struct gdbarch *gdbarch, |
| 3377 gdbarch_make_corefile_notes_ftype make_corefile
_notes) |
| 3378 { |
| 3379 gdbarch->make_corefile_notes = make_corefile_notes; |
| 3380 } |
| 3381 |
| 3382 int |
| 3383 gdbarch_find_memory_regions_p (struct gdbarch *gdbarch) |
| 3384 { |
| 3385 gdb_assert (gdbarch != NULL); |
| 3386 return gdbarch->find_memory_regions != NULL; |
| 3387 } |
| 3388 |
| 3389 int |
| 3390 gdbarch_find_memory_regions (struct gdbarch *gdbarch, find_memory_region_ftype f
unc, void *data) |
| 3391 { |
| 3392 gdb_assert (gdbarch != NULL); |
| 3393 gdb_assert (gdbarch->find_memory_regions != NULL); |
| 3394 if (gdbarch_debug >= 2) |
| 3395 fprintf_unfiltered (gdb_stdlog, "gdbarch_find_memory_regions called\n"); |
| 3396 return gdbarch->find_memory_regions (gdbarch, func, data); |
| 3397 } |
| 3398 |
| 3399 void |
| 3400 set_gdbarch_find_memory_regions (struct gdbarch *gdbarch, |
| 3401 gdbarch_find_memory_regions_ftype find_memory_r
egions) |
| 3402 { |
| 3403 gdbarch->find_memory_regions = find_memory_regions; |
| 3404 } |
| 3405 |
| 3406 int |
| 3239 gdbarch_core_xfer_shared_libraries_p (struct gdbarch *gdbarch) | 3407 gdbarch_core_xfer_shared_libraries_p (struct gdbarch *gdbarch) |
| 3240 { | 3408 { |
| 3241 gdb_assert (gdbarch != NULL); | 3409 gdb_assert (gdbarch != NULL); |
| 3242 return gdbarch->core_xfer_shared_libraries != NULL; | 3410 return gdbarch->core_xfer_shared_libraries != NULL; |
| 3243 } | 3411 } |
| 3244 | 3412 |
| 3245 LONGEST | 3413 LONGEST |
| 3246 gdbarch_core_xfer_shared_libraries (struct gdbarch *gdbarch, gdb_byte *readbuf,
ULONGEST offset, LONGEST len) | 3414 gdbarch_core_xfer_shared_libraries (struct gdbarch *gdbarch, gdb_byte *readbuf,
ULONGEST offset, LONGEST len) |
| 3247 { | 3415 { |
| 3248 gdb_assert (gdbarch != NULL); | 3416 gdb_assert (gdbarch != NULL); |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3564 gdbarch->core_read_description = core_read_description; | 3732 gdbarch->core_read_description = core_read_description; |
| 3565 } | 3733 } |
| 3566 | 3734 |
| 3567 int | 3735 int |
| 3568 gdbarch_static_transform_name_p (struct gdbarch *gdbarch) | 3736 gdbarch_static_transform_name_p (struct gdbarch *gdbarch) |
| 3569 { | 3737 { |
| 3570 gdb_assert (gdbarch != NULL); | 3738 gdb_assert (gdbarch != NULL); |
| 3571 return gdbarch->static_transform_name != NULL; | 3739 return gdbarch->static_transform_name != NULL; |
| 3572 } | 3740 } |
| 3573 | 3741 |
| 3574 char * | 3742 const char * |
| 3575 gdbarch_static_transform_name (struct gdbarch *gdbarch, char *name) | 3743 gdbarch_static_transform_name (struct gdbarch *gdbarch, const char *name) |
| 3576 { | 3744 { |
| 3577 gdb_assert (gdbarch != NULL); | 3745 gdb_assert (gdbarch != NULL); |
| 3578 gdb_assert (gdbarch->static_transform_name != NULL); | 3746 gdb_assert (gdbarch->static_transform_name != NULL); |
| 3579 if (gdbarch_debug >= 2) | 3747 if (gdbarch_debug >= 2) |
| 3580 fprintf_unfiltered (gdb_stdlog, "gdbarch_static_transform_name called\n"); | 3748 fprintf_unfiltered (gdb_stdlog, "gdbarch_static_transform_name called\n"); |
| 3581 return gdbarch->static_transform_name (name); | 3749 return gdbarch->static_transform_name (name); |
| 3582 } | 3750 } |
| 3583 | 3751 |
| 3584 void | 3752 void |
| 3585 set_gdbarch_static_transform_name (struct gdbarch *gdbarch, | 3753 set_gdbarch_static_transform_name (struct gdbarch *gdbarch, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3630 } | 3798 } |
| 3631 | 3799 |
| 3632 int | 3800 int |
| 3633 gdbarch_process_record_signal_p (struct gdbarch *gdbarch) | 3801 gdbarch_process_record_signal_p (struct gdbarch *gdbarch) |
| 3634 { | 3802 { |
| 3635 gdb_assert (gdbarch != NULL); | 3803 gdb_assert (gdbarch != NULL); |
| 3636 return gdbarch->process_record_signal != NULL; | 3804 return gdbarch->process_record_signal != NULL; |
| 3637 } | 3805 } |
| 3638 | 3806 |
| 3639 int | 3807 int |
| 3640 gdbarch_process_record_signal (struct gdbarch *gdbarch, struct regcache *regcach
e, enum target_signal signal) | 3808 gdbarch_process_record_signal (struct gdbarch *gdbarch, struct regcache *regcach
e, enum gdb_signal signal) |
| 3641 { | 3809 { |
| 3642 gdb_assert (gdbarch != NULL); | 3810 gdb_assert (gdbarch != NULL); |
| 3643 gdb_assert (gdbarch->process_record_signal != NULL); | 3811 gdb_assert (gdbarch->process_record_signal != NULL); |
| 3644 if (gdbarch_debug >= 2) | 3812 if (gdbarch_debug >= 2) |
| 3645 fprintf_unfiltered (gdb_stdlog, "gdbarch_process_record_signal called\n"); | 3813 fprintf_unfiltered (gdb_stdlog, "gdbarch_process_record_signal called\n"); |
| 3646 return gdbarch->process_record_signal (gdbarch, regcache, signal); | 3814 return gdbarch->process_record_signal (gdbarch, regcache, signal); |
| 3647 } | 3815 } |
| 3648 | 3816 |
| 3649 void | 3817 void |
| 3650 set_gdbarch_process_record_signal (struct gdbarch *gdbarch, | 3818 set_gdbarch_process_record_signal (struct gdbarch *gdbarch, |
| 3651 gdbarch_process_record_signal_ftype process_r
ecord_signal) | 3819 gdbarch_process_record_signal_ftype process_r
ecord_signal) |
| 3652 { | 3820 { |
| 3653 gdbarch->process_record_signal = process_record_signal; | 3821 gdbarch->process_record_signal = process_record_signal; |
| 3654 } | 3822 } |
| 3655 | 3823 |
| 3656 enum target_signal | 3824 int |
| 3657 gdbarch_target_signal_from_host (struct gdbarch *gdbarch, int signo) | 3825 gdbarch_gdb_signal_from_target_p (struct gdbarch *gdbarch) |
| 3658 { | 3826 { |
| 3659 gdb_assert (gdbarch != NULL); | 3827 gdb_assert (gdbarch != NULL); |
| 3660 gdb_assert (gdbarch->target_signal_from_host != NULL); | 3828 return gdbarch->gdb_signal_from_target != NULL; |
| 3829 } |
| 3830 |
| 3831 enum gdb_signal |
| 3832 gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch, int signo) |
| 3833 { |
| 3834 gdb_assert (gdbarch != NULL); |
| 3835 gdb_assert (gdbarch->gdb_signal_from_target != NULL); |
| 3661 if (gdbarch_debug >= 2) | 3836 if (gdbarch_debug >= 2) |
| 3662 fprintf_unfiltered (gdb_stdlog, "gdbarch_target_signal_from_host called\n"); | 3837 fprintf_unfiltered (gdb_stdlog, "gdbarch_gdb_signal_from_target called\n"); |
| 3663 return gdbarch->target_signal_from_host (gdbarch, signo); | 3838 return gdbarch->gdb_signal_from_target (gdbarch, signo); |
| 3664 } | 3839 } |
| 3665 | 3840 |
| 3666 void | 3841 void |
| 3667 set_gdbarch_target_signal_from_host (struct gdbarch *gdbarch, | 3842 set_gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch, |
| 3668 gdbarch_target_signal_from_host_ftype targe
t_signal_from_host) | 3843 gdbarch_gdb_signal_from_target_ftype gdb_sig
nal_from_target) |
| 3669 { | 3844 { |
| 3670 gdbarch->target_signal_from_host = target_signal_from_host; | 3845 gdbarch->gdb_signal_from_target = gdb_signal_from_target; |
| 3671 } | 3846 } |
| 3672 | 3847 |
| 3673 int | 3848 int |
| 3674 gdbarch_target_signal_to_host (struct gdbarch *gdbarch, enum target_signal ts) | |
| 3675 { | |
| 3676 gdb_assert (gdbarch != NULL); | |
| 3677 gdb_assert (gdbarch->target_signal_to_host != NULL); | |
| 3678 if (gdbarch_debug >= 2) | |
| 3679 fprintf_unfiltered (gdb_stdlog, "gdbarch_target_signal_to_host called\n"); | |
| 3680 return gdbarch->target_signal_to_host (gdbarch, ts); | |
| 3681 } | |
| 3682 | |
| 3683 void | |
| 3684 set_gdbarch_target_signal_to_host (struct gdbarch *gdbarch, | |
| 3685 gdbarch_target_signal_to_host_ftype target_si
gnal_to_host) | |
| 3686 { | |
| 3687 gdbarch->target_signal_to_host = target_signal_to_host; | |
| 3688 } | |
| 3689 | |
| 3690 int | |
| 3691 gdbarch_get_siginfo_type_p (struct gdbarch *gdbarch) | 3849 gdbarch_get_siginfo_type_p (struct gdbarch *gdbarch) |
| 3692 { | 3850 { |
| 3693 gdb_assert (gdbarch != NULL); | 3851 gdb_assert (gdbarch != NULL); |
| 3694 return gdbarch->get_siginfo_type != NULL; | 3852 return gdbarch->get_siginfo_type != NULL; |
| 3695 } | 3853 } |
| 3696 | 3854 |
| 3697 struct type * | 3855 struct type * |
| 3698 gdbarch_get_siginfo_type (struct gdbarch *gdbarch) | 3856 gdbarch_get_siginfo_type (struct gdbarch *gdbarch) |
| 3699 { | 3857 { |
| 3700 gdb_assert (gdbarch != NULL); | 3858 gdb_assert (gdbarch != NULL); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3752 return gdbarch->get_syscall_number (gdbarch, ptid); | 3910 return gdbarch->get_syscall_number (gdbarch, ptid); |
| 3753 } | 3911 } |
| 3754 | 3912 |
| 3755 void | 3913 void |
| 3756 set_gdbarch_get_syscall_number (struct gdbarch *gdbarch, | 3914 set_gdbarch_get_syscall_number (struct gdbarch *gdbarch, |
| 3757 gdbarch_get_syscall_number_ftype get_syscall_num
ber) | 3915 gdbarch_get_syscall_number_ftype get_syscall_num
ber) |
| 3758 { | 3916 { |
| 3759 gdbarch->get_syscall_number = get_syscall_number; | 3917 gdbarch->get_syscall_number = get_syscall_number; |
| 3760 } | 3918 } |
| 3761 | 3919 |
| 3920 const char * |
| 3921 gdbarch_stap_integer_prefix (struct gdbarch *gdbarch) |
| 3922 { |
| 3923 gdb_assert (gdbarch != NULL); |
| 3924 /* Skip verify of stap_integer_prefix, invalid_p == 0 */ |
| 3925 if (gdbarch_debug >= 2) |
| 3926 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_integer_prefix called\n"); |
| 3927 return gdbarch->stap_integer_prefix; |
| 3928 } |
| 3929 |
| 3930 void |
| 3931 set_gdbarch_stap_integer_prefix (struct gdbarch *gdbarch, |
| 3932 const char * stap_integer_prefix) |
| 3933 { |
| 3934 gdbarch->stap_integer_prefix = stap_integer_prefix; |
| 3935 } |
| 3936 |
| 3937 const char * |
| 3938 gdbarch_stap_integer_suffix (struct gdbarch *gdbarch) |
| 3939 { |
| 3940 gdb_assert (gdbarch != NULL); |
| 3941 /* Skip verify of stap_integer_suffix, invalid_p == 0 */ |
| 3942 if (gdbarch_debug >= 2) |
| 3943 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_integer_suffix called\n"); |
| 3944 return gdbarch->stap_integer_suffix; |
| 3945 } |
| 3946 |
| 3947 void |
| 3948 set_gdbarch_stap_integer_suffix (struct gdbarch *gdbarch, |
| 3949 const char * stap_integer_suffix) |
| 3950 { |
| 3951 gdbarch->stap_integer_suffix = stap_integer_suffix; |
| 3952 } |
| 3953 |
| 3954 const char * |
| 3955 gdbarch_stap_register_prefix (struct gdbarch *gdbarch) |
| 3956 { |
| 3957 gdb_assert (gdbarch != NULL); |
| 3958 /* Skip verify of stap_register_prefix, invalid_p == 0 */ |
| 3959 if (gdbarch_debug >= 2) |
| 3960 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_register_prefix called\n"); |
| 3961 return gdbarch->stap_register_prefix; |
| 3962 } |
| 3963 |
| 3964 void |
| 3965 set_gdbarch_stap_register_prefix (struct gdbarch *gdbarch, |
| 3966 const char * stap_register_prefix) |
| 3967 { |
| 3968 gdbarch->stap_register_prefix = stap_register_prefix; |
| 3969 } |
| 3970 |
| 3971 const char * |
| 3972 gdbarch_stap_register_suffix (struct gdbarch *gdbarch) |
| 3973 { |
| 3974 gdb_assert (gdbarch != NULL); |
| 3975 /* Skip verify of stap_register_suffix, invalid_p == 0 */ |
| 3976 if (gdbarch_debug >= 2) |
| 3977 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_register_suffix called\n"); |
| 3978 return gdbarch->stap_register_suffix; |
| 3979 } |
| 3980 |
| 3981 void |
| 3982 set_gdbarch_stap_register_suffix (struct gdbarch *gdbarch, |
| 3983 const char * stap_register_suffix) |
| 3984 { |
| 3985 gdbarch->stap_register_suffix = stap_register_suffix; |
| 3986 } |
| 3987 |
| 3988 const char * |
| 3989 gdbarch_stap_register_indirection_prefix (struct gdbarch *gdbarch) |
| 3990 { |
| 3991 gdb_assert (gdbarch != NULL); |
| 3992 /* Skip verify of stap_register_indirection_prefix, invalid_p == 0 */ |
| 3993 if (gdbarch_debug >= 2) |
| 3994 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_register_indirection_prefix ca
lled\n"); |
| 3995 return gdbarch->stap_register_indirection_prefix; |
| 3996 } |
| 3997 |
| 3998 void |
| 3999 set_gdbarch_stap_register_indirection_prefix (struct gdbarch *gdbarch, |
| 4000 const char * stap_register_indirec
tion_prefix) |
| 4001 { |
| 4002 gdbarch->stap_register_indirection_prefix = stap_register_indirection_prefix; |
| 4003 } |
| 4004 |
| 4005 const char * |
| 4006 gdbarch_stap_register_indirection_suffix (struct gdbarch *gdbarch) |
| 4007 { |
| 4008 gdb_assert (gdbarch != NULL); |
| 4009 /* Skip verify of stap_register_indirection_suffix, invalid_p == 0 */ |
| 4010 if (gdbarch_debug >= 2) |
| 4011 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_register_indirection_suffix ca
lled\n"); |
| 4012 return gdbarch->stap_register_indirection_suffix; |
| 4013 } |
| 4014 |
| 4015 void |
| 4016 set_gdbarch_stap_register_indirection_suffix (struct gdbarch *gdbarch, |
| 4017 const char * stap_register_indirec
tion_suffix) |
| 4018 { |
| 4019 gdbarch->stap_register_indirection_suffix = stap_register_indirection_suffix; |
| 4020 } |
| 4021 |
| 4022 const char * |
| 4023 gdbarch_stap_gdb_register_prefix (struct gdbarch *gdbarch) |
| 4024 { |
| 4025 gdb_assert (gdbarch != NULL); |
| 4026 /* Skip verify of stap_gdb_register_prefix, invalid_p == 0 */ |
| 4027 if (gdbarch_debug >= 2) |
| 4028 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_gdb_register_prefix called\n")
; |
| 4029 return gdbarch->stap_gdb_register_prefix; |
| 4030 } |
| 4031 |
| 4032 void |
| 4033 set_gdbarch_stap_gdb_register_prefix (struct gdbarch *gdbarch, |
| 4034 const char * stap_gdb_register_prefix) |
| 4035 { |
| 4036 gdbarch->stap_gdb_register_prefix = stap_gdb_register_prefix; |
| 4037 } |
| 4038 |
| 4039 const char * |
| 4040 gdbarch_stap_gdb_register_suffix (struct gdbarch *gdbarch) |
| 4041 { |
| 4042 gdb_assert (gdbarch != NULL); |
| 4043 /* Skip verify of stap_gdb_register_suffix, invalid_p == 0 */ |
| 4044 if (gdbarch_debug >= 2) |
| 4045 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_gdb_register_suffix called\n")
; |
| 4046 return gdbarch->stap_gdb_register_suffix; |
| 4047 } |
| 4048 |
| 4049 void |
| 4050 set_gdbarch_stap_gdb_register_suffix (struct gdbarch *gdbarch, |
| 4051 const char * stap_gdb_register_suffix) |
| 4052 { |
| 4053 gdbarch->stap_gdb_register_suffix = stap_gdb_register_suffix; |
| 4054 } |
| 4055 |
| 4056 int |
| 4057 gdbarch_stap_is_single_operand_p (struct gdbarch *gdbarch) |
| 4058 { |
| 4059 gdb_assert (gdbarch != NULL); |
| 4060 return gdbarch->stap_is_single_operand != NULL; |
| 4061 } |
| 4062 |
| 4063 int |
| 4064 gdbarch_stap_is_single_operand (struct gdbarch *gdbarch, const char *s) |
| 4065 { |
| 4066 gdb_assert (gdbarch != NULL); |
| 4067 gdb_assert (gdbarch->stap_is_single_operand != NULL); |
| 4068 if (gdbarch_debug >= 2) |
| 4069 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_is_single_operand called\n"); |
| 4070 return gdbarch->stap_is_single_operand (gdbarch, s); |
| 4071 } |
| 4072 |
| 4073 void |
| 4074 set_gdbarch_stap_is_single_operand (struct gdbarch *gdbarch, |
| 4075 gdbarch_stap_is_single_operand_ftype stap_is
_single_operand) |
| 4076 { |
| 4077 gdbarch->stap_is_single_operand = stap_is_single_operand; |
| 4078 } |
| 4079 |
| 4080 int |
| 4081 gdbarch_stap_parse_special_token_p (struct gdbarch *gdbarch) |
| 4082 { |
| 4083 gdb_assert (gdbarch != NULL); |
| 4084 return gdbarch->stap_parse_special_token != NULL; |
| 4085 } |
| 4086 |
| 4087 int |
| 4088 gdbarch_stap_parse_special_token (struct gdbarch *gdbarch, struct stap_parse_inf
o *p) |
| 4089 { |
| 4090 gdb_assert (gdbarch != NULL); |
| 4091 gdb_assert (gdbarch->stap_parse_special_token != NULL); |
| 4092 if (gdbarch_debug >= 2) |
| 4093 fprintf_unfiltered (gdb_stdlog, "gdbarch_stap_parse_special_token called\n")
; |
| 4094 return gdbarch->stap_parse_special_token (gdbarch, p); |
| 4095 } |
| 4096 |
| 4097 void |
| 4098 set_gdbarch_stap_parse_special_token (struct gdbarch *gdbarch, |
| 4099 gdbarch_stap_parse_special_token_ftype sta
p_parse_special_token) |
| 4100 { |
| 4101 gdbarch->stap_parse_special_token = stap_parse_special_token; |
| 4102 } |
| 4103 |
| 3762 int | 4104 int |
| 3763 gdbarch_has_global_solist (struct gdbarch *gdbarch) | 4105 gdbarch_has_global_solist (struct gdbarch *gdbarch) |
| 3764 { | 4106 { |
| 3765 gdb_assert (gdbarch != NULL); | 4107 gdb_assert (gdbarch != NULL); |
| 3766 /* Skip verify of has_global_solist, invalid_p == 0 */ | 4108 /* Skip verify of has_global_solist, invalid_p == 0 */ |
| 3767 if (gdbarch_debug >= 2) | 4109 if (gdbarch_debug >= 2) |
| 3768 fprintf_unfiltered (gdb_stdlog, "gdbarch_has_global_solist called\n"); | 4110 fprintf_unfiltered (gdb_stdlog, "gdbarch_has_global_solist called\n"); |
| 3769 return gdbarch->has_global_solist; | 4111 return gdbarch->has_global_solist; |
| 3770 } | 4112 } |
| 3771 | 4113 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3904 gdbarch->gen_return_address (gdbarch, ax, value, scope); | 4246 gdbarch->gen_return_address (gdbarch, ax, value, scope); |
| 3905 } | 4247 } |
| 3906 | 4248 |
| 3907 void | 4249 void |
| 3908 set_gdbarch_gen_return_address (struct gdbarch *gdbarch, | 4250 set_gdbarch_gen_return_address (struct gdbarch *gdbarch, |
| 3909 gdbarch_gen_return_address_ftype gen_return_addr
ess) | 4251 gdbarch_gen_return_address_ftype gen_return_addr
ess) |
| 3910 { | 4252 { |
| 3911 gdbarch->gen_return_address = gen_return_address; | 4253 gdbarch->gen_return_address = gen_return_address; |
| 3912 } | 4254 } |
| 3913 | 4255 |
| 4256 int |
| 4257 gdbarch_info_proc_p (struct gdbarch *gdbarch) |
| 4258 { |
| 4259 gdb_assert (gdbarch != NULL); |
| 4260 return gdbarch->info_proc != NULL; |
| 4261 } |
| 4262 |
| 4263 void |
| 4264 gdbarch_info_proc (struct gdbarch *gdbarch, char *args, enum info_proc_what what
) |
| 4265 { |
| 4266 gdb_assert (gdbarch != NULL); |
| 4267 gdb_assert (gdbarch->info_proc != NULL); |
| 4268 if (gdbarch_debug >= 2) |
| 4269 fprintf_unfiltered (gdb_stdlog, "gdbarch_info_proc called\n"); |
| 4270 gdbarch->info_proc (gdbarch, args, what); |
| 4271 } |
| 4272 |
| 4273 void |
| 4274 set_gdbarch_info_proc (struct gdbarch *gdbarch, |
| 4275 gdbarch_info_proc_ftype info_proc) |
| 4276 { |
| 4277 gdbarch->info_proc = info_proc; |
| 4278 } |
| 4279 |
| 4280 void |
| 4281 gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch *gdbarch, iterate_
over_objfiles_in_search_order_cb_ftype *cb, void *cb_data, struct objfile *curre
nt_objfile) |
| 4282 { |
| 4283 gdb_assert (gdbarch != NULL); |
| 4284 gdb_assert (gdbarch->iterate_over_objfiles_in_search_order != NULL); |
| 4285 if (gdbarch_debug >= 2) |
| 4286 fprintf_unfiltered (gdb_stdlog, "gdbarch_iterate_over_objfiles_in_search_ord
er called\n"); |
| 4287 gdbarch->iterate_over_objfiles_in_search_order (gdbarch, cb, cb_data, current_
objfile); |
| 4288 } |
| 4289 |
| 4290 void |
| 4291 set_gdbarch_iterate_over_objfiles_in_search_order (struct gdbarch *gdbarch, |
| 4292 gdbarch_iterate_over_objfiles
_in_search_order_ftype iterate_over_objfiles_in_search_order) |
| 4293 { |
| 4294 gdbarch->iterate_over_objfiles_in_search_order = iterate_over_objfiles_in_sear
ch_order; |
| 4295 } |
| 4296 |
| 3914 | 4297 |
| 3915 /* Keep a registry of per-architecture data-pointers required by GDB | 4298 /* Keep a registry of per-architecture data-pointers required by GDB |
| 3916 modules. */ | 4299 modules. */ |
| 3917 | 4300 |
| 3918 struct gdbarch_data | 4301 struct gdbarch_data |
| 3919 { | 4302 { |
| 3920 unsigned index; | 4303 unsigned index; |
| 3921 int init_p; | 4304 int init_p; |
| 3922 gdbarch_data_pre_init_ftype *pre_init; | 4305 gdbarch_data_pre_init_ftype *pre_init; |
| 3923 gdbarch_data_post_init_ftype *post_init; | 4306 gdbarch_data_post_init_ftype *post_init; |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4301 _initialize_gdbarch (void) | 4684 _initialize_gdbarch (void) |
| 4302 { | 4685 { |
| 4303 add_setshow_zinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\ | 4686 add_setshow_zinteger_cmd ("arch", class_maintenance, &gdbarch_debug, _("\ |
| 4304 Set architecture debugging."), _("\ | 4687 Set architecture debugging."), _("\ |
| 4305 Show architecture debugging."), _("\ | 4688 Show architecture debugging."), _("\ |
| 4306 When non-zero, architecture debugging is enabled."), | 4689 When non-zero, architecture debugging is enabled."), |
| 4307 NULL, | 4690 NULL, |
| 4308 show_gdbarch_debug, | 4691 show_gdbarch_debug, |
| 4309 &setdebuglist, &showdebuglist); | 4692 &setdebuglist, &showdebuglist); |
| 4310 } | 4693 } |
| OLD | NEW |