diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-18 09:36:15 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-18 09:37:50 -0800 |
commit | 4d663531f209bcbd7209ef2f1a02e0b0d4e7385a (patch) | |
tree | b1256ba7edd0060d1ec3b2dd66ca6b56b17d661b /gdb/buildsym.h | |
parent | 0593bd3ace3cb64775f4d9e8039da919c26803cd (diff) | |
download | gdb-4d663531f209bcbd7209ef2f1a02e0b0d4e7385a.zip gdb-4d663531f209bcbd7209ef2f1a02e0b0d4e7385a.tar.gz gdb-4d663531f209bcbd7209ef2f1a02e0b0d4e7385a.tar.bz2 |
buildsym API cleanup
gdb/ChangeLog:
* buildsym.c (buildsym_objfile): New static global.
(buildsym_comp_dir): New static global.
(finish_block_internal): Delete arg objfile. All callers updated.
(finish_block): Delete arg objfile. All callers updated.
(start_subfile): Delete arg dirname. All callers updated.
(patch_subfile_names): Update buildsym_comp_dir.
(get_macro_table): Delete arg objfile. All callers updated.
(start_symtab): New arg objfile. All callers updated.
Rename arg dirname to comp_dir.
(reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
(end_symtab_get_static_block): Delete arg objfile. All callers
updated.
(end_symtab_without_blockvector): Ditto.
(end_symtab_with_blockvector): Ditto.
(end_symtab_from_static_block): Ditto.
(end_symtab): Ditto.
(end_expandable_symtab): Ditto.
(augment_type_symtab): Ditto.
* coffread.c (coff_start_symtab): New arg objfile. All callers
updated.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r-- | gdb/buildsym.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 8ce01b2..93011f2 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -192,15 +192,14 @@ extern struct symbol *find_symbol_in_list (struct pending *list, extern struct block *finish_block (struct symbol *symbol, struct pending **listhead, struct pending_block *old_blocks, - CORE_ADDR start, CORE_ADDR end, - struct objfile *objfile); + CORE_ADDR start, CORE_ADDR end); extern void record_block_range (struct block *, CORE_ADDR start, CORE_ADDR end_inclusive); extern void really_free_pendings (void *dummy); -extern void start_subfile (const char *name, const char *dirname); +extern void start_subfile (const char *name); extern void patch_subfile_names (struct subfile *subfile, char *name); @@ -209,24 +208,19 @@ extern void push_subfile (void); extern char *pop_subfile (void); extern struct block *end_symtab_get_static_block (CORE_ADDR end_addr, - struct objfile *objfile, int expandable, int required); extern struct symtab *end_symtab_from_static_block (struct block *static_block, - struct objfile *objfile, int section, int expandable); -extern struct symtab *end_symtab (CORE_ADDR end_addr, - struct objfile *objfile, int section); +extern struct symtab *end_symtab (CORE_ADDR end_addr, int section); extern struct symtab *end_expandable_symtab (CORE_ADDR end_addr, - struct objfile *objfile, int section); -extern void augment_type_symtab (struct objfile *objfile, - struct symtab *primary_symtab); +extern void augment_type_symtab (struct symtab *primary_symtab); /* Defined in stabsread.c. */ @@ -242,7 +236,8 @@ extern struct context_stack *pop_context (void); extern record_line_ftype record_line; -extern void start_symtab (const char *name, const char *dirname, +extern void start_symtab (struct objfile *objfile, + const char *name, const char *dirname, CORE_ADDR start_addr); extern void restart_symtab (CORE_ADDR start_addr); @@ -277,8 +272,7 @@ extern const char *get_last_source_file (void); /* Return the macro table. */ -extern struct macro_table *get_macro_table (struct objfile *objfile, - const char *comp_dir); +extern struct macro_table *get_macro_table (const char *comp_dir); #undef EXTERN |