summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-05-24 12:40:16 +0000
committerTristan Gingold <gingold@adacore.com>2011-05-24 12:40:16 +0000
commit0ddc05e6d067978556ae2fc241293648c4bf2ffa (patch)
tree3755d37029989a1652ba02e8bbcd971b9b3d3f22 /gdb/symfile.h
parented46a3cf6d6c9489594afc0e68b8c3a5bddab25e (diff)
downloadgdb-0ddc05e6d067978556ae2fc241293648c4bf2ffa.tar.gz
2011-05-24 Tristan Gingold <gingold@adacore.com>
* symfile.h (enum dwarf2_section_enum): New type. (dwarf2_get_section_info): New prototype. * dwarf2read.c (dwarf2_get_section_info): Replace parameter section_name by sect. Use a switch to select the info. * dwarf2-frame.c (warf2_get_section_info): Remove prototype. (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 35444756fb2..2b80ffd8dc4 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -555,6 +555,17 @@ extern struct cleanup *increment_reading_symtab (void);
extern int dwarf2_has_info (struct objfile *);
+/* 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 **, gdb_byte **,
+ bfd_size_type *);
+
extern int dwarf2_initialize_objfile (struct objfile *);
extern void dwarf2_build_psymtabs (struct objfile *);
extern void dwarf2_build_frame_info (struct objfile *);