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