xref: /illumos-gate/usr/src/lib/libdwarf/common/dwarf_die_deliv.h (revision 78801af7286cd73dbc996d470f789e75993cf15d)
1 /*
2 
3   Copyright (C) 2000 Silicon Graphics, Inc.  All Rights Reserved.
4   Portions Copyright (C) 2008-2011  David Anderson. All Rights Reserved.
5 
6   This program is free software; you can redistribute it and/or modify it
7   under the terms of version 2.1 of the GNU Lesser General Public License
8   as published by the Free Software Foundation.
9 
10   This program is distributed in the hope that it would be useful, but
11   WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 
14   Further, this software is distributed without any warranty that it is
15   free of the rightful claim of any third person regarding infringement
16   or the like.  Any license provided herein, whether implied or
17   otherwise, applies only to this software file.  Patent licenses, if
18   any, provided herein do not apply to combinations of this program with
19   other software, or any other product whatsoever.
20 
21   You should have received a copy of the GNU Lesser General Public
22   License along with this program; if not, write the Free Software
23   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
24   USA.
25 
26 */
27 
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.
35 
36     It's by dwarf_finish().
37 */
38 struct Dwarf_Abbrev_List_s {
39     Dwarf_Unsigned abl_code;
40     Dwarf_Half abl_tag;
41     Dwarf_Half abl_has_child;
42     /* Section global offset of this abbrev entry. */
43     Dwarf_Off      abl_goffset;
44 
45     /*  Singly linked synonym list in case of duplicate
46         hash. */
47     struct Dwarf_Abbrev_List_s *abl_next;
48 
49     /*  Points to start of attribute/form pairs in
50         the .debug_abbrev section for the abbrev. */
51     Dwarf_Byte_Ptr abl_abbrev_ptr;
52 
53     /*  The number of at/form[/implicitvalue] pairs
54         in this abbrev. */
55     Dwarf_Unsigned abl_count;
56 };
57