diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-03-16 02:57:42 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-03-16 02:57:42 +0000 |
commit | 376c9600197cb583397c4bf8a2cd49e23693bf6d (patch) | |
tree | 3eb9b49bda81c2d691d0c794d4e9018b85530098 /gdb/eval.c | |
parent | ff8a5556c4aee9e9053fb35b144acdf6192de804 (diff) | |
download | gdb-376c9600197cb583397c4bf8a2cd49e23693bf6d.zip gdb-376c9600197cb583397c4bf8a2cd49e23693bf6d.tar.gz gdb-376c9600197cb583397c4bf8a2cd49e23693bf6d.tar.bz2 |
* 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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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)); |