Use SYMBOL_MATCHES_SEARCH_NAME some more
authorPedro Alves <palves@redhat.com>
Thu, 20 Jul 2017 17:06:13 +0000 (18:06 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 20 Jul 2017 17:06:13 +0000 (18:06 +0100)
gdb/ChangeLog:
2017-07-20  Pedro Alves  <palves@redhat.com>

* dwarf2read.c (dw2_lookup_symbol): Use
SYMBOL_MATCHES_SEARCH_NAME.
* psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.

gdb/ChangeLog
gdb/dwarf2read.c
gdb/psymtab.c

index f6acd346ee7b7a84f3eecc11e37dcd1ad544f509..a399f0e7448f3c42c0cce84bdd690e9fbf8dff0d 100644 (file)
@@ -1,3 +1,9 @@
+2017-07-20  Pedro Alves  <palves@redhat.com>
+
+       * dwarf2read.c (dw2_lookup_symbol): Use
+       SYMBOL_MATCHES_SEARCH_NAME.
+       * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
+
 2017-07-20  Pedro Alves  <palves@redhat.com>
 
        * block.c (block_iter_name_step, block_iter_name_first)
index 079ec2db79ad17d7504df2bc2ab4a177d72a0a4e..2c2ecda7fc494635f8b917fe61fccf0430fb264e 100644 (file)
@@ -3907,10 +3907,10 @@ dw2_lookup_symbol (struct objfile *objfile, int block_index,
             information (but NAME might contain it).  */
 
          if (sym != NULL
-             && strcmp_iw (SYMBOL_SEARCH_NAME (sym), name) == 0)
+             && SYMBOL_MATCHES_SEARCH_NAME (sym, name))
            return stab;
          if (with_opaque != NULL
-             && strcmp_iw (SYMBOL_SEARCH_NAME (with_opaque), name) == 0)
+             && SYMBOL_MATCHES_SEARCH_NAME (with_opaque, name))
            stab_best = stab;
 
          /* Keep looking through other CUs.  */
index bb482ee2cb4afac36fff5b496474cc8e87f7f76e..4077fb37f57b9952843cff5c0f0f50a338f12a00 100644 (file)
@@ -529,10 +529,10 @@ psym_lookup_symbol (struct objfile *objfile,
           information (but NAME might contain it).  */
 
        if (sym != NULL
-           && strcmp_iw (SYMBOL_SEARCH_NAME (sym), name) == 0)
+           && SYMBOL_MATCHES_SEARCH_NAME (sym, name))
          return stab;
        if (with_opaque != NULL
-           && strcmp_iw (SYMBOL_SEARCH_NAME (with_opaque), name) == 0)
+           && SYMBOL_MATCHES_SEARCH_NAME (with_opaque, name))
          stab_best = stab;
 
        /* Keep looking through other psymtabs.  */