Debian Codegraph @

src/lib/libdwarf/dwarf_die_deliv.h

raw
1 /*
2
3 Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 Portions Copyright (C) 2008-2023 David Anderson. All Rights Reserved.
5
6 This program is free software; you can redistribute it
7 and/or modify it under the terms of version 2.1 of the
8 GNU Lesser General Public License as published by the Free
9 Software Foundation.
10
11 This program is distributed in the hope that it would be
12 useful, but WITHOUT ANY WARRANTY; without even the implied
13 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE.
15
16 Further, this software is distributed without any warranty
17 that it is free of the rightful claim of any third person
18 regarding infringement or the like. Any license provided
19 herein, whether implied or otherwise, applies only to this
20 software file. Patent licenses, if any, provided herein
21 do not apply to combinations of this program with other
22 software, or any other product whatsoever.
23
24 You should have received a copy of the GNU Lesser General
25 Public License along with this program; if not, write the
26 Free Software Foundation, Inc., 51 Franklin Street - Fifth
27 Floor, Boston MA 02110-1301, USA.
28
29 */
30
31 /*
32 This struct holds information about an abbreviation.
33 It is put in the hash table for abbreviations for
34 a compile-unit. Typically the list contains
35 exactly one item (except with somewhat
36 pathological abbrev codes, and that likely
37 never happens).
38 It is dealloced by dwarf_finish().
39 */
40 struct Dwarf_Abbrev_List_s {
41 Dwarf_Unsigned abl_code;
42 Dwarf_Half abl_tag;
43 Dwarf_Half abl_has_child;
44 /* This reference count is just for
45 analysis, does not affect size
46 or correctness. */
47 Dwarf_Unsigned abl_reference_count;
48 /* Section global offset of this abbrev entry. */
49 Dwarf_Off abl_goffset;
50
51 /* Singly linked synonym list in case of duplicate
52 hash. */
53 Dwarf_Abbrev_List abl_next;
54
55 /* Points to start of attribute/form pairs in
56 the .debug_abbrev section for the abbrev. */
57 Dwarf_Byte_Ptr abl_abbrev_ptr;
58 /* The number of at/form[/implicitvalue] pairs
59 in this abbrev. */
60 Dwarf_Unsigned abl_abbrev_count;
61 Dwarf_Unsigned abl_implicit_const_count;
62
63 /* For indirect can only be completed at a real
64 point in the program, not just on the
65 .debug_abbrev content, and we want to know
66 of it at the first encounter. */
67 Dwarf_Bool abl_has_form_indirect;
68 /* The following are the decoded attribte and
69 FORM pairs, abl_abbrev_count of them. */
70 Dwarf_Half *abl_attr;
71 Dwarf_Half *abl_form;
72 /* If there are any DW_FORM_implicit_const
73 in *abl_form array the following is
74 an array of abl_abbrev_count slots
75 for an implicit const value. */
76 Dwarf_Signed *abl_implicit_const;
77
78 };