* externalize a function
[binutils-gdb.git] / gdb / regcache.h
blobdbffb5792e927c5acc4cb69e5e32c9f19c7c3013
1 /* Cache and manage the values of registers for GDB, the GNU debugger.
2 Copyright 1986, 1987, 1989, 1991, 1994, 1995, 1996, 1998, 2000, 2001
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., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 #ifndef REGCACHE_H
23 #define REGCACHE_H
25 /* Transfer a raw register [0..NUM_REGS) between core-gdb and the
26 regcache. */
28 void regcache_read (int rawnum, char *buf);
29 void regcache_write (int rawnum, char *buf);
31 /* DEPRECATED: Character array containing an image of the inferior
32 programs' registers for the most recently referenced thread. */
34 extern char *registers;
36 /* DEPRECATED: Character array containing the current state of each
37 register (unavailable<0, invalid=0, valid>0) for the most recently
38 referenced thread. */
40 extern signed char *register_valid;
42 extern int register_cached (int regnum);
44 extern void set_register_cached (int regnum, int state);
46 extern void register_changed (int regnum);
48 /* DEPRECATED: Functional interface returning pointer into registers[]
49 array. */
51 extern char *register_buffer (int regnum);
53 extern void registers_changed (void);
55 extern void registers_fetched (void);
57 extern void read_register_bytes (int regbyte, char *myaddr, int len);
59 extern void read_register_gen (int regnum, char *myaddr);
61 extern void write_register_gen (int regnum, char *myaddr);
63 extern void write_register_bytes (int regbyte, char *myaddr, int len);
65 /* Rename to read_unsigned_register()? */
66 extern ULONGEST read_register (int regnum);
68 /* Rename to read_unsigned_register_pid()? */
69 extern ULONGEST read_register_pid (int regnum, int pid);
71 extern LONGEST read_signed_register (int regnum);
73 extern LONGEST read_signed_register_pid (int regnum, int pid);
75 extern void write_register (int regnum, LONGEST val);
77 extern void write_register_pid (int regnum, CORE_ADDR val, int pid);
79 extern void supply_register (int regnum, char *val);
81 #endif /* REGCACHE_H */