diff options
author | Tom Tromey <tromey@redhat.com> | 2011-06-17 20:24:22 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-06-17 20:24:22 +0000 |
commit | aee28ec61ad1d4027a78cdbc1da0dcd9f43e2374 (patch) | |
tree | 45e05b6b540cb839bcce895490b02696ac0eb2fa /gdb/valops.c | |
parent | 563002680ccbb26706b55313bcccd84d8b299a78 (diff) | |
download | gdb-aee28ec61ad1d4027a78cdbc1da0dcd9f43e2374.zip gdb-aee28ec61ad1d4027a78cdbc1da0dcd9f43e2374.tar.gz gdb-aee28ec61ad1d4027a78cdbc1da0dcd9f43e2374.tar.bz2 |
* valops.c (value_of_local): Complain if NAME is NULL.
* std-operator.def (OP_OBJC_SELF): Remove.
* parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
* objc-exp.y (name_not_typename): Use OP_THIS.
* expprint.c (print_subexp_standard) <OP_THIS>: Print language's
name for "this".
<OP_OBJC_SELF>: Remove.
* eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 3676103..6129bfe 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 |