1 #ifndef DWARF_STR_OFFSETS_H 2 #define DWARF_STR_OFFSETS_H 3 /* 4 Copyright (C) 2018-2018 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 8 the GNU Lesser General Public License 9 as published by the Free Software Foundation. 10 11 This program is distributed in the hope that it would be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 15 Further, this software is distributed without any warranty 16 that it is free of the rightful claim of any third person 17 regarding infringement or the like. 18 Any license provided herein, whether implied or 19 otherwise, applies only to this software file. 20 Patent licenses, if any, provided herein do not 21 apply to combinations of this program with 22 other software, or any other product whatsoever. 23 24 You should have received a copy of the GNU Lesser General Public 25 License along with this program; if not, write the Free Software 26 Foundation, Inc., 51 Franklin Street - Fifth Floor, 27 Boston MA 02110-1301, 28 USA. 29 30 */ 31 32 33 struct Dwarf_Str_Offsets_Table_s { 34 /* pointers are to dwarf-memory valid till Dwarf_Debug 35 is closed.. None are to be deallocated. */ 36 Dwarf_Unsigned so_magic_value; 37 Dwarf_Debug so_dbg; 38 39 /* Section data. */ 40 Dwarf_Small *so_section_start_ptr; 41 Dwarf_Small *so_section_end_ptr; 42 Dwarf_Unsigned so_section_size; 43 /* Overall data about wasted space in the section. */ 44 Dwarf_Unsigned so_wasted_section_bytes; 45 /* The number of tables processed in the section. */ 46 Dwarf_Unsigned so_table_count; 47 48 /* Used to iterate through the section getting 49 to each table */ 50 Dwarf_Unsigned so_next_table_offset; 51 52 /* Per table (ie, a table is a 53 header and array of offsets) inside the section. */ 54 Dwarf_Small *so_header_ptr; 55 Dwarf_Small *so_end_cu_ptr; 56 Dwarf_Small *so_array_ptr; 57 Dwarf_Unsigned so_table_start_offset; 58 Dwarf_Unsigned so_array_start_offset; 59 Dwarf_Unsigned so_array_entry_count; 60 Dwarf_Half so_array_entry_size; 61 62 }; 63 #endif /* DWARF_STR_OFFSETS_H */ 64