Remove dwarf2_cu::base_known
[deliverable/binutils-gdb.git] / gdb / dwarf2 / die.h
CommitLineData
c2d50fd0
TT
1/* DWARF DIEs
2
3 Copyright (C) 2003-2020 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
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.
11
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.
16
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/>. */
19
20#ifndef GDB_DWARF2_DIE_H
21#define GDB_DWARF2_DIE_H
22
23/* This data structure holds a complete die structure. */
24struct die_info
25{
26 /* DWARF-2 tag for this DIE. */
27 ENUM_BITFIELD(dwarf_tag) tag : 16;
28
29 /* Number of attributes */
30 unsigned char num_attrs;
31
32 /* True if we're presently building the full type name for the
33 type derived from this DIE. */
34 unsigned char building_fullname : 1;
35
36 /* True if this die is in process. PR 16581. */
37 unsigned char in_process : 1;
38
39 /* True if this DIE has children. */
40 unsigned char has_children : 1;
41
42 /* Abbrev number */
43 unsigned int abbrev;
44
45 /* Offset in .debug_info or .debug_types section. */
46 sect_offset sect_off;
47
48 /* The dies in a compilation unit form an n-ary tree. PARENT
49 points to this die's parent; CHILD points to the first child of
50 this node; and all the children of a given node are chained
51 together via their SIBLING fields. */
52 struct die_info *child; /* Its first child, if any. */
53 struct die_info *sibling; /* Its next sibling, if any. */
54 struct die_info *parent; /* Its parent, if any. */
55
56 /* An array of attributes, with NUM_ATTRS elements. There may be
57 zero, but it's not common and zero-sized arrays are not
58 sufficiently portable C. */
59 struct attribute attrs[1];
60};
61
62#endif /* GDB_DWARF2_DIE_H */
This page took 0.025311 seconds and 4 git commands to generate.