mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
* regcache.c (register_valid): Revise comments refering to "Not
available" and "unavailable". * frame.c (frame_register_read): Ditto. * findvar.c (value_of_register): Ditto.
This commit is contained in:
@@ -308,6 +308,13 @@ value_of_register (int regnum, struct frame_info *frame)
|
||||
get_saved_register (raw_buffer, &optim, &addr,
|
||||
frame, regnum, &lval);
|
||||
|
||||
/* 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 NULL; /* register value not available */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user