aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-20 17:23:40 -0600
committerTom Tromey <tom@tromey.com>2021-03-20 17:23:42 -0600
commit7e9c0476a7085cbebdc818d163d5c3bd46da6388 (patch)
tree91e6634d8595b50acb4d97fdd0dfd05d7754aa2f /gdb/stabsread.h
parent75336a5a2aa345953d0a9de73205457b6d9e27c2 (diff)
downloadgdb-7e9c0476a7085cbebdc818d163d5c3bd46da6388.zip
gdb-7e9c0476a7085cbebdc818d163d5c3bd46da6388.tar.gz
gdb-7e9c0476a7085cbebdc818d163d5c3bd46da6388.tar.bz2
Change how some psymbol readers access the psymtab storage
Currently, all psymbol readers access the psymtab storage via the objfile. This is done directly at any spot requiring the storage. In order to move psymbols out of the objfile, the psymtab_storage must be passed in explicitly. This patch consolidates the access of the storage in a single place in these readers, updating various functions to pass the storage object around. "Hidden" uses, like "objfile->psymtabs ()", are also updated. The DWARF reader is not yet touched. That requires more complicated changes. gdb/ChangeLog 2021-03-20 Tom Tromey <tom@tromey.com> * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter. (xcoff_end_psymtab): Update. (scan_xcoff_symtab): Add partial_symtabs parameter. (xcoff_initial_scan): Update. * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter. * mdebugread.c (mdebug_build_psymtabs): Update. (parse_partial_symbols): Add partial_symtabs parameter. * dbxread.c (dbx_symfile_read): Update. (read_dbx_symtab): Add partial_symtabs parameter. (read_dbx_symtab): Update. (dbx_end_psymtab): Add partial_symtabs parameter.
Diffstat (limited to 'gdb/stabsread.h')
-rw-r--r--gdb/stabsread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/stabsread.h b/gdb/stabsread.h
index 8b5d70b..e9d5663 100644
--- a/gdb/stabsread.h
+++ b/gdb/stabsread.h
@@ -172,7 +172,8 @@ extern void finish_global_stabs (struct objfile *objfile);
they are only used by some stabs readers. */
extern legacy_psymtab *dbx_end_psymtab
- (struct objfile *objfile, legacy_psymtab *pst,
+ (struct objfile *objfile, psymtab_storage *partial_symtabs,
+ legacy_psymtab *pst,
const char **include_list, int num_includes,
int capping_symbol_offset, CORE_ADDR capping_text,
legacy_psymtab **dependency_list, int number_dependencies,