language_get_symbol_name_matcher -> get_symbol_name_matcher
authorPedro Alves <palves@redhat.com>
Wed, 10 Jan 2018 20:38:08 +0000 (20:38 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 10 Jan 2018 23:12:48 +0000 (23:12 +0000)
Rename language_get_symbol_name_matcher -> get_symbol_name_matcher,
since the function is no longer a straight "language method".

gdb/ChangeLog:
2018-01-10  Pedro Alves  <palves@redhat.com>

* language.h (language_get_symbol_name_matcher): Rename ...
(get_symbol_name_matcher): ... this.
* language.c (language_get_symbol_name_matcher): Ditto.
* dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
callers adjusted.

gdb/ChangeLog
gdb/dictionary.c
gdb/dwarf2read.c
gdb/language.c
gdb/language.h
gdb/linespec.c
gdb/minsyms.c
gdb/psymtab.c
gdb/symtab.c

index d81b4856ffe2781816da94b5a82cfe8ed0e7f842..17f7c8b6a63cdaf15fbb36d2d3269e4bfd9475fa 100644 (file)
@@ -1,3 +1,11 @@
+2018-01-10  Pedro Alves  <palves@redhat.com>
+
+       * language.h (language_get_symbol_name_matcher): Rename ...
+       (get_symbol_name_matcher): ... this.
+       * language.c (language_get_symbol_name_matcher): Ditto.
+       * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
+       callers adjusted.
+
 2018-01-10  Pedro Alves  <palves@redhat.com>
 
        PR gdb/22670
index a6049f79b707824d18161fb319417d8fffa07605..da8b7da2085ed775b4cd80c7c83d3ff243171a33 100644 (file)
@@ -631,7 +631,7 @@ iter_match_first_hashed (const struct dictionary *dict,
   unsigned int hash_index = (name.search_name_hash (lang->la_language)
                             % DICT_HASHED_NBUCKETS (dict));
   symbol_name_matcher_ftype *matches_name
-    = language_get_symbol_name_matcher (lang, name);
+    = get_symbol_name_matcher (lang, name);
   struct symbol *sym;
 
   DICT_ITERATOR_DICT (iterator) = dict;
@@ -659,7 +659,7 @@ iter_match_next_hashed (const lookup_name_info &name,
 {
   const language_defn *lang = DICT_LANGUAGE (DICT_ITERATOR_DICT (iterator));
   symbol_name_matcher_ftype *matches_name
-    = language_get_symbol_name_matcher (lang, name);
+    = get_symbol_name_matcher (lang, name);
   struct symbol *next;
 
   for (next = DICT_ITERATOR_CURRENT (iterator)->hash_next;
@@ -875,7 +875,7 @@ iter_match_next_linear (const lookup_name_info &name,
   const struct dictionary *dict = DICT_ITERATOR_DICT (iterator);
   const language_defn *lang = DICT_LANGUAGE (dict);
   symbol_name_matcher_ftype *matches_name
-    = language_get_symbol_name_matcher (lang, name);
+    = get_symbol_name_matcher (lang, name);
 
   int i, nsyms = DICT_LINEAR_NSYMS (dict);
   struct symbol *sym, *retval = NULL;
index 604dca5606c73b9ea0a9865c6a21b8e210f3f868..dca2fe94dc3ec25b2bf15f762fe3b111c98aaec0 100644 (file)
@@ -4572,7 +4572,7 @@ gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher
     {
       const language_defn *lang = language_def ((enum language) i);
       symbol_name_matcher_ftype *name_matcher
-       = language_get_symbol_name_matcher (lang, m_lookup_name);
+       = get_symbol_name_matcher (lang, m_lookup_name);
 
       /* Don't insert the same comparison routine more than once.
         Note that we do this linear walk instead of a seemingly
index c80237e6f9dd661b4735ea840fb84a01b5b21a6e..0d8604b8268bca403840a6d8a10f3213d40e5338 100644 (file)
@@ -727,8 +727,8 @@ default_symbol_name_matcher (const char *symbol_search_name,
 /* See language.h.  */
 
 symbol_name_matcher_ftype *
-language_get_symbol_name_matcher (const language_defn *lang,
-                                 const lookup_name_info &lookup_name)
+get_symbol_name_matcher (const language_defn *lang,
+                        const lookup_name_info &lookup_name)
 {
   /* If currently in Ada mode, and the lookup name is wrapped in
      '<...>', hijack all symbol name comparisons using the Ada
index 50610959715d36e4f3d6cfa1e88632e4a6dd67ec..06b42aeb5c46b9c4060d08c5b085ffc580385cc2 100644 (file)
@@ -637,7 +637,7 @@ extern bool default_symbol_name_matcher
    the function may ignore it depending on the current language and
    LOOKUP_NAME.  Specifically, if the current language is Ada, this
    may return an Ada matcher regardless of LANG.  */
-symbol_name_matcher_ftype *language_get_symbol_name_matcher
+symbol_name_matcher_ftype *get_symbol_name_matcher
   (const language_defn *lang, const lookup_name_info &lookup_name);
 
 /* The languages supported by GDB.  */
index 73fce0cbf18b00633ded953aae4e5ee9eaf55d16..85f412766c8f93f036bb87ef5bdaf642cf86a9c5 100644 (file)
@@ -1226,7 +1226,7 @@ find_methods (struct type *t, enum language t_lang, const char *name,
       int method_counter;
       lookup_name_info lookup_name (name, symbol_name_match_type::FULL);
       symbol_name_matcher_ftype *symbol_name_compare
-       = language_get_symbol_name_matcher (language_def (t_lang), lookup_name);
+       = get_symbol_name_matcher (language_def (t_lang), lookup_name);
 
       t = check_typedef (t);
 
index fded0d65e93a212f4242cc0175b0d5d3d4382afc..a55c0718fcb09720bf8c6e4a12499a99ee8811a6 100644 (file)
@@ -359,8 +359,8 @@ lookup_minimal_symbol (const char *name, const char *sfile,
                       % MINIMAL_SYMBOL_HASH_SIZE);
 
                  symbol_name_matcher_ftype *match
-                   = language_get_symbol_name_matcher (language_def (lang),
-                                                       lookup_name);
+                   = get_symbol_name_matcher (language_def (lang),
+                                              lookup_name);
                  struct minimal_symbol **msymbol_demangled_hash
                    = objfile->per_bfd->msymbol_demangled_hash;
 
@@ -501,7 +501,7 @@ iterate_over_minimal_symbols (struct objfile *objf,
     {
       const language_defn *lang_def = language_def (lang);
       symbol_name_matcher_ftype *name_match
-       = language_get_symbol_name_matcher (lang_def, lookup_name);
+       = get_symbol_name_matcher (lang_def, lookup_name);
 
       unsigned int hash
        = lookup_name.search_name_hash (lang) % MINIMAL_SYMBOL_HASH_SIZE;
index 88d234a7da230022399112e6e3291363111a7d20..dc13fd560d8972de72b843b53ad8c46b9d22e52c 100644 (file)
@@ -556,7 +556,7 @@ psymbol_name_matches (partial_symbol *psym,
 {
   const language_defn *lang = language_def (SYMBOL_LANGUAGE (psym));
   symbol_name_matcher_ftype *name_match
-    = language_get_symbol_name_matcher (lang, lookup_name);
+    = get_symbol_name_matcher (lang, lookup_name);
   return name_match (SYMBOL_SEARCH_NAME (psym), lookup_name, NULL);
 }
 
index 2fe249682f2bac81140ee394f6b184272a76bdb8..81f4fc9ec58d87b0bae5bfa5341de0c8c9d8929b 100644 (file)
@@ -955,8 +955,7 @@ symbol_matches_search_name (const struct general_symbol_info *gsymbol,
                            const lookup_name_info &name)
 {
   symbol_name_matcher_ftype *name_match
-    = language_get_symbol_name_matcher (language_def (gsymbol->language),
-                                       name);
+    = get_symbol_name_matcher (language_def (gsymbol->language), name);
   return name_match (symbol_search_name (gsymbol), name, NULL);
 }
 
@@ -4707,7 +4706,7 @@ compare_symbol_name (const char *symbol_name, language symbol_language,
   const language_defn *lang = language_def (symbol_language);
 
   symbol_name_matcher_ftype *name_match
-    = language_get_symbol_name_matcher (lang, lookup_name);
+    = get_symbol_name_matcher (lang, lookup_name);
 
   return name_match (symbol_name, lookup_name, &match_res);
 }