diff options
author | Tom de Vries <tdevries@suse.de> | 2021-06-24 17:58:53 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-06-24 17:58:53 +0200 |
commit | e084d3fff087faee8cb6096f83230086c210c8ff (patch) | |
tree | 6f95b20d5baef6bb903ce033f8e8ca58212ebd95 | |
parent | 4a4cb3c4436c3470a8aa15e9b688c1b6f9859c74 (diff) | |
download | binutils-gdb-e084d3fff087faee8cb6096f83230086c210c8ff.tar.gz |
[gdb/symtab] Assert that per-cu symtab expansion state is defined
-rw-r--r-- | gdb/psymtab.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |