From cd43f63e00113cc10e068a10966a8c90e9b37ccc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 26 Mar 2021 13:28:03 -0600 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/psymtab.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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; -- 2.30.2