2002-02-27 Daniel Jacobowitz <drow@mvista.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-ia64-low.c
CommitLineData
0a30fbc4
DJ
1/* GNU/Linux/IA64 specific low level interface, for the remote server for GDB.
2 Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002
3 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22#include "server.h"
23
24#ifdef HAVE_SYS_REG_H
25#include <sys/reg.h>
26#endif
27
28int num_regs = 590;
29
30#include <asm/ptrace_offsets.h>
31
32int regmap[] =
33 {
34 /* general registers */
35 -1, /* gr0 not available; i.e, it's always zero */
36 PT_R1,
37 PT_R2,
38 PT_R3,
39 PT_R4,
40 PT_R5,
41 PT_R6,
42 PT_R7,
43 PT_R8,
44 PT_R9,
45 PT_R10,
46 PT_R11,
47 PT_R12,
48 PT_R13,
49 PT_R14,
50 PT_R15,
51 PT_R16,
52 PT_R17,
53 PT_R18,
54 PT_R19,
55 PT_R20,
56 PT_R21,
57 PT_R22,
58 PT_R23,
59 PT_R24,
60 PT_R25,
61 PT_R26,
62 PT_R27,
63 PT_R28,
64 PT_R29,
65 PT_R30,
66 PT_R31,
67 /* gr32 through gr127 not directly available via the ptrace interface */
68 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
69 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
70 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
71 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
72 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
73 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
74 /* Floating point registers */
75 -1, -1, /* f0 and f1 not available (f0 is +0.0 and f1 is +1.0) */
76 PT_F2,
77 PT_F3,
78 PT_F4,
79 PT_F5,
80 PT_F6,
81 PT_F7,
82 PT_F8,
83 PT_F9,
84 PT_F10,
85 PT_F11,
86 PT_F12,
87 PT_F13,
88 PT_F14,
89 PT_F15,
90 PT_F16,
91 PT_F17,
92 PT_F18,
93 PT_F19,
94 PT_F20,
95 PT_F21,
96 PT_F22,
97 PT_F23,
98 PT_F24,
99 PT_F25,
100 PT_F26,
101 PT_F27,
102 PT_F28,
103 PT_F29,
104 PT_F30,
105 PT_F31,
106 PT_F32,
107 PT_F33,
108 PT_F34,
109 PT_F35,
110 PT_F36,
111 PT_F37,
112 PT_F38,
113 PT_F39,
114 PT_F40,
115 PT_F41,
116 PT_F42,
117 PT_F43,
118 PT_F44,
119 PT_F45,
120 PT_F46,
121 PT_F47,
122 PT_F48,
123 PT_F49,
124 PT_F50,
125 PT_F51,
126 PT_F52,
127 PT_F53,
128 PT_F54,
129 PT_F55,
130 PT_F56,
131 PT_F57,
132 PT_F58,
133 PT_F59,
134 PT_F60,
135 PT_F61,
136 PT_F62,
137 PT_F63,
138 PT_F64,
139 PT_F65,
140 PT_F66,
141 PT_F67,
142 PT_F68,
143 PT_F69,
144 PT_F70,
145 PT_F71,
146 PT_F72,
147 PT_F73,
148 PT_F74,
149 PT_F75,
150 PT_F76,
151 PT_F77,
152 PT_F78,
153 PT_F79,
154 PT_F80,
155 PT_F81,
156 PT_F82,
157 PT_F83,
158 PT_F84,
159 PT_F85,
160 PT_F86,
161 PT_F87,
162 PT_F88,
163 PT_F89,
164 PT_F90,
165 PT_F91,
166 PT_F92,
167 PT_F93,
168 PT_F94,
169 PT_F95,
170 PT_F96,
171 PT_F97,
172 PT_F98,
173 PT_F99,
174 PT_F100,
175 PT_F101,
176 PT_F102,
177 PT_F103,
178 PT_F104,
179 PT_F105,
180 PT_F106,
181 PT_F107,
182 PT_F108,
183 PT_F109,
184 PT_F110,
185 PT_F111,
186 PT_F112,
187 PT_F113,
188 PT_F114,
189 PT_F115,
190 PT_F116,
191 PT_F117,
192 PT_F118,
193 PT_F119,
194 PT_F120,
195 PT_F121,
196 PT_F122,
197 PT_F123,
198 PT_F124,
199 PT_F125,
200 PT_F126,
201 PT_F127,
202 /* predicate registers - we don't fetch these individually */
203 -1, -1, -1, -1, -1, -1, -1, -1,
204 -1, -1, -1, -1, -1, -1, -1, -1,
205 -1, -1, -1, -1, -1, -1, -1, -1,
206 -1, -1, -1, -1, -1, -1, -1, -1,
207 -1, -1, -1, -1, -1, -1, -1, -1,
208 -1, -1, -1, -1, -1, -1, -1, -1,
209 -1, -1, -1, -1, -1, -1, -1, -1,
210 -1, -1, -1, -1, -1, -1, -1, -1,
211 /* branch registers */
212 PT_B0,
213 PT_B1,
214 PT_B2,
215 PT_B3,
216 PT_B4,
217 PT_B5,
218 PT_B6,
219 PT_B7,
220 /* virtual frame pointer and virtual return address pointer */
221 -1, -1,
222 /* other registers */
223 PT_PR,
224 PT_CR_IIP, /* ip */
225 PT_CR_IPSR, /* psr */
226 PT_CFM, /* cfm */
227 /* kernel registers not visible via ptrace interface (?) */
228 -1, -1, -1, -1, -1, -1, -1, -1,
229 /* hole */
230 -1, -1, -1, -1, -1, -1, -1, -1,
231 PT_AR_RSC,
232 PT_AR_BSP,
233 PT_AR_BSPSTORE,
234 PT_AR_RNAT,
235 -1,
236 -1, /* Not available: FCR, IA32 floating control register */
237 -1, -1,
238 -1, /* Not available: EFLAG */
239 -1, /* Not available: CSD */
240 -1, /* Not available: SSD */
241 -1, /* Not available: CFLG */
242 -1, /* Not available: FSR */
243 -1, /* Not available: FIR */
244 -1, /* Not available: FDR */
245 -1,
246 PT_AR_CCV,
247 -1, -1, -1,
248 PT_AR_UNAT,
249 -1, -1, -1,
250 PT_AR_FPSR,
251 -1, -1, -1,
252 -1, /* Not available: ITC */
253 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
254 -1, -1, -1, -1, -1, -1, -1, -1, -1,
255 PT_AR_PFS,
256 PT_AR_LC,
257 -1, /* Not available: EC, the Epilog Count register */
258 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
259 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
260 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
261 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
262 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
263 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
264 -1,
265 /* nat bits - not fetched directly; instead we obtain these bits from
266 either rnat or unat or from memory. */
267 -1, -1, -1, -1, -1, -1, -1, -1,
268 -1, -1, -1, -1, -1, -1, -1, -1,
269 -1, -1, -1, -1, -1, -1, -1, -1,
270 -1, -1, -1, -1, -1, -1, -1, -1,
271 -1, -1, -1, -1, -1, -1, -1, -1,
272 -1, -1, -1, -1, -1, -1, -1, -1,
273 -1, -1, -1, -1, -1, -1, -1, -1,
274 -1, -1, -1, -1, -1, -1, -1, -1,
275 -1, -1, -1, -1, -1, -1, -1, -1,
276 -1, -1, -1, -1, -1, -1, -1, -1,
277 -1, -1, -1, -1, -1, -1, -1, -1,
278 -1, -1, -1, -1, -1, -1, -1, -1,
279 -1, -1, -1, -1, -1, -1, -1, -1,
280 -1, -1, -1, -1, -1, -1, -1, -1,
281 -1, -1, -1, -1, -1, -1, -1, -1,
282 -1, -1, -1, -1, -1, -1, -1, -1,
283 };
284
285int
286cannot_store_register (int regno)
287{
288 return 0;
289}
290
291int
292cannot_fetch_register (int regno)
293{
294 return 0;
295}
296
This page took 0.040828 seconds and 4 git commands to generate.