1 .\" Copyright (c) 2010 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 2073 2011-10-27 03:30:47Z jkoshy $
31 .Nm dwarf_arrayorder ,
38 .Nd retrieve the value of a DWARF attribute
46 .Fa "Dwarf_Unsigned *ret_order"
47 .Fa "Dwarf_Error *err"
52 .Fa "Dwarf_Unsigned *ret_size"
53 .Fa "Dwarf_Error *err"
58 .Fa "Dwarf_Unsigned *ret_size"
59 .Fa "Dwarf_Error *err"
64 .Fa "Dwarf_Unsigned *ret_size"
65 .Fa "Dwarf_Error *err"
70 .Fa "Dwarf_Addr *ret_highpc"
71 .Fa "Dwarf_Error *err"
76 .Fa "Dwarf_Addr *ret_lowpc"
77 .Fa "Dwarf_Error *err"
82 .Fa "Dwarf_Unsigned *ret_lang"
83 .Fa "Dwarf_Error *err"
86 These convenience functions are used to retrieve DWARF attribute
87 values associated with a Debugging Information Entry (DIE) descriptor
90 These functions store the value of the requested attribute into the
91 location pointed to by their second argument, provided that the requested
92 attribute exists in the debugging information entry.
94 The list of functions and the DWARF attribute that they retrieve are:
96 .Bl -tag -width ".Fn dwarf_arrayorder" -compact
97 .It Fn dwarf_arrayorder
101 .It Fn dwarf_bitoffset
109 .It Fn dwarf_bytesize
127 These functions return
128 .Dv DW_DLV_OK on success.
130 If the debugging information entry descriptor denoted by argument
132 does not contain the requested attribute, these functions return
136 For other errors, they return
141 These functions can fail with the following errors:
142 .Bl -tag -width ".Bq Er DW_DLE_ARGUMENT"
143 .It Bq Er DW_DLE_ARGUMENT
153 .It Bq Er DW_DLE_NO_ENTRY
156 had no requested attribute.
161 .Xr dwarf_attrlist 3 ,