xref: /freebsd/contrib/elftoolchain/libdwarf/dwarf_get_AT_name.3 (revision df7f007fe8aa1f15631555ba3719fb6b040f3027)
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.\"
252de3b87aSKai Wang.\" $Id: dwarf_get_AT_name.3 2071 2011-10-27 03:20:00Z jkoshy $
262de3b87aSKai Wang.\"
272de3b87aSKai Wang.Dd April 22, 2011
282de3b87aSKai Wang.Os
292de3b87aSKai Wang.Dt DWARF_GET_AT_NAME 3
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 ,
512de3b87aSKai Wang.Nm dwarf_get_VIRTUALITY_name ,
522de3b87aSKai Wang.Nm dwarf_get_VIS_name
532de3b87aSKai Wang.Nd retrieve the symbolic names of DWARF constants
542de3b87aSKai Wang.Sh LIBRARY
552de3b87aSKai Wang.Lb libdwarf
562de3b87aSKai Wang.Sh SYNOPSIS
572de3b87aSKai Wang.In libdwarf.h
582de3b87aSKai Wang.Ft int
592de3b87aSKai Wang.Fo dwarf_get_ACCESS_name
602de3b87aSKai Wang.Fa "unsigned val"
612de3b87aSKai Wang.Fa "char **str"
622de3b87aSKai Wang.Fc
632de3b87aSKai Wang.Ft int
642de3b87aSKai Wang.Fo dwarf_get_AT_name
652de3b87aSKai Wang.Fa "unsigned val"
662de3b87aSKai Wang.Fa "char **str"
672de3b87aSKai Wang.Fc
682de3b87aSKai Wang.Ft int
692de3b87aSKai Wang.Fo dwarf_get_ATE_name
702de3b87aSKai Wang.Fa "unsigned val"
712de3b87aSKai Wang.Fa "char **str"
722de3b87aSKai Wang.Fc
732de3b87aSKai Wang.Ft int
742de3b87aSKai Wang.Fo dwarf_get_CC_name
752de3b87aSKai Wang.Fa "unsigned val"
762de3b87aSKai Wang.Fa "char **str"
772de3b87aSKai Wang.Fc
782de3b87aSKai Wang.Ft int
792de3b87aSKai Wang.Fo dwarf_get_CFA_name
802de3b87aSKai Wang.Fa "unsigned val"
812de3b87aSKai Wang.Fa "char **str"
822de3b87aSKai Wang.Fc
832de3b87aSKai Wang.Ft int
842de3b87aSKai Wang.Fo dwarf_get_CHILDREN_name
852de3b87aSKai Wang.Fa "unsigned val"
862de3b87aSKai Wang.Fa "char **str"
872de3b87aSKai Wang.Fc
882de3b87aSKai Wang.Ft int
892de3b87aSKai Wang.Fo dwarf_get_DS_name
902de3b87aSKai Wang.Fa "unsigned val"
912de3b87aSKai Wang.Fa "char **str"
922de3b87aSKai Wang.Fc
932de3b87aSKai Wang.Ft int
942de3b87aSKai Wang.Fo dwarf_get_DSC_name
952de3b87aSKai Wang.Fa "unsigned val"
962de3b87aSKai Wang.Fa "char **str"
972de3b87aSKai Wang.Fc
982de3b87aSKai Wang.Ft int
992de3b87aSKai Wang.Fo dwarf_get_EH_name
1002de3b87aSKai Wang.Fa "unsigned val"
1012de3b87aSKai Wang.Fa "char **str"
1022de3b87aSKai Wang.Fc
1032de3b87aSKai Wang.Ft int
1042de3b87aSKai Wang.Fo dwarf_get_END_name
1052de3b87aSKai Wang.Fa "unsigned val"
1062de3b87aSKai Wang.Fa "char **str"
1072de3b87aSKai Wang.Fc
1082de3b87aSKai Wang.Ft int
1092de3b87aSKai Wang.Fo dwarf_get_FORM_name
1102de3b87aSKai Wang.Fa "unsigned val"
1112de3b87aSKai Wang.Fa "char **str"
1122de3b87aSKai Wang.Fc
1132de3b87aSKai Wang.Ft int
1142de3b87aSKai Wang.Fo dwarf_get_ID_name
1152de3b87aSKai Wang.Fa "unsigned val"
1162de3b87aSKai Wang.Fa "char **str"
1172de3b87aSKai Wang.Fc
1182de3b87aSKai Wang.Ft int
1192de3b87aSKai Wang.Fo dwarf_get_INL_name
1202de3b87aSKai Wang.Fa "unsigned val"
1212de3b87aSKai Wang.Fa "char **str"
1222de3b87aSKai Wang.Fc
1232de3b87aSKai Wang.Ft int
1242de3b87aSKai Wang.Fo dwarf_get_LANG_name
1252de3b87aSKai Wang.Fa "unsigned val"
1262de3b87aSKai Wang.Fa "char **str"
1272de3b87aSKai Wang.Fc
1282de3b87aSKai Wang.Ft int
1292de3b87aSKai Wang.Fo dwarf_get_LNE_name
1302de3b87aSKai Wang.Fa "unsigned val"
1312de3b87aSKai Wang.Fa "char **str"
1322de3b87aSKai Wang.Fc
1332de3b87aSKai Wang.Ft int
1342de3b87aSKai Wang.Fo dwarf_get_LNS_name
1352de3b87aSKai Wang.Fa "unsigned val"
1362de3b87aSKai Wang.Fa "char **str"
1372de3b87aSKai Wang.Fc
1382de3b87aSKai Wang.Ft int
1392de3b87aSKai Wang.Fo dwarf_get_MACINFO_name
1402de3b87aSKai Wang.Fa "unsigned val"
1412de3b87aSKai Wang.Fa "char **str"
1422de3b87aSKai Wang.Fc
1432de3b87aSKai Wang.Ft int
1442de3b87aSKai Wang.Fo dwarf_get_OP_name
1452de3b87aSKai Wang.Fa "unsigned val"
1462de3b87aSKai Wang.Fa "char **str"
1472de3b87aSKai Wang.Fc
1482de3b87aSKai Wang.Ft int
1492de3b87aSKai Wang.Fo dwarf_get_ORD_name
1502de3b87aSKai Wang.Fa "unsigned val"
1512de3b87aSKai Wang.Fa "char **str"
1522de3b87aSKai Wang.Fc
1532de3b87aSKai Wang.Ft int
1542de3b87aSKai Wang.Fo dwarf_get_TAG_name
1552de3b87aSKai Wang.Fa "unsigned val"
1562de3b87aSKai Wang.Fa "char **str"
1572de3b87aSKai Wang.Fc
1582de3b87aSKai Wang.Ft int
1592de3b87aSKai Wang.Fo dwarf_get_VIRTUALITY_name
1602de3b87aSKai Wang.Fa "unsigned val"
1612de3b87aSKai Wang.Fa "char **str"
1622de3b87aSKai Wang.Fc
1632de3b87aSKai Wang.Ft int
1642de3b87aSKai Wang.Fo dwarf_get_VIS_name
1652de3b87aSKai Wang.Fa "unsigned val"
1662de3b87aSKai Wang.Fa "char **str"
1672de3b87aSKai Wang.Fc
1682de3b87aSKai Wang.Sh DESCRIPTION
1692de3b87aSKai WangThese functions return the symbolic name of a numeric DWARF constant.
1702de3b87aSKai Wang.Pp
1712de3b87aSKai WangArgument
1722de3b87aSKai Wang.Ar val
1732de3b87aSKai Wangspecifies the numeric value whose symbolic name is desired.
1742de3b87aSKai Wang.Pp
1752de3b87aSKai WangArgument
1762de3b87aSKai Wang.Ar str
1772de3b87aSKai Wangshould point to a location which will hold the returned
1782de3b87aSKai WangNUL-terminated string containing the symbolic name of the
1792de3b87aSKai Wangspecified value.
1802de3b87aSKai Wang.Pp
1812de3b87aSKai WangThe list of functions and the DWARF constants that they accept are:
1822de3b87aSKai Wang.Pp
1832de3b87aSKai Wang.Bl -tag -width ".Fn dwarf_get_VIRTUALITY_name" -compact
1842de3b87aSKai Wang.It Fn dwarf_get_ACCESS_name
1852de3b87aSKai Wang.Dv DW_ACCESS_*
1862de3b87aSKai Wangconstants.
1872de3b87aSKai Wang.It Fn dwarf_get_AT_name
1882de3b87aSKai Wang.Dv DW_AT_*
1892de3b87aSKai Wangconstants.
1902de3b87aSKai Wang.It Fn dwarf_get_ATE_name
1912de3b87aSKai Wang.Dv DW_ATE_*
1922de3b87aSKai Wangconstants.
1932de3b87aSKai Wang.It Fn dwarf_get_CC_name
1942de3b87aSKai Wang.Dv DW_CC_*
1952de3b87aSKai Wangconstants.
1962de3b87aSKai Wang.It Fn dwarf_get_CFA_name
1972de3b87aSKai Wang.Dv DW_CFA_*
1982de3b87aSKai Wangconstants.
1992de3b87aSKai Wang.It Fn dwarf_get_CHILDREN_name
2002de3b87aSKai Wang.Dv DW_CHILDREN_*
2012de3b87aSKai Wangconstants.
2022de3b87aSKai Wang.It Fn dwarf_get_DS_name
2032de3b87aSKai Wang.Dv DW_DS_*
2042de3b87aSKai Wangconstants.
2052de3b87aSKai Wang.It Fn dwarf_get_DSC_name
2062de3b87aSKai Wang.Dv DW_DSC_*
2072de3b87aSKai Wangconstants.
2082de3b87aSKai Wang.It Fn dwarf_get_EH_name
2092de3b87aSKai Wang.Dv DW_EH_PE_*
2102de3b87aSKai Wangconstants.
2112de3b87aSKai Wang.It Fn dwarf_get_END_name
2122de3b87aSKai Wang.Dv DW_END_*
2132de3b87aSKai Wangconstants.
2142de3b87aSKai Wang.It Fn dwarf_get_FORM_name
2152de3b87aSKai Wang.Dv DW_FORM_*
2162de3b87aSKai Wangconstants.
2172de3b87aSKai Wang.It Fn dwarf_get_ID_name
2182de3b87aSKai Wang.Dv DW_ID_*
2192de3b87aSKai Wangconstants.
2202de3b87aSKai Wang.It Fn dwarf_get_INL_name
2212de3b87aSKai Wang.Dv DW_INL_*
2222de3b87aSKai Wangconstants.
2232de3b87aSKai Wang.It Fn dwarf_get_LANG_name
2242de3b87aSKai Wang.Dv DW_LANG_*
2252de3b87aSKai Wangconstants.
2262de3b87aSKai Wang.It Fn dwarf_get_LNE_name
2272de3b87aSKai Wang.Dv DW_LNE_*
2282de3b87aSKai Wangconstants.
2292de3b87aSKai Wang.It Fn dwarf_get_LNS_name
2302de3b87aSKai Wang.Dv DW_LNS_*
2312de3b87aSKai Wangconstants.
2322de3b87aSKai Wang.It Fn dwarf_get_MACINFO_name
2332de3b87aSKai Wang.Dv DW_MACINFO_*
2342de3b87aSKai Wangconstants.
2352de3b87aSKai Wang.It Fn dwarf_get_OP_name
2362de3b87aSKai Wang.Dv DW_OP_*
2372de3b87aSKai Wangconstants.
2382de3b87aSKai Wang.It Fn dwarf_get_ORD_name
2392de3b87aSKai Wang.Dv DW_ORD_*
2402de3b87aSKai Wangconstants.
2412de3b87aSKai Wang.It Fn dwarf_get_TAG_name
2422de3b87aSKai Wang.Dv DW_TAG_*
2432de3b87aSKai Wangconstants.
2442de3b87aSKai Wang.It Fn dwarf_get_VIRTUALITY_name
2452de3b87aSKai Wang.Dv DW_VIRTUALITY_*
2462de3b87aSKai Wangconstants.
2472de3b87aSKai Wang.It Fn dwarf_get_VIS_name
2482de3b87aSKai Wang.Dv DW_VIS_*
2492de3b87aSKai Wangconstants.
250*df7f007fSBaptiste Daroussin.El
2512de3b87aSKai Wang.Sh RETURN VALUES
2522de3b87aSKai WangThese functions return
2532de3b87aSKai Wang.Dv DW_DLV_OK on success.
2542de3b87aSKai WangIf the DWARF constant denoted by argument
2552de3b87aSKai Wang.Ar val
2562de3b87aSKai Wangis not recognized, these function return
2572de3b87aSKai Wang.Dv DW_DLV_NO_ENTRY .
2582de3b87aSKai Wang.Sh SEE ALSO
2592de3b87aSKai Wang.Xr dwarf 3
260