Allow expand_symtabs_matching to examine imported psymtabs
authorTom Tromey <tom@tromey.com>
Fri, 26 Mar 2021 19:28:03 +0000 (13:28 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 26 Mar 2021 19:28:03 +0000 (13:28 -0600)
Currently the psymtab variant of expand_symtabs_matching has this
check:

      /* We skip shared psymtabs because file-matching doesn't apply
 to them; but we search them later in the loop.  */
      if (ps->user != NULL)
continue;

In a larger series I'm working on, it's convenient to remove this
check.  And, I noticed that a similar check is not done for
expand_symtabs_with_fullname.  So, it made sense to me to remove the
check here as well.

gdb/ChangeLog
2021-03-26  Tom Tromey  <tom@tromey.com>

* psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
"user" check.

gdb/ChangeLog
gdb/psymtab.c

index fa4d5b7d24c3dc9b0b35181f31524f20e59df2a8..7955aa4c64ec15389242162f824f4bfdaf532b25 100644 (file)
@@ -1,3 +1,8 @@
+2021-03-26  Tom Tromey  <tom@tromey.com>
+
+       * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
+       "user" check.
+
 2021-03-26  Simon Marchi  <simon.marchi@efficios.com>
            Pedro Alves  <pedro@palves.net>
 
index 597817269c1ac7b42b46383f78eb577105dc3849..5a64166d9831b83c1e10d39622040f33183a150f 100644 (file)
@@ -1313,11 +1313,6 @@ psymbol_functions::expand_symtabs_matching
       if (ps->readin_p (objfile))
        continue;
 
-      /* We skip shared psymtabs because file-matching doesn't apply
-        to them; but we search them later in the loop.  */
-      if (ps->user != NULL)
-       continue;
-
       if (file_matcher)
        {
          bool match;