xref: /titanic_44/usr/src/tools/ctf/dwarf/common/dwarf_abbrev.h (revision 56b2bdd1f04d465cfe4a95b88ae5cba5884154e4)
1 /*
2 
3   Copyright (C) 2000 Silicon Graphics, Inc.  All Rights Reserved.
4   Portions Copyright (C) 2008-2010  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   Contact information:  Silicon Graphics, Inc., 1500 Crittenden Lane,
27   Mountain View, CA 94043, or:
28 
29   http://www.sgi.com
30 
31   For further information regarding this notice, see:
32 
33   http://oss.sgi.com/projects/GenInfo/NoticeExplan
34 
35 */
36 
37 
38 
39 
40 /* In a given CU, one of these is (eventually) set up
41    for every abbreviation we need to find (and for all.
42    those ealier in the abbreviations for that CU).
43    So we don't want elements needlessly big.
44 */
45 struct Dwarf_Abbrev_s {
46     /* No TAG should exceed DW_TAG_hi_user, 0xffff, but
47        we do allow a larger value here. */
48     Dwarf_Word ab_tag;
49     /* Abbreviations are numbered (normally sequentially from
50        1 and so 16 bits is not enough!  */
51     Dwarf_Word ab_code;
52     Dwarf_Small ab_has_child;
53     Dwarf_Byte_Ptr ab_abbrev_ptr;
54     Dwarf_Debug ab_dbg;
55 };
56