diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-21 00:15:12 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-20 09:42:42 -0600 |
commit | 3c65e5b31cb5587773deff979099435b9687a0f4 (patch) | |
tree | b13e4e32406f0d0ef00600828133d4b564f7f7df /gdb/buildsym.h | |
parent | a60f3166aa946336c68e7a873d5eed6061b5733c (diff) | |
download | gdb-3c65e5b31cb5587773deff979099435b9687a0f4.zip gdb-3c65e5b31cb5587773deff979099435b9687a0f4.tar.gz gdb-3c65e5b31cb5587773deff979099435b9687a0f4.tar.bz2 |
Move current_subfile to buildsym_compunit
This moves the global current_subfile into buildsym_compunit.
gdb/ChangeLog
2018-07-20 Tom Tromey <tom@tromey.com>
* xcoffread.c (process_linenos): Update.
* stabsread.c (define_symbol, read_type, read_enum_type): Update.
* mdebugread.c (psymtab_to_symtab_1): Update.
* dwarf2read.c (setup_type_unit_groups)
(lnp_state_machine::handle_set_file, dwarf_record_line_p)
(lnp_state_machine::record_line, dwarf_decode_lines): Update.
* dbxread.c (process_one_symbol): Update.
* coffread.c (coff_symtab_read, enter_linenos)
(process_coff_symbol): Update.
* buildsym.h (current_subfile): Don't declare.
(get_current_subfile): Declare.
* buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
member.
(start_subfile, free_buildsym_compunit, push_subfile)
(prepare_for_building, start_symtab): Update.
(get_current_subfile): New function.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r-- | gdb/buildsym.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 32a2e1b..9a4856d 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -64,8 +64,6 @@ struct subfile struct symtab *symtab; }; -EXTERN struct subfile *current_subfile; - /* Record the symbols defined for each context in a list. We don't create a struct block for the context until we know how long to make it. */ @@ -274,6 +272,10 @@ extern struct context_stack *get_current_context_stack (); extern int get_context_stack_depth (); +/* Return the current subfile. */ + +extern struct subfile *get_current_subfile (); + #undef EXTERN #endif /* defined (BUILDSYM_H) */ |