From ae2a50a9ae15c6a7fdb1f6255bb9bf45ad2a67d4 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 10 Mar 2025 14:55:12 -0400 Subject: attempt to revamp to the CU/TU list Change-Id: I1c8214413583d540c10c9a2322ef2a21f8bb54e7 --- gdb/dwarf2/section.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gdb/dwarf2/section.h') diff --git a/gdb/dwarf2/section.h b/gdb/dwarf2/section.h index 09bddd4..9b0a408 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. */ @@ -125,4 +127,12 @@ struct dwarf2_section_info bool is_virtual; }; +/* 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 */ -- cgit v1.1