diff options
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 94b5acd..8c02fa2 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -84,7 +84,8 @@ require_partial_symbols (struct objfile *objfile, bool verbose) { objfile->flags |= OBJF_PSYMTABS_READ; - if (objfile->sf->sym_read_psymbols) + if (objfile->sf != nullptr + && objfile->sf->sym_read_psymbols) { if (verbose) printf_filtered (_("Reading symbols from %s...\n"), |