diff options
author | Tom de Vries <tdevries@suse.de> | 2021-06-12 10:46:05 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-06-24 17:59:27 +0200 |
commit | ad5096892ca6a829f719533f94eaadecc0c5637d (patch) | |
tree | 3da373bbf1bcf08589d64b87f566aced8c8ea66e /gdb/psympriv.h | |
parent | af7349863ca426ecf789047ca17b960d6f9bbee9 (diff) | |
download | binutils-users/vries/lazy-symtab-expansion.zip binutils-users/vries/lazy-symtab-expansion.tar.gz binutils-users/vries/lazy-symtab-expansion.tar.bz2 |
[gdb/symtab] Add reset_compunit_symtabusers/vries/lazy-symtab-expansion
Add a new function reset_compunit_symtab.
Diffstat (limited to 'gdb/psympriv.h')
-rw-r--r-- | gdb/psympriv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h index 0d1507b..64ae72f 100644 --- a/gdb/psympriv.h +++ b/gdb/psympriv.h @@ -173,6 +173,9 @@ struct partial_symtab virtual struct compunit_symtab *get_compunit_symtab (struct objfile *) const = 0; + virtual void reset_compunit_symtab + (struct objfile *) = 0; + /* Return the raw low text address of this partial_symtab. */ CORE_ADDR raw_text_low () const { @@ -428,6 +431,11 @@ struct standard_psymtab : public partial_symtab return compunit_symtab; } + void reset_compunit_symtab (struct objfile *) override + { + compunit_symtab = nullptr; + } + /* True if the symtab corresponding to this psymtab has been readin. */ |