aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-07-20 18:06:13 +0100
committerPedro Alves <palves@redhat.com>2017-07-20 18:06:13 +0100
commita778f165ad24111597fa48beb4a62359501e0076 (patch)
treea66c7780bef4b7892f34e24b281b5f47c8345785
parent42edd901a220d9d963d2121d7014b81d43c1ac66 (diff)
downloadgdb-a778f165ad24111597fa48beb4a62359501e0076.zip
gdb-a778f165ad24111597fa48beb4a62359501e0076.tar.gz
gdb-a778f165ad24111597fa48beb4a62359501e0076.tar.bz2
Use SYMBOL_MATCHES_SEARCH_NAME some more
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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/dwarf2read.c4
-rw-r--r--gdb/psymtab.c4
3 files changed, 10 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f6acd34..a399f0e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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)
(block_iter_name_next): Delete.
(block_lookup_symbol_primary): Adjust to use
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 079ec2d..2c2ecda 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 bb482ee..4077fb3 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. */