Move dwarf2_get_dwz_file to dwarf2/dwz.h
authorTom Tromey <tom@tromey.com>
Sat, 6 Mar 2021 16:26:39 +0000 (09:26 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 6 Mar 2021 16:26:40 +0000 (09:26 -0700)
commit9938d15a01031e0aded4159adaa77d5b2b2319f6
tree645f40859ccd77edd69dd75aaab6ad02b0d82729
parent1803565556f36692a0d49e3c1aeae1595a64709d
Move dwarf2_get_dwz_file to dwarf2/dwz.h

This moves dwarf2_get_dwz_file and some helper code to dwarf2/dwz.h.
The main benefit of this is just shrinking dwarf2/read.c a little bit.

gdb/ChangeLog
2021-03-06  Tom Tromey  <tom@tromey.com>

* dwarf2/sect-names.h (dwarf2_elf_names): Declare.
* dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
* dwarf2/read.c (dwarf2_elf_names): No longer static.
(locate_dwz_sections, dwz_search_other_debugdirs)
(dwarf2_get_dwz_file): Move to dwz.c.
* dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
read.h.
* dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
(dwarf2_get_dwz_file): Move from read.c.
gdb/ChangeLog
gdb/dwarf2/dwz.c
gdb/dwarf2/dwz.h
gdb/dwarf2/read.c
gdb/dwarf2/read.h
gdb/dwarf2/sect-names.h