aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-20 17:23:40 -0600
committerTom Tromey <tom@tromey.com>2021-03-20 17:23:40 -0600
commit18038e6363e934634a45c6671b4808310a0035bb (patch)
treecd84cce9a2488d9124441151bce9c0652c370d8a
parent35891b4775d860b6fad15765bbf85be2b8101419 (diff)
downloadgdb-18038e6363e934634a45c6671b4808310a0035bb.zip
gdb-18038e6363e934634a45c6671b4808310a0035bb.tar.gz
gdb-18038e6363e934634a45c6671b4808310a0035bb.tar.bz2
Move some DWARF code out of symfile.h
This moves a bit of the DWARF-specific code out of symfile.h and into dwarf2/read.h. gdb/ChangeLog 2021-03-20 Tom Tromey <tom@tromey.com> * symfile.h (enum dwarf2_section_enum) (dwarf2_get_section_info): Move to dwarf2/read.h. * dwarf2/read.h (enum dwarf2_section_enum) (dwarf2_get_section_info): Move from symfile.h.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/dwarf2/read.h11
-rw-r--r--gdb/symfile.h11
3 files changed, 18 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0451a07..5509d39 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2021-03-20 Tom Tromey <tom@tromey.com>
+
+ * symfile.h (enum dwarf2_section_enum)
+ (dwarf2_get_section_info): Move to dwarf2/read.h.
+ * dwarf2/read.h (enum dwarf2_section_enum)
+ (dwarf2_get_section_info): Move from symfile.h.
+
2021-03-19 Pedro Alves <pedro@palves.net>
* thread.c (any_thread_of_inferior): Check if there's a selected
diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h
index 5728ba6..8932341 100644
--- a/gdb/dwarf2/read.h
+++ b/gdb/dwarf2/read.h
@@ -688,4 +688,15 @@ struct type *dwarf2_fetch_die_type_sect_off
/* When non-zero, dump line number entries as they are read in. */
extern unsigned int dwarf_line_debug;
+/* Dwarf2 sections that can be accessed by dwarf2_get_section_info. */
+enum dwarf2_section_enum {
+ DWARF2_DEBUG_FRAME,
+ DWARF2_EH_FRAME
+};
+
+extern void dwarf2_get_section_info (struct objfile *,
+ enum dwarf2_section_enum,
+ asection **, const gdb_byte **,
+ bfd_size_type *);
+
#endif /* DWARF2READ_H */
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 7f5545d..5a5b4c4 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -559,17 +559,6 @@ extern int dwarf2_has_info (struct objfile *,
const struct dwarf2_debug_sections *,
bool = false);
-/* Dwarf2 sections that can be accessed by dwarf2_get_section_info. */
-enum dwarf2_section_enum {
- DWARF2_DEBUG_FRAME,
- DWARF2_EH_FRAME
-};
-
-extern void dwarf2_get_section_info (struct objfile *,
- enum dwarf2_section_enum,
- asection **, const gdb_byte **,
- bfd_size_type *);
-
/* A DWARF names index variant. */
enum class dw_index_kind
{