aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-06 19:37:31 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-06 19:37:31 +0000
commit9c5ea4d96566b651eb32f59813b392d5c74b6b65 (patch)
tree8ee860ed8d4022b9572d6fa126b2e15eb13dcd64 /gdb/regcache.h
parent316f20603ac3da3e7037cd20fd9580d6d77d71c5 (diff)
downloadgdb-9c5ea4d96566b651eb32f59813b392d5c74b6b65.zip
gdb-9c5ea4d96566b651eb32f59813b392d5c74b6b65.tar.gz
gdb-9c5ea4d96566b651eb32f59813b392d5c74b6b65.tar.bz2
* regcache.c (regcache_invalidate): New function.
(register_cached): Remove. (set_register_cached): Remove. (deprecated_registers_fetched): Remove. (registers_changed): Use regcache_invalidate instead of set_register_cached. (regcache_raw_read): Update comment. * regcache.h (regcache_invalidate): Add prototype. (register_cached): Remove. (set_register_cached): Remove. (deprecated_registers_fetched): Remove. * findvar.c (value_of_register): Do not call register_cached. * frame.c (frame_register): Likewise. * tui/tui-regs.c (tui_get_register): Likewise. * remote.c (fetch_register_using_p): Do not call set_register_cached. (process_g_packet): Likewise. (remote_fetch_registers): Likewise. * remote-sim.c (gdbsim_fetch_register): Likewise. * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call by regcache_invalidate. (mt_pseudo_register_write): Likewise. * sh-tdep.c (sh_pseudo_register_write): Likewise. * corelow.c (get_core_registers): Replace deprecated_registers_fetched call by loop over regcache_raw_supply (..., NULL).
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index c8ceca6..4ced1fc 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -61,6 +61,8 @@ void regcache_raw_write_part (struct regcache *regcache, int regnum,
int regcache_valid_p (const struct regcache *regcache, int regnum);
+void regcache_invalidate (struct regcache *regcache, int regnum);
+
/* Transfer a cooked register [0..NUM_REGS+NUM_PSEUDO_REGS). */
void regcache_cooked_read (struct regcache *regcache, int rawnum,
gdb_byte *buf);
@@ -157,14 +159,6 @@ extern struct regcache *regcache_dup_no_passthrough (struct regcache *regcache);
extern void regcache_cpy (struct regcache *dest, struct regcache *src);
extern void regcache_cpy_no_passthrough (struct regcache *dest, struct regcache *src);
-/* NOTE: cagney/2002-11-05: This function has been superseeded by
- regcache_raw_supply(). */
-extern void deprecated_registers_fetched (void);
-
-extern int register_cached (int regnum);
-
-extern void set_register_cached (int regnum, int state);
-
extern void registers_changed (void);