From: Tom de Vries Date: Thu, 24 Jun 2021 15:58:53 +0000 (+0200) Subject: [gdb/symtab] Assert that per-cu symtab expansion state is defined X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e084d3fff087faee8cb6096f83230086c210c8ff;p=thirdparty%2Fbinutils-gdb.git [gdb/symtab] Assert that per-cu symtab expansion state is defined --- diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 3e0f7e721b7..6e55d0fdb8f 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -588,6 +588,8 @@ psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst) while (pst->user != NULL) pst = pst->user; + gdb_assert (pst->expansion_state != partial_symtab::unexpanded); + /* If it's been looked up before, return it. */ if (pst->get_compunit_symtab (objfile)) return pst->get_compunit_symtab (objfile);