xref: /titanic_50/usr/src/lib/libdwarf/common/dwarf_abbrev.h (revision f3e7f55e73a39377d55a030f124cc86b3b66a9cc)
1*f3e7f55eSRobert Mustacchi /*
2*f3e7f55eSRobert Mustacchi 
3*f3e7f55eSRobert Mustacchi   Copyright (C) 2000 Silicon Graphics, Inc.  All Rights Reserved.
4*f3e7f55eSRobert Mustacchi   Portions Copyright (C) 2008-2010  David Anderson. All Rights Reserved.
5*f3e7f55eSRobert Mustacchi 
6*f3e7f55eSRobert Mustacchi   This program is free software; you can redistribute it and/or modify it
7*f3e7f55eSRobert Mustacchi   under the terms of version 2.1 of the GNU Lesser General Public License
8*f3e7f55eSRobert Mustacchi   as published by the Free Software Foundation.
9*f3e7f55eSRobert Mustacchi 
10*f3e7f55eSRobert Mustacchi   This program is distributed in the hope that it would be useful, but
11*f3e7f55eSRobert Mustacchi   WITHOUT ANY WARRANTY; without even the implied warranty of
12*f3e7f55eSRobert Mustacchi   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13*f3e7f55eSRobert Mustacchi 
14*f3e7f55eSRobert Mustacchi   Further, this software is distributed without any warranty that it is
15*f3e7f55eSRobert Mustacchi   free of the rightful claim of any third person regarding infringement
16*f3e7f55eSRobert Mustacchi   or the like.  Any license provided herein, whether implied or
17*f3e7f55eSRobert Mustacchi   otherwise, applies only to this software file.  Patent licenses, if
18*f3e7f55eSRobert Mustacchi   any, provided herein do not apply to combinations of this program with
19*f3e7f55eSRobert Mustacchi   other software, or any other product whatsoever.
20*f3e7f55eSRobert Mustacchi 
21*f3e7f55eSRobert Mustacchi   You should have received a copy of the GNU Lesser General Public
22*f3e7f55eSRobert Mustacchi   License along with this program; if not, write the Free Software
23*f3e7f55eSRobert Mustacchi   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
24*f3e7f55eSRobert Mustacchi   USA.
25*f3e7f55eSRobert Mustacchi 
26*f3e7f55eSRobert Mustacchi   Contact information:  Silicon Graphics, Inc., 1500 Crittenden Lane,
27*f3e7f55eSRobert Mustacchi   Mountain View, CA 94043, or:
28*f3e7f55eSRobert Mustacchi 
29*f3e7f55eSRobert Mustacchi   http://www.sgi.com
30*f3e7f55eSRobert Mustacchi 
31*f3e7f55eSRobert Mustacchi   For further information regarding this notice, see:
32*f3e7f55eSRobert Mustacchi 
33*f3e7f55eSRobert Mustacchi   http://oss.sgi.com/projects/GenInfo/NoticeExplan
34*f3e7f55eSRobert Mustacchi 
35*f3e7f55eSRobert Mustacchi */
36*f3e7f55eSRobert Mustacchi 
37*f3e7f55eSRobert Mustacchi 
38*f3e7f55eSRobert Mustacchi 
39*f3e7f55eSRobert Mustacchi 
40*f3e7f55eSRobert Mustacchi /* In a given CU, one of these is (eventually) set up
41*f3e7f55eSRobert Mustacchi    for every abbreviation we need to find (and for all.
42*f3e7f55eSRobert Mustacchi    those ealier in the abbreviations for that CU).
43*f3e7f55eSRobert Mustacchi    So we don't want elements needlessly big.
44*f3e7f55eSRobert Mustacchi */
45*f3e7f55eSRobert Mustacchi struct Dwarf_Abbrev_s {
46*f3e7f55eSRobert Mustacchi     /* No TAG should exceed DW_TAG_hi_user, 0xffff, but
47*f3e7f55eSRobert Mustacchi        we do allow a larger value here. */
48*f3e7f55eSRobert Mustacchi     Dwarf_Word ab_tag;
49*f3e7f55eSRobert Mustacchi     /* Abbreviations are numbered (normally sequentially from
50*f3e7f55eSRobert Mustacchi        1 and so 16 bits is not enough!  */
51*f3e7f55eSRobert Mustacchi     Dwarf_Word ab_code;
52*f3e7f55eSRobert Mustacchi     Dwarf_Small ab_has_child;
53*f3e7f55eSRobert Mustacchi     Dwarf_Byte_Ptr ab_abbrev_ptr;
54*f3e7f55eSRobert Mustacchi     Dwarf_Debug ab_dbg;
55*f3e7f55eSRobert Mustacchi };
56