aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/section.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dwarf2/section.h')
-rw-r--r--gdb/dwarf2/section.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/dwarf2/section.h b/gdb/dwarf2/section.h
index fd6e34d..fbdb025 100644
--- a/gdb/dwarf2/section.h
+++ b/gdb/dwarf2/section.h
@@ -43,6 +43,8 @@
the real section this "virtual" section is contained in, and BUFFER,SIZE
describe the virtual section. */
+#include "dwarf2/types.h"
+
struct dwarf2_section_info
{
/* Return the name of this section. */
@@ -114,4 +116,12 @@ struct dwarf2_section_info
using dwarf2_section_info_up = std::unique_ptr<dwarf2_section_info>;
+/* A pair-like structure to represent an offset into a section. */
+
+struct section_and_offset
+{
+ const dwarf2_section_info *section;
+ sect_offset offset;
+};
+
#endif /* GDB_DWARF2_SECTION_H */