diff options
Diffstat (limited to 'libdwarf/dwarf_get_abbrev_entry.3')
-rw-r--r-- | libdwarf/dwarf_get_abbrev_entry.3 | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/libdwarf/dwarf_get_abbrev_entry.3 b/libdwarf/dwarf_get_abbrev_entry.3 index f9e084b134de9..5cadb8084003e 100644 --- a/libdwarf/dwarf_get_abbrev_entry.3 +++ b/libdwarf/dwarf_get_abbrev_entry.3 @@ -22,11 +22,11 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $Id: dwarf_get_abbrev_entry.3 2071 2011-10-27 03:20:00Z jkoshy $ +.\" $Id: dwarf_get_abbrev_entry.3 3644 2018-10-15 19:55:01Z jkoshy $ .\" .Dd April 02, 2011 -.Os .Dt DWARF_GET_ABBREV_ENTRY 3 +.Os .Sh NAME .Nm dwarf_get_abbrev_entry .Nd retrieve attribute information from an abbreviation descriptor @@ -96,25 +96,7 @@ In case of an error, it returns .Dv DW_DLV_ERROR and sets the argument .Ar err . -.Sh ERRORS -Function -.Fn dwarf_get_abbrev_entry -can fail with: -.Bl -tag -width ".Bq Er DW_DLE_NO_ENTRY" -.It Bq Er DW_DLE_ARGUMENT -One of the arguments -.Ar abbrev , -.Ar code , -.Ar form -or -.Ar offset -was NULL. -.It Bq Er DW_DLE_NO_ENTRY -The attribute index specified by argument -.Ar ndx -was out of range. -.El -.Sh EXAMPLE +.Sh EXAMPLES To loop through all the attribute entries contained in the abbreviation section, use: .Bd -literal -offset indent @@ -154,6 +136,24 @@ while ((ret = dwarf_next_cu_header(dbg, NULL, NULL, &aboff, if (ret == DW_DLV_ERROR) warnx("dwarf_next_cu_header: %s", dwarf_errmsg(de)); .Ed +.Sh ERRORS +Function +.Fn dwarf_get_abbrev_entry +can fail with: +.Bl -tag -width ".Bq Er DW_DLE_NO_ENTRY" +.It Bq Er DW_DLE_ARGUMENT +One of the arguments +.Ar abbrev , +.Ar code , +.Ar form +or +.Ar offset +was NULL. +.It Bq Er DW_DLE_NO_ENTRY +The attribute index specified by argument +.Ar ndx +was out of range. +.El .Sh SEE ALSO .Xr dwarf 3 , .Xr dwarf_get_abbrev 3 |