1 /* GNU/Linux/IA64 specific low level interface, for the remote server for GDB.
2 Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2002
3 Free Software Foundation, Inc.
5 This file is part of GDB.
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.
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.
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., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
23 #include "linux-low.h"
29 #define ia64_num_regs 462
31 #include <asm/ptrace_offsets.h>
33 static int ia64_regmap
[] =
35 /* general registers */
36 -1, /* gr0 not available; i.e, it's always zero */
68 /* gr32 through gr127 not directly available via the ptrace interface */
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 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
75 /* Floating point registers */
76 -1, -1, /* f0 and f1 not available (f0 is +0.0 and f1 is +1.0) */
203 /* predicate registers - we don't fetch these individually */
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 -1, -1, -1, -1, -1, -1, -1, -1,
212 /* branch registers */
221 /* virtual frame pointer and virtual return address pointer */
223 /* other registers */
226 PT_CR_IPSR
, /* psr */
228 /* kernel registers not visible via ptrace interface (?) */
229 -1, -1, -1, -1, -1, -1, -1, -1,
231 -1, -1, -1, -1, -1, -1, -1, -1,
237 -1, /* Not available: FCR, IA32 floating control register */
239 -1, /* Not available: EFLAG */
240 -1, /* Not available: CSD */
241 -1, /* Not available: SSD */
242 -1, /* Not available: CFLG */
243 -1, /* Not available: FSR */
244 -1, /* Not available: FIR */
245 -1, /* Not available: FDR */
253 -1, /* Not available: ITC */
254 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
255 -1, -1, -1, -1, -1, -1, -1, -1, -1,
258 -1, /* Not available: EC, the Epilog Count register */
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, -1, -1, -1, -1, -1, -1, -1, -1, -1,
269 ia64_cannot_store_register (int regno
)
275 ia64_cannot_fetch_register (int regno
)
280 struct linux_target_ops the_low_target
= {
283 ia64_cannot_fetch_register
,
284 ia64_cannot_store_register
,