summaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-10-29 20:23:17 +0000
committerAndrew Cagney <cagney@redhat.com>2004-10-29 20:23:17 +0000
commite89af9b9262bf3a77e5ce1b3df66dcdcf5fed853 (patch)
tree9e360884be8afdc12f60481b9107bc4c56992b4e /gdb/eval.c
parenteadcfb6a7c0d6c35468bb76e713ac8f1aba7003a (diff)
downloadgdb-e89af9b9262bf3a77e5ce1b3df66dcdcf5fed853.tar.gz
2004-10-29 Andrew Cagney <cagney@gnu.org>
* frame.h (get_selected_frame): Add message parameter. * frame.c (get_selected_frame): Add and use message parameter. * stack.c (current_frame_command, return_command, locals_info) (catch_info, args_info, up_silently_base, down_silently_base): Use get_selected_frame with an explicit message. * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update. * remote-rdp.c, remote-mips.c, remote-e7000.c: Update. * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update. * infrun.c, inflow.c, infcmd.c, frame.c: Update. * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update. * breakpoint.c: Update.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 4418e0ad29b..a07df58e92b 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -447,11 +447,11 @@ 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, get_selected_frame ());
+ struct value *val = value_of_register (regno, get_selected_frame (NULL));
(*pos) += 2;
if (val == NULL)
error ("Value of register %s not available.",
- frame_map_regnum_to_name (get_selected_frame (), regno));
+ frame_map_regnum_to_name (get_selected_frame (NULL), regno));
else
return val;
}