Debian Codegraph @

src/lib/libdwarf/dwarf_arange.h

raw
1 /*
2
3 Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 Portions Copyright (C) 2011-2023 David Anderson. All Rights Reserved.
5
6 This program is free software; you can redistribute it
7 and/or modify it under the terms of version 2.1 of the
8 GNU Lesser General Public License as published by the Free
9 Software Foundation.
10
11 This program is distributed in the hope that it would be
12 useful, but WITHOUT ANY WARRANTY; without even the implied
13 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE.
15
16 Further, this software is distributed without any warranty
17 that it is free of the rightful claim of any third person
18 regarding infringement or the like. Any license provided
19 herein, whether implied or otherwise, applies only to this
20 software file. Patent licenses, if any, provided herein
21 do not apply to combinations of this program with other
22 software, or any other product whatsoever.
23
24 You should have received a copy of the GNU Lesser General
25 Public License along with this program; if not, write the
26 Free Software Foundation, Inc., 51 Franklin Street - Fifth
27 Floor, Boston MA 02110-1301, USA.
28
29 */
30
31 /* This structure is used to read an arange into. */
32 struct Dwarf_Arange_s {
33
34 /* The segment selector. Only non-zero if Dwarf4, only
35 meaningful if ar_segment_selector_size non-zero */
36 Dwarf_Unsigned ar_segment_selector;
37
38 /* Starting address of the arange, ie low-pc. */
39 Dwarf_Addr ar_address;
40
41 /* Length of the arange. */
42 Dwarf_Unsigned ar_length;
43
44 /* Offset into .debug_info of the start of the compilation-unit
45 containing this set of aranges.
46 Applies only to .debug_info, not .debug_types. */
47 Dwarf_Off ar_info_offset;
48
49 /* Corresponding Dwarf_Debug. */
50 Dwarf_Debug ar_dbg;
51
52 Dwarf_Half ar_segment_selector_size;
53 };
54
55 int
56 _dwarf_get_aranges_addr_offsets(Dwarf_Debug dbg,
57 Dwarf_Addr ** addrs,
58 Dwarf_Off ** offsets,
59 Dwarf_Signed * count,
60 Dwarf_Error * error);