GDB (xrefs)
|
#include "defs.h"
#include "arch-utils.h"
#include "gdbtypes.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "frame.h"
#include "frame-unwind.h"
#include "frame-base.h"
#include "trad-frame.h"
#include "symtab.h"
#include "symfile.h"
#include "value.h"
#include "inferior.h"
#include "dis-asm.h"
#include "objfiles.h"
#include "language.h"
#include "regcache.h"
#include "reggroups.h"
#include "floatformat.h"
#include "block.h"
#include "observer.h"
#include "infcall.h"
#include "dwarf2.h"
#include "dwarf2-frame.h"
#include "ax.h"
#include "spu-tdep.h"
Go to the source code of this file.
Classes | |
struct | gdbarch_tdep |
struct | spu_prologue_data |
struct | spu_unwind_cache |
struct | spu2ppu_cache |
struct | spu_dis_asm_data |
struct | spu_overlay_table |
Enumerations | |
enum | { op_lqd = 0x34, op_lqx = 0x3c4, op_lqa = 0x61, op_lqr = 0x67, op_stqd = 0x24, op_stqx = 0x144, op_stqa = 0x41, op_stqr = 0x47, op_il = 0x081, op_ila = 0x21, op_a = 0x0c0, op_ai = 0x1c, op_selb = 0x8, op_br = 0x64, op_bra = 0x60, op_brsl = 0x66, op_brasl = 0x62, op_brnz = 0x42, op_brz = 0x40, op_brhnz = 0x46, op_brhz = 0x44, op_bi = 0x1a8, op_bisl = 0x1a9, op_biz = 0x128, op_binz = 0x129, op_bihz = 0x12a, op_bihnz = 0x12b } |
Variables | |
static struct cmd_list_element * | setspucmdlist = NULL |
static struct cmd_list_element * | showspucmdlist = NULL |
static int | spu_stop_on_load_p = 0 |
static int | spu_auto_flush_cache_p = 1 |
static struct cmd_list_element * | infospucmdlist = NULL |
static const struct frame_unwind | spu_frame_unwind |
static const struct frame_base | spu_frame_base |
static const struct frame_unwind | spu2ppu_unwind |
static const struct objfile_data * | spu_overlay_data |
initialize_file_ftype | _initialize_spu_tdep |
anonymous enum |
Definition at line 498 of file spu-tdep.c.
void _initialize_spu_tdep | ( | void | ) |
Definition at line 2809 of file spu-tdep.c.
References _, add_cmd(), add_prefix_cmd(), add_setshow_boolean_cmd(), class_info, class_support, info_spu_command(), info_spu_dma_command(), info_spu_event_command(), info_spu_mailbox_command(), info_spu_proxydma_command(), info_spu_signal_command(), infolist, no_class, observer_attach_new_objfile(), observer_attach_normal_stop(), register_gdbarch_init(), set_spu_command(), setlist, show_spu_auto_flush_cache(), show_spu_command(), show_spu_stop_on_load(), showlist, spu_attach_normal_stop(), spu_auto_flush_cache_p, spu_catch_start(), spu_gdbarch_init(), spu_overlay_data, spu_overlay_new_objfile(), and spu_stop_on_load_p.
|
static |
Definition at line 2037 of file spu-tdep.c.
References BMSYMBOL_VALUE_ADDRESS, objfile_type::builtin_void, call_function_by_hand(), get_current_frame(), has_stack_frames(), lookup_function_type(), lookup_minimal_symbol(), lookup_pointer_type(), bound_minimal_symbol::minsym, objfile_type(), spu_objfile_from_frame(), type, and value_from_pointer().
Referenced by spu_attach_normal_stop().
|
static |
Definition at line 1733 of file spu-tdep.c.
References spu_dis_asm_data::gdbarch, spu_dis_asm_data::id, spu_dis_asm_print_address(), and SPUADDR_SPU.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 2645 of file spu-tdep.c.
References _, all_commands, gdb_stdout, help_list(), and printf_unfiltered().
Referenced by _initialize_spu_tdep().
Definition at line 2318 of file spu-tdep.c.
References current_uiout, do_cleanups(), extract_unsigned_integer(), make_cleanup_ui_out_table_begin_end(), make_cleanup_ui_out_tuple_begin_end(), phex(), printf_filtered(), spu_mfc_get_bitfield(), ui_left, ui_out_field_fmt(), ui_out_field_int(), ui_out_field_skip(), ui_out_field_string(), ui_out_is_mi_like_p(), ui_out_table_body(), and ui_out_table_header().
Referenced by info_spu_dma_command(), and info_spu_proxydma_command().
|
static |
Definition at line 2499 of file spu-tdep.c.
References _, gdbarch::byte_order, current_target, current_uiout, do_cleanups(), error(), extract_unsigned_integer(), gdbarch_bfd_arch_info(), gdbarch_byte_order(), get_frame_arch(), get_frame_register_unsigned(), get_selected_frame(), info_spu_dma_cmdlist(), len, make_cleanup_ui_out_tuple_begin_end(), phex(), phex_nz(), printf_filtered(), SPU_ID_REGNUM, TARGET_OBJECT_SPU, target_read(), ui_out_field_fmt(), ui_out_is_mi_like_p(), and xsnprintf().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 2084 of file spu-tdep.c.
References _, current_target, current_uiout, do_cleanups(), error(), gdbarch_bfd_arch_info(), get_frame_arch(), get_frame_register_unsigned(), get_selected_frame(), len, make_cleanup_ui_out_tuple_begin_end(), phex(), phex_nz(), printf_filtered(), SPU_ID_REGNUM, strtoulst(), TARGET_OBJECT_SPU, target_read(), ui_out_field_fmt(), ui_out_is_mi_like_p(), and xsnprintf().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 2262 of file spu-tdep.c.
References _, gdbarch::byte_order, current_target, current_uiout, do_cleanups(), error(), gdbarch_bfd_arch_info(), gdbarch_byte_order(), get_frame_arch(), get_frame_register_unsigned(), get_selected_frame(), info_spu_mailbox_list(), len, make_cleanup_ui_out_tuple_begin_end(), SPU_ID_REGNUM, TARGET_OBJECT_SPU, target_read(), and xsnprintf().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 2231 of file spu-tdep.c.
References current_uiout, do_cleanups(), extract_unsigned_integer(), make_cleanup_ui_out_table_begin_end(), make_cleanup_ui_out_tuple_begin_end(), phex(), printf_filtered(), ui_left, ui_out_field_fmt(), ui_out_is_mi_like_p(), ui_out_table_body(), and ui_out_table_header().
Referenced by info_spu_mailbox_command().
|
static |
Definition at line 2580 of file spu-tdep.c.
References _, gdbarch::byte_order, current_target, current_uiout, do_cleanups(), error(), extract_unsigned_integer(), gdbarch_bfd_arch_info(), gdbarch_byte_order(), get_frame_arch(), get_frame_register_unsigned(), get_selected_frame(), info_spu_dma_cmdlist(), len, make_cleanup_ui_out_tuple_begin_end(), phex(), phex_nz(), printf_filtered(), SPU_ID_REGNUM, TARGET_OBJECT_SPU, target_read(), ui_out_field_fmt(), ui_out_is_mi_like_p(), and xsnprintf().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 2135 of file spu-tdep.c.
References _, gdbarch::byte_order, current_target, current_uiout, do_cleanups(), error(), extract_unsigned_integer(), gdbarch_bfd_arch_info(), gdbarch_byte_order(), get_frame_arch(), get_frame_register_unsigned(), get_selected_frame(), len, make_cleanup_ui_out_tuple_begin_end(), phex(), phex_nz(), printf_filtered(), SPU_ID_REGNUM, strtoulst(), TARGET_OBJECT_SPU, target_read(), ui_out_field_fmt(), ui_out_field_int(), ui_out_is_mi_like_p(), and xsnprintf().
Referenced by _initialize_spu_tdep().
Definition at line 616 of file spu-tdep.c.
References is_ri16(), is_ri7(), op_bi, op_bihnz, op_bihz, op_binz, op_bisl, op_biz, op_br, op_bra, op_brasl, op_brhnz, op_brhz, op_brnz, op_brsl, op_brz, and SPU_PC_REGNUM.
Referenced by spu_analyze_prologue(), spu_software_single_step(), and spu_stack_frame_destroyed_p().
Definition at line 576 of file spu-tdep.c.
Referenced by spu_analyze_prologue(), and spu_stack_frame_destroyed_p().
Definition at line 590 of file spu-tdep.c.
Referenced by is_branch(), and spu_analyze_prologue().
Definition at line 603 of file spu-tdep.c.
Referenced by spu_analyze_prologue().
Definition at line 562 of file spu-tdep.c.
Referenced by is_branch().
Definition at line 533 of file spu-tdep.c.
Referenced by spu_analyze_prologue(), and spu_stack_frame_destroyed_p().
Definition at line 547 of file spu-tdep.c.
Referenced by spu_analyze_prologue().
|
static |
Definition at line 2662 of file spu-tdep.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 2676 of file spu-tdep.c.
References _, and fprintf_filtered().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 2656 of file spu-tdep.c.
References all_commands, gdb_stdout, and help_list().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 2668 of file spu-tdep.c.
References _, and fprintf_filtered().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 1287 of file spu-tdep.c.
References spu2ppu_cache::regcache, and regcache_xfree().
|
static |
Definition at line 1209 of file spu-tdep.c.
References get_regcache_arch(), and spu2ppu_cache::regcache.
|
static |
Definition at line 1224 of file spu-tdep.c.
References frame_unwind_got_bytes(), get_regcache_arch(), spu2ppu_cache::regcache, regcache_cooked_read(), and register_size().
|
static |
Definition at line 1237 of file spu-tdep.c.
References gdbarch::byte_order, extract_unsigned_integer(), spu2ppu_cache::frame_id, frame_id_build(), FRAME_OBSTACK_CALLOC, frame_save_as_regcache(), func, gdbarch_bfd_arch_info(), gdbarch_byte_order(), get_frame_arch(), get_frame_pc(), get_frame_sp(), get_next_frame(), get_thread_arch_regcache(), inferior_ptid, spu2ppu_cache::regcache, regcache_dup(), target_gdbarch(), and target_read_memory().
|
static |
Definition at line 1216 of file spu-tdep.c.
References spu2ppu_cache::frame_id.
|
static |
Definition at line 448 of file spu-tdep.c.
References TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
Referenced by spu_gdbarch_init().
Definition at line 430 of file spu-tdep.c.
References TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 439 of file spu-tdep.c.
References TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 461 of file spu-tdep.c.
References gdbarch_byte_order(), SPUADDR_ADDR, store_unsigned_integer(), and TYPE_LENGTH.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 671 of file spu-tdep.c.
References spu_prologue_data::cfa_offset, spu_prologue_data::cfa_reg, extract_unsigned_integer(), gdbarch_byte_order(), is_branch(), is_ri10(), is_ri16(), is_ri18(), is_rr(), is_rrr(), op_a, op_ai, op_il, op_ila, op_selb, op_stqd, spu_prologue_data::reg_offset, spu_prologue_data::size, SPU_FP_REGNUM, SPU_LR_REGNUM, SPU_NUM_GPRS, SPU_RAW_SP_REGNUM, SPU_SP_REGNUM, and target_read_memory().
Referenced by spu_frame_unwind_cache(), spu_skip_prologue(), and spu_virtual_frame_pointer().
Definition at line 2068 of file spu-tdep.c.
References flush_ea_cache(), and spu_auto_flush_cache_p.
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 314 of file spu-tdep.c.
References _, ax_reg_mask(), internal_error(), SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM, SPU_FPSCR_REGNUM, SPU_LSLR_REGNUM, SPU_RAW_SP_REGNUM, SPU_SP_REGNUM, and SPU_SRR0_REGNUM.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 336 of file spu-tdep.c.
References _, ax_reg(), internal_error(), SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM, SPU_FPSCR_REGNUM, SPU_LSLR_REGNUM, SPU_RAW_SP_REGNUM, SPU_SP_REGNUM, and SPU_SRR0_REGNUM.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1575 of file spu-tdep.c.
Referenced by spu_gdbarch_init().
Definition at line 73 of file spu-tdep.c.
References append_composite_type_field(), arch_composite_type(), builtin_type::builtin_double, builtin_type::builtin_float, builtin_type::builtin_int128, builtin_type::builtin_int16, builtin_type::builtin_int32, builtin_type::builtin_int64, builtin_type::builtin_int8, builtin_type(), gdbarch_tdep(), init_vector_type(), gdbarch_tdep::spu_builtin_type_vec128, TYPE_CODE_UNION, TYPE_NAME, and TYPE_VECTOR.
Referenced by spu_register_type().
|
static |
Definition at line 1952 of file spu-tdep.c.
References AUTO_BOOLEAN_FALSE, bkpt_breakpoint_ops, block_lookup_symbol(), BLOCKVECTOR_BLOCK, BMSYMBOL_VALUE_ADDRESS, bp_breakpoint, COMPUNIT_BLOCKVECTOR, core_addr_to_string(), create_breakpoint(), find_function_start_sal(), find_pc_sect_compunit_symtab(), fixup_symbol_section(), get_objfile_arch(), GLOBAL_BLOCK, lookup_minimal_symbol(), bound_minimal_symbol::minsym, MSYMBOL_OBJ_SECTION, objfile::obfd, bound_minimal_symbol::objfile, symtab_and_line::pc, spu_stop_on_load_p, symfile_objfile, VAR_DOMAIN, and xsnprintf().
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 1726 of file spu-tdep.c.
References spu_dis_asm_data::gdbarch, spu_dis_asm_data::id, print_address(), and SPUADDR.
Referenced by gdb_print_insn_spu().
|
static |
Definition at line 1497 of file spu-tdep.c.
References frame_id_build(), gdbarch_tdep(), get_frame_register_unsigned(), gdbarch_tdep::id, gdbarch_tdep::pc, gdbarch_tdep::sp, SPU_PC_REGNUM, SPU_SP_REGNUM, and SPUADDR.
Referenced by spu_gdbarch_init().
Definition at line 402 of file spu-tdep.c.
References SPU_RAW_SP_REGNUM, and SPU_SP_REGNUM.
Referenced by spu_gdbarch_init().
Definition at line 1308 of file spu-tdep.c.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1147 of file spu-tdep.c.
References spu_unwind_cache::local_base, and spu_frame_unwind_cache().
|
static |
Definition at line 1124 of file spu-tdep.c.
References spu_unwind_cache::saved_regs, spu_frame_unwind_cache(), SPU_RAW_SP_REGNUM, SPU_SP_REGNUM, and trad_frame_get_prev_register().
|
static |
Definition at line 1111 of file spu-tdep.c.
References spu_unwind_cache::frame_base, frame_id_build(), spu_unwind_cache::func, and spu_frame_unwind_cache().
|
static |
Definition at line 991 of file spu-tdep.c.
References trad_frame_saved_reg::addr, spu_prologue_data::cfa_offset, spu_prologue_data::cfa_reg, extract_unsigned_integer(), spu_unwind_cache::frame_base, FRAME_OBSTACK_ZALLOC, spu_unwind_cache::func, gdbarch_byte_order(), gdbarch_tdep(), get_frame_arch(), get_frame_func(), get_frame_pc(), get_frame_register(), get_frame_register_unsigned(), gdbarch_tdep::id, spu_unwind_cache::local_base, spu_prologue_data::reg_offset, safe_read_memory_integer(), spu_unwind_cache::saved_regs, spu_prologue_data::size, spu_analyze_prologue(), SPU_LR_REGNUM, SPU_LSLR_REGNUM, SPU_NUM_GPRS, SPU_PC_REGNUM, SPU_SAVED1_REGNUM, SPU_SAVEDN_REGNUM, SPU_SP_REGNUM, SPUADDR, SPUADDR_ADDR, status, target_read_memory(), trad_frame_addr_p(), trad_frame_alloc_saved_regs(), and trad_frame_set_value().
Referenced by spu_frame_base_address(), spu_frame_prev_register(), and spu_frame_this_id().
Definition at line 412 of file spu-tdep.c.
References gdbarch_tdep(), gdbarch_tdep::id, obj_section_addr, SPUADDR_SPU, and symfile_objfile.
Referenced by spu_integer_to_address(), and spu_pointer_to_address().
|
static |
Definition at line 2687 of file spu-tdep.c.
References gdbarch_info::abfd, core_addr_lessthan(), dwarf2_append_unwinders(), floatformats_ieee_double, floatformats_ieee_single, frame_base_set_default(), frame_unwind_append_unwinder(), frame_unwind_prepend_unwinder(), gdb_print_insn_spu(), gdbarch_list::gdbarch, gdbarch_alloc(), gdbarch_list_lookup_by_info(), gdbarch_tdep(), gdbarch_tdep::id, if(), name, gdbarch_list::next, ON_STACK, set_gdbarch_addr_bit(), set_gdbarch_address_class_name_to_type_flags(), set_gdbarch_address_class_type_flags(), set_gdbarch_address_class_type_flags_to_name(), set_gdbarch_address_to_pointer(), set_gdbarch_ax_pseudo_register_collect(), set_gdbarch_ax_pseudo_register_push_stack(), set_gdbarch_breakpoint_from_pc(), set_gdbarch_call_dummy_location(), set_gdbarch_char_signed(), set_gdbarch_decr_pc_after_break(), set_gdbarch_double_bit(), set_gdbarch_double_format(), set_gdbarch_dummy_id(), set_gdbarch_dwarf2_reg_to_regnum(), set_gdbarch_float_bit(), set_gdbarch_float_format(), set_gdbarch_frame_align(), set_gdbarch_frame_args_skip(), set_gdbarch_frame_red_zone_size(), set_gdbarch_get_longjmp_target(), set_gdbarch_inner_than(), set_gdbarch_int_bit(), set_gdbarch_integer_to_address(), set_gdbarch_long_bit(), set_gdbarch_long_double_bit(), set_gdbarch_long_double_format(), set_gdbarch_long_long_bit(), set_gdbarch_memory_remove_breakpoint(), set_gdbarch_num_pseudo_regs(), set_gdbarch_num_regs(), set_gdbarch_overlay_update(), set_gdbarch_pc_regnum(), set_gdbarch_pointer_to_address(), set_gdbarch_print_insn(), set_gdbarch_pseudo_register_read(), set_gdbarch_pseudo_register_write(), set_gdbarch_ptr_bit(), set_gdbarch_push_dummy_call(), set_gdbarch_push_dummy_code(), set_gdbarch_read_pc(), set_gdbarch_register_name(), set_gdbarch_register_reggroup_p(), set_gdbarch_register_type(), set_gdbarch_return_value(), set_gdbarch_short_bit(), set_gdbarch_skip_prologue(), set_gdbarch_software_single_step(), set_gdbarch_sp_regnum(), set_gdbarch_stack_frame_destroyed_p(), set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(), set_gdbarch_value_from_register(), set_gdbarch_virtual_frame_pointer(), set_gdbarch_write_pc(), spu_address_class_name_to_type_flags(), spu_address_class_type_flags(), spu_address_class_type_flags_to_name(), spu_address_to_pointer(), spu_ax_pseudo_register_collect(), spu_ax_pseudo_register_push_stack(), spu_breakpoint_from_pc(), spu_dummy_id(), spu_dwarf_reg_to_regnum(), spu_frame_align(), spu_get_longjmp_target(), spu_integer_to_address(), spu_memory_remove_breakpoint(), SPU_NUM_PSEUDO_REGS, SPU_NUM_REGS, spu_overlay_update(), SPU_PC_REGNUM, spu_pointer_to_address(), spu_pseudo_register_read(), spu_pseudo_register_write(), spu_push_dummy_call(), spu_push_dummy_code(), spu_read_pc(), spu_register_name(), spu_register_reggroup_p(), spu_register_type(), spu_return_value(), spu_skip_prologue(), spu_software_single_step(), SPU_SP_REGNUM, spu_stack_frame_destroyed_p(), spu_unwind_pc(), spu_unwind_sp(), spu_value_from_register(), spu_virtual_frame_pointer(), spu_write_pc(), and gdbarch_info::tdep_info.
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 1693 of file spu-tdep.c.
References extract_unsigned_integer(), gdbarch_byte_order(), gdbarch_tdep(), get_frame_arch(), get_frame_register_bytes(), gdbarch_tdep::id, SPU_ARG1_REGNUM, SPUADDR, and target_read_memory().
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1799 of file spu-tdep.c.
References ALL_OBJFILE_OSECTIONS, BMSYMBOL_VALUE_ADDRESS, extract_unsigned_integer(), lookup_minimal_symbol(), spu_overlay_table::mapped_ptr, spu_overlay_table::mapped_val, bound_minimal_symbol::minsym, MSYMBOL_SIZE, objfile::obfd, objfile::objfile_obstack, OBSTACK_CALLOC, read_memory(), objfile::sections, objfile::sections_end, size, spu_overlay_data, obj_section::the_bfd_section, xfree(), and xmalloc().
Referenced by spu_overlay_new_objfile(), and spu_overlay_update_osect().
|
static |
Definition at line 486 of file spu-tdep.c.
References spu_gdbarch_id(), SPUADDR, and unpack_long().
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1585 of file spu-tdep.c.
References current_inferior(), default_memory_remove_breakpoint(), inferior_ptid, pid, and ptid_get_pid().
Referenced by spu_gdbarch_init().
Definition at line 2311 of file spu-tdep.c.
Referenced by info_spu_dma_cmdlist().
|
static |
Definition at line 2016 of file spu-tdep.c.
References ALL_OBJFILES, gdbarch_bfd_arch_info(), gdbarch_tdep(), get_frame_arch(), gdbarch_tdep::id, obj_section_addr, objfile::sections, objfile::sections_end, and SPUADDR_SPU.
Referenced by flush_ea_cache().
|
static |
Definition at line 1916 of file spu-tdep.c.
References ALL_OBJFILE_OSECTIONS, objfile::obfd, objfile::sections, spu_get_overlay_table(), spu_overlay_data, SPU_OVERLAY_LMA, and obj_section::the_bfd_section.
Referenced by _initialize_spu_tdep().
|
static |
Definition at line 1894 of file spu-tdep.c.
References ALL_OBJSECTIONS, section_is_overlay(), and spu_overlay_update_osect().
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1870 of file spu-tdep.c.
References spu_overlay_table::mapped_ptr, spu_overlay_table::mapped_val, objfile::obfd, obj_section_addr, obj_section::objfile, obj_section::ovly_mapped, read_memory_unsigned_integer(), objfile::sections, spu_get_overlay_table(), SPUADDR, and SPUADDR_SPU.
Referenced by spu_overlay_update().
|
static |
Definition at line 470 of file spu-tdep.c.
References extract_unsigned_integer(), gdbarch_byte_order(), spu_gdbarch_id(), SPUADDR, TYPE_ADDRESS_CLASS_1, and TYPE_LENGTH.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 210 of file spu-tdep.c.
References _, current_target, internal_error(), REG_VALID, regcache_raw_read(), regcache_raw_read_unsigned(), SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM, SPU_FPSCR_REGNUM, SPU_ID_REGNUM, SPU_LSLR_REGNUM, spu_pseudo_register_read_spu(), SPU_RAW_SP_REGNUM, SPU_SP_REGNUM, SPU_SRR0_REGNUM, status, TARGET_OBJECT_SPU, target_read(), and xsnprintf().
Referenced by spu_gdbarch_init().
|
static |
Definition at line 185 of file spu-tdep.c.
References gdbarch::byte_order, current_target, gdbarch_byte_order(), get_regcache_arch(), REG_VALID, regcache_raw_read_unsigned(), SPU_ID_REGNUM, status, store_unsigned_integer(), strtoulst(), TARGET_OBJECT_SPU, target_read(), and xsnprintf().
Referenced by spu_pseudo_register_read().
|
static |
Definition at line 271 of file spu-tdep.c.
References _, current_target, internal_error(), regcache_raw_read(), regcache_raw_read_unsigned(), regcache_raw_write(), SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM, SPU_FPSCR_REGNUM, SPU_ID_REGNUM, SPU_LSLR_REGNUM, spu_pseudo_register_write_spu(), SPU_RAW_SP_REGNUM, SPU_SP_REGNUM, SPU_SRR0_REGNUM, TARGET_OBJECT_SPU, target_write(), and xsnprintf().
Referenced by spu_gdbarch_init().
|
static |
Definition at line 253 of file spu-tdep.c.
References gdbarch::byte_order, current_target, extract_unsigned_integer(), gdbarch_byte_order(), get_regcache_arch(), phex_nz(), regcache_raw_read_unsigned(), SPU_ID_REGNUM, TARGET_OBJECT_SPU, target_write(), and xsnprintf().
Referenced by spu_pseudo_register_write().
|
static |
Definition at line 1399 of file spu-tdep.c.
References align_up(), check_typedef(), extract_unsigned_integer(), gdbarch_byte_order(), len, regcache_cooked_read(), regcache_cooked_write(), regnum, SPU_ARG1_REGNUM, SPU_ARGN_REGNUM, SPU_LR_REGNUM, SPU_RAW_SP_REGNUM, spu_scalar_value_p(), spu_value_to_regcache(), SPUADDR_ADDR, store_unsigned_integer(), target_write_memory(), TYPE_LENGTH, value_contents(), and value_type().
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1314 of file spu-tdep.c.
Referenced by spu_gdbarch_init().
Definition at line 1179 of file spu-tdep.c.
References gdbarch_tdep(), get_regcache_arch(), gdbarch_tdep::id, gdbarch_tdep::pc, regcache_cooked_read_unsigned(), SPU_PC_REGNUM, and SPUADDR.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1374 of file spu-tdep.c.
References len, regcache_cooked_read(), regcache_cooked_read_part(), spu_scalar_value_p(), and TYPE_LENGTH.
Referenced by spu_return_value().
Definition at line 114 of file spu-tdep.c.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 380 of file spu-tdep.c.
References default_register_reggroup_p(), float_reggroup, general_reggroup, restore_reggroup, and save_reggroup.
Referenced by spu_gdbarch_init().
Definition at line 146 of file spu-tdep.c.
References _, builtin_type::builtin_data_ptr, builtin_type::builtin_func_ptr, builtin_type(), builtin_type::builtin_uint128, builtin_type::builtin_uint32, internal_error(), spu_builtin_type_vec128(), SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM, SPU_FPSCR_REGNUM, SPU_ID_REGNUM, SPU_LSLR_REGNUM, SPU_NUM_GPRS, SPU_PC_REGNUM, SPU_SP_REGNUM, and SPU_SRR0_REGNUM.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1508 of file spu-tdep.c.
References _, check_typedef(), error(), regcache_cooked_read_part(), regcache_cooked_write_part(), RETURN_VALUE_REGISTER_CONVENTION, RETURN_VALUE_STRUCT_CONVENTION, SPU_ARG1_REGNUM, SPU_ARGN_REGNUM, spu_regcache_to_value(), spu_value_to_regcache(), TYPE_CALLING_CONVENTION, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_FUNC, TYPE_CODE_PTR, TYPE_LENGTH, TYPE_TARGET_TYPE, TYPE_VECTOR, and value_type().
Referenced by spu_gdbarch_init().
Definition at line 1330 of file spu-tdep.c.
References TYPE_CODE, TYPE_CODE_BOOL, TYPE_CODE_CHAR, TYPE_CODE_ENUM, TYPE_CODE_INT, TYPE_CODE_PTR, TYPE_CODE_RANGE, TYPE_CODE_REF, and TYPE_LENGTH.
Referenced by spu_push_dummy_call(), spu_regcache_to_value(), and spu_value_to_regcache().
Definition at line 856 of file spu-tdep.c.
References spu_analyze_prologue().
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1621 of file spu-tdep.c.
References _, extract_unsigned_integer(), gdbarch_byte_order(), get_frame_address_space(), get_frame_arch(), get_frame_pc(), get_frame_register_bytes(), get_frame_register_unsigned(), insert_single_step_breakpoint(), is_branch(), NOT_AVAILABLE_ERROR, offset, OPTIMIZED_OUT_ERROR, SPU_LSLR_REGNUM, SPU_PC_REGNUM, SPUADDR, SPUADDR_ADDR, SPUADDR_SPU, target_read_memory(), and throw_error().
Referenced by spu_gdbarch_init().
Definition at line 901 of file spu-tdep.c.
References extract_unsigned_integer(), find_pc_partial_function(), gdbarch_byte_order(), is_branch(), is_ri10(), is_rr(), op_a, op_ai, op_lqd, SPU_LR_REGNUM, SPU_RAW_SP_REGNUM, and target_read_memory().
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1162 of file spu-tdep.c.
References frame_unwind_register_unsigned(), gdbarch_tdep(), gdbarch_tdep::id, gdbarch_tdep::pc, SPU_PC_REGNUM, and SPUADDR.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1171 of file spu-tdep.c.
References frame_unwind_register_unsigned(), gdbarch_tdep(), gdbarch_tdep::id, gdbarch_tdep::sp, SPU_SP_REGNUM, and SPUADDR.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 361 of file spu-tdep.c.
References default_value_from_register(), len, set_value_offset(), SPU_NUM_GPRS, and TYPE_LENGTH.
Referenced by spu_gdbarch_init().
|
static |
Definition at line 1349 of file spu-tdep.c.
References len, regcache_cooked_write(), regcache_cooked_write_part(), spu_scalar_value_p(), and TYPE_LENGTH.
Referenced by spu_push_dummy_call(), and spu_return_value().
|
static |
Definition at line 864 of file spu-tdep.c.
References spu_prologue_data::cfa_offset, spu_prologue_data::cfa_reg, spu_prologue_data::size, spu_analyze_prologue(), and SPU_SP_REGNUM.
Referenced by spu_gdbarch_init().
Definition at line 1189 of file spu-tdep.c.
References regcache_cooked_read_unsigned(), regcache_cooked_write_unsigned(), SPU_PC_REGNUM, and SPUADDR_ADDR.
Referenced by spu_gdbarch_init().
initialize_file_ftype _initialize_spu_tdep |
|
static |
Definition at line 109 of file spu-tdep.c.
|
static |
Definition at line 51 of file spu-tdep.c.
|
static |
Definition at line 52 of file spu-tdep.c.
|
static |
Definition at line 1293 of file spu-tdep.c.
|
static |
Definition at line 57 of file spu-tdep.c.
Referenced by _initialize_spu_tdep(), and spu_attach_normal_stop().
|
static |
Definition at line 1154 of file spu-tdep.c.
|
static |
Definition at line 1137 of file spu-tdep.c.
|
static |
Definition at line 1787 of file spu-tdep.c.
Referenced by _initialize_spu_tdep(), spu_get_overlay_table(), and spu_overlay_new_objfile().
|
static |
Definition at line 55 of file spu-tdep.c.
Referenced by _initialize_spu_tdep(), and spu_catch_start().