| 1 |
#ifndef DWARF_XU_INDEX_H |
| 2 |
#define DWARF_XU_INDEX_H |
| 3 |
/* |
| 4 |
|
| 5 |
Copyright (C) 2014-2023 David Anderson. All Rights Reserved. |
| 6 |
|
| 7 |
This program is free software; you can redistribute it |
| 8 |
and/or modify it under the terms of version 2.1 of the |
| 9 |
GNU Lesser General Public License as published by the Free |
| 10 |
Software Foundation. |
| 11 |
|
| 12 |
This program is distributed in the hope that it would be |
| 13 |
useful, but WITHOUT ANY WARRANTY; without even the implied |
| 14 |
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 15 |
PURPOSE. |
| 16 |
|
| 17 |
Further, this software is distributed without any warranty |
| 18 |
that it is free of the rightful claim of any third person |
| 19 |
regarding infringement or the like. Any license provided |
| 20 |
herein, whether implied or otherwise, applies only to this |
| 21 |
software file. Patent licenses, if any, provided herein |
| 22 |
do not apply to combinations of this program with other |
| 23 |
software, or any other product whatsoever. |
| 24 |
|
| 25 |
You should have received a copy of the GNU Lesser General |
| 26 |
Public License along with this program; if not, write the |
| 27 |
Free Software Foundation, Inc., 51 Franklin Street - Fifth |
| 28 |
Floor, Boston MA 02110-1301, USA. |
| 29 |
|
| 30 |
*/ |
| 31 |
|
| 32 |
/* The following is based on |
| 33 |
The gdb online documentation at |
| 34 |
https://gcc.gnu.org/wiki/DebugFissionDWP |
| 35 |
and the draft DWARF5 standard. |
| 36 |
*/ |
| 37 |
|
| 38 |
struct Dwarf_Xu_Index_Header_s { |
| 39 |
Dwarf_Debug gx_dbg; |
| 40 |
Dwarf_Small * gx_section_data; |
| 41 |
Dwarf_Unsigned gx_section_length; |
| 42 |
|
| 43 |
Dwarf_Unsigned gx_version; |
| 44 |
Dwarf_Unsigned gx_column_count_sections; /* N */ |
| 45 |
Dwarf_Unsigned gx_units_in_index; /* U */ |
| 46 |
Dwarf_Unsigned gx_slots_in_hash; /* S */ |
| 47 |
Dwarf_Unsigned gx_hash_table_offset; |
| 48 |
Dwarf_Unsigned gx_index_table_offset; |
| 49 |
Dwarf_Unsigned gx_section_offsets_headerline_offset; |
| 50 |
Dwarf_Unsigned gx_section_offsets_offset; |
| 51 |
Dwarf_Unsigned gx_section_sizes_offset; |
| 52 |
/* Taken from gx_section_offsets_headerline, these |
| 53 |
are the section ids. DW_SECT_* (0 - N-1) */ |
| 54 |
unsigned long gx_section_id[9]; |
| 55 |
|
| 56 |
/* "tu" or "cu" without the quotes, of course. NUL terminated. */ |
| 57 |
char gx_type[4]; |
| 58 |
|
| 59 |
/* Do not free gx_section_name. */ |
| 60 |
const char * gx_section_name; |
| 61 |
}; |
| 62 |
|
| 63 |
#endif /* DWARF_XU_INDEX_H */ |