diff options
author | Tom Tromey <tromey@redhat.com> | 2011-06-17 20:35:09 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-06-17 20:35:09 +0000 |
commit | 7518bff55ab27e073e9d03b5d700d469d362c85d (patch) | |
tree | 579cfdef5223792e7a4eb9a299f24b5fd58629e9 /gdb/p-exp.y | |
parent | aee28ec61ad1d4027a78cdbc1da0dcd9f43e2374 (diff) | |
download | gdb-7518bff55ab27e073e9d03b5d700d469d362c85d.zip gdb-7518bff55ab27e073e9d03b5d700d469d362c85d.tar.gz gdb-7518bff55ab27e073e9d03b5d700d469d362c85d.tar.bz2 |
* 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) <OP_THIS>: Use value_of_this.
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 32c7aca..0a384e1 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -612,7 +612,7 @@ exp : THIS write_exp_elt_opcode (OP_THIS); write_exp_elt_opcode (OP_THIS); /* We need type of this. */ - this_val = value_of_this (0); + this_val = value_of_this (parse_language, 0); if (this_val) this_type = value_type (this_val); else @@ -760,7 +760,7 @@ variable: name_not_typename write_exp_string ($1.stoken); write_exp_elt_opcode (STRUCTOP_PTR); /* We need type of this. */ - this_val = value_of_this (0); + this_val = value_of_this (parse_language, 0); if (this_val) this_type = value_type (this_val); else |