From: Pedro Alves Date: Thu, 20 Jul 2017 17:06:13 +0000 (+0100) Subject: Use SYMBOL_MATCHES_SEARCH_NAME some more X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a778f165ad24111597fa48beb4a62359501e0076;p=binutils-gdb.git Use SYMBOL_MATCHES_SEARCH_NAME some more gdb/ChangeLog: 2017-07-20 Pedro Alves * dwarf2read.c (dw2_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f6acd346ee7..a399f0e7448 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2017-07-20 Pedro Alves + + * 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 * block.c (block_iter_name_step, block_iter_name_first) diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 079ec2db79a..2c2ecda7fc4 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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. */ diff --git a/gdb/psymtab.c b/gdb/psymtab.c index bb482ee2cb4..4077fb37f57 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -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. */