diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 21:14:36 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:18 -0500 |
commit | 36664835fa3f81503633024e0e834be4d84276e1 (patch) | |
tree | a00cbe27884e94579e4ddb559faf62356be3d4b1 /gdb/symtab.h | |
parent | 43b49762a17718fe13718238a8c0af9b62b682d4 (diff) | |
download | gdb-36664835fa3f81503633024e0e834be4d84276e1.zip gdb-36664835fa3f81503633024e0e834be4d84276e1.tar.gz gdb-36664835fa3f81503633024e0e834be4d84276e1.tar.bz2 |
gdb: add compunit_symtab::set_primary_filetab method
Add a method to set the primary filetab of the CU. This is currently
done in buildsym_compunit::end_symtab_with_blockvector.
Change-Id: I16c51a6b90a4cb4c0c5f183b0f2e12bc64b6fd74
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 3fa4d5f..23a348a 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1473,6 +1473,12 @@ struct compunit_symtab } } + /* Make PRIMARY_FILETAB the primary filetab of this compunit symtab. + + PRIMARY_FILETAB must already be a filetab of this compunit symtab. */ + + void set_primary_filetab (symtab *primary_filetab); + /* Return the primary filetab of the compunit. */ symtab *primary_filetab () const; |