From a03c034dadca211c0c179497907a776a84b024f7 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 17 Jun 2011 20:35:09 +0000 Subject: * value.h (value_of_this): Update. (value_of_local): Remove. * valops.c (value_of_this): Rename from value_of_local. Change parameters. * p-exp.y (exp): Update. (variable): Likewise. * eval.c (evaluate_subexp_standard) : Use value_of_this. --- gdb/valops.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'gdb/valops.c') diff --git a/gdb/valops.c b/gdb/valops.c index 6129bfef4c0..9b3b90a7506 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3601,12 +3601,13 @@ value_full_object (struct value *argp, inappropriate context. */ struct value * -value_of_local (const char *name, int complain) +value_of_this (const struct language_defn *lang, int complain) { struct symbol *func, *sym; struct block *b; struct value * ret; struct frame_info *frame; + const char *name = lang->la_name_of_this; if (!name) { @@ -3660,18 +3661,6 @@ value_of_local (const char *name, int complain) return ret; } -/* C++/Objective-C: return the value of the class instance variable, - if one exists. Flag COMPLAIN signals an error if the request is - made in an inappropriate context. */ - -struct value * -value_of_this (int complain) -{ - if (!current_language->la_name_of_this) - return 0; - return value_of_local (current_language->la_name_of_this, complain); -} - /* Create a slice (sub-string, sub-array) of ARRAY, that is LENGTH elements long, starting at LOWBOUND. The result has the same lower bound as the original ARRAY. */ -- cgit v1.2.1