GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DWARF_HASFORM(3) FreeBSD Library Functions Manual DWARF_HASFORM(3)

dwarf_hasform, dwarf_whatform, dwarf_whatform_direct
query attribute forms

DWARF Access Library (libdwarf, -ldwarf)

#include <libdwarf.h>

int
dwarf_hasform(Dwarf_Attribute attr, Dwarf_Half form, Dwarf_Bool *ret, Dwarf_Error *err);

int
dwarf_whatform(Dwarf_Attribute attr, Dwarf_Half *retform, Dwarf_Error *err);

int
dwarf_whatform_direct(Dwarf_Attribute attr, Dwarf_Half *retform, Dwarf_Error *err);

Function dwarf_hasform() indicates whether the DWARF attribute denoted by argument attr has the attribute form specified by argument form. If the attribute has the specified form, then argument ret is set to a non-zero value, otherwise it is set to zero. If argument err is non-NULL, it will be used to return an error descriptor in case of an error.

Function dwarf_whatform() sets the location specified by argument retform to the attribute form code for the DWARF attribute referenced by argument attr. If the attribute referenced by argument attr has an indirect form attribute, this function will return the final form for the attribute. If argument err is non-NULL, it will be used to return an error descriptor in case of an error.

Function dwarf_whatform_direct() sets the location specified by argument retform to the attribute form code for the DWARF attribute referenced by argument attr. If the form is an indirect form, the function sets the location specified by argument retform to DW_FORM_indirect. If argument err is non-NULL, it will be used to return an error descriptor in case of an error.

These functions return DW_DLV_OK on success. In case of an error, these functions return DW_DLV_ERR and set argument err.

These functions may fail with the following errors:
[]
Any of the arguments attr, ret, or retform was NULL.

dwarf(3), dwarf_attr(3), dwarf_hasattr(3)
May 22, 2010 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.