aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-05-06 19:37:31 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-05-06 19:37:31 +0000
commit9c5ea4d96566b651eb32f59813b392d5c74b6b65 (patch)
tree8ee860ed8d4022b9572d6fa126b2e15eb13dcd64 /gdb/remote.c
parent316f20603ac3da3e7037cd20fd9580d6d77d71c5 (diff)
downloadgdb-9c5ea4d96566b651eb32f59813b392d5c74b6b65.zip
gdb-9c5ea4d96566b651eb32f59813b392d5c74b6b65.tar.gz
gdb-9c5ea4d96566b651eb32f59813b392d5c74b6b65.tar.bz2
* regcache.c (regcache_invalidate): New function.
(register_cached): Remove. (set_register_cached): Remove. (deprecated_registers_fetched): Remove. (registers_changed): Use regcache_invalidate instead of set_register_cached. (regcache_raw_read): Update comment. * regcache.h (regcache_invalidate): Add prototype. (register_cached): Remove. (set_register_cached): Remove. (deprecated_registers_fetched): Remove. * findvar.c (value_of_register): Do not call register_cached. * frame.c (frame_register): Likewise. * tui/tui-regs.c (tui_get_register): Likewise. * remote.c (fetch_register_using_p): Do not call set_register_cached. (process_g_packet): Likewise. (remote_fetch_registers): Likewise. * remote-sim.c (gdbsim_fetch_register): Likewise. * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call by regcache_invalidate. (mt_pseudo_register_write): Likewise. * sh-tdep.c (sh_pseudo_register_write): Likewise. * corelow.c (get_core_registers): Replace deprecated_registers_fetched call by loop over regcache_raw_supply (..., NULL).
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 8e7999d..f1d0710 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3522,7 +3522,6 @@ fetch_register_using_p (struct regcache *regcache, struct packet_reg *reg)
if (buf[0] == 'x')
{
regcache_raw_supply (regcache, reg->regnum, NULL);
- set_register_cached (reg->regnum, -1);
return 1;
}
@@ -3661,7 +3660,6 @@ process_g_packet (struct regcache *regcache)
/* The register isn't available, mark it as such (at
the same time setting the value to zero). */
regcache_raw_supply (regcache, r->regnum, NULL);
- set_register_cached (i, -1);
}
else
regcache_raw_supply (regcache, r->regnum,
@@ -3708,7 +3706,6 @@ remote_fetch_registers (struct regcache *regcache, int regnum)
/* This register is not available. */
regcache_raw_supply (regcache, reg->regnum, NULL);
- set_register_cached (reg->regnum, -1);
return;
}
@@ -3721,7 +3718,6 @@ remote_fetch_registers (struct regcache *regcache, int regnum)
{
/* This register is not available. */
regcache_raw_supply (regcache, i, NULL);
- set_register_cached (i, -1);
}
}