aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-26 13:28:03 -0600
committerTom Tromey <tom@tromey.com>2021-03-26 13:28:03 -0600
commitcd43f63e00113cc10e068a10966a8c90e9b37ccc (patch)
tree3fec0c8dfaf7f5b0e4cc7e2d9fa5b885074f70ae /gdb/psymtab.c
parentff5b3e1458875830595e8c1d1fab6624264b3935 (diff)
downloadgdb-cd43f63e00113cc10e068a10966a8c90e9b37ccc.zip
gdb-cd43f63e00113cc10e068a10966a8c90e9b37ccc.tar.gz
gdb-cd43f63e00113cc10e068a10966a8c90e9b37ccc.tar.bz2
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 <tom@tromey.com> * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove "user" check.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 5978172..5a64166 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;