Debian Codegraph @

src/bin/dwarfdump/dd_compiler_info.h

raw
1 /*
2 Copyright 2010-2018 David Anderson. All rights reserved.
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of version 2 of the GNU General
6 Public License as published by the Free Software Foundation.
7
8 This program is distributed in the hope that it would be
9 useful, but WITHOUT ANY WARRANTY; without even the implied
10 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE.
12
13 Further, this software is distributed without any warranty
14 that it is free of the rightful claim of any third person
15 regarding infringement or the like. Any license provided
16 herein, whether implied or otherwise, applies only to this
17 software file. Patent licenses, if any, provided herein
18 do not apply to combinations of this program with other
19 software, or any other product whatsoever.
20
21 You should have received a copy of the GNU General Public
22 License along with this program; if not, write the Free
23 Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
24 Boston MA 02110-1301, USA.
25
26 */
27
28 #ifndef COMPILER_INFO_H
29 #define COMPILER_INFO_H
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
34
35 #define COMPILER_TABLE_MAX 100
36
37 typedef struct anc {
38 struct anc *next;
39 char *item;
40 } a_name_chain;
41
42 typedef struct {
43 int checks;
44 int errors;
45 } Dwarf_Check_Result;
46
47 /* Records information about compilers (producers) found in the
48 debug information, including the check results for several
49 categories (see -k option). */
50 typedef struct {
51 const char *name;
52 Dwarf_Bool verified;
53 a_name_chain *cu_list;
54 a_name_chain *cu_last;
55 Dwarf_Check_Result results[LAST_CATEGORY];
56 } Compiler;
57
58 /* Compiler statistics. */
59 extern void clean_up_compilers_detected(void);
60 extern void reset_compiler_entry(Compiler *compiler);
61 extern void print_checks_results(void);
62 extern Dwarf_Bool record_producer(char *name);
63
64 #ifdef __cplusplus
65 }
66 #endif /* __cplusplus */
67
68 #endif /* COMPILER_INFO_H */