File: pro_dnames.h

package info (click to toggle)
dwarfutils 20180809-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,228 kB
  • sloc: ansic: 63,382; sh: 5,222; cpp: 4,041; makefile: 548; python: 445; awk: 11
file content (79 lines) | stat: -rw-r--r-- 2,589 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
  Copyright (C) 2018 David Anderson  All Rights Reserved.

  This program is free software; you can redistribute it
  and/or modify it under the terms of version 2.1 of the
  GNU Lesser General Public License as published by the Free
  Software Foundation.

  This program is distributed in the hope that it would be
  useful, but WITHOUT ANY WARRANTY; without even the implied
  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.

  Further, this software is distributed without any warranty
  that it is free of the rightful claim of any third person
  regarding infringement or the like.  Any license provided
  herein, whether implied or otherwise, applies only to this
  software file.  Patent licenses, if any, provided herein
  do not apply to combinations of this program with other
  software, or any other product whatsoever.

  You should have received a copy of the GNU Lesser General
  Public License along with this program; if not, write the
  Free Software Foundation, Inc., 51 Franklin Street - Fifth
  Floor, Boston MA 02110-1301, USA.

*/

/*  The numbers here are almost all 32 bits.
    Not long  long ever.
    In the public function interfaces we'll use Dwarf_Unsigned though,
    for call consistency with everything else.  */

typedef Dwarf_ufixed dn_type;

struct Dwarf_P_Dnames_Head_s {
    Dwarf_Unsigned dh_unit_length;
    unsigned       dh_version;
    dn_type dh_comp_unit_count;
    dn_type dh_local_type_unit_count;
    dn_type dh_foreign_type_unit_count;
    dn_type dh_bucket_count;
    dn_type dh_name_count;
    dn_type dh_abbrev_table_size;
    dn_type dh_augmentation_string_size;
    const char *   dh_augmentation_string;
};

struct Dwarf_P_Dnames_uarray_s {
    dn_type  dne_allocated;
    dn_type  dne_used;
    dn_type  *dne_values;
};
struct Dwarf_P_Dnames_sarray_s {
    dn_type     dne_allocated;
    dn_type     dne_used;
    Dwarf_Sig8 *dne_values;
};


struct Dwarf_P_Dnames_s {
    Dwarf_Small dn_create_section;
    struct Dwarf_P_Dnames_Head_s dn_header;
    struct Dwarf_P_Dnames_uarray_s dn_cunit_offset;
    struct Dwarf_P_Dnames_uarray_s dn_tunit_offset;
    struct Dwarf_P_Dnames_sarray_s dn_sunit_sigs;

    struct Dwarf_P_Dnames_uarray_s dn_buckets;

    /* Hashes count applies to string offsets and entry offsets arrays too. */
    struct Dwarf_P_Dnames_uarray_s dn_hashes;
    struct Dwarf_P_Dnames_uarray_s dn_string_offsets;
    struct Dwarf_P_Dnames_uarray_s dn_entry_pool;

    Dwarf_Small *dn_index_entry_pool;
    Dwarf_Small  dn_index_entry_pool_size;
    Dwarf_Small  dn_index_entry_pool_used;

};