aboutsummaryrefslogtreecommitdiff
path: root/gdb/expprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-06-17 20:24:22 +0000
committerTom Tromey <tromey@redhat.com>2011-06-17 20:24:22 +0000
commitaee28ec61ad1d4027a78cdbc1da0dcd9f43e2374 (patch)
tree45e05b6b540cb839bcce895490b02696ac0eb2fa /gdb/expprint.c
parent563002680ccbb26706b55313bcccd84d8b299a78 (diff)
* 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/expprint.c')
-rw-r--r--gdb/expprint.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/gdb/expprint.c b/gdb/expprint.c
index a52dee3a91..2b6e416067 100644
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -499,14 +499,11 @@ print_subexp_standard (struct expression *exp, int *pos,
case OP_THIS:
++(*pos);
- fputs_filtered ("this", stream);
- return;
-
- /* Objective-C ops */
-
- case OP_OBJC_SELF:
- ++(*pos);
- fputs_filtered ("self", stream); /* The ObjC equivalent of "this". */
+ if (exp->language_defn->la_name_of_this)
+ fputs_filtered (exp->language_defn->la_name_of_this, stream);
+ else
+ fprintf_filtered (stream, _("<language %s has no 'this'>"),
+ exp->language_defn->la_name);
return;
/* Modula-2 ops */