From 2dc4e391d462122aa3c97934b7dc3205e7d0e55d Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 25 Aug 2000 21:03:00 +0000 Subject: [PATCH] Fri Aug 25 16:57:05 2000 David Taylor * regcache.c (register_changed): New function. * value.h: Declare it. --- gdb/ChangeLog | 5 +++++ gdb/regcache.c | 9 +++++++++ gdb/value.h | 2 ++ 3 files changed, 16 insertions(+) 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 + + * regcache.c (register_changed): New function. + * value.h: Declare it. + Fri Aug 25 12:11:21 2000 David Taylor * 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, -- 2.30.2