1 .\" Copyright (c) 2010 Joseph Koshy. All rights reserved.
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions
6 .\" 1. Redistributions of source code must retain the above copyright
7 .\" notice, this list of conditions and the following disclaimer.
8 .\" 2. Redistributions in binary form must reproduce the above copyright
9 .\" notice, this list of conditions and the following disclaimer in the
10 .\" documentation and/or other materials provided with the distribution.
12 .\" This software is provided by Joseph Koshy ``as is'' and
13 .\" any express or implied warranties, including, but not limited to, the
14 .\" implied warranties of merchantability and fitness for a particular purpose
15 .\" are disclaimed. in no event shall Joseph Koshy be liable
16 .\" for any direct, indirect, incidental, special, exemplary, or consequential
17 .\" damages (including, but not limited to, procurement of substitute goods
18 .\" or services; loss of use, data, or profits; or business interruption)
19 .\" however caused and on any theory of liability, whether in contract, strict
20 .\" liability, or tort (including negligence or otherwise) arising in any way
21 .\" out of the use of this software, even if advised of the possibility of
24 .\" $Id: dwarf_hasform.3 2073 2011-10-27 03:30:47Z jkoshy $
32 .Nm dwarf_whatform_direct
33 .Nd query attribute forms
40 .Fa "Dwarf_Attribute attr"
43 .Fa "Dwarf_Error *err"
47 .Fa "Dwarf_Attribute attr"
48 .Fa "Dwarf_Half *retform"
49 .Fa "Dwarf_Error *err"
52 .Fo dwarf_whatform_direct
53 .Fa "Dwarf_Attribute attr"
54 .Fa "Dwarf_Half *retform"
55 .Fa "Dwarf_Error *err"
60 indicates whether the DWARF attribute denoted by argument
62 has the attribute form specified by argument
64 If the attribute has the specified form, then
67 is set to a non-zero value, otherwise it is set to zero.
70 is non-NULL, it will be used to return an error descriptor in
75 sets the location specified by argument
77 to the attribute form code for the DWARF attribute referenced
80 If the attribute referenced by argument
82 has an indirect form attribute, this function will return the final
83 form for the attribute.
86 is non-NULL, it will be used to return an error descriptor in
90 .Fn dwarf_whatform_direct
91 sets the location specified by argument
93 to the attribute form code for the DWARF attribute referenced
96 If the form is an indirect form, the function sets the location
100 .Dv DW_FORM_indirect .
103 is non-NULL, it will be used to return an error descriptor in
106 These functions return
109 In case of an error, these functions return
114 These functions may fail with the following errors:
115 .Bl -tag -width ".Bq Er DW_DLE_ARGUMENT"
116 .It Bq Er DW_DLE_ARGUMENT