annotate libiberty/dwarfnames.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Names of various DWARF tags.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of GNU CC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GNU CC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
kono
parents:
diff changeset
9 any later version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 In addition to the permissions in the GNU General Public License, the
kono
parents:
diff changeset
12 Free Software Foundation gives you unlimited permission to link the
kono
parents:
diff changeset
13 compiled version of this file into combinations with other programs,
kono
parents:
diff changeset
14 and to distribute those combinations without any restriction coming
kono
parents:
diff changeset
15 from the use of this file. (The General Public License restrictions
kono
parents:
diff changeset
16 do apply in other respects; for example, they cover modification of
kono
parents:
diff changeset
17 the file, and distribution when not linked into a combined
kono
parents:
diff changeset
18 executable.)
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 GNU CC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
23 GNU General Public License for more details.
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
26 along with GNU CC; see the file COPYING. If not, write to
kono
parents:
diff changeset
27 the Free Software Foundation, 51 Franklin Street - Fifth Floor,
kono
parents:
diff changeset
28 Boston, MA 02110-1301, USA. */
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 #include "dwarf2.h"
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 #define DW_FIRST_TAG(name, value) \
kono
parents:
diff changeset
33 const char *get_DW_TAG_name (unsigned int tag) \
kono
parents:
diff changeset
34 { switch (tag) { \
kono
parents:
diff changeset
35 DW_TAG (name, value)
kono
parents:
diff changeset
36 #define DW_END_TAG } return 0; }
kono
parents:
diff changeset
37 #define DW_FIRST_FORM(name, value) \
kono
parents:
diff changeset
38 const char *get_DW_FORM_name (unsigned int form) \
kono
parents:
diff changeset
39 { switch (form) { \
kono
parents:
diff changeset
40 DW_FORM (name, value)
kono
parents:
diff changeset
41 #define DW_END_FORM } return 0; }
kono
parents:
diff changeset
42 #define DW_FIRST_AT(name, value) \
kono
parents:
diff changeset
43 const char *get_DW_AT_name (unsigned int attr) { \
kono
parents:
diff changeset
44 switch (attr) { \
kono
parents:
diff changeset
45 DW_AT (name, value)
kono
parents:
diff changeset
46 #define DW_END_AT } return 0; }
kono
parents:
diff changeset
47 #define DW_FIRST_OP(name, value) \
kono
parents:
diff changeset
48 const char *get_DW_OP_name (unsigned int op) { \
kono
parents:
diff changeset
49 switch (op) { \
kono
parents:
diff changeset
50 DW_OP (name, value)
kono
parents:
diff changeset
51 #define DW_END_OP } return 0; }
kono
parents:
diff changeset
52 #define DW_FIRST_ATE(name, value) \
kono
parents:
diff changeset
53 const char *get_DW_ATE_name (unsigned int enc) { \
kono
parents:
diff changeset
54 switch (enc) { \
kono
parents:
diff changeset
55 DW_ATE (name, value)
kono
parents:
diff changeset
56 #define DW_END_ATE } return 0; }
kono
parents:
diff changeset
57 #define DW_FIRST_CFA(name, value) \
kono
parents:
diff changeset
58 const char *get_DW_CFA_name (unsigned int opc) { \
kono
parents:
diff changeset
59 switch (opc) { \
kono
parents:
diff changeset
60 DW_CFA (name, value)
kono
parents:
diff changeset
61 #define DW_END_CFA } return 0; }
kono
parents:
diff changeset
62 #define DW_FIRST_IDX(name, value) \
kono
parents:
diff changeset
63 const char *get_DW_IDX_name (unsigned int idx) { \
kono
parents:
diff changeset
64 switch (idx) { \
kono
parents:
diff changeset
65 DW_IDX (name, value)
kono
parents:
diff changeset
66 #define DW_END_IDX } return 0; }
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 #define DW_TAG(name, value) case name: return # name ;
kono
parents:
diff changeset
69 #define DW_TAG_DUP(name, value)
kono
parents:
diff changeset
70 #define DW_FORM(name, value) case name: return # name ;
kono
parents:
diff changeset
71 #define DW_AT(name, value) case name: return # name ;
kono
parents:
diff changeset
72 #define DW_AT_DUP(name, value)
kono
parents:
diff changeset
73 #define DW_OP(name, value) case name: return # name ;
kono
parents:
diff changeset
74 #define DW_OP_DUP(name, value)
kono
parents:
diff changeset
75 #define DW_ATE(name, value) case name: return # name ;
kono
parents:
diff changeset
76 #define DW_ATE_DUP(name, value)
kono
parents:
diff changeset
77 #define DW_CFA(name, value) case name: return # name ;
kono
parents:
diff changeset
78 #define DW_CFA_DUP(name, value)
kono
parents:
diff changeset
79 #define DW_IDX(name, value) case name: return # name ;
kono
parents:
diff changeset
80 #define DW_IDX_DUP(name, value)
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 #include "dwarf2.def"
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 #undef DW_FIRST_TAG
kono
parents:
diff changeset
85 #undef DW_END_TAG
kono
parents:
diff changeset
86 #undef DW_FIRST_FORM
kono
parents:
diff changeset
87 #undef DW_END_FORM
kono
parents:
diff changeset
88 #undef DW_FIRST_AT
kono
parents:
diff changeset
89 #undef DW_END_AT
kono
parents:
diff changeset
90 #undef DW_FIRST_OP
kono
parents:
diff changeset
91 #undef DW_END_OP
kono
parents:
diff changeset
92 #undef DW_FIRST_ATE
kono
parents:
diff changeset
93 #undef DW_END_ATE
kono
parents:
diff changeset
94 #undef DW_FIRST_CFA
kono
parents:
diff changeset
95 #undef DW_END_CFA
kono
parents:
diff changeset
96 #undef DW_FIRST_IDX
kono
parents:
diff changeset
97 #undef DW_END_IDX
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 #undef DW_TAG
kono
parents:
diff changeset
100 #undef DW_TAG_DUP
kono
parents:
diff changeset
101 #undef DW_FORM
kono
parents:
diff changeset
102 #undef DW_AT
kono
parents:
diff changeset
103 #undef DW_AT_DUP
kono
parents:
diff changeset
104 #undef DW_OP
kono
parents:
diff changeset
105 #undef DW_OP_DUP
kono
parents:
diff changeset
106 #undef DW_ATE
kono
parents:
diff changeset
107 #undef DW_ATE_DUP
kono
parents:
diff changeset
108 #undef DW_CFA
kono
parents:
diff changeset
109 #undef DW_CFA_DUP
kono
parents:
diff changeset
110 #undef DW_IDX
kono
parents:
diff changeset
111 #undef DW_IDX_DUP