diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-06 19:37:31 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-06 19:37:31 +0000 |
commit | 908cca8cb4f09f57ba4dbebe09ee24f2576716a3 (patch) | |
tree | 27c36f0fb463d35c84bb7e4cd4302a9855b92735 /gdb/frame.c | |
parent | f399b0f7d6172ad47649be7b40e2f00d33cc2e43 (diff) | |
download | gdb-908cca8cb4f09f57ba4dbebe09ee24f2576716a3.tar.gz |
* 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/frame.c')
-rw-r--r-- | gdb/frame.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 8a14b29ede3..2c62d441a6b 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -738,16 +738,6 @@ frame_register_read (struct frame_info *frame, int regnum, int realnum; frame_register (frame, regnum, &optimized, &lval, &addr, &realnum, myaddr); - /* FIXME: cagney/2002-05-15: This test is just bogus. - - It indicates that the target failed to supply a value for a - register because it was "not available" at this time. Problem - is, the target still has the register and so get saved_register() - may be returning a value saved on the stack. */ - - if (register_cached (regnum) < 0) - return 0; /* register value not available */ - return !optimized; } |