From: Tom Tromey Date: Fri, 26 Mar 2021 19:28:03 +0000 (-0600) Subject: Allow expand_symtabs_matching to examine imported psymtabs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd43f63e00113cc10e068a10966a8c90e9b37ccc;p=binutils-gdb.git Allow expand_symtabs_matching to examine imported psymtabs 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 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove "user" check. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fa4d5b7d24c..7955aa4c64e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-03-26 Tom Tromey + + * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove + "user" check. + 2021-03-26 Simon Marchi Pedro Alves diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 597817269c1..5a64166d983 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -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;