gdb: symmisc.c: remove std_{in,out,err}
[deliverable/binutils-gdb.git] / gdb / opencl-lang.c
index 11032b1864e6dcb325b0a7997218bfbd722996e4..183d67897f01ebbc87f6a8a5c304441838a1aae4 100644 (file)
@@ -1,5 +1,5 @@
 /* OpenCL language support for GDB, the GNU debugger.
-   Copyright (C) 2010-2020 Free Software Foundation, Inc.
+   Copyright (C) 2010-2021 Free Software Foundation, Inc.
 
    Contributed by Ken Werner <ken.werner@de.ibm.com>.
 
@@ -46,7 +46,7 @@ lookup_opencl_vector_type (struct gdbarch *gdbarch, enum type_code code,
   /* Triple vectors have the size of a quad vector.  */
   length = (n == 3) ?  el_length * 4 : el_length * n;
 
-  std::function<bool (struct type *)> filter = [&] (struct type *type)
+  auto filter = [&] (struct type *type)
   {
     LONGEST lowb, highb;
 
@@ -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;
@@ -948,7 +948,6 @@ const struct exp_descriptor exp_descriptor_opencl =
   print_subexp_standard,
   operator_length_standard,
   operator_check_standard,
-  op_name_standard,
   dump_subexp_body_standard,
   evaluate_subexp_opencl
 };
This page took 0.025226 seconds and 4 git commands to generate.