aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-03-12 22:39:16 +0000
committerAndrew Cagney <cagney@redhat.com>2003-03-12 22:39:16 +0000
commit0a1e1ca1f645fe9728ae8fa5d5f20f11572285db (patch)
treebb116688837e5870629f1203aa134157c8b34e4c /gdb/eval.c
parenta66a9c23319105b23198e91be27a2e2f442f4671 (diff)
downloadgdb-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index a456e9c..d5d0892 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -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.",