summaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-05-15 01:01:56 +0000
committerAndrew Cagney <cagney@redhat.com>2002-05-15 01:01:56 +0000
commitc1bfb9bdc1d9b5aac9956b8bae3bf9120b88ed24 (patch)
tree35dd6efabf828fff72afa5b054ca065c763c98dd /gdb/frame.c
parent9f0c321d837daed1a1ca51925635fb3b9838138a (diff)
downloadgdb-c1bfb9bdc1d9b5aac9956b8bae3bf9120b88ed24.tar.gz
* regcache.c (register_valid): Revise comments refering to "Not
available" and "unavailable". * frame.c (frame_register_read): Ditto. * findvar.c (value_of_register): Ditto.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 27531501d59..24cd9071437 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -157,10 +157,13 @@ frame_register_read (struct frame_info *frame, int regnum, void *myaddr)
get_saved_register (myaddr, &optim, (CORE_ADDR *) NULL, frame,
regnum, (enum lval_type *) NULL);
- /* FIXME: cagney/2002-04-10: This test is just bogus. It is no
- indication of the validity of the register. The value could
- easily be found (on the stack) even though the corresponding
- register isn't available. */
+ /* 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 */