|
GDB (xrefs)
|
#include "defs.h"#include "frame.h"#include "frame-base.h"#include "frame-unwind.h"#include "dwarf2-frame.h"#include "symtab.h"#include "gdbtypes.h"#include "gdbcmd.h"#include "gdbcore.h"#include "value.h"#include "dis-asm.h"#include "inferior.h"#include "arch-utils.h"#include "regcache.h"#include "target-float.h"#include "osabi.h"#include "reggroups.h"#include "regset.h"#include "objfiles.h"#include "sh-tdep.h"#include "sh64-tdep.h"#include "elf-bfd.h"#include "solib-svr4.h"#include "elf/sh.h"#include "dwarf2.h"#include "gdb/sim-sh.h"#include <algorithm>Go to the source code of this file.
Classes | |
| struct | sh_frame_cache |
Macros | |
| #define | SH_NUM_REGS 67 |
| #define | GET_SOURCE_REG(x) (((x) >> 4) & 0xf) |
| #define | GET_TARGET_REG(x) (((x) >> 8) & 0xf) |
| #define | IS_JSR(x) (((x) & 0xf0ff) == 0x400b) |
| #define | IS_STS(x) ((x) == 0x4f22) |
| #define | IS_MACL_STS(x) ((x) == 0x4f12) |
| #define | IS_PUSH(x) (((x) & 0xff0f) == 0x2f06) |
| #define | IS_MOV_SP_FP(x) ((x) == 0x6ef3) |
| #define | IS_ADD_IMM_SP(x) (((x) & 0xff00) == 0x7f00) |
| #define | IS_MOV_R3(x) (((x) & 0xff00) == 0x1a00) |
| #define | IS_SHLL_R3(x) ((x) == 0x4300) |
| #define | IS_ADD_R3SP(x) ((x) == 0x3f3c) |
| #define | IS_FPUSH(x) (((x) & 0xff0f) == 0xff0b) |
| #define | IS_MOV_ARG_TO_REG(x) |
| #define | IS_MOV_ARG_TO_IND_R14(x) |
| #define | IS_MOV_ARG_TO_IND_R14_WITH_DISP(x) |
| #define | IS_MOVW_PCREL_TO_REG(x) (((x) & 0xf000) == 0x9000) |
| #define | IS_MOVL_PCREL_TO_REG(x) (((x) & 0xf000) == 0xd000) |
| #define | IS_MOVI20(x) (((x) & 0xf00f) == 0x0000) |
| #define | IS_SUB_REG_FROM_SP(x) (((x) & 0xff0f) == 0x3f08) |
| #define | FPSCR_SZ (1 << 20) |
| #define | IS_RESTORE_FP(x) ((x) == 0x6ef6) |
| #define | IS_RTS(x) ((x) == 0x000b) |
| #define | IS_LDS(x) ((x) == 0x4f26) |
| #define | IS_MACL_LDS(x) ((x) == 0x4f16) |
| #define | IS_MOV_FP_SP(x) ((x) == 0x6fe3) |
| #define | IS_ADD_REG_TO_FP(x) (((x) & 0xff0f) == 0x3e0c) |
| #define | IS_ADD_IMM_FP(x) (((x) & 0xff00) == 0x7e00) |
Functions | |
| static int | sh_is_renesas_calling_convention (struct type *func_type) |
| static const char * | sh_sh_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh3_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh3e_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh2e_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh2a_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh2a_nofpu_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh_dsp_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh3_dsp_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh4_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh4_nofpu_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static const char * | sh_sh4al_dsp_register_name (struct gdbarch *gdbarch, int reg_nr) |
| static int | sh_breakpoint_kind_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr) |
| static const gdb_byte * | sh_sw_breakpoint_from_kind (struct gdbarch *gdbarch, int kind, int *size) |
| static CORE_ADDR | sh_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR limit_pc, struct sh_frame_cache *cache, ULONGEST fpscr) |
| static CORE_ADDR | sh_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) |
| static int | sh_use_struct_convention (int renesas_abi, struct type *type) |
| static int | sh_use_struct_convention_nofpu (int renesas_abi, struct type *type) |
| static CORE_ADDR | sh_frame_align (struct gdbarch *ignore, CORE_ADDR sp) |
| static const gdb_byte * | sh_justify_value_in_reg (struct gdbarch *gdbarch, struct value *val, int len) |
| static CORE_ADDR | sh_stack_allocsize (int nargs, struct value **args) |
| static void | sh_init_flt_argreg (void) |
| static int | sh_next_flt_argreg (struct gdbarch *gdbarch, int len, struct type *func_type) |
| static int | sh_treat_as_flt_p (struct type *type) |
| static CORE_ADDR | sh_push_dummy_call_fpu (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 | sh_push_dummy_call_nofpu (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 void | sh_extract_return_value_nofpu (struct type *type, struct regcache *regcache, gdb_byte *valbuf) |
| static void | sh_extract_return_value_fpu (struct type *type, struct regcache *regcache, gdb_byte *valbuf) |
| static void | sh_store_return_value_nofpu (struct type *type, struct regcache *regcache, const gdb_byte *valbuf) |
| static void | sh_store_return_value_fpu (struct type *type, struct regcache *regcache, const gdb_byte *valbuf) |
| static enum return_value_convention | sh_return_value_nofpu (struct gdbarch *gdbarch, struct value *function, struct type *type, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf) |
| static enum return_value_convention | sh_return_value_fpu (struct gdbarch *gdbarch, struct value *function, struct type *type, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf) |
| static struct type * | sh_sh2a_register_type (struct gdbarch *gdbarch, int reg_nr) |
| static struct type * | sh_sh3e_register_type (struct gdbarch *gdbarch, int reg_nr) |
| static struct type * | sh_sh4_build_float_register_type (struct gdbarch *gdbarch, int high) |
| static struct type * | sh_sh4_register_type (struct gdbarch *gdbarch, int reg_nr) |
| static struct type * | sh_default_register_type (struct gdbarch *gdbarch, int reg_nr) |
| static int | sh_register_reggroup_p (struct gdbarch *gdbarch, int regnum, struct reggroup *reggroup) |
| static struct type * | sh_littlebyte_bigword_type (struct gdbarch *gdbarch) |
| static void | sh_register_convert_to_virtual (struct gdbarch *gdbarch, int regnum, struct type *type, gdb_byte *from, gdb_byte *to) |
| static void | sh_register_convert_to_raw (struct gdbarch *gdbarch, struct type *type, int regnum, const gdb_byte *from, gdb_byte *to) |
| static int | fv_reg_base_num (struct gdbarch *gdbarch, int fv_regnum) |
| static int | dr_reg_base_num (struct gdbarch *gdbarch, int dr_regnum) |
| static enum register_status | pseudo_register_read_portions (struct gdbarch *gdbarch, struct regcache *regcache, int portions, int base_regnum, gdb_byte *buffer) |
| static enum register_status | sh_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, int reg_nr, gdb_byte *buffer) |
| static void | sh_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, int reg_nr, const gdb_byte *buffer) |
| static int | sh_dsp_register_sim_regno (struct gdbarch *gdbarch, int nr) |
| static int | sh_sh2a_register_sim_regno (struct gdbarch *gdbarch, int nr) |
| static void | sh_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum, struct dwarf2_frame_state_reg *reg, struct frame_info *this_frame) |
| static struct sh_frame_cache * | sh_alloc_frame_cache (void) |
| static struct sh_frame_cache * | sh_frame_cache (struct frame_info *this_frame, void **this_cache) |
| static struct value * | sh_frame_prev_register (struct frame_info *this_frame, void **this_cache, int regnum) |
| static void | sh_frame_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id) |
| static CORE_ADDR | sh_unwind_sp (struct gdbarch *gdbarch, struct frame_info *next_frame) |
| static CORE_ADDR | sh_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame) |
| static struct frame_id | sh_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame) |
| static CORE_ADDR | sh_frame_base_address (struct frame_info *this_frame, void **this_cache) |
| static struct sh_frame_cache * | sh_make_stub_cache (struct frame_info *this_frame) |
| static void | sh_stub_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id) |
| static int | sh_stub_unwind_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache) |
| static int | sh_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR pc) |
| void | sh_corefile_supply_regset (const struct regset *regset, struct regcache *regcache, int regnum, const void *regs, size_t len) |
| void | sh_corefile_collect_regset (const struct regset *regset, const struct regcache *regcache, int regnum, void *regs, size_t len) |
| static void | sh_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache) |
| static int | sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch, struct type *type) |
| static struct gdbarch * | sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) |
| static void | show_sh_command (const char *args, int from_tty) |
| static void | set_sh_command (const char *args, int from_tty) |
| void | _initialize_sh_tdep (void) |
Variables | |
| static struct cmd_list_element * | setshcmdlist = NULL |
| static struct cmd_list_element * | showshcmdlist = NULL |
| static const char | sh_cc_gcc [] = "gcc" |
| static const char | sh_cc_renesas [] = "renesas" |
| static const char *const | sh_cc_enum [] |
| static const char * | sh_active_calling_convention = sh_cc_gcc |
| static int | flt_argreg_array [FLOAT_ARGLAST_REGNUM - FLOAT_ARG0_REGNUM+1] |
| static const struct frame_unwind | sh_frame_unwind |
| static const struct frame_base | sh_frame_base |
| static const struct frame_unwind | sh_stub_unwind |
| const struct regset | sh_corefile_gregset |
| static const struct regset | sh_corefile_fpregset |
| #define FPSCR_SZ (1 << 20) |
Definition at line 531 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define GET_SOURCE_REG | ( | x | ) | (((x) >> 4) & 0xf) |
Definition at line 465 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define GET_TARGET_REG | ( | x | ) | (((x) >> 8) & 0xf) |
Definition at line 466 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_ADD_IMM_FP | ( | x | ) | (((x) & 0xff00) == 0x7e00) |
Definition at line 540 of file sh-tdep.c.
Referenced by sh_stack_frame_destroyed_p().
| #define IS_ADD_IMM_SP | ( | x | ) | (((x) & 0xff00) == 0x7f00) |
Definition at line 489 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_ADD_R3SP | ( | x | ) | ((x) == 0x3f3c) |
Definition at line 496 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_ADD_REG_TO_FP | ( | x | ) | (((x) & 0xff0f) == 0x3e0c) |
Definition at line 539 of file sh-tdep.c.
Referenced by sh_stack_frame_destroyed_p().
| #define IS_FPUSH | ( | x | ) | (((x) & 0xff0f) == 0xff0b) |
Definition at line 504 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_JSR | ( | x | ) | (((x) & 0xf0ff) == 0x400b) |
Definition at line 469 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_LDS | ( | x | ) | ((x) == 0x4f26) |
Definition at line 536 of file sh-tdep.c.
Referenced by sh_stack_frame_destroyed_p().
| #define IS_MACL_LDS | ( | x | ) | ((x) == 0x4f16) |
Definition at line 537 of file sh-tdep.c.
Referenced by sh_stack_frame_destroyed_p().
| #define IS_MACL_STS | ( | x | ) | ((x) == 0x4f12) |
Definition at line 477 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_MOV_ARG_TO_IND_R14 | ( | x | ) |
Definition at line 512 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_MOV_ARG_TO_IND_R14_WITH_DISP | ( | x | ) |
Definition at line 517 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_MOV_ARG_TO_REG | ( | x | ) |
Definition at line 507 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_MOV_FP_SP | ( | x | ) | ((x) == 0x6fe3) |
Definition at line 538 of file sh-tdep.c.
Referenced by sh_stack_frame_destroyed_p().
| #define IS_MOV_R3 | ( | x | ) | (((x) & 0xff00) == 0x1a00) |
Definition at line 491 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_MOV_SP_FP | ( | x | ) | ((x) == 0x6ef3) |
Definition at line 485 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_MOVI20 | ( | x | ) | (((x) & 0xf00f) == 0x0000) |
Definition at line 527 of file sh-tdep.c.
Referenced by sh_analyze_prologue(), and sh_stack_frame_destroyed_p().
| #define IS_MOVL_PCREL_TO_REG | ( | x | ) | (((x) & 0xf000) == 0xd000) |
Definition at line 525 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_MOVW_PCREL_TO_REG | ( | x | ) | (((x) & 0xf000) == 0x9000) |
Definition at line 523 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_PUSH | ( | x | ) | (((x) & 0xff0f) == 0x2f06) |
Definition at line 481 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_RESTORE_FP | ( | x | ) | ((x) == 0x6ef6) |
Definition at line 534 of file sh-tdep.c.
Referenced by sh_stack_frame_destroyed_p().
| #define IS_RTS | ( | x | ) | ((x) == 0x000b) |
Definition at line 535 of file sh-tdep.c.
Referenced by sh_stack_frame_destroyed_p().
| #define IS_SHLL_R3 | ( | x | ) | ((x) == 0x4300) |
Definition at line 492 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_STS | ( | x | ) | ((x) == 0x4f22) |
Definition at line 473 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define IS_SUB_REG_FROM_SP | ( | x | ) | (((x) & 0xff0f) == 0x3f08) |
Definition at line 529 of file sh-tdep.c.
Referenced by sh_analyze_prologue().
| #define SH_NUM_REGS 67 |
Definition at line 70 of file sh-tdep.c.
Referenced by sh_alloc_frame_cache(), sh_frame_cache(), and sh_gdbarch_init().
| void _initialize_sh_tdep | ( | void | ) |
Definition at line 2453 of file sh-tdep.c.
References _, add_prefix_cmd(), add_setshow_enum_cmd(), class_vars, gdbarch_register(), no_class, set_sh_command(), setlist, setshcmdlist, sh_active_calling_convention, sh_cc_enum, sh_gdbarch_init(), show_sh_command(), showlist, and showshcmdlist.
|
static |
Definition at line 1617 of file sh-tdep.c.
References DR0_REGNUM, fp_regnum, and gdbarch_fp0_regnum().
Referenced by sh_pseudo_register_read(), and sh_pseudo_register_write().
|
static |
Definition at line 1606 of file sh-tdep.c.
References fp_regnum, FV0_REGNUM, and gdbarch_fp0_regnum().
Referenced by sh_pseudo_register_read(), and sh_pseudo_register_write().
|
static |
Definition at line 1630 of file sh-tdep.c.
References REG_VALID, regcache_raw_read(), register_size(), and status.
Referenced by sh_pseudo_register_read().
|
static |
Definition at line 2445 of file sh-tdep.c.
References all_commands, gdb_stdout, help_list(), printf_unfiltered(), and setshcmdlist.
Referenced by _initialize_sh_tdep().
|
static |
Definition at line 1839 of file sh-tdep.c.
References sh_frame_cache::base, FRAME_OBSTACK_ZALLOC, sh_frame_cache::pc, sh_frame_cache::saved_regs, sh_frame_cache::saved_sp, SH_NUM_REGS, sh_frame_cache::sp_offset, and sh_frame_cache::uses_fp.
Referenced by sh_frame_cache(), and sh_make_stub_cache().
|
static |
Definition at line 543 of file sh-tdep.c.
References FPSCR_SZ, gdbarch_byte_order(), GET_SOURCE_REG, GET_TARGET_REG, IS_ADD_IMM_SP, IS_ADD_R3SP, IS_FPUSH, IS_JSR, IS_MACL_STS, IS_MOV_ARG_TO_IND_R14, IS_MOV_ARG_TO_IND_R14_WITH_DISP, IS_MOV_ARG_TO_REG, IS_MOV_R3, IS_MOV_SP_FP, IS_MOVI20, IS_MOVL_PCREL_TO_REG, IS_MOVW_PCREL_TO_REG, IS_PUSH, IS_SHLL_R3, IS_STS, IS_SUB_REG_FROM_SP, MACL_REGNUM, offset, PR_REGNUM, read_memory_integer(), read_memory_unsigned_integer(), sh_frame_cache::saved_regs, sh_frame_cache::sp_offset, and sh_frame_cache::uses_fp.
Referenced by sh_frame_cache(), and sh_skip_prologue().
Definition at line 423 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
| void sh_corefile_collect_regset | ( | const struct regset * | regset, |
| const struct regcache * | regcache, | ||
| int | regnum, | ||
| void * | regs, | ||
| size_t | len | ||
| ) |
Definition at line 2190 of file sh-tdep.c.
References regcache::arch(), gdbarch_tdep::core_fpregmap, gdbarch_tdep::core_gregmap, gdbarch_tdep(), regcache_raw_collect(), regmap, regnum, and sh_corefile_gregset.
Referenced by shnbsd_store_inferior_registers().
| void sh_corefile_supply_regset | ( | const struct regset * | regset, |
| struct regcache * | regcache, | ||
| int | regnum, | ||
| const void * | regs, | ||
| size_t | len | ||
| ) |
Definition at line 2164 of file sh-tdep.c.
References regcache::arch(), gdbarch_tdep::core_fpregmap, gdbarch_tdep::core_gregmap, gdbarch_tdep(), regcache_raw_supply(), regmap, regnum, and sh_corefile_gregset.
Referenced by shnbsd_fetch_inferior_registers().
Definition at line 1482 of file sh-tdep.c.
References builtin_type::builtin_int, and builtin_type().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1740 of file sh-tdep.c.
References DSP_R0_BANK_REGNUM, DSP_R7_BANK_REGNUM, DSR_REGNUM, legacy_register_sim_regno(), MOD_REGNUM, RE_REGNUM, RS_REGNUM, and Y1_REGNUM.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1994 of file sh-tdep.c.
References frame_id_build(), gdbarch_sp_regnum(), get_frame_pc(), and get_frame_register_unsigned().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1794 of file sh-tdep.c.
References DR0_REGNUM, DWARF2_FRAME_REG_CFA, DWARF2_FRAME_REG_RA, DWARF2_FRAME_REG_SAME_VALUE, DWARF2_FRAME_REG_UNDEFINED, FPSCR_REGNUM, FPUL_REGNUM, FR0_REGNUM, FV0_REGNUM, GBR_REGNUM, gdbarch_pc_regnum(), gdbarch_sp_regnum(), MACH_REGNUM, MACL_REGNUM, R0_BANK0_REGNUM, R0_REGNUM, regnum, SPC_REGNUM, SR_REGNUM, SSR_REGNUM, and VBR_REGNUM.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1335 of file sh-tdep.c.
References regcache::arch(), gdbarch_byte_order(), gdbarch_fp0_regnum(), regcache_raw_read(), regnum, sh_extract_return_value_nofpu(), sh_treat_as_flt_p(), and TYPE_LENGTH.
Referenced by sh_return_value_fpu().
|
static |
Definition at line 1310 of file sh-tdep.c.
References _, regcache::arch(), gdbarch::byte_order, error(), gdbarch_byte_order(), R0_REGNUM, regcache_cooked_read_unsigned(), regcache_raw_read(), regnum, store_unsigned_integer(), and TYPE_LENGTH.
Referenced by sh_extract_return_value_fpu(), and sh_return_value_nofpu().
Definition at line 859 of file sh-tdep.c.
Referenced by sh_gdbarch_init(), sh_push_dummy_call_fpu(), and sh_push_dummy_call_nofpu().
|
static |
Definition at line 2002 of file sh-tdep.c.
References sh_frame_cache::base, and sh_frame_cache().
|
static |
Definition at line 1866 of file sh-tdep.c.
References all_reggroup, sh_frame_cache::base, FP_REGNUM, FPSCR_REGNUM, gdbarch_register_reggroup_p(), gdbarch_sp_regnum(), get_frame_arch(), get_frame_func(), get_frame_pc(), get_frame_register_unsigned(), sh_frame_cache::pc, sh_frame_cache::saved_regs, sh_frame_cache::saved_sp, sh_alloc_frame_cache(), sh_analyze_prologue(), SH_NUM_REGS, sh_frame_cache::sp_offset, and sh_frame_cache::uses_fp.
Referenced by sh_frame_base_address(), sh_frame_prev_register(), and sh_frame_this_id().
|
static |
Definition at line 1933 of file sh-tdep.c.
References frame_unwind_got_constant(), frame_unwind_got_memory(), frame_unwind_got_register(), gdb_assert, gdbarch_pc_regnum(), gdbarch_sp_regnum(), get_frame_arch(), PR_REGNUM, regnum, sh_frame_cache::saved_regs, sh_frame_cache::saved_sp, and sh_frame_cache().
|
static |
Definition at line 1958 of file sh-tdep.c.
References sh_frame_cache::base, frame_id_build(), sh_frame_cache::pc, sh_frame_cache::saved_sp, and sh_frame_cache().
|
static |
Definition at line 2255 of file sh-tdep.c.
References gdbarch_info::bfd_arch_info, core_addr_lessthan(), dwarf2_append_unwinders(), dwarf2_frame_set_init_reg(), floatformats_ieee_single, frame_base_set_default(), frame_unwind_append_unwinder(), gdbarch_list::gdbarch, gdbarch_alloc(), gdbarch_init_osabi(), gdbarch_list_lookup_by_info(), legacy_register_sim_regno(), set_gdbarch_believe_pcc_promotion(), set_gdbarch_breakpoint_kind_from_pc(), set_gdbarch_double_bit(), set_gdbarch_double_format(), set_gdbarch_dummy_id(), set_gdbarch_float_bit(), set_gdbarch_fp0_regnum(), set_gdbarch_frame_align(), set_gdbarch_inner_than(), set_gdbarch_int_bit(), set_gdbarch_iterate_over_regset_sections(), set_gdbarch_long_bit(), set_gdbarch_long_double_bit(), set_gdbarch_long_long_bit(), set_gdbarch_num_pseudo_regs(), set_gdbarch_num_regs(), set_gdbarch_pc_regnum(), set_gdbarch_pseudo_register_read(), set_gdbarch_pseudo_register_write(), set_gdbarch_ptr_bit(), set_gdbarch_push_dummy_call(), set_gdbarch_register_name(), set_gdbarch_register_reggroup_p(), set_gdbarch_register_sim_regno(), set_gdbarch_register_type(), set_gdbarch_return_in_first_hidden_param_p(), 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(), set_gdbarch_wchar_bit(), set_gdbarch_wchar_signed(), sh64_gdbarch_init, sh_breakpoint_kind_from_pc(), sh_default_register_type(), sh_dsp_register_sim_regno(), sh_dummy_id(), sh_dwarf2_frame_init_reg(), sh_frame_align(), sh_frame_base, sh_frame_unwind, sh_iterate_over_regset_sections(), SH_NUM_REGS, sh_pseudo_register_read(), sh_pseudo_register_write(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sh_register_reggroup_p(), sh_return_in_first_hidden_param_p(), sh_return_value_fpu(), sh_return_value_nofpu(), sh_sh2a_nofpu_register_name(), sh_sh2a_register_name(), sh_sh2a_register_sim_regno(), sh_sh2a_register_type(), sh_sh2e_register_name(), sh_sh3_dsp_register_name(), sh_sh3_register_name(), sh_sh3e_register_name(), sh_sh3e_register_type(), sh_sh4_nofpu_register_name(), sh_sh4_register_name(), sh_sh4_register_type(), sh_sh4al_dsp_register_name(), sh_sh_dsp_register_name(), sh_sh_register_name(), sh_skip_prologue(), sh_stack_frame_destroyed_p(), sh_stub_unwind, sh_sw_breakpoint_from_kind(), sh_unwind_pc(), sh_unwind_sp(), TARGET_CHAR_BIT, and XCNEW.
Referenced by _initialize_sh_tdep().
|
static |
Definition at line 954 of file sh-tdep.c.
References flt_argreg_array, and memset().
Referenced by sh_push_dummy_call_fpu().
|
static |
Definition at line 88 of file sh-tdep.c.
References check_typedef(), sh_active_calling_convention, sh_cc_renesas, TYPE_CALLING_CONVENTION, TYPE_CODE, TYPE_CODE_FUNC, TYPE_CODE_PTR, and TYPE_TARGET_TYPE.
Referenced by sh_next_flt_argreg(), sh_push_dummy_call_fpu(), sh_push_dummy_call_nofpu(), sh_return_value_fpu(), and sh_return_value_nofpu().
|
static |
Definition at line 2228 of file sh-tdep.c.
References gdbarch_tdep::core_fpregmap, gdbarch_tdep::core_gregmap, gdbarch_tdep(), sh_corefile_fpregset, sh_corefile_gregset, gdbarch_tdep::sizeof_fpregset, and gdbarch_tdep::sizeof_gregset.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 918 of file sh-tdep.c.
References gdbarch_byte_order(), memset(), and value_contents().
Referenced by sh_push_dummy_call_fpu(), and sh_push_dummy_call_nofpu().
Definition at line 1555 of file sh-tdep.c.
References arch_float_type(), floatformats_ieee_double_littlebyte_bigword, gdbarch_tdep(), and gdbarch_tdep::sh_littlebyte_bigword_type.
Referenced by sh_register_convert_to_raw(), and sh_register_convert_to_virtual().
|
static |
Definition at line 2017 of file sh-tdep.c.
References gdbarch_sp_regnum(), get_frame_arch(), get_frame_register_unsigned(), sh_frame_cache::saved_sp, and sh_alloc_frame_cache().
Referenced by sh_stub_this_id().
Definition at line 969 of file sh-tdep.c.
References FLOAT_ARG0_REGNUM, FLOAT_ARGLAST_REGNUM, flt_argreg_array, gdbarch_byte_order(), and sh_is_renesas_calling_convention().
Referenced by sh_push_dummy_call_fpu().
|
static |
Definition at line 1652 of file sh-tdep.c.
References BANK_REGNUM, DR0_REGNUM, DR_LAST_REGNUM, dr_reg_base_num(), FV0_REGNUM, FV_LAST_REGNUM, fv_reg_base_num(), gdb_assert_not_reached, PSEUDO_BANK_REGNUM, pseudo_register_read_portions(), REG_VALID, regcache_raw_read(), register_type(), sh_register_convert_to_virtual(), and status.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1692 of file sh-tdep.c.
References BANK_REGNUM, DR0_REGNUM, DR_LAST_REGNUM, dr_reg_base_num(), FV0_REGNUM, FV_LAST_REGNUM, fv_reg_base_num(), MACLB_REGNUM, PSEUDO_BANK_REGNUM, R0_BANK0_REGNUM, regcache_invalidate(), regcache_raw_write(), register_size(), register_type(), and sh_register_convert_to_raw().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1061 of file sh-tdep.c.
References ARG0_REGNUM, ARGLAST_REGNUM, extract_unsigned_integer(), FLOAT_ARGLAST_REGNUM, gdbarch_byte_order(), gdbarch_sp_regnum(), INT_MAX, pass_on_stack(), PR_REGNUM, regcache_cooked_write_unsigned(), register_size(), sh_frame_align(), sh_init_flt_argreg(), sh_is_renesas_calling_convention(), sh_justify_value_in_reg(), sh_next_flt_argreg(), sh_stack_allocsize(), sh_treat_as_flt_p(), STRUCT_RETURN_REGNUM, type, TYPE_CODE, TYPE_CODE_INT, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_LENGTH, TYPE_NFIELDS, TYPE_VARARGS, value_type(), write_memory(), and write_memory_unsigned_integer().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1203 of file sh-tdep.c.
References ARG0_REGNUM, ARGLAST_REGNUM, extract_unsigned_integer(), gdbarch_byte_order(), gdbarch_sp_regnum(), INT_MAX, pass_on_stack(), PR_REGNUM, regcache_cooked_write_unsigned(), register_size(), sh_frame_align(), sh_is_renesas_calling_convention(), sh_justify_value_in_reg(), sh_stack_allocsize(), STRUCT_RETURN_REGNUM, type, TYPE_CODE, TYPE_CODE_FLT, TYPE_CODE_INT, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_LENGTH, TYPE_NFIELDS, TYPE_VARARGS, value_type(), write_memory(), and write_memory_unsigned_integer().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1587 of file sh-tdep.c.
References _, DR0_REGNUM, DR_LAST_REGNUM, error(), gdbarch_byte_order(), register_size(), regnum, sh_littlebyte_bigword_type(), and target_float_convert().
Referenced by sh_pseudo_register_write().
|
static |
Definition at line 1568 of file sh-tdep.c.
References DR0_REGNUM, DR_LAST_REGNUM, error(), gdbarch_byte_order(), register_size(), regnum, sh_littlebyte_bigword_type(), and target_float_convert().
Referenced by sh_pseudo_register_read().
|
static |
Definition at line 1492 of file sh-tdep.c.
References default_register_reggroup_p(), float_reggroup, FPSCR_REGNUM, FPUL_REGNUM, FV0_REGNUM, FV_LAST_REGNUM, gdbarch_register_name(), general_reggroup, regnum, SPC_REGNUM, SR_REGNUM, SSR_REGNUM, system_reggroup, VBR_REGNUM, and vector_reggroup.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 2246 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1420 of file sh-tdep.c.
References RETURN_VALUE_REGISTER_CONVENTION, RETURN_VALUE_STRUCT_CONVENTION, sh_extract_return_value_fpu(), sh_is_renesas_calling_convention(), sh_store_return_value_fpu(), sh_use_struct_convention(), and value_type().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1403 of file sh-tdep.c.
References RETURN_VALUE_REGISTER_CONVENTION, RETURN_VALUE_STRUCT_CONVENTION, sh_extract_return_value_nofpu(), sh_is_renesas_calling_convention(), sh_store_return_value_nofpu(), sh_use_struct_convention_nofpu(), and value_type().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 239 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 199 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1758 of file sh-tdep.c.
References BANK_REGNUM, GBRB_REGNUM, IBCR_REGNUM, IBNR_REGNUM, IVNB_REGNUM, legacy_register_sim_regno(), MACHB_REGNUM, MACLB_REGNUM, PRB_REGNUM, and TBR_REGNUM.
Referenced by sh_gdbarch_init().
Definition at line 1437 of file sh-tdep.c.
References builtin_type::builtin_double, builtin_type::builtin_float, builtin_type::builtin_int, builtin_type(), DR0_REGNUM, DR_LAST_REGNUM, FP_LAST_REGNUM, FPUL_REGNUM, and gdbarch_fp0_regnum().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 177 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 301 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 133 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 155 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
Definition at line 1451 of file sh-tdep.c.
References builtin_type::builtin_float, builtin_type::builtin_int, builtin_type(), FP_LAST_REGNUM, FPUL_REGNUM, and gdbarch_fp0_regnum().
Referenced by sh_gdbarch_init().
Definition at line 1461 of file sh-tdep.c.
References lookup_array_range_type().
Referenced by sh_sh4_register_type().
|
static |
Definition at line 362 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 324 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
Definition at line 1468 of file sh-tdep.c.
References builtin_type::builtin_double, builtin_type::builtin_float, builtin_type::builtin_int, builtin_type(), DR0_REGNUM, DR_LAST_REGNUM, FP_LAST_REGNUM, FPUL_REGNUM, FV0_REGNUM, FV_LAST_REGNUM, gdbarch_fp0_regnum(), and sh_sh4_build_float_register_type().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 398 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 279 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 111 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
Definition at line 727 of file sh-tdep.c.
References find_pc_partial_function(), sh_frame_cache::pc, sh_analyze_prologue(), skip_prologue_using_sal(), sh_frame_cache::sp_offset, and sh_frame_cache::uses_fp.
Referenced by sh_gdbarch_init().
Definition at line 937 of file sh-tdep.c.
References TYPE_LENGTH, and value_type().
Referenced by sh_push_dummy_call_fpu(), and sh_push_dummy_call_nofpu().
Definition at line 2074 of file sh-tdep.c.
References find_pc_partial_function(), gdbarch_bfd_arch_info(), gdbarch_byte_order(), IS_ADD_IMM_FP, IS_ADD_REG_TO_FP, IS_LDS, IS_MACL_LDS, IS_MOV_FP_SP, IS_MOVI20, IS_RESTORE_FP, IS_RTS, and read_memory_unsigned_integer().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1383 of file sh-tdep.c.
References regcache::arch(), gdbarch_byte_order(), gdbarch_fp0_regnum(), regcache_raw_write(), regnum, sh_store_return_value_nofpu(), sh_treat_as_flt_p(), and TYPE_LENGTH.
Referenced by sh_return_value_fpu().
|
static |
Definition at line 1361 of file sh-tdep.c.
References regcache::arch(), gdbarch::byte_order, extract_unsigned_integer(), gdbarch_byte_order(), R0_REGNUM, regcache_cooked_write_unsigned(), regcache_raw_write(), regnum, and TYPE_LENGTH.
Referenced by sh_return_value_nofpu(), and sh_store_return_value_fpu().
|
static |
Definition at line 2031 of file sh-tdep.c.
References frame_id_build(), get_frame_pc(), sh_frame_cache::saved_sp, and sh_make_stub_cache().
|
static |
Definition at line 2044 of file sh-tdep.c.
References get_frame_address_in_block(), and in_plt_section().
|
static |
Definition at line 431 of file sh-tdep.c.
References gdbarch_byte_order(), size, and target_shortname.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1041 of file sh-tdep.c.
References TYPE_CODE, TYPE_CODE_FLT, TYPE_CODE_STRUCT, TYPE_FIELD_TYPE, and TYPE_NFIELDS.
Referenced by sh_extract_return_value_fpu(), sh_push_dummy_call_fpu(), and sh_store_return_value_fpu().
|
static |
Definition at line 1987 of file sh-tdep.c.
References frame_unwind_register_unsigned(), and gdbarch_pc_regnum().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1980 of file sh-tdep.c.
References frame_unwind_register_unsigned(), and gdbarch_sp_regnum().
Referenced by sh_gdbarch_init().
|
static |
Definition at line 814 of file sh-tdep.c.
References TYPE_CODE, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_FIELD_TYPE, TYPE_LENGTH, and TYPE_NFIELDS.
Referenced by sh_return_value_fpu(), and sh_use_struct_convention_nofpu().
|
static |
Definition at line 850 of file sh-tdep.c.
References sh_use_struct_convention(), TYPE_LENGTH, and TYPE_NFIELDS.
Referenced by sh_return_value_nofpu().
|
static |
Definition at line 2439 of file sh-tdep.c.
References all_commands, gdb_stdout, help_list(), and showshcmdlist.
Referenced by _initialize_sh_tdep().
|
static |
Definition at line 950 of file sh-tdep.c.
Referenced by sh_init_flt_argreg(), and sh_next_flt_argreg().
|
static |
Definition at line 57 of file sh-tdep.c.
Referenced by _initialize_sh_tdep(), and set_sh_command().
|
static |
Definition at line 68 of file sh-tdep.c.
Referenced by _initialize_sh_tdep(), and sh_is_renesas_calling_convention().
|
static |
Definition at line 62 of file sh-tdep.c.
Referenced by _initialize_sh_tdep().
|
static |
Definition at line 61 of file sh-tdep.c.
Referenced by sh_is_renesas_calling_convention().
|
static |
Definition at line 2220 of file sh-tdep.c.
Referenced by sh_iterate_over_regset_sections().
| const struct regset sh_corefile_gregset |
Definition at line 2213 of file sh-tdep.c.
Referenced by sh_corefile_collect_regset(), sh_corefile_supply_regset(), sh_iterate_over_regset_sections(), shnbsd_fetch_inferior_registers(), and shnbsd_store_inferior_registers().
|
static |
Definition at line 2009 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 1970 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 2057 of file sh-tdep.c.
Referenced by sh_gdbarch_init().
|
static |
Definition at line 58 of file sh-tdep.c.
Referenced by _initialize_sh_tdep(), and show_sh_command().
1.8.14