]>
Commit | Line | Data |
---|---|---|
1 | /* GNU/Linux/SH 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 | ||
28 | #include <asm/ptrace.h> | |
29 | ||
30 | int num_regs = 41; | |
31 | ||
32 | /* Currently, don't check/send MQ. */ | |
33 | int regmap[] = { | |
34 | 0, 4, 8, 12, 16, 20, 24, 28, | |
35 | 32, 36, 40, 44, 48, 52, 56, 60, | |
36 | ||
37 | REG_PC*4, REG_PR*4, REG_GBR*4, -1, | |
38 | REG_MACH*4, REG_MACL*4, REG_SR*4, | |
39 | REG_FPUL*4, REG_FPSCR*4, | |
40 | ||
41 | REG_FPREG0+0, REG_FPREG0+4, REG_FPREG0+8, REG_FPREG0+12, | |
42 | REG_FPREG0+16, REG_FPREG0+20, REG_FPREG0+24, REG_FPREG0+28, | |
43 | REG_FPREG0+32, REG_FPREG0+36, REG_FPREG0+40, REG_FPREG0+44, | |
44 | REG_FPREG0+48, REG_FPREG0+52, REG_FPREG0+56, REG_FPREG0+60, | |
45 | }; | |
46 | ||
47 | int | |
48 | cannot_store_register (int regno) | |
49 | { | |
50 | return 0; | |
51 | } | |
52 | ||
53 | int | |
54 | cannot_fetch_register (int regno) | |
55 | { | |
56 | return 0; | |
57 | } | |
58 |