From 5c9cffe047056e7934e1f40779fffb8d525576d2 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 17 Jun 2011 20:24:21 +0000 Subject: * valops.c (value_of_local): Complain if NAME is NULL. * std-operator.def (OP_OBJC_SELF): Remove. * parse.c (operator_length_standard) : Remove. * objc-exp.y (name_not_typename): Use OP_THIS. * expprint.c (print_subexp_standard) : Print language's name for "this". : Remove. * eval.c (evaluate_subexp_standard) : Remove. --- gdb/valops.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/valops.c') diff --git a/gdb/valops.c b/gdb/valops.c index 36761039c21..6129bfef4c0 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3608,6 +3608,13 @@ value_of_local (const char *name, int complain) struct value * ret; struct frame_info *frame; + if (!name) + { + if (complain) + error (_("no `this' in current language")); + return 0; + } + if (complain) frame = get_selected_frame (_("no frame selected")); else -- cgit v1.2.1