OLD | NEW |
1 /* Target-specific definition for a Renesas Super-H. | 1 /* Target-specific definition for a Renesas Super-H. |
2 Copyright (C) 1993-2003, 2007-2012 Free Software Foundation, Inc. | 2 Copyright (C) 1993-2003, 2007-2012 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GDB. | 4 This file is part of GDB. |
5 | 5 |
6 This program is free software; you can redistribute it and/or modify | 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 | 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 | 8 the Free Software Foundation; either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 IBNR_REGNUM = 65, | 75 IBNR_REGNUM = 65, |
76 TBR_REGNUM = 66, | 76 TBR_REGNUM = 66, |
77 PSEUDO_BANK_REGNUM = 67, | 77 PSEUDO_BANK_REGNUM = 67, |
78 /* Floating point pseudo registers */ | 78 /* Floating point pseudo registers */ |
79 DR0_REGNUM = 68, | 79 DR0_REGNUM = 68, |
80 DR_LAST_REGNUM = 75, | 80 DR_LAST_REGNUM = 75, |
81 FV0_REGNUM = 76, | 81 FV0_REGNUM = 76, |
82 FV_LAST_REGNUM = 79 | 82 FV_LAST_REGNUM = 79 |
83 }; | 83 }; |
84 | 84 |
85 extern gdbarch_init_ftype sh64_gdbarch_init; | |
86 extern void sh64_show_regs (struct frame_info *); | |
87 | |
88 /* This structure describes a register in a core-file. */ | 85 /* This structure describes a register in a core-file. */ |
89 struct sh_corefile_regmap | 86 struct sh_corefile_regmap |
90 { | 87 { |
91 int regnum; | 88 int regnum; |
92 unsigned int offset; | 89 unsigned int offset; |
93 }; | 90 }; |
94 | 91 |
95 struct gdbarch_tdep | 92 struct gdbarch_tdep |
96 { | 93 { |
97 /* Non-NULL when debugging from a core file. Provides the offset | 94 /* Non-NULL when debugging from a core file. Provides the offset |
98 where each general-purpose register is stored inside the associated | 95 where each general-purpose register is stored inside the associated |
99 core file section. */ | 96 core file section. */ |
100 struct sh_corefile_regmap *core_gregmap; | 97 struct sh_corefile_regmap *core_gregmap; |
101 /* Non-NULL when debugging from a core file and when FP registers are | 98 /* Non-NULL when debugging from a core file and when FP registers are |
102 available. Provides the offset where each FP register is stored | 99 available. Provides the offset where each FP register is stored |
103 inside the associated core file section. */ | 100 inside the associated core file section. */ |
104 struct sh_corefile_regmap *core_fpregmap; | 101 struct sh_corefile_regmap *core_fpregmap; |
105 }; | 102 }; |
106 | 103 |
107 extern struct regset sh_corefile_gregset; | 104 extern struct regset sh_corefile_gregset; |
108 | 105 |
109 void sh_corefile_supply_regset (const struct regset *regset, | 106 void sh_corefile_supply_regset (const struct regset *regset, |
110 struct regcache *regcache, | 107 struct regcache *regcache, |
111 int regnum, const void *regs, size_t len); | 108 int regnum, const void *regs, size_t len); |
112 void sh_corefile_collect_regset (const struct regset *regset, | 109 void sh_corefile_collect_regset (const struct regset *regset, |
113 const struct regcache *regcache, | 110 const struct regcache *regcache, |
114 int regnum, void *regs, size_t len); | 111 int regnum, void *regs, size_t len); |
115 #endif /* SH_TDEP_H */ | 112 #endif /* SH_TDEP_H */ |
OLD | NEW |