diff options
Diffstat (limited to 'libdwarf/dwarf_get_section_bytes.3')
-rw-r--r-- | libdwarf/dwarf_get_section_bytes.3 | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/libdwarf/dwarf_get_section_bytes.3 b/libdwarf/dwarf_get_section_bytes.3 index 1b0ac9eb6d5f..5256459efcc6 100644 --- a/libdwarf/dwarf_get_section_bytes.3 +++ b/libdwarf/dwarf_get_section_bytes.3 @@ -22,11 +22,11 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $Id: dwarf_get_section_bytes.3 2071 2011-10-27 03:20:00Z jkoshy $ +.\" $Id: dwarf_get_section_bytes.3 3644 2018-10-15 19:55:01Z jkoshy $ .\" .Dd August 26, 2011 -.Os .Dt DWARF_GET_SECTION_BYTES 3 +.Os .Sh NAME .Nm dwarf_get_section_bytes .Nd retrieve ELF section byte streams @@ -96,23 +96,6 @@ In case of an error, function .Fn dwarf_get_section_bytes will return NULL and set the argument .Ar err . -.Sh ERRORS -Function -.Fn dwarf_get_section_bytes -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 elf_section_index , -or -.Ar length -was NULL. -.It Bq Er DW_DLE_NO_ENTRY -There were no more ELF sections to retrieve, or the function was -called before a call to -.Xr dwarf_transform_to_disk_form 3 . -.El .Sh EXAMPLES To generate and retrieve ELF section byte streams, use: .Bd -literal -offset indent @@ -148,10 +131,27 @@ for (i = 0; i < count; i++) { /* Release resources. */ dwarf_producer_finish(dbg, &de); .Ed +.Sh ERRORS +Function +.Fn dwarf_get_section_bytes +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 elf_section_index , +or +.Ar length +was NULL. +.It Bq Er DW_DLE_NO_ENTRY +There were no more ELF sections to retrieve, or the function was +called before a call to +.Xr dwarf_transform_to_disk_form 3 . +.El .Sh SEE ALSO .Xr dwarf 3 , -.Xr dwarf_reset_section_bytes 3 , .Xr dwarf_producer_finish 3 , .Xr dwarf_producer_init 3 , .Xr dwarf_producer_init_b 3 , +.Xr dwarf_reset_section_bytes 3 , .Xr dwarf_transform_to_disk_form 3 |