summaryrefslogtreecommitdiff
path: root/libdwarf/dwarf_get_abbrev.3
diff options
context:
space:
mode:
Diffstat (limited to 'libdwarf/dwarf_get_abbrev.3')
-rw-r--r--libdwarf/dwarf_get_abbrev.346
1 files changed, 23 insertions, 23 deletions
diff --git a/libdwarf/dwarf_get_abbrev.3 b/libdwarf/dwarf_get_abbrev.3
index afb5468392486..2e4ae2e28eccc 100644
--- a/libdwarf/dwarf_get_abbrev.3
+++ b/libdwarf/dwarf_get_abbrev.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.3 2071 2011-10-27 03:20:00Z jkoshy $
+.\" $Id: dwarf_get_abbrev.3 3644 2018-10-15 19:55:01Z jkoshy $
.\"
.Dd March 27, 2011
-.Os
.Dt DWARF_GET_ABBREV 3
+.Os
.Sh NAME
.Nm dwarf_get_abbrev
.Nd retrieve abbreviation information
@@ -123,24 +123,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
-can fail with:
-.Bl -tag -width ".Bq Er DW_DLE_NO_ENTRY"
-.It Bq Er DW_DLE_ARGUMENT
-One of the arguments
-.Ar dbg ,
-.Ar ret_abbrev ,
-.Ar length
-or
-.Ar attr_count
-was NULL.
-.It Bq Er DW_DLE_NO_ENTRY
-There is no abbreviation information at offset
-.Ar offset .
-.El
-.Sh EXAMPLE
+.Sh EXAMPLES
To loop through all the abbreviation information associated with
a DWARF debug context, use:
.Bd -literal -offset indent
@@ -170,10 +153,27 @@ 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
+can fail with:
+.Bl -tag -width ".Bq Er DW_DLE_NO_ENTRY"
+.It Bq Er DW_DLE_ARGUMENT
+One of the arguments
+.Ar dbg ,
+.Ar ret_abbrev ,
+.Ar length
+or
+.Ar attr_count
+was NULL.
+.It Bq Er DW_DLE_NO_ENTRY
+There is no abbreviation information at offset
+.Ar offset .
+.El
.Sh SEE ALSO
.Xr dwarf 3 ,
.Xr dwarf_dealloc 3 ,
-.Xr dwarf_get_abbrev_tag 3 ,
-.Xr dwarf_get_abbrev_code 3 ,
.Xr dwarf_get_abbrev_children_flag 3 ,
-.Xr dwarf_get_abbrev_entry 3
+.Xr dwarf_get_abbrev_code 3 ,
+.Xr dwarf_get_abbrev_entry 3 ,
+.Xr dwarf_get_abbrev_tag 3