aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/opencl-lang.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 43da682..e06f59c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2020-11-14 Tom Tromey <tom@tromey.com>
+
+ * opencl-lang.c (opencl_component_ref): Make "comps" const.
+
2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
* arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c
index 11032b1..e04fc54 100644
--- a/gdb/opencl-lang.c
+++ b/gdb/opencl-lang.c
@@ -327,8 +327,8 @@ create_value (struct gdbarch *gdbarch, struct value *val, enum noside noside,
/* OpenCL vector component access. */
static struct value *
-opencl_component_ref (struct expression *exp, struct value *val, char *comps,
- enum noside noside)
+opencl_component_ref (struct expression *exp, struct value *val,
+ const char *comps, enum noside noside)
{
LONGEST lowb, highb;
int src_len;