GDB (xrefs)
Loading...
Searching...
No Matches
sh-tdep.h
Go to the documentation of this file.
1/* Target-specific definition for a Renesas Super-H.
2 Copyright (C) 1993-2023 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18
19#ifndef SH_TDEP_H
20#define SH_TDEP_H
21
22#include "gdbarch.h"
23
24/* Contributed by Steve Chamberlain sac@cygnus.com. */
25
26/* Registers for all SH variants. Used also by sh3-rom.c. */
27enum
28 {
42 /* Floating point registers */
48 /* sh3,sh4 registers */
51 /* DSP registers */
68 /* sh2a register */
80 /* Floating point pseudo registers */
85 };
86
87/* This structure describes a register in a core-file. */
89{
90 int regnum;
91 unsigned int offset;
92};
93
95{
96 /* Non-NULL when debugging from a core file. Provides the offset
97 where each general-purpose register is stored inside the associated
98 core file section. */
101 /* Non-NULL when debugging from a core file and when FP registers are
102 available. Provides the offset where each FP register is stored
103 inside the associated core file section. */
106 /* ISA-specific data types. */
108};
109
110extern const struct regset sh_corefile_gregset;
111
112void sh_corefile_supply_regset (const struct regset *regset,
113 struct regcache *regcache,
114 int regnum, const void *regs, size_t len);
115void sh_corefile_collect_regset (const struct regset *regset,
116 const struct regcache *regcache,
117 int regnum, void *regs, size_t len);
118#endif /* SH_TDEP_H */
int regnum
void sh_corefile_supply_regset(const struct regset *regset, struct regcache *regcache, int regnum, const void *regs, size_t len)
Definition sh-tdep.c:2106
void sh_corefile_collect_regset(const struct regset *regset, const struct regcache *regcache, int regnum, void *regs, size_t len)
Definition sh-tdep.c:2132
@ A0_REGNUM
Definition sh-tdep.h:54
@ ARG0_REGNUM
Definition sh-tdep.h:31
@ GBRB_REGNUM
Definition sh-tdep.h:73
@ X0_REGNUM
Definition sh-tdep.h:59
@ FP_LAST_REGNUM
Definition sh-tdep.h:47
@ R0_REGNUM
Definition sh-tdep.h:29
@ A0G_REGNUM
Definition sh-tdep.h:53
@ FR0_REGNUM
Definition sh-tdep.h:44
@ Y0_REGNUM
Definition sh-tdep.h:61
@ X1_REGNUM
Definition sh-tdep.h:60
@ IVNB_REGNUM
Definition sh-tdep.h:71
@ MACL_REGNUM
Definition sh-tdep.h:39
@ TBR_REGNUM
Definition sh-tdep.h:78
@ FLOAT_ARG0_REGNUM
Definition sh-tdep.h:45
@ FLOAT_ARGLAST_REGNUM
Definition sh-tdep.h:46
@ M0_REGNUM
Definition sh-tdep.h:57
@ FV_LAST_REGNUM
Definition sh-tdep.h:84
@ SR_REGNUM
Definition sh-tdep.h:40
@ MOD_REGNUM
Definition sh-tdep.h:63
@ DR0_REGNUM
Definition sh-tdep.h:81
@ RE_REGNUM
Definition sh-tdep.h:65
@ IBCR_REGNUM
Definition sh-tdep.h:76
@ A1G_REGNUM
Definition sh-tdep.h:55
@ DSR_REGNUM
Definition sh-tdep.h:52
@ R0_BANK0_REGNUM
Definition sh-tdep.h:69
@ IBNR_REGNUM
Definition sh-tdep.h:77
@ DSP_R7_BANK_REGNUM
Definition sh-tdep.h:67
@ RS_REGNUM
Definition sh-tdep.h:64
@ PRB_REGNUM
Definition sh-tdep.h:72
@ SPC_REGNUM
Definition sh-tdep.h:50
@ PR_REGNUM
Definition sh-tdep.h:35
@ DSP_R0_BANK_REGNUM
Definition sh-tdep.h:66
@ MACLB_REGNUM
Definition sh-tdep.h:74
@ Y1_REGNUM
Definition sh-tdep.h:62
@ STRUCT_RETURN_REGNUM
Definition sh-tdep.h:30
@ FV0_REGNUM
Definition sh-tdep.h:83
@ MACHB_REGNUM
Definition sh-tdep.h:70
@ FP_REGNUM
Definition sh-tdep.h:33
@ PSEUDO_BANK_REGNUM
Definition sh-tdep.h:79
@ A1_REGNUM
Definition sh-tdep.h:56
@ VBR_REGNUM
Definition sh-tdep.h:37
@ DR_LAST_REGNUM
Definition sh-tdep.h:82
@ FPSCR_REGNUM
Definition sh-tdep.h:43
@ ARGLAST_REGNUM
Definition sh-tdep.h:32
@ GBR_REGNUM
Definition sh-tdep.h:36
@ MACH_REGNUM
Definition sh-tdep.h:38
@ PC_REGNUM
Definition sh-tdep.h:34
@ BANK_REGNUM
Definition sh-tdep.h:75
@ SSR_REGNUM
Definition sh-tdep.h:49
@ FPUL_REGNUM
Definition sh-tdep.h:41
@ M1_REGNUM
Definition sh-tdep.h:58
const struct regset sh_corefile_gregset
Definition sh-tdep.c:2155
unsigned int offset
Definition sh-tdep.h:91
int sizeof_fpregset
Definition sh-tdep.h:105
struct sh_corefile_regmap * core_fpregmap
Definition sh-tdep.h:104
struct sh_corefile_regmap * core_gregmap
Definition sh-tdep.h:99
struct type * sh_littlebyte_bigword_type
Definition sh-tdep.h:107