aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>2000-08-25 21:03:00 +0000
committerDavid Taylor <taylor@redhat.com>2000-08-25 21:03:00 +0000
commit2dc4e391d462122aa3c97934b7dc3205e7d0e55d (patch)
tree5adfc0224ed874e34c559f7bba1e2a4028b31788 /gdb/regcache.c
parent52204a0b3a4dda13a5c13c31cafff75bbad077de (diff)
downloadgdb-2dc4e391d462122aa3c97934b7dc3205e7d0e55d.zip
gdb-2dc4e391d462122aa3c97934b7dc3205e7d0e55d.tar.gz
gdb-2dc4e391d462122aa3c97934b7dc3205e7d0e55d.tar.bz2
Fri Aug 25 16:57:05 2000 David Taylor <taylor@texas.cygnus.com>
* regcache.c (register_changed): New function. * value.h: Declare it.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index fec8b3d..c7bf6dc 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -68,6 +68,15 @@ register_cached (int regnum)
return register_valid[regnum];
}
+/* REGISTER_CHANGED
+
+ invalidate a single register REGNUM in the cache */
+void
+register_changed (int regnum)
+{
+ register_valid[regnum] = 0;
+}
+
/* FIND_SAVED_REGISTER ()
Return the address in which frame FRAME's value of register REGNUM