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