summaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-08-19 00:43:41 +0000
committerAndrew Cagney <cagney@redhat.com>2002-08-19 00:43:41 +0000
commit1ae4e1a65b02b5740932e71abfce4a4a42bc6235 (patch)
tree5122939f2e387409ac328e7ab8fc32a06d851a70 /gdb/regcache.h
parent342b32d46953bb85703e6e2054b6c136808c770d (diff)
downloadgdb-1ae4e1a65b02b5740932e71abfce4a4a42bc6235.tar.gz
2002-08-18 Andrew Cagney <ac131313@redhat.com>
* regcache.c (regcache_xfer_part): New function. (regcache_raw_read_part): New function. (regcache_raw_write_part): New function. (regcache_cooked_read_part): New function. (regcache_cooked_write_part): New function. * regcache.h (regcache_raw_read_part): Declare. (regcache_raw_write_part): Declare. (regcache_cooked_read_part): Declare. (regcache_cooked_write_part): Declare.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index 4f6a0797663..da91fd69325 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -42,6 +42,15 @@ extern void regcache_raw_read_signed (struct regcache *regcache,
int regnum, LONGEST *val);
extern void regcache_raw_read_unsigned (struct regcache *regcache,
int regnum, ULONGEST *val);
+
+/* Partial transfer of a raw registers. These perform read, modify,
+ write style operations. */
+
+void regcache_raw_read_part (struct regcache *regcache, int regnum,
+ int offset, int len, void *buf);
+void regcache_raw_write_part (struct regcache *regcache, int regnum,
+ int offset, int len, const void *buf);
+
int regcache_valid_p (struct regcache *regcache, int regnum);
/* Transfer a cooked register [0..NUM_REGS+NUM_PSEUDO_REGS). */
@@ -63,6 +72,14 @@ extern void regcache_cooked_read_signed (struct regcache *regcache,
extern void regcache_cooked_read_unsigned (struct regcache *regcache,
int regnum, ULONGEST *val);
+/* Partial transfer of a cooked register. These perform read, modify,
+ write style operations. */
+
+void regcache_cooked_read_part (struct regcache *regcache, int regnum,
+ int offset, int len, void *buf);
+void regcache_cooked_write_part (struct regcache *regcache, int regnum,
+ int offset, int len, const void *buf);
+
/* Transfer a raw register [0..NUM_REGS) between the regcache and the
target. These functions are called by the target in response to a
target_fetch_registers() or target_store_registers(). */