1 .\" Copyright (c) 2014 Kai Wang
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $Id: dwarf_get_section_max_offsets.3 3141 2015-01-29 23:11:10Z jkoshy $
29 .Dt DWARF_GET_SECTION_MAX_OFFSETS
31 .Nm dwarf_get_section_max_offsets ,
32 .Nm dwarf_get_section_max_offsets_b
33 .Nd return the size of DWARF sections
39 .Fo dwarf_get_section_max_offsets
41 .Fa "Dwarf_Unsigned *debug_info"
42 .Fa "Dwarf_Unsigned *debug_abbrev"
43 .Fa "Dwarf_Unsigned *debug_line"
44 .Fa "Dwarf_Unsigned *debug_loc"
45 .Fa "Dwarf_Unsigned *debug_aranges"
46 .Fa "Dwarf_Unsigned *debug_macinfo"
47 .Fa "Dwarf_Unsigned *debug_pubnames"
48 .Fa "Dwarf_Unsigned *debug_str"
49 .Fa "Dwarf_Unsigned *debug_frame"
50 .Fa "Dwarf_Unsigned *debug_ranges"
51 .Fa "Dwarf_Unsigned *debug_pubtypes"
54 .Fo dwarf_get_section_max_offsets_b
56 .Fa "Dwarf_Unsigned *debug_info"
57 .Fa "Dwarf_Unsigned *debug_abbrev"
58 .Fa "Dwarf_Unsigned *debug_line"
59 .Fa "Dwarf_Unsigned *debug_loc"
60 .Fa "Dwarf_Unsigned *debug_aranges"
61 .Fa "Dwarf_Unsigned *debug_macinfo"
62 .Fa "Dwarf_Unsigned *debug_pubnames"
63 .Fa "Dwarf_Unsigned *debug_str"
64 .Fa "Dwarf_Unsigned *debug_frame"
65 .Fa "Dwarf_Unsigned *debug_ranges"
66 .Fa "Dwarf_Unsigned *debug_pubtypes"
67 .Fa "Dwarf_Unsigned *debug_types"
71 .Fn dwarf_get_section_max_offsets_b
72 retrieves the sizes of the DWARF sections in a DWARF debug context.
75 should reference a DWARF debug context allocated using
77 The function stores the size of each DWARF section to the location
78 pointed to by the argument corresponding to the section name.
79 If a DWARF section does not exist, the location pointed to by the
80 argument corresponding to that section will be set to zero.
82 A value of NULL may be used for any of the arguments
96 if the caller is not interested in the respective section size.
99 .Fn dwarf_get_section_max_offsets
100 is identical to function
101 .Fn dwarf_get_section_max_offsets_b
102 except that it does not provide argument
104 and thus cannot return the size of the
108 On success, these functions return