1 .\" Copyright (c) 2010,2014 Kai Wang
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $Id: dwarf_highpc.3 3092 2014-09-02 22:09:30Z kaiwang27 $
31 .Nm dwarf_arrayorder ,
39 .Nd retrieve the value of a DWARF attribute
47 .Fa "Dwarf_Unsigned *ret_order"
48 .Fa "Dwarf_Error *err"
53 .Fa "Dwarf_Unsigned *ret_size"
54 .Fa "Dwarf_Error *err"
59 .Fa "Dwarf_Unsigned *ret_size"
60 .Fa "Dwarf_Error *err"
65 .Fa "Dwarf_Unsigned *ret_size"
66 .Fa "Dwarf_Error *err"
71 .Fa "Dwarf_Addr *ret_highpc"
72 .Fa "Dwarf_Error *err"
77 .Fa "Dwarf_Addr *ret_highpc"
78 .Fa "Dwarf_Half *ret_form"
79 .Fa "enum Dwarf_Form_Class *ret_class"
80 .Fa "Dwarf_Error *err"
85 .Fa "Dwarf_Addr *ret_lowpc"
86 .Fa "Dwarf_Error *err"
91 .Fa "Dwarf_Unsigned *ret_lang"
92 .Fa "Dwarf_Error *err"
95 These convenience functions are used to retrieve DWARF attribute
96 values associated with a Debugging Information Entry (DIE) descriptor
99 These functions store the value of the requested attribute into the
100 location pointed to by their second argument, provided that the requested
101 attribute exists in the debugging information entry.
103 The list of functions and the DWARF attribute that they retrieve are:
105 .Bl -tag -width ".Fn dwarf_arrayorder" -compact
106 .It Fn dwarf_arrayorder
110 .It Fn dwarf_bitoffset
118 .It Fn dwarf_bytesize
126 .It Fn dwarf_highpc_b
142 is an enhanced version of function
144 It sets the location specified by argument
146 to the form code of the attribute
148 and sets the location specified by argument
150 to the class of that form.
151 A value of NULL may be used for either of the arguments
155 if the caller is not interested in the respective value.
157 These functions return
158 .Dv DW_DLV_OK on success.
160 If the debugging information entry descriptor denoted by argument
162 does not contain the requested attribute, these functions return
166 For other errors, they return
171 These functions can fail with the following errors:
172 .Bl -tag -width ".Bq Er DW_DLE_ARGUMENT"
173 .It Bq Er DW_DLE_ARGUMENT
183 .It Bq Er DW_DLE_NO_ENTRY
186 had no requested attribute.
191 .Xr dwarf_attrlist 3 ,
192 .Xr dwarf_hasattr 3 ,
193 .Xr dwarf_get_form_class 3