diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-03-12 22:39:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-03-12 22:39:16 +0000 |
commit | 0a1e1ca1f645fe9728ae8fa5d5f20f11572285db (patch) | |
tree | bb116688837e5870629f1203aa134157c8b34e4c /gdb/eval.c | |
parent | a66a9c23319105b23198e91be27a2e2f442f4671 (diff) | |
download | gdb-0a1e1ca1f645fe9728ae8fa5d5f20f11572285db.zip gdb-0a1e1ca1f645fe9728ae8fa5d5f20f11572285db.tar.gz gdb-0a1e1ca1f645fe9728ae8fa5d5f20f11572285db.tar.bz2 |
2003-03-12 Andrew Cagney <cagney@redhat.com>
* frame.c (get_current_frame): Check target_has_registers before
checking target_has_stack.
* eval.c (evaluate_subexp_standard): Use get_selected_frame,
instead of deprecated_selected_frame.
* findvar.c (value_of_register): Pass "frame", not
deprecated_selected_frame, to value_of_builtin_reg.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -447,7 +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, deprecated_selected_frame); + struct value *val = value_of_register (regno, get_selected_frame ()); (*pos) += 2; if (val == NULL) error ("Value of register %s not available.", |