diff options
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r-- | gdb/buildsym.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 8f38131..5d4b582 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -384,8 +384,11 @@ private: the same lifetime as objfile. */ const char *m_debugformat = nullptr; - /* The compunit we are building. */ - struct compunit_symtab *m_compunit_symtab = nullptr; + /* The compunit we are building. If the symtab is owned by this + object, both fields are set. For a re-opened symtab, only + m_compunit_symtab is set. */ + std::unique_ptr<compunit_symtab> m_owned_compunit_symtab; + compunit_symtab *m_compunit_symtab; /* Language of this compunit_symtab. */ enum language m_language; |