aboutsummaryrefslogtreecommitdiff
path: root/gdb/opencl-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 10:05:01 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit76675c4d0bc454ed1ae369f98ad848754d0e81a0 (patch)
tree6ab6267f6ca517ea44185ad5211f0c8075855a89 /gdb/opencl-lang.c
parentfac7bdaaab474e2741b88d24781facd9521d0e9c (diff)
downloadgdb-76675c4d0bc454ed1ae369f98ad848754d0e81a0.zip
gdb-76675c4d0bc454ed1ae369f98ad848754d0e81a0.tar.gz
gdb-76675c4d0bc454ed1ae369f98ad848754d0e81a0.tar.bz2
Turn value_offset into method
This changes value_offset 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/opencl-lang.c')
-rw-r--r--gdb/opencl-lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c
index f66489b..107a138 100644
--- a/gdb/opencl-lang.c
+++ b/gdb/opencl-lang.c
@@ -122,7 +122,7 @@ lval_func_read (struct value *v)
struct lval_closure *c = (struct lval_closure *) value_computed_closure (v);
struct type *type = check_typedef (v->type ());
struct type *eltype = check_typedef (c->val->type ())->target_type ();
- LONGEST offset = value_offset (v);
+ LONGEST offset = v->offset ();
LONGEST elsize = eltype->length ();
int n, i, j = 0;
LONGEST lowb = 0;
@@ -152,7 +152,7 @@ lval_func_write (struct value *v, struct value *fromval)
struct lval_closure *c = (struct lval_closure *) value_computed_closure (v);
struct type *type = check_typedef (v->type ());
struct type *eltype = check_typedef (c->val->type ())->target_type ();
- LONGEST offset = value_offset (v);
+ LONGEST offset = v->offset ();
LONGEST elsize = eltype->length ();
int n, i, j = 0;
LONGEST lowb = 0;