GDB (xrefs)
|
#include "defs.h"
#include "inferior.h"
#include "symtab.h"
#include "objfiles.h"
#include "gdbcore.h"
#include "target.h"
#include "arch-utils.h"
#include "regcache.h"
#include "regset.h"
#include "dis-asm.h"
#include "frame-unwind.h"
#include "frame-base.h"
#include "trad-frame.h"
#include "dwarf2-frame.h"
#include "score-tdep.h"
Go to the source code of this file.
Classes | |
struct | inst_t |
struct | score_frame_cache |
Macros | |
#define | G_FLD(_i, _ms, _ls) ((unsigned)((_i) << (31 - (_ms))) >> (31 - (_ms) + (_ls))) |
#define | EXTRACT_LEN 2 |
#define | SCORE7_LINUX_EPC_OFFSET (44 * 4) |
#define | SCORE7_LINUX_SIZEOF_GREGSET (49 * 4) |
Variables | |
static int | target_mach = bfd_mach_score7 |
static const struct frame_unwind | score_prologue_unwind |
static const struct frame_base | score_prologue_frame_base |
static const struct regcache_map_entry | score7_linux_gregmap [] |
static const struct regset | score7_linux_gregset |
initialize_file_ftype | _initialize_score_tdep |
#define EXTRACT_LEN 2 |
Referenced by score3_adjust_pc_and_fetch_inst().
#define G_FLD | ( | _i, | |
_ms, | |||
_ls | |||
) | ((unsigned)((_i) << (31 - (_ms))) >> (31 - (_ms) + (_ls))) |
Definition at line 40 of file score-tdep.c.
Referenced by score3_analyze_prologue(), score3_skip_prologue(), score3_stack_frame_destroyed_p(), score7_analyze_prologue(), score7_fetch_inst(), score7_skip_prologue(), and score7_stack_frame_destroyed_p().
#define SCORE7_LINUX_EPC_OFFSET (44 * 4) |
Definition at line 1425 of file score-tdep.c.
Referenced by score7_linux_supply_gregset().
#define SCORE7_LINUX_SIZEOF_GREGSET (49 * 4) |
Definition at line 1426 of file score-tdep.c.
Referenced by score7_linux_iterate_over_regset_sections().
void _initialize_score_tdep | ( | void | ) |
Definition at line 1541 of file score-tdep.c.
References gdbarch_register(), and score_gdbarch_init().
|
static |
Definition at line 179 of file score-tdep.c.
References _, error(), EXTRACT_LEN, extract_unsigned_integer(), gdb_assert, inst_t::len, inst_t::raw, target_read_memory(), and inst_t::v.
Referenced by score3_analyze_prologue(), score3_breakpoint_from_pc(), score3_skip_prologue(), score3_stack_frame_destroyed_p(), and score_adjust_breakpoint_address().
|
static |
Definition at line 1074 of file score-tdep.c.
References trad_frame_saved_reg::addr, score_frame_cache::base, gdbarch::byte_order, score_frame_cache::fp, G_FLD, gdbarch_byte_order(), get_frame_arch(), get_frame_register_unsigned(), inst_t::len, score_frame_cache::saved_regs, score3_adjust_pc_and_fetch_inst(), SCORE_FP_REGNUM, SCORE_PC_REGNUM, SCORE_RA_REGNUM, SCORE_SP_REGNUM, and inst_t::v.
Referenced by score_make_prologue_cache().
|
static |
Definition at line 366 of file score-tdep.c.
References gdbarch_byte_order(), len, and score3_adjust_pc_and_fetch_inst().
Referenced by score_gdbarch_init().
Definition at line 100 of file score-tdep.c.
References gdb_assert, regnum, and SCORE3_NUM_REGS.
Referenced by score_gdbarch_init().
Definition at line 684 of file score-tdep.c.
References G_FLD, gdbarch_byte_order(), inst_t::len, score3_adjust_pc_and_fetch_inst(), and inst_t::v.
Referenced by score_gdbarch_init().
Definition at line 769 of file score-tdep.c.
References G_FLD, gdbarch_byte_order(), inst_t::len, score3_adjust_pc_and_fetch_inst(), and inst_t::v.
Referenced by score_gdbarch_init().
|
static |
Definition at line 847 of file score-tdep.c.
References SCORE_INSTLEN.
Referenced by score7_analyze_prologue().
|
static |
Definition at line 867 of file score-tdep.c.
References trad_frame_saved_reg::addr, score_frame_cache::base, score_frame_cache::fp, G_FLD, get_frame_arch(), get_frame_register_unsigned(), int, inst_t::len, score_frame_cache::saved_regs, SCORE16_INSTLEN, score7_adjust_memblock_ptr(), score7_fetch_inst(), score7_free_memblock(), score7_malloc_and_get_memblock(), SCORE_FP_REGNUM, SCORE_INSTLEN, SCORE_PC_REGNUM, SCORE_RA_REGNUM, SCORE_SP_REGNUM, and inst_t::v.
Referenced by score_make_prologue_cache().
|
static |
Definition at line 310 of file score-tdep.c.
References _, error(), extract_unsigned_integer(), gdbarch_byte_order(), SCORE_INSTLEN, and target_read_memory().
Referenced by score_gdbarch_init().
|
static |
Definition at line 139 of file score-tdep.c.
References _, error(), extract_unsigned_integer(), G_FLD, gdbarch_byte_order(), inst_t::len, inst_t::raw, SCORE_INSTLEN, target_has_execution, target_read_memory(), and inst_t::v.
Referenced by score7_analyze_prologue(), score7_skip_prologue(), and score7_stack_frame_destroyed_p().
|
static |
Definition at line 841 of file score-tdep.c.
References xfree().
Referenced by score7_analyze_prologue().
|
static |
Definition at line 1455 of file score-tdep.c.
References SCORE7_LINUX_SIZEOF_GREGSET.
Referenced by score_gdbarch_init().
|
static |
Definition at line 1429 of file score-tdep.c.
References regcache_raw_supply(), regcache_supply_regset(), SCORE7_LINUX_EPC_OFFSET, and SCORE_EPC_REGNUM.
Definition at line 814 of file score-tdep.c.
References _, error(), target_read_memory(), and xmalloc().
Referenced by score7_analyze_prologue().
Definition at line 80 of file score-tdep.c.
References gdb_assert, regnum, and SCORE7_NUM_REGS.
Referenced by score_gdbarch_init().
Definition at line 627 of file score-tdep.c.
References G_FLD, inst_t::len, SCORE16_INSTLEN, score7_fetch_inst(), SCORE_INSTLEN, and inst_t::v.
Referenced by score_gdbarch_init().
Definition at line 743 of file score-tdep.c.
References G_FLD, score7_fetch_inst(), and inst_t::v.
Referenced by score_gdbarch_init().
|
static |
Definition at line 397 of file score-tdep.c.
References align_down(), gdbarch_byte_order(), score3_adjust_pc_and_fetch_inst(), and target_mach.
Referenced by score_gdbarch_init().
|
static |
Definition at line 480 of file score-tdep.c.
References frame_id_build(), get_frame_pc(), get_frame_register_unsigned(), and SCORE_SP_REGNUM.
Referenced by score_gdbarch_init().
Definition at line 411 of file score-tdep.c.
References align_down().
Referenced by score_gdbarch_init().
|
static |
Definition at line 1465 of file score-tdep.c.
References AT_ENTRY_POINT, gdbarch_info::bfd_arch_info, core_addr_lessthan(), dwarf2_append_unwinders(), dwarf2_frame_base_sniffer(), frame_base_append_sniffer(), frame_unwind_append_unwinder(), gdbarch_list::gdbarch, gdbarch_alloc(), gdbarch_list_lookup_by_info(), score3_breakpoint_from_pc(), SCORE3_NUM_REGS, score3_register_name(), score3_skip_prologue(), score3_stack_frame_destroyed_p(), score7_breakpoint_from_pc(), score7_linux_iterate_over_regset_sections(), SCORE7_NUM_REGS, score7_register_name(), score7_skip_prologue(), score7_stack_frame_destroyed_p(), score_adjust_breakpoint_address(), score_dummy_id(), score_frame_align(), SCORE_PC_REGNUM, score_print_insn(), score_prologue_frame_base_sniffer(), score_push_dummy_call(), score_register_type(), score_return_value(), SCORE_SP_REGNUM, score_unwind_pc(), score_unwind_sp(), set_gdbarch_adjust_breakpoint_address(), set_gdbarch_breakpoint_from_pc(), set_gdbarch_call_dummy_location(), set_gdbarch_double_bit(), set_gdbarch_dummy_id(), set_gdbarch_float_bit(), set_gdbarch_frame_align(), set_gdbarch_have_nonsteppable_watchpoint(), set_gdbarch_inner_than(), set_gdbarch_int_bit(), set_gdbarch_iterate_over_regset_sections(), set_gdbarch_long_double_bit(), set_gdbarch_num_regs(), set_gdbarch_pc_regnum(), set_gdbarch_print_insn(), set_gdbarch_push_dummy_call(), set_gdbarch_register_name(), set_gdbarch_register_sim_regno(), set_gdbarch_register_type(), set_gdbarch_return_value(), set_gdbarch_short_bit(), set_gdbarch_skip_prologue(), set_gdbarch_sp_regnum(), set_gdbarch_stack_frame_destroyed_p(), set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(), and target_mach.
Referenced by _initialize_score_tdep().
|
static |
Definition at line 1320 of file score-tdep.c.
References score_frame_cache::base, find_pc_partial_function(), FRAME_OBSTACK_ZALLOC, get_frame_pc(), score_frame_cache::saved_regs, score3_analyze_prologue(), score7_analyze_prologue(), SCORE_SP_REGNUM, target_mach, trad_frame_alloc_saved_regs(), and trad_frame_set_value().
Referenced by score_prologue_frame_base_address(), score_prologue_prev_register(), and score_prologue_this_id().
|
static |
Definition at line 130 of file score-tdep.c.
Referenced by score_gdbarch_init().
|
static |
Definition at line 1382 of file score-tdep.c.
References score_frame_cache::fp, and score_make_prologue_cache().
|
static |
Definition at line 1399 of file score-tdep.c.
References score_prologue_frame_base.
Referenced by score_gdbarch_init().
|
static |
Definition at line 1362 of file score-tdep.c.
References score_frame_cache::saved_regs, score_make_prologue_cache(), and trad_frame_get_prev_register().
|
static |
Definition at line 1353 of file score-tdep.c.
References score_frame_cache::base, frame_id_build(), get_frame_func(), and score_make_prologue_cache().
|
static |
Definition at line 509 of file score-tdep.c.
References frame_info::addr, align_down(), align_up(), check_typedef(), extract_unsigned_integer(), gdbarch_byte_order(), regcache_cooked_write_unsigned(), SCORE_BEGIN_ARG_REGNUM, SCORE_LAST_ARG_REGNUM, SCORE_RA_REGNUM, SCORE_REGSIZE, SCORE_SP_REGNUM, score_type_needs_double_align(), TARGET_CHAR_BIT, TYPE_CODE, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_LENGTH, value_contents(), value_type(), and write_memory().
Referenced by score_gdbarch_init().
Definition at line 59 of file score-tdep.c.
References builtin_type(), builtin_type::builtin_uint32, gdb_assert, SCORE3_NUM_REGS, SCORE7_NUM_REGS, and target_mach.
Referenced by score_gdbarch_init().
|
static |
Definition at line 451 of file score-tdep.c.
References gdbarch_byte_order(), offset, regnum, RETURN_VALUE_REGISTER_CONVENTION, RETURN_VALUE_STRUCT_CONVENTION, SCORE_A0_REGNUM, SCORE_REGSIZE, score_xfer_register(), TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRUCT, TYPE_CODE_UNION, and TYPE_LENGTH.
Referenced by score_gdbarch_init().
Definition at line 488 of file score-tdep.c.
References TYPE_CODE, TYPE_CODE_FLT, TYPE_CODE_INT, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_FIELD_TYPE, TYPE_LENGTH, and TYPE_NFIELDS.
Referenced by score_push_dummy_call().
|
static |
Definition at line 74 of file score-tdep.c.
References frame_unwind_register_unsigned(), and SCORE_PC_REGNUM.
Referenced by score_gdbarch_init().
|
static |
Definition at line 68 of file score-tdep.c.
References frame_unwind_register_unsigned(), and SCORE_SP_REGNUM.
Referenced by score_gdbarch_init().
|
static |
Definition at line 417 of file score-tdep.c.
References _, error(), gdb_assert, reg_offset, regcache_cooked_read_part(), regcache_cooked_write_part(), SCORE3_NUM_REGS, SCORE7_NUM_REGS, SCORE_REGSIZE, and target_mach.
Referenced by score_return_value().
initialize_file_ftype _initialize_score_tdep |
|
static |
Definition at line 1406 of file score-tdep.c.
Definition at line 1445 of file score-tdep.c.
|
static |
Definition at line 1390 of file score-tdep.c.
Referenced by score_prologue_frame_base_sniffer().
|
static |
Definition at line 1370 of file score-tdep.c.
|
static |
Definition at line 56 of file score-tdep.c.
Referenced by score_adjust_breakpoint_address(), score_gdbarch_init(), score_make_prologue_cache(), score_register_type(), and score_xfer_register().