aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-exp.y
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 07:52:09 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:06 -0700
commitd0c9791728caa0d3b3270a997c7fd97919976c97 (patch)
tree1753b7232efa89e05696d4289d60ad019fc161e4 /gdb/p-exp.y
parent7cf57bc5be656c62cc6b80280a9eddad2b8ded3f (diff)
downloadbinutils-d0c9791728caa0d3b3270a997c7fd97919976c97.zip
binutils-d0c9791728caa0d3b3270a997c7fd97919976c97.tar.gz
binutils-d0c9791728caa0d3b3270a997c7fd97919976c97.tar.bz2
Turn value_type into method
This changes value_type to be a method of value. Much of this patch was written by script. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r--gdb/p-exp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index 6e03f1a..b5251b9 100644
--- a/gdb/p-exp.y
+++ b/gdb/p-exp.y
@@ -542,7 +542,7 @@ exp : DOLLAR_VARIABLE
value *val
= value_of_internalvar (pstate->gdbarch (),
intvar);
- current_type = value_type (val);
+ current_type = val->type ();
}
}
;
@@ -591,7 +591,7 @@ exp : THIS
this_val
= value_of_this_silent (pstate->language ());
if (this_val)
- this_type = value_type (this_val);
+ this_type = this_val->type ();
else
this_type = NULL;
if (this_type)
@@ -707,7 +707,7 @@ variable: name_not_typename
this_val
= value_of_this_silent (pstate->language ());
if (this_val)
- this_type = value_type (this_val);
+ this_type = this_val->type ();
else
this_type = NULL;
if (this_type)