Give Palmer co-credit for last patch.
[deliverable/binutils-gdb.git] / gdb / opencl-lang.c
index a9c9a3460ee2f43ad733de565aca09850e03db1b..12677605b21ef718cad27af1dcf01e148e3c8f6f 100644 (file)
@@ -1081,8 +1081,9 @@ extern const struct language_defn opencl_language_defn =
   default_pass_by_reference,
   c_get_string,
   c_watch_location_expression,
-  NULL,                                /* la_get_symbol_name_cmp */
+  NULL,                                /* la_get_symbol_name_matcher */
   iterate_over_symbols,
+  default_search_name_hash,
   &default_varobj_ops,
   NULL,
   NULL,
@@ -1171,7 +1172,7 @@ build_opencl_types (struct gdbarch *gdbarch)
   types[opencl_primitive_type_uintptr_t]
     = arch_integer_type (gdbarch, gdbarch_ptr_bit (gdbarch), 1, "uintptr_t");
   types[opencl_primitive_type_void]
-    = arch_type (gdbarch, TYPE_CODE_VOID, 1, "void");
+    = arch_type (gdbarch, TYPE_CODE_VOID, TARGET_CHAR_BIT, "void");
 
   return types;
 }
This page took 0.023167 seconds and 4 git commands to generate.