]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move some DWARF code out of symfile.h
authorTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:40 +0000 (17:23 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 20 Mar 2021 23:23:40 +0000 (17:23 -0600)
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.

gdb/ChangeLog
gdb/dwarf2/read.h
gdb/symfile.h

index 0451a07811e83468e4f34412078e81489baf663a..5509d39d101bb2c007dd7150757c9e5236abf6ef 100644 (file)
@@ -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
index 5728ba68288241a0d30b68256b52e97beb82d57f..893234131d4f5c7398693665b4457759b431c635 100644 (file)
@@ -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 */
index 7f5545dc5ba168e2c82a9a5ec3fe123b6678aa01..5a5b4c4ac3ba87946cb57aa531b77852e62fbc73 100644 (file)
@@ -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
 {