xref: /freebsd/contrib/elftoolchain/libdwarf/dwarf_get_AT_name.3 (revision 7bb441c866781ec14b3e79a4f3e95fd319ab7ff9)
12de3b87aSKai Wang.\" Copyright (c) 2011 Kai Wang
22de3b87aSKai Wang.\" All rights reserved.
32de3b87aSKai Wang.\"
42de3b87aSKai Wang.\" Redistribution and use in source and binary forms, with or without
52de3b87aSKai Wang.\" modification, are permitted provided that the following conditions
62de3b87aSKai Wang.\" are met:
72de3b87aSKai Wang.\" 1. Redistributions of source code must retain the above copyright
82de3b87aSKai Wang.\"    notice, this list of conditions and the following disclaimer.
92de3b87aSKai Wang.\" 2. Redistributions in binary form must reproduce the above copyright
102de3b87aSKai Wang.\"    notice, this list of conditions and the following disclaimer in the
112de3b87aSKai Wang.\"    documentation and/or other materials provided with the distribution.
122de3b87aSKai Wang.\"
132de3b87aSKai Wang.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
142de3b87aSKai Wang.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
152de3b87aSKai Wang.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
162de3b87aSKai Wang.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
172de3b87aSKai Wang.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
182de3b87aSKai Wang.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
192de3b87aSKai Wang.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
202de3b87aSKai Wang.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
212de3b87aSKai Wang.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
222de3b87aSKai Wang.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
232de3b87aSKai Wang.\" SUCH DAMAGE.
242de3b87aSKai Wang.\"
25ae500c1fSEd Maste.\" $Id: dwarf_get_AT_name.3 3644 2018-10-15 19:55:01Z jkoshy $
262de3b87aSKai Wang.\"
27*7bb441c8SMark Johnston.Dd January 30, 2023
282de3b87aSKai Wang.Dt DWARF_GET_AT_NAME 3
29ae500c1fSEd Maste.Os
302de3b87aSKai Wang.Sh NAME
312de3b87aSKai Wang.Nm dwarf_get_ACCESS_name ,
322de3b87aSKai Wang.Nm dwarf_get_AT_name ,
332de3b87aSKai Wang.Nm dwarf_get_ATE_name ,
342de3b87aSKai Wang.Nm dwarf_get_CC_name ,
352de3b87aSKai Wang.Nm dwarf_get_CFA_name ,
362de3b87aSKai Wang.Nm dwarf_get_CHILDREN_name ,
372de3b87aSKai Wang.Nm dwarf_get_DS_name ,
382de3b87aSKai Wang.Nm dwarf_get_DSC_name ,
392de3b87aSKai Wang.Nm dwarf_get_EH_name ,
402de3b87aSKai Wang.Nm dwarf_get_END_name ,
412de3b87aSKai Wang.Nm dwarf_get_FORM_name ,
422de3b87aSKai Wang.Nm dwarf_get_ID_name ,
432de3b87aSKai Wang.Nm dwarf_get_INL_name ,
442de3b87aSKai Wang.Nm dwarf_get_LANG_name ,
452de3b87aSKai Wang.Nm dwarf_get_LNE_name ,
462de3b87aSKai Wang.Nm dwarf_get_LNS_name ,
472de3b87aSKai Wang.Nm dwarf_get_MACINFO_name ,
482de3b87aSKai Wang.Nm dwarf_get_OP_name ,
492de3b87aSKai Wang.Nm dwarf_get_ORD_name ,
502de3b87aSKai Wang.Nm dwarf_get_TAG_name ,
51*7bb441c8SMark Johnston.Nm dwarf_get_UT_name ,
522de3b87aSKai Wang.Nm dwarf_get_VIRTUALITY_name ,
532de3b87aSKai Wang.Nm dwarf_get_VIS_name
542de3b87aSKai Wang.Nd retrieve the symbolic names of DWARF constants
552de3b87aSKai Wang.Sh LIBRARY
562de3b87aSKai Wang.Lb libdwarf
572de3b87aSKai Wang.Sh SYNOPSIS
582de3b87aSKai Wang.In libdwarf.h
592de3b87aSKai Wang.Ft int
602de3b87aSKai Wang.Fo dwarf_get_ACCESS_name
612de3b87aSKai Wang.Fa "unsigned val"
622de3b87aSKai Wang.Fa "char **str"
632de3b87aSKai Wang.Fc
642de3b87aSKai Wang.Ft int
652de3b87aSKai Wang.Fo dwarf_get_AT_name
662de3b87aSKai Wang.Fa "unsigned val"
672de3b87aSKai Wang.Fa "char **str"
682de3b87aSKai Wang.Fc
692de3b87aSKai Wang.Ft int
702de3b87aSKai Wang.Fo dwarf_get_ATE_name
712de3b87aSKai Wang.Fa "unsigned val"
722de3b87aSKai Wang.Fa "char **str"
732de3b87aSKai Wang.Fc
742de3b87aSKai Wang.Ft int
752de3b87aSKai Wang.Fo dwarf_get_CC_name
762de3b87aSKai Wang.Fa "unsigned val"
772de3b87aSKai Wang.Fa "char **str"
782de3b87aSKai Wang.Fc
792de3b87aSKai Wang.Ft int
802de3b87aSKai Wang.Fo dwarf_get_CFA_name
812de3b87aSKai Wang.Fa "unsigned val"
822de3b87aSKai Wang.Fa "char **str"
832de3b87aSKai Wang.Fc
842de3b87aSKai Wang.Ft int
852de3b87aSKai Wang.Fo dwarf_get_CHILDREN_name
862de3b87aSKai Wang.Fa "unsigned val"
872de3b87aSKai Wang.Fa "char **str"
882de3b87aSKai Wang.Fc
892de3b87aSKai Wang.Ft int
902de3b87aSKai Wang.Fo dwarf_get_DS_name
912de3b87aSKai Wang.Fa "unsigned val"
922de3b87aSKai Wang.Fa "char **str"
932de3b87aSKai Wang.Fc
942de3b87aSKai Wang.Ft int
952de3b87aSKai Wang.Fo dwarf_get_DSC_name
962de3b87aSKai Wang.Fa "unsigned val"
972de3b87aSKai Wang.Fa "char **str"
982de3b87aSKai Wang.Fc
992de3b87aSKai Wang.Ft int
1002de3b87aSKai Wang.Fo dwarf_get_EH_name
1012de3b87aSKai Wang.Fa "unsigned val"
1022de3b87aSKai Wang.Fa "char **str"
1032de3b87aSKai Wang.Fc
1042de3b87aSKai Wang.Ft int
1052de3b87aSKai Wang.Fo dwarf_get_END_name
1062de3b87aSKai Wang.Fa "unsigned val"
1072de3b87aSKai Wang.Fa "char **str"
1082de3b87aSKai Wang.Fc
1092de3b87aSKai Wang.Ft int
1102de3b87aSKai Wang.Fo dwarf_get_FORM_name
1112de3b87aSKai Wang.Fa "unsigned val"
1122de3b87aSKai Wang.Fa "char **str"
1132de3b87aSKai Wang.Fc
1142de3b87aSKai Wang.Ft int
1152de3b87aSKai Wang.Fo dwarf_get_ID_name
1162de3b87aSKai Wang.Fa "unsigned val"
1172de3b87aSKai Wang.Fa "char **str"
1182de3b87aSKai Wang.Fc
1192de3b87aSKai Wang.Ft int
1202de3b87aSKai Wang.Fo dwarf_get_INL_name
1212de3b87aSKai Wang.Fa "unsigned val"
1222de3b87aSKai Wang.Fa "char **str"
1232de3b87aSKai Wang.Fc
1242de3b87aSKai Wang.Ft int
1252de3b87aSKai Wang.Fo dwarf_get_LANG_name
1262de3b87aSKai Wang.Fa "unsigned val"
1272de3b87aSKai Wang.Fa "char **str"
1282de3b87aSKai Wang.Fc
1292de3b87aSKai Wang.Ft int
1302de3b87aSKai Wang.Fo dwarf_get_LNE_name
1312de3b87aSKai Wang.Fa "unsigned val"
1322de3b87aSKai Wang.Fa "char **str"
1332de3b87aSKai Wang.Fc
1342de3b87aSKai Wang.Ft int
1352de3b87aSKai Wang.Fo dwarf_get_LNS_name
1362de3b87aSKai Wang.Fa "unsigned val"
1372de3b87aSKai Wang.Fa "char **str"
1382de3b87aSKai Wang.Fc
1392de3b87aSKai Wang.Ft int
1402de3b87aSKai Wang.Fo dwarf_get_MACINFO_name
1412de3b87aSKai Wang.Fa "unsigned val"
1422de3b87aSKai Wang.Fa "char **str"
1432de3b87aSKai Wang.Fc
1442de3b87aSKai Wang.Ft int
1452de3b87aSKai Wang.Fo dwarf_get_OP_name
1462de3b87aSKai Wang.Fa "unsigned val"
1472de3b87aSKai Wang.Fa "char **str"
1482de3b87aSKai Wang.Fc
1492de3b87aSKai Wang.Ft int
1502de3b87aSKai Wang.Fo dwarf_get_ORD_name
1512de3b87aSKai Wang.Fa "unsigned val"
1522de3b87aSKai Wang.Fa "char **str"
1532de3b87aSKai Wang.Fc
1542de3b87aSKai Wang.Ft int
1552de3b87aSKai Wang.Fo dwarf_get_TAG_name
1562de3b87aSKai Wang.Fa "unsigned val"
1572de3b87aSKai Wang.Fa "char **str"
1582de3b87aSKai Wang.Fc
1592de3b87aSKai Wang.Ft int
160*7bb441c8SMark Johnston.Fo dwarf_get_UT_name
161*7bb441c8SMark Johnston.Fa "unsigned unit_type"
162*7bb441c8SMark Johnston.Fa "const char **str"
163*7bb441c8SMark Johnston.Fc
164*7bb441c8SMark Johnston.Ft int
1652de3b87aSKai Wang.Fo dwarf_get_VIRTUALITY_name
1662de3b87aSKai Wang.Fa "unsigned val"
1672de3b87aSKai Wang.Fa "char **str"
1682de3b87aSKai Wang.Fc
1692de3b87aSKai Wang.Ft int
1702de3b87aSKai Wang.Fo dwarf_get_VIS_name
1712de3b87aSKai Wang.Fa "unsigned val"
1722de3b87aSKai Wang.Fa "char **str"
1732de3b87aSKai Wang.Fc
1742de3b87aSKai Wang.Sh DESCRIPTION
1752de3b87aSKai WangThese functions return the symbolic name of a numeric DWARF constant.
1762de3b87aSKai Wang.Pp
1772de3b87aSKai WangArgument
1782de3b87aSKai Wang.Ar val
1792de3b87aSKai Wangspecifies the numeric value whose symbolic name is desired.
1802de3b87aSKai Wang.Pp
1812de3b87aSKai WangArgument
1822de3b87aSKai Wang.Ar str
1832de3b87aSKai Wangshould point to a location which will hold the returned
1842de3b87aSKai WangNUL-terminated string containing the symbolic name of the
1852de3b87aSKai Wangspecified value.
1862de3b87aSKai Wang.Pp
1872de3b87aSKai WangThe list of functions and the DWARF constants that they accept are:
1882de3b87aSKai Wang.Pp
1892de3b87aSKai Wang.Bl -tag -width ".Fn dwarf_get_VIRTUALITY_name" -compact
1902de3b87aSKai Wang.It Fn dwarf_get_ACCESS_name
1912de3b87aSKai Wang.Dv DW_ACCESS_*
1922de3b87aSKai Wangconstants.
1932de3b87aSKai Wang.It Fn dwarf_get_AT_name
1942de3b87aSKai Wang.Dv DW_AT_*
1952de3b87aSKai Wangconstants.
1962de3b87aSKai Wang.It Fn dwarf_get_ATE_name
1972de3b87aSKai Wang.Dv DW_ATE_*
1982de3b87aSKai Wangconstants.
1992de3b87aSKai Wang.It Fn dwarf_get_CC_name
2002de3b87aSKai Wang.Dv DW_CC_*
2012de3b87aSKai Wangconstants.
2022de3b87aSKai Wang.It Fn dwarf_get_CFA_name
2032de3b87aSKai Wang.Dv DW_CFA_*
2042de3b87aSKai Wangconstants.
2052de3b87aSKai Wang.It Fn dwarf_get_CHILDREN_name
2062de3b87aSKai Wang.Dv DW_CHILDREN_*
2072de3b87aSKai Wangconstants.
2082de3b87aSKai Wang.It Fn dwarf_get_DS_name
2092de3b87aSKai Wang.Dv DW_DS_*
2102de3b87aSKai Wangconstants.
2112de3b87aSKai Wang.It Fn dwarf_get_DSC_name
2122de3b87aSKai Wang.Dv DW_DSC_*
2132de3b87aSKai Wangconstants.
2142de3b87aSKai Wang.It Fn dwarf_get_EH_name
2152de3b87aSKai Wang.Dv DW_EH_PE_*
2162de3b87aSKai Wangconstants.
2172de3b87aSKai Wang.It Fn dwarf_get_END_name
2182de3b87aSKai Wang.Dv DW_END_*
2192de3b87aSKai Wangconstants.
2202de3b87aSKai Wang.It Fn dwarf_get_FORM_name
2212de3b87aSKai Wang.Dv DW_FORM_*
2222de3b87aSKai Wangconstants.
2232de3b87aSKai Wang.It Fn dwarf_get_ID_name
2242de3b87aSKai Wang.Dv DW_ID_*
2252de3b87aSKai Wangconstants.
2262de3b87aSKai Wang.It Fn dwarf_get_INL_name
2272de3b87aSKai Wang.Dv DW_INL_*
2282de3b87aSKai Wangconstants.
2292de3b87aSKai Wang.It Fn dwarf_get_LANG_name
2302de3b87aSKai Wang.Dv DW_LANG_*
2312de3b87aSKai Wangconstants.
2322de3b87aSKai Wang.It Fn dwarf_get_LNE_name
2332de3b87aSKai Wang.Dv DW_LNE_*
2342de3b87aSKai Wangconstants.
2352de3b87aSKai Wang.It Fn dwarf_get_LNS_name
2362de3b87aSKai Wang.Dv DW_LNS_*
2372de3b87aSKai Wangconstants.
2382de3b87aSKai Wang.It Fn dwarf_get_MACINFO_name
2392de3b87aSKai Wang.Dv DW_MACINFO_*
2402de3b87aSKai Wangconstants.
2412de3b87aSKai Wang.It Fn dwarf_get_OP_name
2422de3b87aSKai Wang.Dv DW_OP_*
2432de3b87aSKai Wangconstants.
2442de3b87aSKai Wang.It Fn dwarf_get_ORD_name
2452de3b87aSKai Wang.Dv DW_ORD_*
2462de3b87aSKai Wangconstants.
2472de3b87aSKai Wang.It Fn dwarf_get_TAG_name
2482de3b87aSKai Wang.Dv DW_TAG_*
2492de3b87aSKai Wangconstants.
250*7bb441c8SMark Johnston.It Fn dwarf_get_UT_name
251*7bb441c8SMark Johnston.Dv DW_UT_*
252*7bb441c8SMark Johnstonconstants.
2532de3b87aSKai Wang.It Fn dwarf_get_VIRTUALITY_name
2542de3b87aSKai Wang.Dv DW_VIRTUALITY_*
2552de3b87aSKai Wangconstants.
2562de3b87aSKai Wang.It Fn dwarf_get_VIS_name
2572de3b87aSKai Wang.Dv DW_VIS_*
2582de3b87aSKai Wangconstants.
259df7f007fSBaptiste Daroussin.El
2602de3b87aSKai Wang.Sh RETURN VALUES
2612de3b87aSKai WangThese functions return
262ae500c1fSEd Maste.Dv DW_DLV_OK
263ae500c1fSEd Masteon success.
2642de3b87aSKai WangIf the DWARF constant denoted by argument
2652de3b87aSKai Wang.Ar val
2662de3b87aSKai Wangis not recognized, these function return
2672de3b87aSKai Wang.Dv DW_DLV_NO_ENTRY .
2682de3b87aSKai Wang.Sh SEE ALSO
2692de3b87aSKai Wang.Xr dwarf 3
270