Riscv shared libraries should not export __global_pointer$.
[deliverable/binutils-gdb.git] / gdb / language.c
index 76047c71861323c77101a570765302a7193d9396..c3872fc9a639e3c31624e7e73f2e0866a460780f 100644 (file)
@@ -704,19 +704,20 @@ default_get_string (struct value *value, gdb_byte **buffer, int *length,
 bool
 default_symbol_name_matcher (const char *symbol_search_name,
                             const lookup_name_info &lookup_name,
-                            completion_match *match)
+                            completion_match_result *comp_match_res)
 {
   const std::string &name = lookup_name.name ();
-
+  completion_match_for_lcd *match_for_lcd
+    = (comp_match_res != NULL ? &comp_match_res->match_for_lcd : NULL);
   strncmp_iw_mode mode = (lookup_name.completion_mode ()
                          ? strncmp_iw_mode::NORMAL
                          : strncmp_iw_mode::MATCH_PARAMS);
 
   if (strncmp_iw_with_mode (symbol_search_name, name.c_str (), name.size (),
-                           mode) == 0)
+                           mode, language_minimal, match_for_lcd) == 0)
     {
-      if (match != NULL)
-       match->set_match (symbol_search_name);
+      if (comp_match_res != NULL)
+       comp_match_res->set_match (symbol_search_name);
       return true;
     }
   else
This page took 0.024435 seconds and 4 git commands to generate.