diff options
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 1549ead04d0..b5ddef90878 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -84,13 +84,12 @@ require_partial_symbols (struct objfile *objfile, bool verbose) { objfile->flags |= OBJF_PSYMTABS_READ; - if (objfile->sf != nullptr - && objfile->sf->sym_read_psymbols) + if (objfile->qf->can_lazily_read_symbols ()) { if (verbose) printf_filtered (_("Reading symbols from %s...\n"), objfile_name (objfile)); - (*objfile->sf->sym_read_psymbols) (objfile); + objfile->qf->read_partial_symbols (objfile); if (verbose && !objfile_has_symbols (objfile)) printf_filtered (_("(No debugging symbols found in %s)\n"), |