From 06c0b04e1c76a02e8aba3a590f65acdd30011dba Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 19 Aug 2002 00:43:41 +0000 Subject: 2002-08-18 Andrew Cagney * 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. --- gdb/regcache.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gdb/regcache.h') diff --git a/gdb/regcache.h b/gdb/regcache.h index 4f6a079..da91fd6 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(). */ -- cgit v1.1