aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-05-24 12:40:17 +0000
committerTristan Gingold <gingold@adacore.com>2011-05-24 12:40:17 +0000
commit3017a003674a2cf413b3522a5875ce26fcd574c2 (patch)
treec0d0b52709275aa88b5f3ec73b98af9c903123f1 /gdb/symfile.h
parentee5683ab05022bd68d5200b74cf00def28785076 (diff)
downloadgdb-3017a003674a2cf413b3522a5875ce26fcd574c2.zip
gdb-3017a003674a2cf413b3522a5875ce26fcd574c2.tar.gz
gdb-3017a003674a2cf413b3522a5875ce26fcd574c2.tar.bz2
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 3544475..2b80ffd 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 *);