Fri Aug 25 16:57:05 2000 David Taylor <taylor@texas.cygnus.com>
authorDavid Taylor <taylor@redhat.com>
Fri, 25 Aug 2000 21:03:00 +0000 (21:03 +0000)
committerDavid Taylor <taylor@redhat.com>
Fri, 25 Aug 2000 21:03:00 +0000 (21:03 +0000)
* regcache.c (register_changed): New function.
* value.h: Declare it.

gdb/ChangeLog
gdb/regcache.c
gdb/value.h

index e8a0a5d25a8bde6eda20ca004baccf6065d2da7b..608fab0047f2192ece4feba62694200a7f86d8ab 100644 (file)
@@ -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
index fec8b3dec8c06a6f537a5e347aff274260c5a931..c7bf6dcc091d35b670266000e3654c8121b575f7 100644 (file)
@@ -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
index b0f1c63c26c658677352f3253da19be28f45ed9a..2035e27b3ca7d731f2bb3672e2aeeb7242d2a9e4 100644 (file)
@@ -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,