xref: /titanic_50/usr/src/lib/libdwarf/common/pro_die.h (revision f3e7f55e73a39377d55a030f124cc86b3b66a9cc)
1*f3e7f55eSRobert Mustacchi /*
2*f3e7f55eSRobert Mustacchi 
3*f3e7f55eSRobert Mustacchi   Copyright (C) 2000,2004 Silicon Graphics, Inc.  All Rights Reserved.
4*f3e7f55eSRobert Mustacchi 
5*f3e7f55eSRobert Mustacchi   This program is free software; you can redistribute it and/or modify it
6*f3e7f55eSRobert Mustacchi   under the terms of version 2.1 of the GNU Lesser General Public License
7*f3e7f55eSRobert Mustacchi   as published by the Free Software Foundation.
8*f3e7f55eSRobert Mustacchi 
9*f3e7f55eSRobert Mustacchi   This program is distributed in the hope that it would be useful, but
10*f3e7f55eSRobert Mustacchi   WITHOUT ANY WARRANTY; without even the implied warranty of
11*f3e7f55eSRobert Mustacchi   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12*f3e7f55eSRobert Mustacchi 
13*f3e7f55eSRobert Mustacchi   Further, this software is distributed without any warranty that it is
14*f3e7f55eSRobert Mustacchi   free of the rightful claim of any third person regarding infringement
15*f3e7f55eSRobert Mustacchi   or the like.  Any license provided herein, whether implied or
16*f3e7f55eSRobert Mustacchi   otherwise, applies only to this software file.  Patent licenses, if
17*f3e7f55eSRobert Mustacchi   any, provided herein do not apply to combinations of this program with
18*f3e7f55eSRobert Mustacchi   other software, or any other product whatsoever.
19*f3e7f55eSRobert Mustacchi 
20*f3e7f55eSRobert Mustacchi   You should have received a copy of the GNU Lesser General Public
21*f3e7f55eSRobert Mustacchi   License along with this program; if not, write the Free Software
22*f3e7f55eSRobert Mustacchi   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
23*f3e7f55eSRobert Mustacchi   USA.
24*f3e7f55eSRobert Mustacchi 
25*f3e7f55eSRobert Mustacchi   Contact information:  Silicon Graphics, Inc., 1500 Crittenden Lane,
26*f3e7f55eSRobert Mustacchi   Mountain View, CA 94043, or:
27*f3e7f55eSRobert Mustacchi 
28*f3e7f55eSRobert Mustacchi   http://www.sgi.com
29*f3e7f55eSRobert Mustacchi 
30*f3e7f55eSRobert Mustacchi   For further information regarding this notice, see:
31*f3e7f55eSRobert Mustacchi 
32*f3e7f55eSRobert Mustacchi   http://oss.sgi.com/projects/GenInfo/NoticeExplan
33*f3e7f55eSRobert Mustacchi 
34*f3e7f55eSRobert Mustacchi */
35*f3e7f55eSRobert Mustacchi 
36*f3e7f55eSRobert Mustacchi 
37*f3e7f55eSRobert Mustacchi 
38*f3e7f55eSRobert Mustacchi 
39*f3e7f55eSRobert Mustacchi /*
40*f3e7f55eSRobert Mustacchi 	This struct holds the abbreviation table, before they are written
41*f3e7f55eSRobert Mustacchi 	on disk. Holds a linked list of abbreviations, each consisting of
42*f3e7f55eSRobert Mustacchi 	a bitmap for attributes and a bitmap for forms
43*f3e7f55eSRobert Mustacchi */
44*f3e7f55eSRobert Mustacchi typedef struct Dwarf_P_Abbrev_s *Dwarf_P_Abbrev;
45*f3e7f55eSRobert Mustacchi 
46*f3e7f55eSRobert Mustacchi struct Dwarf_P_Abbrev_s {
47*f3e7f55eSRobert Mustacchi     Dwarf_Unsigned abb_idx;	/* index of abbreviation */
48*f3e7f55eSRobert Mustacchi     Dwarf_Tag abb_tag;		/* tag of die */
49*f3e7f55eSRobert Mustacchi     Dwarf_Ubyte abb_children;	/* if children are present */
50*f3e7f55eSRobert Mustacchi     Dwarf_ufixed *abb_attrs;	/* holds names of attrs */
51*f3e7f55eSRobert Mustacchi     Dwarf_ufixed *abb_forms;	/* forms of attributes */
52*f3e7f55eSRobert Mustacchi     int abb_n_attr;		/* num of attrs = # of forms */
53*f3e7f55eSRobert Mustacchi     Dwarf_P_Abbrev abb_next;
54*f3e7f55eSRobert Mustacchi };
55*f3e7f55eSRobert Mustacchi 
56*f3e7f55eSRobert Mustacchi /* used in pro_section.c */
57*f3e7f55eSRobert Mustacchi 
58*f3e7f55eSRobert Mustacchi int _dwarf_pro_add_AT_fde(Dwarf_P_Debug dbg, Dwarf_P_Die die,
59*f3e7f55eSRobert Mustacchi 			  Dwarf_Unsigned offset, Dwarf_Error * error);
60*f3e7f55eSRobert Mustacchi 
61*f3e7f55eSRobert Mustacchi int _dwarf_pro_add_AT_stmt_list(Dwarf_P_Debug dbg,
62*f3e7f55eSRobert Mustacchi 				Dwarf_P_Die first_die,
63*f3e7f55eSRobert Mustacchi 				Dwarf_Error * error);
64*f3e7f55eSRobert Mustacchi 
65*f3e7f55eSRobert Mustacchi int _dwarf_pro_add_AT_macro_info(Dwarf_P_Debug dbg,
66*f3e7f55eSRobert Mustacchi 				 Dwarf_P_Die first_die,
67*f3e7f55eSRobert Mustacchi 				 Dwarf_Unsigned offset,
68*f3e7f55eSRobert Mustacchi 				 Dwarf_Error * error);
69