]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - gnu/usr.bin/gdb/gdbserver/reg-arm.c
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / gnu / usr.bin / gdb / gdbserver / reg-arm.c
1 /* *INDENT-OFF* */ /* THIS FILE IS GENERATED */
2
3 /* A register protocol for GDB, the GNU debugger.
4    Copyright 2001, 2002 Free Software Foundation, Inc.
5
6    This file is part of GDB.
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 59 Temple Place - Suite 330,
21    Boston, MA 02111-1307, USA.  */
22
23 /* This file was created with the aid of ``regdat.sh'' and ``reg-arm.dat''.  */
24
25 #include <sys/cdefs.h>
26 __FBSDID("$FreeBSD$");
27
28 #include "regdef.h"
29 #include "regcache.h"
30
31 struct reg regs_arm[] = {
32   { "r0", 0, 32 },
33   { "r1", 32, 32 },
34   { "r2", 64, 32 },
35   { "r3", 96, 32 },
36   { "r4", 128, 32 },
37   { "r5", 160, 32 },
38   { "r6", 192, 32 },
39   { "r7", 224, 32 },
40   { "r8", 256, 32 },
41   { "r9", 288, 32 },
42   { "r10", 320, 32 },
43   { "r11", 352, 32 },
44   { "r12", 384, 32 },
45   { "sp", 416, 32 },
46   { "lr", 448, 32 },
47   { "pc", 480, 32 },
48   { "f0", 512, 96 },
49   { "f1", 608, 96 },
50   { "f2", 704, 96 },
51   { "f3", 800, 96 },
52   { "f4", 896, 96 },
53   { "f5", 992, 96 },
54   { "f6", 1088, 96 },
55   { "f7", 1184, 96 },
56   { "fps", 1280, 32 },
57   { "cpsr", 1312, 32 },
58 };
59
60 const char *expedite_regs_arm[] = { "r11", "sp", "pc", 0 };
61
62 void
63 init_registers ()
64 {
65     set_register_cache (regs_arm,
66                         sizeof (regs_arm) / sizeof (regs_arm[0]));
67     gdbserver_expedite_regs = expedite_regs_arm;
68 }