1*2de3b87aSKai Wang.\" Copyright (c) 2011 Kai Wang 2*2de3b87aSKai Wang.\" All rights reserved. 3*2de3b87aSKai Wang.\" 4*2de3b87aSKai Wang.\" Redistribution and use in source and binary forms, with or without 5*2de3b87aSKai Wang.\" modification, are permitted provided that the following conditions 6*2de3b87aSKai Wang.\" are met: 7*2de3b87aSKai Wang.\" 1. Redistributions of source code must retain the above copyright 8*2de3b87aSKai Wang.\" notice, this list of conditions and the following disclaimer. 9*2de3b87aSKai Wang.\" 2. Redistributions in binary form must reproduce the above copyright 10*2de3b87aSKai Wang.\" notice, this list of conditions and the following disclaimer in the 11*2de3b87aSKai Wang.\" documentation and/or other materials provided with the distribution. 12*2de3b87aSKai Wang.\" 13*2de3b87aSKai Wang.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14*2de3b87aSKai Wang.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15*2de3b87aSKai Wang.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16*2de3b87aSKai Wang.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17*2de3b87aSKai Wang.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*2de3b87aSKai Wang.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19*2de3b87aSKai Wang.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*2de3b87aSKai Wang.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21*2de3b87aSKai Wang.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22*2de3b87aSKai Wang.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23*2de3b87aSKai Wang.\" SUCH DAMAGE. 24*2de3b87aSKai Wang.\" 25*2de3b87aSKai Wang.\" $Id: dwarf_get_AT_name.3 2071 2011-10-27 03:20:00Z jkoshy $ 26*2de3b87aSKai Wang.\" 27*2de3b87aSKai Wang.Dd April 22, 2011 28*2de3b87aSKai Wang.Os 29*2de3b87aSKai Wang.Dt DWARF_GET_AT_NAME 3 30*2de3b87aSKai Wang.Sh NAME 31*2de3b87aSKai Wang.Nm dwarf_get_ACCESS_name , 32*2de3b87aSKai Wang.Nm dwarf_get_AT_name , 33*2de3b87aSKai Wang.Nm dwarf_get_ATE_name , 34*2de3b87aSKai Wang.Nm dwarf_get_CC_name , 35*2de3b87aSKai Wang.Nm dwarf_get_CFA_name , 36*2de3b87aSKai Wang.Nm dwarf_get_CHILDREN_name , 37*2de3b87aSKai Wang.Nm dwarf_get_DS_name , 38*2de3b87aSKai Wang.Nm dwarf_get_DSC_name , 39*2de3b87aSKai Wang.Nm dwarf_get_EH_name , 40*2de3b87aSKai Wang.Nm dwarf_get_END_name , 41*2de3b87aSKai Wang.Nm dwarf_get_FORM_name , 42*2de3b87aSKai Wang.Nm dwarf_get_ID_name , 43*2de3b87aSKai Wang.Nm dwarf_get_INL_name , 44*2de3b87aSKai Wang.Nm dwarf_get_LANG_name , 45*2de3b87aSKai Wang.Nm dwarf_get_LNE_name , 46*2de3b87aSKai Wang.Nm dwarf_get_LNS_name , 47*2de3b87aSKai Wang.Nm dwarf_get_MACINFO_name , 48*2de3b87aSKai Wang.Nm dwarf_get_OP_name , 49*2de3b87aSKai Wang.Nm dwarf_get_ORD_name , 50*2de3b87aSKai Wang.Nm dwarf_get_TAG_name , 51*2de3b87aSKai Wang.Nm dwarf_get_VIRTUALITY_name , 52*2de3b87aSKai Wang.Nm dwarf_get_VIS_name 53*2de3b87aSKai Wang.Nd retrieve the symbolic names of DWARF constants 54*2de3b87aSKai Wang.Sh LIBRARY 55*2de3b87aSKai Wang.Lb libdwarf 56*2de3b87aSKai Wang.Sh SYNOPSIS 57*2de3b87aSKai Wang.In libdwarf.h 58*2de3b87aSKai Wang.Ft int 59*2de3b87aSKai Wang.Fo dwarf_get_ACCESS_name 60*2de3b87aSKai Wang.Fa "unsigned val" 61*2de3b87aSKai Wang.Fa "char **str" 62*2de3b87aSKai Wang.Fc 63*2de3b87aSKai Wang.Ft int 64*2de3b87aSKai Wang.Fo dwarf_get_AT_name 65*2de3b87aSKai Wang.Fa "unsigned val" 66*2de3b87aSKai Wang.Fa "char **str" 67*2de3b87aSKai Wang.Fc 68*2de3b87aSKai Wang.Ft int 69*2de3b87aSKai Wang.Fo dwarf_get_ATE_name 70*2de3b87aSKai Wang.Fa "unsigned val" 71*2de3b87aSKai Wang.Fa "char **str" 72*2de3b87aSKai Wang.Fc 73*2de3b87aSKai Wang.Ft int 74*2de3b87aSKai Wang.Fo dwarf_get_CC_name 75*2de3b87aSKai Wang.Fa "unsigned val" 76*2de3b87aSKai Wang.Fa "char **str" 77*2de3b87aSKai Wang.Fc 78*2de3b87aSKai Wang.Ft int 79*2de3b87aSKai Wang.Fo dwarf_get_CFA_name 80*2de3b87aSKai Wang.Fa "unsigned val" 81*2de3b87aSKai Wang.Fa "char **str" 82*2de3b87aSKai Wang.Fc 83*2de3b87aSKai Wang.Ft int 84*2de3b87aSKai Wang.Fo dwarf_get_CHILDREN_name 85*2de3b87aSKai Wang.Fa "unsigned val" 86*2de3b87aSKai Wang.Fa "char **str" 87*2de3b87aSKai Wang.Fc 88*2de3b87aSKai Wang.Ft int 89*2de3b87aSKai Wang.Fo dwarf_get_DS_name 90*2de3b87aSKai Wang.Fa "unsigned val" 91*2de3b87aSKai Wang.Fa "char **str" 92*2de3b87aSKai Wang.Fc 93*2de3b87aSKai Wang.Ft int 94*2de3b87aSKai Wang.Fo dwarf_get_DSC_name 95*2de3b87aSKai Wang.Fa "unsigned val" 96*2de3b87aSKai Wang.Fa "char **str" 97*2de3b87aSKai Wang.Fc 98*2de3b87aSKai Wang.Ft int 99*2de3b87aSKai Wang.Fo dwarf_get_EH_name 100*2de3b87aSKai Wang.Fa "unsigned val" 101*2de3b87aSKai Wang.Fa "char **str" 102*2de3b87aSKai Wang.Fc 103*2de3b87aSKai Wang.Ft int 104*2de3b87aSKai Wang.Fo dwarf_get_END_name 105*2de3b87aSKai Wang.Fa "unsigned val" 106*2de3b87aSKai Wang.Fa "char **str" 107*2de3b87aSKai Wang.Fc 108*2de3b87aSKai Wang.Ft int 109*2de3b87aSKai Wang.Fo dwarf_get_FORM_name 110*2de3b87aSKai Wang.Fa "unsigned val" 111*2de3b87aSKai Wang.Fa "char **str" 112*2de3b87aSKai Wang.Fc 113*2de3b87aSKai Wang.Ft int 114*2de3b87aSKai Wang.Fo dwarf_get_ID_name 115*2de3b87aSKai Wang.Fa "unsigned val" 116*2de3b87aSKai Wang.Fa "char **str" 117*2de3b87aSKai Wang.Fc 118*2de3b87aSKai Wang.Ft int 119*2de3b87aSKai Wang.Fo dwarf_get_INL_name 120*2de3b87aSKai Wang.Fa "unsigned val" 121*2de3b87aSKai Wang.Fa "char **str" 122*2de3b87aSKai Wang.Fc 123*2de3b87aSKai Wang.Ft int 124*2de3b87aSKai Wang.Fo dwarf_get_LANG_name 125*2de3b87aSKai Wang.Fa "unsigned val" 126*2de3b87aSKai Wang.Fa "char **str" 127*2de3b87aSKai Wang.Fc 128*2de3b87aSKai Wang.Ft int 129*2de3b87aSKai Wang.Fo dwarf_get_LNE_name 130*2de3b87aSKai Wang.Fa "unsigned val" 131*2de3b87aSKai Wang.Fa "char **str" 132*2de3b87aSKai Wang.Fc 133*2de3b87aSKai Wang.Ft int 134*2de3b87aSKai Wang.Fo dwarf_get_LNS_name 135*2de3b87aSKai Wang.Fa "unsigned val" 136*2de3b87aSKai Wang.Fa "char **str" 137*2de3b87aSKai Wang.Fc 138*2de3b87aSKai Wang.Ft int 139*2de3b87aSKai Wang.Fo dwarf_get_MACINFO_name 140*2de3b87aSKai Wang.Fa "unsigned val" 141*2de3b87aSKai Wang.Fa "char **str" 142*2de3b87aSKai Wang.Fc 143*2de3b87aSKai Wang.Ft int 144*2de3b87aSKai Wang.Fo dwarf_get_OP_name 145*2de3b87aSKai Wang.Fa "unsigned val" 146*2de3b87aSKai Wang.Fa "char **str" 147*2de3b87aSKai Wang.Fc 148*2de3b87aSKai Wang.Ft int 149*2de3b87aSKai Wang.Fo dwarf_get_ORD_name 150*2de3b87aSKai Wang.Fa "unsigned val" 151*2de3b87aSKai Wang.Fa "char **str" 152*2de3b87aSKai Wang.Fc 153*2de3b87aSKai Wang.Ft int 154*2de3b87aSKai Wang.Fo dwarf_get_TAG_name 155*2de3b87aSKai Wang.Fa "unsigned val" 156*2de3b87aSKai Wang.Fa "char **str" 157*2de3b87aSKai Wang.Fc 158*2de3b87aSKai Wang.Ft int 159*2de3b87aSKai Wang.Fo dwarf_get_VIRTUALITY_name 160*2de3b87aSKai Wang.Fa "unsigned val" 161*2de3b87aSKai Wang.Fa "char **str" 162*2de3b87aSKai Wang.Fc 163*2de3b87aSKai Wang.Ft int 164*2de3b87aSKai Wang.Fo dwarf_get_VIS_name 165*2de3b87aSKai Wang.Fa "unsigned val" 166*2de3b87aSKai Wang.Fa "char **str" 167*2de3b87aSKai Wang.Fc 168*2de3b87aSKai Wang.Sh DESCRIPTION 169*2de3b87aSKai WangThese functions return the symbolic name of a numeric DWARF constant. 170*2de3b87aSKai Wang.Pp 171*2de3b87aSKai WangArgument 172*2de3b87aSKai Wang.Ar val 173*2de3b87aSKai Wangspecifies the numeric value whose symbolic name is desired. 174*2de3b87aSKai Wang.Pp 175*2de3b87aSKai WangArgument 176*2de3b87aSKai Wang.Ar str 177*2de3b87aSKai Wangshould point to a location which will hold the returned 178*2de3b87aSKai WangNUL-terminated string containing the symbolic name of the 179*2de3b87aSKai Wangspecified value. 180*2de3b87aSKai Wang.Pp 181*2de3b87aSKai WangThe list of functions and the DWARF constants that they accept are: 182*2de3b87aSKai Wang.Pp 183*2de3b87aSKai Wang.Bl -tag -width ".Fn dwarf_get_VIRTUALITY_name" -compact 184*2de3b87aSKai Wang.It Fn dwarf_get_ACCESS_name 185*2de3b87aSKai Wang.Dv DW_ACCESS_* 186*2de3b87aSKai Wangconstants. 187*2de3b87aSKai Wang.It Fn dwarf_get_AT_name 188*2de3b87aSKai Wang.Dv DW_AT_* 189*2de3b87aSKai Wangconstants. 190*2de3b87aSKai Wang.It Fn dwarf_get_ATE_name 191*2de3b87aSKai Wang.Dv DW_ATE_* 192*2de3b87aSKai Wangconstants. 193*2de3b87aSKai Wang.It Fn dwarf_get_CC_name 194*2de3b87aSKai Wang.Dv DW_CC_* 195*2de3b87aSKai Wangconstants. 196*2de3b87aSKai Wang.It Fn dwarf_get_CFA_name 197*2de3b87aSKai Wang.Dv DW_CFA_* 198*2de3b87aSKai Wangconstants. 199*2de3b87aSKai Wang.It Fn dwarf_get_CHILDREN_name 200*2de3b87aSKai Wang.Dv DW_CHILDREN_* 201*2de3b87aSKai Wangconstants. 202*2de3b87aSKai Wang.It Fn dwarf_get_DS_name 203*2de3b87aSKai Wang.Dv DW_DS_* 204*2de3b87aSKai Wangconstants. 205*2de3b87aSKai Wang.It Fn dwarf_get_DSC_name 206*2de3b87aSKai Wang.Dv DW_DSC_* 207*2de3b87aSKai Wangconstants. 208*2de3b87aSKai Wang.It Fn dwarf_get_EH_name 209*2de3b87aSKai Wang.Dv DW_EH_PE_* 210*2de3b87aSKai Wangconstants. 211*2de3b87aSKai Wang.It Fn dwarf_get_END_name 212*2de3b87aSKai Wang.Dv DW_END_* 213*2de3b87aSKai Wangconstants. 214*2de3b87aSKai Wang.It Fn dwarf_get_FORM_name 215*2de3b87aSKai Wang.Dv DW_FORM_* 216*2de3b87aSKai Wangconstants. 217*2de3b87aSKai Wang.It Fn dwarf_get_ID_name 218*2de3b87aSKai Wang.Dv DW_ID_* 219*2de3b87aSKai Wangconstants. 220*2de3b87aSKai Wang.It Fn dwarf_get_INL_name 221*2de3b87aSKai Wang.Dv DW_INL_* 222*2de3b87aSKai Wangconstants. 223*2de3b87aSKai Wang.It Fn dwarf_get_LANG_name 224*2de3b87aSKai Wang.Dv DW_LANG_* 225*2de3b87aSKai Wangconstants. 226*2de3b87aSKai Wang.It Fn dwarf_get_LNE_name 227*2de3b87aSKai Wang.Dv DW_LNE_* 228*2de3b87aSKai Wangconstants. 229*2de3b87aSKai Wang.It Fn dwarf_get_LNS_name 230*2de3b87aSKai Wang.Dv DW_LNS_* 231*2de3b87aSKai Wangconstants. 232*2de3b87aSKai Wang.It Fn dwarf_get_MACINFO_name 233*2de3b87aSKai Wang.Dv DW_MACINFO_* 234*2de3b87aSKai Wangconstants. 235*2de3b87aSKai Wang.It Fn dwarf_get_OP_name 236*2de3b87aSKai Wang.Dv DW_OP_* 237*2de3b87aSKai Wangconstants. 238*2de3b87aSKai Wang.It Fn dwarf_get_ORD_name 239*2de3b87aSKai Wang.Dv DW_ORD_* 240*2de3b87aSKai Wangconstants. 241*2de3b87aSKai Wang.It Fn dwarf_get_TAG_name 242*2de3b87aSKai Wang.Dv DW_TAG_* 243*2de3b87aSKai Wangconstants. 244*2de3b87aSKai Wang.It Fn dwarf_get_VIRTUALITY_name 245*2de3b87aSKai Wang.Dv DW_VIRTUALITY_* 246*2de3b87aSKai Wangconstants. 247*2de3b87aSKai Wang.It Fn dwarf_get_VIS_name 248*2de3b87aSKai Wang.Dv DW_VIS_* 249*2de3b87aSKai Wangconstants. 250*2de3b87aSKai Wang.Sh RETURN VALUES 251*2de3b87aSKai WangThese functions return 252*2de3b87aSKai Wang.Dv DW_DLV_OK on success. 253*2de3b87aSKai WangIf the DWARF constant denoted by argument 254*2de3b87aSKai Wang.Ar val 255*2de3b87aSKai Wangis not recognized, these function return 256*2de3b87aSKai Wang.Dv DW_DLV_NO_ENTRY . 257*2de3b87aSKai Wang.Sh SEE ALSO 258*2de3b87aSKai Wang.Xr dwarf 3 259