summaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-03-16 02:57:42 +0000
committerAndrew Cagney <cagney@redhat.com>2002-03-16 02:57:42 +0000
commit54f7a7244e39168648702c3b69c048c03d13820c (patch)
treeea927fb48f9e4718602d5240128215f78547c94d /gdb/eval.c
parent7c369a0aadcb520073c1a7611b52c808f9e152a6 (diff)
downloadgdb-54f7a7244e39168648702c3b69c048c03d13820c.tar.gz
* eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
value_of_register. * findvar.c (value_of_register): Add ``frame'' parameter. Pass to get_saved_register. * value.h (value_of_register): Update.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 3f5aca3733c..0b42a584cf8 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -447,8 +447,7 @@ evaluate_subexp_standard (struct type *expect_type,
case OP_REGISTER:
{
int regno = longest_to_int (exp->elts[pc + 1].longconst);
- struct value *val = value_of_register (regno);
-
+ struct value *val = value_of_register (regno, selected_frame);
(*pos) += 2;
if (val == NULL)
error ("Value of register %s not available.", REGISTER_NAME (regno));