1 .\" $NetBSD: dwarf_hasform.3,v 1.2 2014/03/09 16:58:04 christos Exp $
3 .\" Copyright (c) 2010 Joseph Koshy. All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" This software is provided by Joseph Koshy ``as is'' and
15 .\" any express or implied warranties, including, but not limited to, the
16 .\" implied warranties of merchantability and fitness for a particular purpose
17 .\" are disclaimed. in no event shall Joseph Koshy be liable
18 .\" for any direct, indirect, incidental, special, exemplary, or consequential
19 .\" damages (including, but not limited to, procurement of substitute goods
20 .\" or services; loss of use, data, or profits; or business interruption)
21 .\" however caused and on any theory of liability, whether in contract, strict
22 .\" liability, or tort (including negligence or otherwise) arising in any way
23 .\" out of the use of this software, even if advised of the possibility of
26 .\" Id: dwarf_hasform.3 2073 2011-10-27 03:30:47Z jkoshy
34 .Nm dwarf_whatform_direct
35 .Nd query attribute forms
42 .Fa "Dwarf_Attribute attr"
45 .Fa "Dwarf_Error *err"
49 .Fa "Dwarf_Attribute attr"
50 .Fa "Dwarf_Half *retform"
51 .Fa "Dwarf_Error *err"
54 .Fo dwarf_whatform_direct
55 .Fa "Dwarf_Attribute attr"
56 .Fa "Dwarf_Half *retform"
57 .Fa "Dwarf_Error *err"
62 indicates whether the DWARF attribute denoted by argument
64 has the attribute form specified by argument
66 If the attribute has the specified form, then
69 is set to a non-zero value, otherwise it is set to zero.
72 is non-NULL, it will be used to return an error descriptor in
77 sets the location specified by argument
79 to the attribute form code for the DWARF attribute referenced
82 If the attribute referenced by argument
84 has an indirect form attribute, this function will return the final
85 form for the attribute.
88 is non-NULL, it will be used to return an error descriptor in
92 .Fn dwarf_whatform_direct
93 sets the location specified by argument
95 to the attribute form code for the DWARF attribute referenced
98 If the form is an indirect form, the function sets the location
102 .Dv DW_FORM_indirect .
105 is non-NULL, it will be used to return an error descriptor in
108 These functions return
111 In case of an error, these functions return
116 These functions may fail with the following errors:
117 .Bl -tag -width ".Bq Er DW_DLE_ARGUMENT"
118 .It Bq Er DW_DLE_ARGUMENT