summaryrefslogtreecommitdiff
path: root/gdb/p-exp.y
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-06-17 20:35:09 +0000
committerTom Tromey <tromey@redhat.com>2011-06-17 20:35:09 +0000
commita03c034dadca211c0c179497907a776a84b024f7 (patch)
tree0d7b70a9b1ffe939af59835e315661efefa3f18e /gdb/p-exp.y
parent5c9cffe047056e7934e1f40779fffb8d525576d2 (diff)
downloadgdb-a03c034dadca211c0c179497907a776a84b024f7.tar.gz
* 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.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index 32c7aca657b..0a384e146dd 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