* NEWS: Note addition of macro support.
[deliverable/binutils-gdb.git] / gdb / regcache.h
CommitLineData
4e052eda 1/* Cache and manage the values of registers for GDB, the GNU debugger.
b6ba6518 2 Copyright 1986, 1987, 1989, 1991, 1994, 1995, 1996, 1998, 2000, 2001
4e052eda
AC
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#ifndef REGCACHE_H
23#define REGCACHE_H
24
61a0eb5b
AC
25/* Transfer a raw register [0..NUM_REGS) between core-gdb and the
26 regcache. */
27
28void regcache_read (int rawnum, char *buf);
29void regcache_write (int rawnum, char *buf);
30
193cb69f
AC
31/* Transfer a raw register [0..NUM_REGS) between the regcache and the
32 target. These functions are called by the target in response to a
33 target_fetch_registers() or target_store_registers(). */
34
35extern void supply_register (int regnum, char *val);
36extern void regcache_collect (int regnum, void *buf);
37
38
61a0eb5b
AC
39/* DEPRECATED: Character array containing an image of the inferior
40 programs' registers for the most recently referenced thread. */
4e052eda
AC
41
42extern char *registers;
43
61a0eb5b
AC
44/* DEPRECATED: Character array containing the current state of each
45 register (unavailable<0, invalid=0, valid>0) for the most recently
46 referenced thread. */
4e052eda
AC
47
48extern signed char *register_valid;
49
50extern int register_cached (int regnum);
51
52extern void set_register_cached (int regnum, int state);
53
54extern void register_changed (int regnum);
55
4e052eda
AC
56extern void registers_changed (void);
57
58extern void registers_fetched (void);
59
60extern void read_register_bytes (int regbyte, char *myaddr, int len);
61
62extern void read_register_gen (int regnum, char *myaddr);
63
64extern void write_register_gen (int regnum, char *myaddr);
65
66extern void write_register_bytes (int regbyte, char *myaddr, int len);
67
68/* Rename to read_unsigned_register()? */
69extern ULONGEST read_register (int regnum);
70
71/* Rename to read_unsigned_register_pid()? */
39f77062 72extern ULONGEST read_register_pid (int regnum, ptid_t ptid);
4e052eda
AC
73
74extern LONGEST read_signed_register (int regnum);
75
39f77062 76extern LONGEST read_signed_register_pid (int regnum, ptid_t ptid);
4e052eda
AC
77
78extern void write_register (int regnum, LONGEST val);
79
39f77062 80extern void write_register_pid (int regnum, CORE_ADDR val, ptid_t ptid);
4e052eda 81
4e052eda 82#endif /* REGCACHE_H */
This page took 0.174608 seconds and 4 git commands to generate.