diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-05 09:42:15 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-06-28 08:20:59 -0600 |
commit | d95d3aef9e63242e732e293e1f081d40d0d27eda (patch) | |
tree | 74018f795eac6296d0367c55cec2bd03db7671a3 /gdb/symfile.h | |
parent | 2512d7efdf49a1b8953932626bfdfa1da2367d9d (diff) | |
download | fsf-binutils-gdb-d95d3aef9e63242e732e293e1f081d40d0d27eda.zip fsf-binutils-gdb-d95d3aef9e63242e732e293e1f081d40d0d27eda.tar.gz fsf-binutils-gdb-d95d3aef9e63242e732e293e1f081d40d0d27eda.tar.bz2 |
Make dwarf2_free_objfile static
I noticed that dwarf2_free_objfile can be made static, by changing it
to be a registry cleanup function. This simplifies the code, as well,
because now symbol readers don't have to explicitly call it.
Tested by the buildbot.
gdb/ChangeLog
2018-06-28 Tom Tromey <tom@tromey.com>
* coffread.c (coff_symfile_finish): Update.
* xcoffread.c (xcoff_symfile_finish): Update.
* elfread.c (elf_symfile_finish): Update.
* symfile.h (dwarf2_free_objfile): Don't declare.
* dwarf2read.c (_initialize_dwarf2_read): Use
register_objfile_data_with_cleanup.
(dwarf2_free_objfile): Now static. Change signature.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r-- | gdb/symfile.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h index 1b47669..79c7687 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -616,8 +616,6 @@ extern bool dwarf2_initialize_objfile (struct objfile *objfile, extern void dwarf2_build_psymtabs (struct objfile *); extern void dwarf2_build_frame_info (struct objfile *); -void dwarf2_free_objfile (struct objfile *); - /* From mdebugread.c */ extern void mdebug_build_psymtabs (minimal_symbol_reader &, |