summaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index bbc7b8a71f8..22ca8819f34 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -2830,11 +2830,7 @@ evaluate_subexp_standard (struct type *expect_type,
case OP_THIS:
(*pos) += 1;
- return value_of_this (1);
-
- case OP_OBJC_SELF:
- (*pos) += 1;
- return value_of_local ("self", 1);
+ return value_of_local (exp->language_defn->la_name_of_this, 1);
case OP_TYPE:
/* The value is not supposed to be used. This is here to make it