aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/sect-names.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-06 09:26:39 -0700
committerTom Tromey <tom@tromey.com>2021-03-06 09:26:40 -0700
commit9938d15a01031e0aded4159adaa77d5b2b2319f6 (patch)
tree645f40859ccd77edd69dd75aaab6ad02b0d82729 /gdb/dwarf2/sect-names.h
parent1803565556f36692a0d49e3c1aeae1595a64709d (diff)
downloadgdb-9938d15a01031e0aded4159adaa77d5b2b2319f6.zip
gdb-9938d15a01031e0aded4159adaa77d5b2b2319f6.tar.gz
gdb-9938d15a01031e0aded4159adaa77d5b2b2319f6.tar.bz2
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.
Diffstat (limited to 'gdb/dwarf2/sect-names.h')
-rw-r--r--gdb/dwarf2/sect-names.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2/sect-names.h b/gdb/dwarf2/sect-names.h
index b753283..bf7ea2c 100644
--- a/gdb/dwarf2/sect-names.h
+++ b/gdb/dwarf2/sect-names.h
@@ -72,4 +72,7 @@ struct dwarf2_debug_sections {
int sentinel;
};
+/* Section names for ELF. */
+extern const struct dwarf2_debug_sections dwarf2_elf_names;
+
#endif /* GDB_DWARF2_SECT_NAMES_H */