diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-05-24 12:40:17 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2011-05-24 12:40:17 +0000 |
commit | 3017a003674a2cf413b3522a5875ce26fcd574c2 (patch) | |
tree | c0d0b52709275aa88b5f3ec73b98af9c903123f1 /gdb/symfile.h | |
parent | ../commit.txt~ (diff) | |
download | binutils-gdb-3017a003674a2cf413b3522a5875ce26fcd574c2.tar.gz binutils-gdb-3017a003674a2cf413b3522a5875ce26fcd574c2.tar.bz2 binutils-gdb-3017a003674a2cf413b3522a5875ce26fcd574c2.zip |
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.h | 11 |
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 *); |