GDB (xrefs)

Classes | Macros | Functions | Variables
/tmp/gdb-8.1/gdb/score-tdep.c File Reference
`#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)

## Functions
static struct type * | score_register_type (struct gdbarch *gdbarch, int regnum)
static CORE_ADDR | score_unwind_sp (struct gdbarch *gdbarch, struct frame_info *next_frame)
static CORE_ADDR | score_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame)
static const char * | score7_register_name (struct gdbarch *gdbarch, int regnum)
static const char * | score3_register_name (struct gdbarch *gdbarch, int regnum)
static inst_t * | score7_fetch_inst (struct gdbarch *gdbarch, CORE_ADDR addr, gdb_byte *memblock)
static inst_t * | score3_adjust_pc_and_fetch_inst (CORE_ADDR *pcptr, int *lenptr, enum bfd_endian byte_order)
static int | score7_breakpoint_kind_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr)
static const gdb_byte * | score7_sw_breakpoint_from_kind (struct gdbarch *gdbarch, int kind, int *size)
static int | score3_breakpoint_kind_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr)
static const gdb_byte * | score3_sw_breakpoint_from_kind (struct gdbarch *gdbarch, int kind, int *size)
static CORE_ADDR | score_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr)
static CORE_ADDR | score_frame_align (struct gdbarch *gdbarch, CORE_ADDR addr)
static void | score_xfer_register (struct regcache *regcache, int regnum, int length, enum bfd_endian endian, gdb_byte *readbuf, const gdb_byte *writebuf, int buf_offset)
static enum return_value_convention | score_return_value (struct gdbarch *gdbarch, struct value *function, struct type *type, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf)
static struct frame_id | score_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
static int | score_type_needs_double_align (struct type *type)
static CORE_ADDR | score_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr)
static CORE_ADDR | score7_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
static CORE_ADDR | score3_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
static int | score7_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR cur_pc)
static int | score3_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR cur_pc)
static gdb_byte * | score7_malloc_and_get_memblock (CORE_ADDR addr, CORE_ADDR size)
static void | score7_free_memblock (gdb_byte *memblock)
static void | score7_adjust_memblock_ptr (gdb_byte **memblock, CORE_ADDR prev_pc, CORE_ADDR cur_pc)
static void | score7_analyze_prologue (CORE_ADDR startaddr, CORE_ADDR pc, struct frame_info *this_frame, struct score_frame_cache *this_cache)
static void | score3_analyze_prologue (CORE_ADDR startaddr, CORE_ADDR pc, struct frame_info *this_frame, struct score_frame_cache *this_cache)
static struct score_frame_cache * | score_make_prologue_cache (struct frame_info *this_frame, void **this_cache)
static void | score_prologue_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
static struct value * | score_prologue_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
static CORE_ADDR | score_prologue_frame_base_address (struct frame_info *this_frame, void **this_cache)
static const struct frame_base * | score_prologue_frame_base_sniffer (struct frame_info *this_frame)
static void | score7_linux_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *buf, size_t size)
static void | score7_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
static struct gdbarch * | score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
void | _initialize_score_tdep (void)

## 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

## Macro Definition Documentation

## ◆ EXTRACT_LEN

#define EXTRACT_LEN 2

Referenced by score3_adjust_pc_and_fetch_inst().

## ◆ G_FLD

#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().

## ◆ SCORE7_LINUX_EPC_OFFSET

#define SCORE7_LINUX_EPC_OFFSET (44 * 4)

Definition at line 1416 of file score-tdep.c.

Referenced by score7_linux_supply_gregset().

## ◆ SCORE7_LINUX_SIZEOF_GREGSET

#define SCORE7_LINUX_SIZEOF_GREGSET (49 * 4)

Definition at line 1417 of file score-tdep.c.

Referenced by score7_linux_iterate_over_regset_sections().

## Function Documentation

## ◆ _initialize_score_tdep()

void _initialize_score_tdep | ( | void |  | ) |

Definition at line 1535 of file score-tdep.c.

References gdbarch_register(), and score_gdbarch_init().

## ◆ score3_adjust_pc_and_fetch_inst()

static inst_t* score3_adjust_pc_and_fetch_inst | ( | CORE_ADDR * | pcptr,
|  | int * | lenptr,
|  | enum bfd_endian | byte_order
| ) |  |
| static

Definition at line 170 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_kind_from_pc(), score3_skip_prologue(), score3_stack_frame_destroyed_p(), and score_adjust_breakpoint_address().

## ◆ score3_analyze_prologue()

static void score3_analyze_prologue | ( | CORE_ADDR | startaddr,
|  | CORE_ADDR | pc,
|  | struct frame_info * | this_frame,
|  | struct score_frame_cache * | this_cache
| ) |  |
| static

Definition at line 1067 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().

## ◆ score3_breakpoint_kind_from_pc()

static int score3_breakpoint_kind_from_pc | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR * | pcptr
| ) |  |
| static

Definition at line 365 of file score-tdep.c.

References gdbarch_byte_order(), and score3_adjust_pc_and_fetch_inst().

Referenced by score_gdbarch_init().

## ◆ score3_register_name()

static const char* score3_register_name | ( | struct gdbarch * | gdbarch,
|  | int | regnum
| ) |  |
| static

Definition at line 100 of file score-tdep.c.

References gdb_assert, regnum, and SCORE3_NUM_REGS.

Referenced by score_gdbarch_init().

## ◆ score3_skip_prologue()

static CORE_ADDR score3_skip_prologue | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | pc
| ) |  |
| static

Definition at line 683 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().

## ◆ score3_stack_frame_destroyed_p()

static int score3_stack_frame_destroyed_p | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | cur_pc
| ) |  |
| static

Definition at line 768 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().

## ◆ score3_sw_breakpoint_from_kind()

static const gdb_byte* score3_sw_breakpoint_from_kind | ( | struct gdbarch * | gdbarch,
|  | int | kind,
|  | int * | size
| ) |  |
| static

Definition at line 378 of file score-tdep.c.

References gdbarch_byte_order(), and size.

Referenced by score_gdbarch_init().

## ◆ score7_adjust_memblock_ptr()

static void score7_adjust_memblock_ptr | ( | gdb_byte ** | memblock,
|  | CORE_ADDR | prev_pc,
|  | CORE_ADDR | cur_pc
| ) |  |
| static

Definition at line 840 of file score-tdep.c.

References SCORE_INSTLEN.

Referenced by score7_analyze_prologue().

## ◆ score7_analyze_prologue()

static void score7_analyze_prologue | ( | CORE_ADDR | startaddr,
|  | CORE_ADDR | pc,
|  | struct frame_info * | this_frame,
|  | struct score_frame_cache * | this_cache
| ) |  |
| static

Definition at line 860 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(), 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().

## ◆ score7_breakpoint_kind_from_pc()

static int score7_breakpoint_kind_from_pc | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR * | pcptr
| ) |  |
| static

Definition at line 303 of file score-tdep.c.

References _, error(), extract_unsigned_integer(), gdbarch_byte_order(), SCORE_INSTLEN, and target_read_memory().

Referenced by score_gdbarch_init().

## ◆ score7_fetch_inst()

static inst_t* score7_fetch_inst | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | addr,
|  | gdb_byte * | memblock
| ) |  |
| static

Definition at line 130 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().

## ◆ score7_free_memblock()

static void score7_free_memblock | ( | gdb_byte * | memblock | ) |
| static

Definition at line 834 of file score-tdep.c.

References xfree().

Referenced by score7_analyze_prologue().

## ◆ score7_linux_iterate_over_regset_sections()

static void score7_linux_iterate_over_regset_sections | ( | struct gdbarch * | gdbarch,
|  | iterate_over_regset_sections_cb * | cb,
|  | void * | cb_data,
|  | const struct regcache * | regcache
| ) |  |
| static

Definition at line 1446 of file score-tdep.c.

References score7_linux_gregset, and SCORE7_LINUX_SIZEOF_GREGSET.

Referenced by score_gdbarch_init().

## ◆ score7_linux_supply_gregset()

static void score7_linux_supply_gregset | ( | const struct regset * | regset,
|  | struct regcache * | regcache,
|  | int | regnum,
|  | const void * | buf,
|  | size_t | size
| ) |  |
| static

Definition at line 1420 of file score-tdep.c.

References regcache_raw_supply(), regcache_supply_regset(), regnum, SCORE7_LINUX_EPC_OFFSET, SCORE_EPC_REGNUM, and size.

## ◆ score7_malloc_and_get_memblock()

static gdb_byte* score7_malloc_and_get_memblock | ( | CORE_ADDR | addr,
|  | CORE_ADDR | size
| ) |  |
| static

Definition at line 813 of file score-tdep.c.

References _, error(), memset(), size, target_read_memory(), and xmalloc().

Referenced by score7_analyze_prologue().

## ◆ score7_register_name()

static const char* score7_register_name | ( | struct gdbarch * | gdbarch,
|  | int | regnum
| ) |  |
| static

Definition at line 80 of file score-tdep.c.

References gdb_assert, regnum, and SCORE7_NUM_REGS.

Referenced by score_gdbarch_init().

## ◆ score7_skip_prologue()

static CORE_ADDR score7_skip_prologue | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | pc
| ) |  |
| static

Definition at line 626 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().

## ◆ score7_stack_frame_destroyed_p()

static int score7_stack_frame_destroyed_p | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | cur_pc
| ) |  |
| static

Definition at line 742 of file score-tdep.c.

References G_FLD, score7_fetch_inst(), and inst_t::v.

Referenced by score_gdbarch_init().

## ◆ score7_sw_breakpoint_from_kind()

static const gdb_byte* score7_sw_breakpoint_from_kind | ( | struct gdbarch * | gdbarch,
|  | int | kind,
|  | int * | size
| ) |  |
| static

Definition at line 334 of file score-tdep.c.

References gdbarch_byte_order(), and size.

Referenced by score_gdbarch_init().

## ◆ score_adjust_breakpoint_address()

static CORE_ADDR score_adjust_breakpoint_address | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | bpaddr
| ) |  |
| static

Definition at line 399 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().

## ◆ score_dummy_id()

static struct frame_id score_dummy_id | ( | struct gdbarch * | gdbarch,
|  | struct frame_info * | this_frame
| ) |  |
| static

Definition at line 482 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().

## ◆ score_frame_align()

static CORE_ADDR score_frame_align | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | addr
| ) |  |
| static

Definition at line 413 of file score-tdep.c.

References align_down().

Referenced by score_gdbarch_init().

## ◆ score_gdbarch_init()

static struct gdbarch* score_gdbarch_init | ( | struct gdbarch_info | info,
|  | struct gdbarch_list * | arches
| ) |  |
| static

Definition at line 1456 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_kind_from_pc(), SCORE3_NUM_REGS, score3_register_name(), score3_skip_prologue(), score3_stack_frame_destroyed_p(), score3_sw_breakpoint_from_kind(), score7_breakpoint_kind_from_pc(), score7_linux_iterate_over_regset_sections(), SCORE7_NUM_REGS, score7_register_name(), score7_skip_prologue(), score7_stack_frame_destroyed_p(), score7_sw_breakpoint_from_kind(), score_adjust_breakpoint_address(), score_dummy_id(), score_frame_align(), SCORE_PC_REGNUM, score_prologue_frame_base_sniffer(), score_prologue_unwind, 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_kind_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_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_sw_breakpoint_from_kind(), set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(), and target_mach.

Referenced by _initialize_score_tdep().

## ◆ score_make_prologue_cache()

static struct score_frame_cache* score_make_prologue_cache | ( | struct frame_info * | this_frame,
|  | void ** | this_cache
| ) |  |
| static

Definition at line 1309 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().

## ◆ score_prologue_frame_base_address()

static CORE_ADDR score_prologue_frame_base_address | ( | struct frame_info * | this_frame,
|  | void ** | this_cache
| ) |  |
| static

Definition at line 1373 of file score-tdep.c.

References score_frame_cache::fp, and score_make_prologue_cache().

## ◆ score_prologue_frame_base_sniffer()

static const struct frame_base* score_prologue_frame_base_sniffer | ( | struct frame_info * | this_frame | ) |
| static

Definition at line 1390 of file score-tdep.c.

References score_prologue_frame_base.

Referenced by score_gdbarch_init().

## ◆ score_prologue_prev_register()

static struct value* score_prologue_prev_register | ( | struct frame_info * | this_frame,
|  | void ** | this_cache,
|  | int | regnum
| ) |  |
| static

Definition at line 1353 of file score-tdep.c.

References regnum, score_frame_cache::saved_regs, score_make_prologue_cache(), and trad_frame_get_prev_register().

## ◆ score_prologue_this_id()

static void score_prologue_this_id | ( | struct frame_info * | this_frame,
|  | void ** | this_cache,
|  | struct frame_id * | this_id
| ) |  |
| static

Definition at line 1344 of file score-tdep.c.

References score_frame_cache::base, frame_id_build(), get_frame_func(), and score_make_prologue_cache().

## ◆ score_push_dummy_call()

static CORE_ADDR score_push_dummy_call | ( | struct gdbarch * | gdbarch,
|  | struct value * | function,
|  | struct regcache * | regcache,
|  | CORE_ADDR | bp_addr,
|  | int | nargs,
|  | struct value ** | args,
|  | CORE_ADDR | sp,
|  | int | struct_return,
|  | CORE_ADDR | struct_addr
| ) |  |
| static

Definition at line 511 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().

## ◆ score_register_type()

static struct type* score_register_type | ( | struct gdbarch * | gdbarch,
|  | int | regnum
| ) |  |
| static

Definition at line 59 of file score-tdep.c.

References builtin_type(), builtin_type::builtin_uint32, gdb_assert, regnum, SCORE3_NUM_REGS, SCORE7_NUM_REGS, and target_mach.

Referenced by score_gdbarch_init().

## ◆ score_return_value()

static enum return_value_convention score_return_value | ( | struct gdbarch * | gdbarch,
|  | struct value * | function,
|  | struct type * | type,
|  | struct regcache * | regcache,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf
| ) |  |
| static

Definition at line 453 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().

## ◆ score_type_needs_double_align()

static int score_type_needs_double_align | ( | struct type * | type | ) |
| static

Definition at line 490 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().

## ◆ score_unwind_pc()

static CORE_ADDR score_unwind_pc | ( | struct gdbarch * | gdbarch,
|  | struct frame_info * | next_frame
| ) |  |
| static

Definition at line 74 of file score-tdep.c.

References frame_unwind_register_unsigned(), and SCORE_PC_REGNUM.

Referenced by score_gdbarch_init().

## ◆ score_unwind_sp()

static CORE_ADDR score_unwind_sp | ( | struct gdbarch * | gdbarch,
|  | struct frame_info * | next_frame
| ) |  |
| static

Definition at line 68 of file score-tdep.c.

References frame_unwind_register_unsigned(), and SCORE_SP_REGNUM.

Referenced by score_gdbarch_init().

## ◆ score_xfer_register()

static void score_xfer_register | ( | struct regcache * | regcache,
|  | int | regnum,
|  | int | length,
|  | enum bfd_endian | endian,
|  | gdb_byte * | readbuf,
|  | const gdb_byte * | writebuf,
|  | int | buf_offset
| ) |  |
| static

Definition at line 419 of file score-tdep.c.

References _, error(), gdb_assert, reg_offset, regcache_cooked_read_part(), regcache_cooked_write_part(), regnum, SCORE3_NUM_REGS, SCORE7_NUM_REGS, SCORE_REGSIZE, and target_mach.

Referenced by score_return_value().

## Variable Documentation

## ◆ score7_linux_gregmap

const struct regcache_map_entry score7_linux_gregmap[]
| static

Initial value:
=
{
{ 7, REGCACHE_MAP_SKIP, 4 },
{ 32, 0, 4 },
{ 1, 55, 4 },
{ 1, 54, 4 },
{ 1, 53, 4 },
{ 1, 52, 4 },
{ 1, 51, 4 },
{ 1, 49, 4 },
{ 1, 38, 4 },
{ 1, 32, 4 },
{ 1, 34, 4 },
{ 1, 33, 4 },
{ 0 }
}
REGCACHE_MAP_SKIP
Definition: regcache.h:168

Definition at line 1397 of file score-tdep.c.

## ◆ score7_linux_gregset

const struct regset score7_linux_gregset
| static

Initial value:
=
{
score7_linux_gregmap,
score7_linux_supply_gregset,
regcache_collect_regset
}
regcache_collect_regset
void regcache_collect_regset(const struct regset *regset, const struct regcache *regcache, int regnum, void *buf, size_t size)
Definition: regcache.c:1211
score7_linux_gregmap
static const struct regcache_map_entry score7_linux_gregmap[]
Definition: score-tdep.c:1397
score7_linux_supply_gregset
static void score7_linux_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *buf, size_t size)
Definition: score-tdep.c:1420

Definition at line 1436 of file score-tdep.c.

Referenced by score7_linux_iterate_over_regset_sections().

## ◆ score_prologue_frame_base

const struct frame_base score_prologue_frame_base
| static

Initial value:
=
{
&score_prologue_unwind,
score_prologue_frame_base_address,
score_prologue_frame_base_address,
score_prologue_frame_base_address,
}
score_prologue_frame_base_address
static CORE_ADDR score_prologue_frame_base_address(struct frame_info *this_frame, void **this_cache)
Definition: score-tdep.c:1373
score_prologue_unwind
static const struct frame_unwind score_prologue_unwind
Definition: score-tdep.c:1361

Definition at line 1381 of file score-tdep.c.

Referenced by score_prologue_frame_base_sniffer().

## ◆ score_prologue_unwind

const struct frame_unwind score_prologue_unwind
| static

Initial value:
=
{
NORMAL_FRAME,
default_frame_unwind_stop_reason,
score_prologue_this_id,
score_prologue_prev_register,
NULL,
default_frame_sniffer,
NULL
}
NORMAL_FRAME
Definition: frame.h:244
score_prologue_prev_register
static struct value * score_prologue_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
Definition: score-tdep.c:1353
score_prologue_this_id
static void score_prologue_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
Definition: score-tdep.c:1344
default_frame_sniffer
int default_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
Definition: frame-unwind.c:174
default_frame_unwind_stop_reason
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:184

Definition at line 1361 of file score-tdep.c.

Referenced by score_gdbarch_init().

## ◆ target_mach

int target_mach = bfd_mach_score7
| 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().