aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/regcache.c9
-rw-r--r--gdb/value.h2
3 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e8a0a5d..608fab0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Fri Aug 25 16:57:05 2000 David Taylor <taylor@texas.cygnus.com>
+
+ * regcache.c (register_changed): New function.
+ * value.h: Declare it.
+
Fri Aug 25 12:11:21 2000 David Taylor <taylor@texas.cygnus.com>
* symtab.c (search_symbols): Fix off by one error in index for
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
diff --git a/gdb/value.h b/gdb/value.h
index b0f1c63..2035e27 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -490,6 +490,8 @@ extern void supply_register (int regno, char *val);
extern int register_cached (int regno);
+extern void register_changed (int regnum);
+
extern void get_saved_register (char *raw_buffer, int *optimized,
CORE_ADDR * addrp,
struct frame_info *frame,