Add translations for various sub-directories
[binutils-gdb.git] / gdb / dwarf2 / types.h
blob8cb689d652b9f1e2221a1ca7c5aaa18dc0e23e18
1 /* Common internal types for the DWARF reader
3 Copyright (C) 2017-2024 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 #ifndef GDB_DWARF2_TYPES_H
21 #define GDB_DWARF2_TYPES_H
23 #include "gdbsupport/offset-type.h"
24 #include "gdbsupport/underlying.h"
26 /* Offset relative to the start of its containing CU (compilation
27 unit). */
28 DEFINE_OFFSET_TYPE (cu_offset, unsigned int);
30 /* Offset relative to the start of its .debug_info or .debug_types
31 section. */
32 DEFINE_OFFSET_TYPE (sect_offset, uint64_t);
34 static inline const char *
35 sect_offset_str (sect_offset offset)
37 return hex_string (to_underlying (offset));
40 #endif /* GDB_DWARF2_TYPES_H */