1 |
1181 |
sfurman |
/* Interface for functions using gregset and fpregset types.
|
2 |
|
|
Copyright 2000, 2002 Free Software Foundation, Inc.
|
3 |
|
|
|
4 |
|
|
This file is part of GDB.
|
5 |
|
|
|
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
|
8 |
|
|
the Free Software Foundation; either version 2 of the License, or
|
9 |
|
|
(at your option) any later version.
|
10 |
|
|
|
11 |
|
|
This program is distributed in the hope that it will be useful,
|
12 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
|
|
GNU General Public License for more details.
|
15 |
|
|
|
16 |
|
|
You should have received a copy of the GNU General Public License
|
17 |
|
|
along with this program; if not, write to the Free Software
|
18 |
|
|
Foundation, Inc., 59 Temple Place - Suite 330,
|
19 |
|
|
Boston, MA 02111-1307, USA. */
|
20 |
|
|
|
21 |
|
|
#ifndef GREGSET_H
|
22 |
|
|
#define GREGSET_H
|
23 |
|
|
|
24 |
|
|
#ifndef GDB_GREGSET_T
|
25 |
|
|
#define GDB_GREGSET_T gregset_t
|
26 |
|
|
#endif
|
27 |
|
|
|
28 |
|
|
#ifndef GDB_FPREGSET_T
|
29 |
|
|
#define GDB_FPREGSET_T fpregset_t
|
30 |
|
|
#endif
|
31 |
|
|
|
32 |
|
|
typedef GDB_GREGSET_T gdb_gregset_t;
|
33 |
|
|
typedef GDB_FPREGSET_T gdb_fpregset_t;
|
34 |
|
|
|
35 |
|
|
/* A gregset is a data structure supplied by the native OS containing
|
36 |
|
|
the general register values of the debugged process. Usually this
|
37 |
|
|
includes integer registers and control registers. An fpregset is a
|
38 |
|
|
data structure containing the floating point registers. These data
|
39 |
|
|
structures were originally a part of the /proc interface, but have
|
40 |
|
|
been borrowed or copied by other GDB targets, eg. GNU/Linux. */
|
41 |
|
|
|
42 |
|
|
/* Copy register values from the native target gregset/fpregset
|
43 |
|
|
into GDB's internal register cache. */
|
44 |
|
|
|
45 |
|
|
extern void supply_gregset (gdb_gregset_t *gregs);
|
46 |
|
|
extern void supply_fpregset (gdb_fpregset_t *fpregs);
|
47 |
|
|
|
48 |
|
|
/* Copy register values from GDB's register cache into
|
49 |
|
|
the native target gregset/fpregset. If regno is -1,
|
50 |
|
|
copy all the registers. */
|
51 |
|
|
|
52 |
|
|
extern void fill_gregset (gdb_gregset_t *gregs, int regno);
|
53 |
|
|
extern void fill_fpregset (gdb_fpregset_t *fpregs, int regno);
|
54 |
|
|
|
55 |
|
|
#ifdef FILL_FPXREGSET
|
56 |
|
|
/* GNU/Linux i386: Copy register values between GDB's internal register cache
|
57 |
|
|
and the i386 extended floating point registers. */
|
58 |
|
|
|
59 |
|
|
#ifndef GDB_FPXREGSET_T
|
60 |
|
|
#define GDB_FPXREGSET_T elf_fpxregset_t
|
61 |
|
|
#endif
|
62 |
|
|
|
63 |
|
|
typedef GDB_FPXREGSET_T gdb_fpxregset_t;
|
64 |
|
|
|
65 |
|
|
extern void supply_fpxregset (gdb_fpxregset_t *fpxregs);
|
66 |
|
|
extern void fill_fpxregset (gdb_fpxregset_t *fpxregs, int regno);
|
67 |
|
|
#endif
|
68 |
|
|
|
69 |
|
|
#endif
|