diff options
author | David Taylor <taylor@redhat.com> | 2000-08-25 21:03:00 +0000 |
---|---|---|
committer | David Taylor <taylor@redhat.com> | 2000-08-25 21:03:00 +0000 |
commit | 2dc4e391d462122aa3c97934b7dc3205e7d0e55d (patch) | |
tree | 5adfc0224ed874e34c559f7bba1e2a4028b31788 /gdb | |
parent | 52204a0b3a4dda13a5c13c31cafff75bbad077de (diff) | |
download | binutils-gdb-2dc4e391d462122aa3c97934b7dc3205e7d0e55d.tar.gz |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/regcache.c | 9 | ||||
-rw-r--r-- | gdb/value.h | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e8a0a5d25a8..608fab0047f 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 fec8b3dec8c..c7bf6dcc091 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 b0f1c63c26c..2035e27b3ca 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, |